/*
 * Open Real Estate · CSS base do sistema visual "Vitrine local" (ADR-008).
 *
 * Arquivo estático, servido em /assets/site.css?v=<hash> com cache longo. A cor
 * do corretor chega só pelas variáveis --brand-* do /tema.css (src/site/palette.ts).
 * Tokens, componentes e checklist: docs/design/identidade-visual.md.
 * Sem style= nem <style> nas páginas (CSP): variações viram classe ou atributo.
 */

/* ---------- Fonte ---------- */
@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url(/assets/fonts/figtree.woff2?v=8330490a01c6) format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */
:root {
  --bg: #f7f5f1;
  --surface: #ffffff;
  --surface-2: #f0ede7;
  --line: #e4dfd6;
  --line-strong: #cbc4b8;
  --field: #8f877b;
  --text: #1c1a17;
  --text-2: #57524b;
  --muted: #6b655d;
  --ok: #1e7d32;
  --ok-soft: #e5f2e7;
  --warn: #9a5b00;
  --warn-soft: #fbf0dc;
  --err: #b3261e;
  --err-soft: #fbe9e7;
  --on-err: #ffffff;
  --ink: var(--brand-ink);
  --soft: var(--brand-soft);
  --focus: var(--brand-ink);
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 28px;
  --r-pill: 999px;
  --sh-1: 0 1px 2px rgba(28, 26, 23, 0.06), 0 1px 1px rgba(28, 26, 23, 0.04);
  --sh-2: 0 6px 20px rgba(28, 26, 23, 0.08), 0 1px 3px rgba(28, 26, 23, 0.06);
  --sh-3: 0 24px 60px rgba(28, 26, 23, 0.22);
  --font: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --select-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b655d' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  color-scheme: light;
}

/*
 * Neutros escuros (#70). A aparência vem do atributo data-aparencia do <html>:
 * "escura" força o modo escuro; sem "clara", o site segue o aparelho.
 */
:root[data-aparencia="escura"] {
  --bg: #121314;
  --surface: #1b1d1f;
  --surface-2: #24272a;
  --line: #2f3337;
  --line-strong: #4a4f54;
  --field: #7f786e;
  --text: #f1efeb;
  --text-2: #c9c4bc;
  --muted: #a8a298;
  --ok: #6cc47e;
  --ok-soft: #1b2e20;
  --warn: #e8b25a;
  --warn-soft: #33281a;
  --err: #f08a80;
  --err-soft: #3a1f1c;
  --on-err: #1b0d0b;
  --ink: var(--brand-ink-d);
  --soft: var(--brand-soft-d);
  --focus: var(--brand-ink-d);
  --sh-1: 0 1px 2px rgba(0, 0, 0, 0.4);
  --sh-2: 0 6px 20px rgba(0, 0, 0, 0.45);
  --sh-3: 0 24px 60px rgba(0, 0, 0, 0.6);
  color-scheme: dark;
  --select-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a8a298' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
}
@media (prefers-color-scheme: dark) {
  :root:not([data-aparencia="clara"]) {
    --bg: #121314;
    --surface: #1b1d1f;
    --surface-2: #24272a;
    --line: #2f3337;
    --line-strong: #4a4f54;
    --field: #7f786e;
    --text: #f1efeb;
    --text-2: #c9c4bc;
    --muted: #a8a298;
    --ok: #6cc47e;
    --ok-soft: #1b2e20;
    --warn: #e8b25a;
    --warn-soft: #33281a;
    --err: #f08a80;
    --err-soft: #3a1f1c;
    --on-err: #1b0d0b;
    --ink: var(--brand-ink-d);
    --soft: var(--brand-soft-d);
    --focus: var(--brand-ink-d);
    --sh-1: 0 1px 2px rgba(0, 0, 0, 0.4);
    --sh-2: 0 6px 20px rgba(0, 0, 0, 0.45);
    --sh-3: 0 24px 60px rgba(0, 0, 0, 0.6);
    color-scheme: dark;
    --select-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a8a298' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  }
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  height: auto;
}
h1,
h2,
h3,
h4 {
  line-height: 1.2;
}
h1 {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
h2 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
h3 {
  font-size: 18px;
  font-weight: 650;
}
a {
  color: var(--ink);
  text-underline-offset: 3px;
}
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    /* biome-ignore lint/complexity/noImportantStyles: a preferência do visitante vence qualquer componente. */
    transition: none !important;
    /* biome-ignore lint/complexity/noImportantStyles: idem. */
    animation: none !important;
  }
}

/* ---------- Utilitários ---------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}
.stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.muted {
  color: var(--muted);
}
.t2 {
  color: var(--text-2);
}
.small {
  font-size: 14px;
}
.xs {
  font-size: 13px;
}
.num {
  font-variant-numeric: tabular-nums;
}
.pre {
  white-space: pre-line;
}
.eyebrow {
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
}
.lead {
  font-size: 18px;
  color: var(--text-2);
}

/* ---------- Ícones: <svg class="i" aria-hidden="true"><use href="/assets/icones.svg#bed"/></svg> ---------- */
.i {
  display: inline-block;
  width: 20px;
  height: 20px;
  flex: none;
  vertical-align: -0.2em;
}
.i-16 {
  width: 16px;
  height: 16px;
}
.i-18 {
  width: 18px;
  height: 18px;
}
.i-24 {
  width: 24px;
  height: 24px;
}
.i-28 {
  width: 28px;
  height: 28px;
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 20px;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  font: inherit;
  font-weight: 650;
  font-size: 16px;
  line-height: 1.1;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition:
    background 0.15s,
    box-shadow 0.15s;
}
.btn-primary {
  background: var(--brand-fill);
  color: var(--brand-contrast);
}
.btn-primary:hover {
  background: var(--brand-hover);
}
.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--line-strong);
}
.btn-secondary:hover {
  background: var(--surface-2);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
}
.btn-ghost:hover {
  background: var(--soft);
}
.btn-danger {
  background: var(--err);
  color: var(--on-err);
}
.btn-danger:hover {
  filter: brightness(0.9);
}
.btn-sm {
  min-height: 44px;
  padding: 0 14px;
  font-size: 15px;
}
.btn-lg {
  min-height: 56px;
  padding: 0 24px;
  font-size: 17px;
  border-radius: 14px;
}
.btn-block {
  width: 100%;
}
.btn[disabled],
.btn[aria-disabled="true"] {
  opacity: 0.45;
  cursor: not-allowed;
}
.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  flex: none;
  text-decoration: none;
}
.icon-btn:hover {
  background: var(--surface-2);
}
.icon-btn.sq {
  border-radius: var(--r-md);
}
.icon-btn.danger {
  color: var(--err);
}

/* ---------- Selos: texto + ícone, nunca só cor ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 0 10px;
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 650;
  background: var(--surface-2);
  color: var(--text-2);
  white-space: nowrap;
}
.chip .i {
  width: 15px;
  height: 15px;
}
.chip-brand {
  background: var(--soft);
  color: var(--ink);
}
.chip-solid {
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--sh-1);
}
.chip-ok {
  background: var(--ok-soft);
  color: var(--ok);
}
.chip-warn {
  background: var(--warn-soft);
  color: var(--warn);
}
.chip-err {
  background: var(--err-soft);
  color: var(--err);
}
.chip-line {
  background: transparent;
  border: 1px dashed var(--line-strong);
  color: var(--text-2);
}
a.chip-x {
  min-height: 44px;
  padding: 0 6px 0 12px;
  background: var(--soft);
  color: var(--ink);
  text-decoration: none;
}

/* ---------- Formulários ---------- */
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.label {
  font-size: 14px;
  font-weight: 650;
  color: var(--text);
}
.hint {
  font-size: 13px;
  color: var(--muted);
}
.input,
.select,
.textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid var(--field);
  border-radius: var(--r-md);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 16px;
}
.textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.5;
}
.select {
  appearance: none;
  padding-right: 40px;
  background-image: var(--select-arrow);
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 20px;
}
.input:focus-visible,
.select:focus-visible,
.textarea:focus-visible {
  outline-offset: 1px;
  border-color: var(--ink);
}
.input[aria-invalid="true"],
.select[aria-invalid="true"],
.textarea[aria-invalid="true"] {
  border-color: var(--err);
  border-width: 2px;
}
.err-msg {
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--err);
}
.input-icon {
  position: relative;
}
.input-icon > .i {
  position: absolute;
  left: 14px;
  top: 14px;
  color: var(--muted);
  pointer-events: none;
}
.input-icon > .input {
  padding-left: 42px;
}
.seg {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 4px;
  margin: 0;
  padding: 4px;
  border: 0;
  border-radius: 14px;
  background: var(--surface-2);
}
.seg label {
  position: relative;
  display: block;
  cursor: pointer;
}
.seg input {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
  cursor: pointer;
}
.seg span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 10px;
  font-weight: 650;
  font-size: 15px;
  color: var(--text-2);
}
.seg input:checked + span {
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--sh-1);
}
.seg input:focus-visible + span {
  outline: 3px solid var(--focus);
  outline-offset: 1px;
}
.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  min-height: 44px;
  padding: 10px 0;
  cursor: pointer;
}
.check input,
.radio-card input {
  width: 22px;
  height: 22px;
  margin: 0;
  accent-color: var(--brand-fill);
  flex: none;
}
.radio-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px;
  border: 1px solid var(--field);
  border-radius: var(--r-md);
  background: var(--surface);
  cursor: pointer;
}
.radio-card:has(input:checked) {
  border: 2px solid var(--ink);
  background: var(--soft);
}

/* ---------- Superfícies e avisos ---------- */
.box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 20px;
}
.box-soft {
  background: var(--soft);
  border-radius: var(--r-lg);
  padding: 20px;
}
.divider {
  height: 1px;
  background: var(--line);
  border: 0;
  margin: 0;
}
.alert {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: var(--r-md);
  font-size: 15px;
  color: var(--text);
}
.alert > .i {
  margin-top: 2px;
}
.alert-ok {
  background: var(--ok-soft);
}
.alert-ok > .i {
  color: var(--ok);
}
.alert-warn {
  background: var(--warn-soft);
}
.alert-warn > .i {
  color: var(--warn);
}
.alert-err {
  background: var(--err-soft);
}
.alert-err > .i {
  color: var(--err);
}
.alert-info {
  background: var(--soft);
}
.alert-info > .i {
  color: var(--ink);
}
.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  padding: 40px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.empty .ic {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--soft);
  color: var(--ink);
}
.empty p {
  max-width: 36ch;
  margin: 0;
  color: var(--text-2);
}
.avatar {
  border-radius: 50%;
  object-fit: cover;
  flex: none;
  background: var(--surface-2);
}

/* ---------- Cartão de oferta ---------- */
.cards {
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(0, 1fr);
  margin: 0;
  padding: 0;
  list-style: none;
}
.card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-1);
  color: var(--text);
  text-decoration: none;
  transition:
    box-shadow 0.15s,
    transform 0.15s;
}
.card:hover {
  box-shadow: var(--sh-2);
}
/* O título é o único link e cobre o cartão inteiro (foto incluída). */
.card {
  position: relative;
  cursor: pointer;
}
.card-link {
  color: inherit;
  text-decoration: none;
}
.card-link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
}
.card:hover .card-link {
  text-decoration: underline;
}
.card-link:focus-visible {
  outline: none;
}
.card:has(.card-link:focus-visible) {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
@media (prefers-reduced-motion: no-preference) {
  .card:hover {
    transform: translateY(-2px);
  }
}
.card-media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--surface-2);
}
.card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card-badges {
  position: absolute;
  left: 10px;
  top: 10px;
  display: flex;
  gap: 6px;
}
.card-count {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: var(--r-pill);
  background: rgba(20, 18, 16, 0.72);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}
.card-count .i {
  width: 14px;
  height: 14px;
}
.card-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px 16px;
}
.price {
  font-size: 22px;
  font-weight: 750;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}
.price .per {
  font-size: 15px;
  font-weight: 550;
  color: var(--text-2);
  letter-spacing: 0;
}
.card-title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
}
.loc {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--text-2);
}
.loc .i {
  width: 16px;
  height: 16px;
  color: var(--muted);
}
.feats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--text-2);
}
.feats > * {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.feats .i {
  width: 17px;
  height: 17px;
  color: var(--muted);
}
.also {
  display: block;
  font-size: 13px;
  color: var(--ink);
  font-weight: 650;
}

/* ---------- Diálogo ---------- */
.dlg {
  width: calc(100% - 32px);
  max-width: 440px;
  border: 0;
  background: var(--surface);
  color: var(--text);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-3);
  padding: 24px;
}
.dlg::backdrop {
  background: rgba(20, 18, 16, 0.55);
}
.dlg-acts {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap-reverse;
}

/* ---------- Site público: estrutura ---------- */
.skip {
  position: absolute;
  left: 8px;
  top: -60px;
  z-index: 10;
  padding: 10px 16px;
  border-radius: var(--r-md);
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--sh-2);
}
.skip:focus {
  top: 8px;
}
main.site-main {
  max-width: none;
  margin: 0;
  padding: 0;
}
/* Margens, não padding: o .wrap redefine o padding lateral no desktop. */
.page-body {
  margin-top: 20px;
  margin-bottom: 40px;
}
.page-top {
  margin-top: 16px;
}
.hide-wide {
  display: block;
}
.show-wide {
  display: none;
}

/* ---------- Cabeçalho público ---------- */
.hdr-band {
  background: var(--brand-fill);
  color: var(--brand-contrast);
  font-size: 13px;
  font-weight: 550;
}
.hdr-band .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 34px;
}
.hdr-cities {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.hdr-band a {
  color: inherit;
  font-weight: 650;
}
.hdr-band .only-wide {
  display: none;
}
.hdr-bar {
  position: relative;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.hdr-bar .wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  margin-right: auto;
  color: var(--text);
  text-decoration: none;
}
.logo-tile {
  display: grid;
  place-items: center;
  flex: none;
  height: 48px;
  min-width: 48px;
  padding: 5px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
}
.logo-tile img {
  display: block;
  height: 36px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
}
.brand-name {
  font-size: 17px;
  font-weight: 750;
  letter-spacing: -0.01em;
  line-height: 1.15;
}
.hdr-nav {
  display: none;
  gap: 4px;
}
.hdr-nav a,
.menu-panel a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 10px;
  color: var(--text-2);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
}
.hdr-nav a:hover,
.menu-panel a:hover {
  background: var(--surface-2);
  color: var(--text);
}
.hdr-nav a[aria-current],
.menu-panel a[aria-current] {
  color: var(--ink);
  background: var(--soft);
}
/* Área do corretor (#90): no fim do menu, com menos destaque que as páginas e o WhatsApp. */
.hdr-nav .nav-staff,
.menu-panel .nav-staff {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}
.menu-panel .nav-staff {
  margin-top: 4px;
  border-top: 1px solid var(--line);
  border-radius: 0 0 10px 10px;
}
.hdr-cta {
  display: none;
}
.menu summary {
  list-style: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  cursor: pointer;
}
.menu summary::-webkit-details-marker {
  display: none;
}
.menu-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 5;
  display: grid;
  gap: 4px;
  padding: 8px 16px 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--sh-2);
}

/* ---------- Home ---------- */
.hero {
  padding: 16px 0 8px;
}
.hero-grid {
  display: grid;
  gap: 20px;
}
.hero-media {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--surface-2);
}
.hero-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
a.hero-tag {
  text-decoration: none;
}
.hero-tag {
  position: absolute;
  left: 12px;
  bottom: 12px;
  right: 12px;
  display: flex;
  flex-direction: column;
  width: fit-content;
  max-width: calc(100% - 24px);
  margin: 0;
  padding: 8px 12px;
  border-radius: 14px;
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--sh-2);
  font-size: 13px;
  line-height: 1.3;
}
.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.hero-copy h1,
.hero-copy p {
  margin: 0;
}
.hero h1 {
  font-size: 32px;
}
.search {
  display: grid;
  gap: 12px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-2);
}
.search-fields {
  display: grid;
  gap: 12px;
}
.type-nav {
  margin-top: 20px;
}
.type-pills {
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 2px;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
}
.type-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
}
.type-pill:hover {
  background: var(--surface-2);
}
.type-pill .n {
  color: var(--muted);
  font-weight: 500;
}
.sec {
  padding: 32px 0;
}
.sec-h {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.sec-h h2 {
  margin: 0;
}
.sec-end {
  margin-bottom: 40px;
}
.agent-band {
  display: grid;
  gap: 16px;
  align-items: center;
  padding: 20px;
  border-radius: var(--r-xl);
  background: var(--soft);
}
.agent-band .who {
  display: flex;
  gap: 14px;
  align-items: center;
}
.who-name {
  margin: 0;
  font-size: 18px;
}
.agent-band p {
  margin: 0;
}
.av-48 {
  width: 48px;
  height: 48px;
}
.av-64 {
  width: 64px;
  height: 64px;
}
.av-80 {
  width: 80px;
  height: 80px;
}

/* ---------- Cartão: complementos ---------- */
.card-nophoto {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 100%;
  color: var(--muted);
}
.card-title {
  margin: 0;
}
.loc {
  align-items: flex-start;
}
.loc .i {
  margin-top: 2px;
}
.loc p {
  margin: 0;
}
.feats {
  list-style: none;
  margin-bottom: 0;
  padding-left: 0;
}
.card-more summary {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
  font-weight: 650;
  cursor: pointer;
}
.card-more .pre {
  margin: 8px 0 0;
  color: var(--text-2);
}
.dl {
  display: grid;
  margin: 0;
}
.dl > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.dl dt {
  color: var(--text-2);
}
.dl dd {
  margin: 0;
  font-weight: 650;
  text-align: right;
}

/* ---------- Resultados da busca ---------- */
.results-bar {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 0;
}
.results-bar h1,
.results-bar p {
  margin: 0;
}
.results-bar h1 {
  font-size: 26px;
}
.filters {
  margin-bottom: 8px;
}
.filter-sum {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 56px;
  padding: 8px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  cursor: pointer;
  list-style: none;
}
.filter-sum::-webkit-details-marker {
  display: none;
}
.filter-sum .stack {
  gap: 0;
  min-width: 0;
}
.filters[open] .filter-sum {
  margin-bottom: 12px;
}
.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.invite {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  margin-top: 32px;
}
.invite .stack {
  gap: 4px;
}

/* ---------- Rodapé ---------- */
.ftr {
  margin-top: 16px;
  background: #1c1a17;
  color: #e9e5de;
  border-top: 4px solid var(--brand-fill);
}
.ftr .wrap {
  display: grid;
  gap: 28px;
  padding-top: 32px;
  padding-bottom: 24px;
}
.ftr a {
  color: #fff;
}
.ftr .brand {
  color: #fff;
}
.ftr-about p {
  margin: 0;
  color: #cfc9c0;
  font-size: 15px;
}
.ftr-about .stack,
.ftr-contact {
  gap: 10px;
}
.ftr-h {
  margin: 0 0 10px;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #bdb6ab;
}
.ftr ul {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ftr li a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  text-decoration: none;
}
.ftr .soc {
  display: flex;
  gap: 8px;
}
.ftr .soc a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid #4a453e;
}
.ftr :focus-visible {
  outline-color: #fff;
}
.ftr-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid #3a3631;
  font-size: 13px;
  color: #bdb6ab;
}

/* ---------- Página do imóvel (#21) ---------- */
.crumbs {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 8px;
  padding-bottom: 8px;
}
.crumbs .back {
  min-height: 44px;
}
.wrap.gal-wrap {
  padding: 0;
}
.gal {
  position: relative;
}
.gal-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.gal-track::-webkit-scrollbar {
  display: none;
}
@media (prefers-reduced-motion: no-preference) {
  .gal-track {
    scroll-behavior: smooth;
  }
}
.gal-slide {
  position: relative;
  flex: 0 0 100%;
  margin: 0;
  aspect-ratio: 4 / 3;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  background: #1c1a17;
}
.gal-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gal-count {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 5px 11px;
  border-radius: var(--r-pill);
  background: rgba(20, 18, 16, 0.74);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.gal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #1c1a17;
  box-shadow: var(--sh-2);
}
.gal-nav.prev {
  left: 10px;
}
.gal-nav.next {
  right: 10px;
}
.gal-full {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 12px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.92);
  color: #1c1a17;
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}
.gal-nav:focus-visible,
.gal-full:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
  box-shadow: 0 0 0 6px #1c1a17;
}
/* Miniaturas só com o script (sem ele, as âncoras e o arrasto bastam). */
.gal-thumbs {
  display: none;
  gap: 8px;
  margin: 0;
  padding: 10px 0 2px;
  overflow-x: auto;
  list-style: none;
}
.js .gal-thumbs {
  display: flex;
}
.gal-thumb {
  display: block;
  width: 96px;
  height: 68px;
  padding: 0;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 10px;
  background: none;
  cursor: pointer;
  opacity: 0.75;
}
.gal-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gal-thumb[aria-current] {
  border-color: var(--ink);
  opacity: 1;
}
.pp {
  display: grid;
  gap: 20px;
  padding-top: 16px;
  padding-bottom: 32px;
}
.pp-main {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}
.pp-main h2 {
  margin: 0;
}
.pp-main p {
  margin: 0;
}
.pp-head {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pp-head h1 {
  margin: 0;
  font-size: 26px;
}
.pp-head .chips {
  gap: 8px;
}
.hide-wide.pp-price {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.pp-aside {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.price-lg {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.price-lg .per {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-2);
}
.avail {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--ok);
  font-size: 14px;
  font-weight: 600;
}
.other-offer {
  font-weight: 650;
}
.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.fact {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
}
.fact .ic {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--soft);
  color: var(--ink);
}
.fact b {
  display: block;
  font-size: 17px;
  line-height: 1.2;
}
.fact small {
  font-size: 13px;
  color: var(--muted);
}
.agent-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.agent-card .who {
  display: flex;
  gap: 12px;
  align-items: center;
}
.avatar-frame.av-64 {
  width: 64px;
  height: 64px;
}
.show-wide-flex {
  display: none;
}
.cta-bar {
  position: sticky;
  bottom: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: var(--surface);
  border-top: 1px solid var(--line);
  box-shadow: 0 -6px 20px rgba(28, 26, 23, 0.08);
}
.cta-bar .p {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.15;
}
.cta-bar .p b {
  font-size: 17px;
  font-variant-numeric: tabular-nums;
}
.cta-bar .btn {
  flex: 1;
}
.photo-column {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.photo-column li {
  scroll-margin-top: 16px;
}
.photo-column img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--r-md);
}

/* Lightbox */
dialog.lb {
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: #0f0e0d;
  color: #f4f1ec;
}
dialog.lb[open] {
  display: flex;
  flex-direction: column;
}
dialog.lb::backdrop {
  background: rgba(0, 0, 0, 0.9);
}
.lb-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 8px 8px 16px;
}
.lb-top form {
  margin: 0;
}
.lb-top .count {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.lb-title {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: #cfc9c0;
}
.lb-btn {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
}
.lb-btn:hover {
  background: rgba(255, 255, 255, 0.22);
}
.lb-stage {
  position: relative;
  flex: 1;
  min-height: 0;
}
.lb-track {
  display: flex;
  height: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.lb-slide {
  position: relative;
  flex: 0 0 100%;
  height: 100%;
  margin: 0;
  scroll-snap-align: center;
}
/* A foto inteira cabe no palco, sem corte. */
.lb-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.lb-stage .lb-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}
.lb-stage .prev {
  left: 12px;
}
.lb-stage .next {
  right: 12px;
}
.lb-thumbs {
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 8px 16px 16px;
  overflow-x: auto;
  list-style: none;
}
.lb-thumb {
  display: block;
  width: 64px;
  height: 64px;
  padding: 0;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 10px;
  background: none;
  cursor: pointer;
  opacity: 0.55;
}
.lb-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.lb-thumb[aria-current] {
  border-color: #fff;
  opacity: 1;
}
dialog.lb :focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
}

/* ---------- Páginas institucionais ---------- */
.page-hero {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px 0 16px;
}
.page-hero h1,
.page-hero p {
  margin: 0;
}
.about-grid {
  display: grid;
  gap: 24px;
}
.about-photo {
  overflow: hidden;
  border-radius: var(--r-xl);
  aspect-ratio: 4 / 5;
  max-height: 520px;
  background: var(--surface-2);
}
.about-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.about-story {
  margin: 0;
  font-size: 18px;
  line-height: 1.65;
  color: var(--text-2);
}
.about-text h2 {
  margin: 0;
}
.facts-inline {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}
.facts-inline .box {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 16px;
}
.facts-inline dd {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  white-space: nowrap;
  overflow-wrap: normal;
}
.city-list {
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.about-cta {
  margin-top: 40px;
}
.team {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr);
  margin: 0;
  padding: 0;
  list-style: none;
}
.member {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.member .ph {
  flex: none;
  width: 88px;
  height: 88px;
  overflow: hidden;
  border-radius: var(--r-md);
  background: var(--surface-2);
}
.member .ph img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.avatar-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.member-nophoto {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: var(--muted);
}
.member .info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}
.member-name {
  margin: 0;
  font-size: 17px;
}
.member .acts {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}
.member .acts .btn {
  flex: 1;
}
.avatar-frame {
  flex: none;
  width: 80px;
  height: 80px;
  overflow: hidden;
  border-radius: 50%;
  background: var(--surface-2);
}
.who-text {
  gap: 2px;
}
.contact-grid {
  display: grid;
  gap: 16px;
}
.contact-main {
  padding: 24px;
  box-shadow: var(--sh-2);
}
.contact-main p,
.contact-grid p {
  margin: 0;
}
.contact-h {
  margin: 0;
  font-size: 20px;
}
.contact-wa {
  flex-wrap: nowrap;
  gap: 14px;
}
.contact-wa .stack {
  gap: 0;
}
.contact-number {
  font-size: 20px;
  font-weight: 650;
}
.contact-lines {
  margin: 0;
  padding: 0;
  list-style: none;
}
.contact-line {
  display: flex;
  gap: 12px;
  align-items: center;
  min-height: 56px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  text-decoration: none;
}
.contact-lines li:last-child .contact-line,
.contact-lines li.contact-line:last-child {
  border-bottom: 0;
}
.contact-line .stack {
  gap: 0;
}
.contact-line .grow {
  flex: 1;
  min-width: 0;
}
.contact-line > .i {
  color: var(--ink);
}
.contact-line .ic {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--soft);
  color: var(--ink);
}
.avatar-frame.av-48 {
  width: 48px;
  height: 48px;
}
.ftr-creci {
  font-size: 14px;
}
.not-found h1,
.not-found p {
  margin: 0;
}

/* ---------- Painel (#69) ---------- */
.pn {
  display: flex;
  flex-wrap: wrap;
  min-height: 100vh;
  align-items: stretch;
}
.pn-side {
  flex: 1 1 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.pn-brand {
  gap: 0;
}
.pn-side .brand-name {
  font-size: 15px;
}
.brand-sub {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}
.pn-nav {
  display: flex;
  gap: 4px;
  min-width: 0;
  max-width: 100%;
  margin: 0 -4px;
  overflow-x: auto;
  scrollbar-width: none;
}
.pn-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--text-2);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
.pn-link:hover {
  background: var(--surface-2);
  color: var(--text);
}
.pn-link[aria-current] {
  background: var(--soft);
  color: var(--ink);
}
.pn-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}
.pn-foot form {
  margin: 0;
}
.pn-user {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0 12px;
  line-height: 1.2;
}
.pn-main {
  flex: 999 1 560px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 1100px;
  padding: 20px 16px 40px;
}
main.pn-main {
  margin: 0;
}
.pn-main h1,
.pn-main h2,
.pn-main h3,
.pn-main p {
  margin: 0;
}
.pn-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}
.pn-head h1 {
  font-size: 26px;
}
.pn-title {
  gap: 4px;
}
.back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 32px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.pn-sec {
  display: flex;
  flex-direction: column;
  gap: 14px;
  scroll-margin-top: 64px;
}
.pn-sec h2 {
  font-size: 20px;
}
.pn-version {
  color: var(--muted);
}
.anchor-nav {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  gap: 6px;
  padding: 6px 0;
  overflow-x: auto;
  scrollbar-width: none;
  background: var(--bg);
}
.anchor-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text-2);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

/* Formulários do painel: os campos sem classe ganham o visual do sistema. */
.pn-main label:not([class]) {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  font-weight: 650;
}
.pn-main label:not([class]):has(input[type="checkbox"]),
.pn-main label:not([class]):has(input[type="radio"]) {
  flex-direction: row;
  align-items: center;
  min-height: 44px;
  font-weight: 500;
}
.pn-main
  input:not([class]):not([type="radio"]):not([type="checkbox"]):not([type="hidden"]):not(
    [type="file"]
  ):not([type="color"]),
.pn-main select:not([class]),
.pn-main textarea:not([class]) {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border-radius: var(--r-md);
  font-size: 16px;
  font-weight: 400;
}
.pn-main textarea:not([class]) {
  min-height: 120px;
}
.pn-main input[type="color"] {
  width: 64px;
  height: 48px;
  padding: 4px;
  border: 1px solid var(--field);
  border-radius: var(--r-md);
  background: var(--surface);
}
/* Campo de arquivo: o botão que abre a seleção tem alvo de toque de 44 px (#90). */
.pn-main input[type="file"] {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 44px;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}
.pn-main input[type="file"]::file-selector-button {
  min-height: 44px;
  margin-right: 10px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}
.pn-main input[type="file"]::file-selector-button:hover {
  background: var(--surface-2);
}
.pn-main small {
  color: var(--muted);
  font-size: 13px;
}
.pn-main fieldset {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 14px 16px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.pn-main legend {
  padding: 0 6px;
  font-weight: 700;
}
.pn-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.pn-form > .btn,
.pn-form > button {
  align-self: flex-start;
}
.form-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr);
}
.form-submit {
  justify-content: flex-end;
}
.pn-main button:not([class]) {
  align-self: flex-start;
}

/* Lista de imóveis e de pessoas */
.tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
  scrollbar-width: none;
}
.tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 14px;
  border-bottom: 3px solid transparent;
  color: var(--text-2);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.tab[aria-current] {
  color: var(--ink);
  border-bottom-color: var(--ink);
}
.tab .n {
  padding: 1px 7px;
  border-radius: var(--r-pill);
  background: var(--surface-2);
  font-size: 12px;
}
.prop-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.prop-row {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 14px;
  padding: 14px;
  align-items: start;
}
.prop-row + .prop-row {
  border-top: 1px solid var(--line);
}
.prop-row .th {
  width: 88px;
  height: 66px;
  overflow: hidden;
  border-radius: 10px;
  background: var(--surface-2);
}
.prop-row .th.th-square {
  height: 88px;
}
.prop-row .th img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.th-empty {
  display: grid;
  place-items: center;
  height: 100%;
  color: var(--muted);
}
.prop-row .acts {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.prop-info,
.prop-name {
  gap: 4px;
  min-width: 0;
}
.prop-title {
  color: var(--text);
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
}
.prop-title:hover {
  text-decoration: underline;
}
.offer-lines {
  display: grid;
  gap: 6px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}
.offer-lines .row {
  gap: 6px;
}

/* Página do imóvel */
.offer {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
}
.offer > .btn {
  justify-self: start;
}
.offer + .offer {
  margin-top: 4px;
}
.offer-h {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.offer-acts {
  gap: 8px;
}
.price-form {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px;
}
.price-form p {
  flex: 1 1 200px;
}
.drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px 16px;
  text-align: center;
  border: 2px dashed var(--brand-line);
  border-radius: var(--r-lg);
  background: var(--soft);
  color: var(--ink);
}
.drop .label {
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text);
}
.drop .hint {
  max-width: 52ch;
}
.ph-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr);
  margin: 0;
  padding: 0;
  list-style: none;
}
.ph-item {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
}
.ph-item.main {
  border: 2px solid var(--ink);
}
.ph-img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  background: var(--surface-2);
}
.ph-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ph-n {
  position: absolute;
  left: 6px;
  top: 6px;
  display: grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  border-radius: var(--r-pill);
  background: rgba(20, 18, 16, 0.75);
  color: #fff;
  font-size: 12px;
  font-weight: 750;
}
.ph-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.ph-acts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.ph-replace {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.ph-replace label {
  min-width: 0;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* Início */
.stats {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 16px;
  color: var(--text);
  text-decoration: none;
}
.stat b {
  font-size: 28px;
  line-height: 1.1;
}
.shortcuts {
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr);
}
.shortcut {
  display: flex;
  gap: 14px;
  align-items: center;
  color: var(--text);
  text-decoration: none;
}
.shortcut > .i {
  color: var(--ink);
}
.shortcut > span {
  display: flex;
  flex-direction: column;
}
.shortcut:hover {
  box-shadow: var(--sh-2);
}
.update {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  border-radius: var(--r-lg);
  background: var(--soft);
}
.update h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
}
.update ul {
  margin: 0;
  padding-left: 20px;
}
.update-security {
  background: var(--err-soft);
}
.update-security h2 {
  color: var(--err);
}

/* Listas genéricas: passkeys, sessões, usuários */
.list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.list > li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.list > li:last-child {
  border-bottom: 0;
}
.list .grow {
  flex: 1;
  min-width: 200px;
}
.session-current {
  margin-left: 8px;
}
.session-meta {
  display: block;
}
.passkey-form {
  align-items: flex-end;
}
.passkey-form .grow {
  flex: 1 1 220px;
}
.passkey-form p:empty {
  display: none;
}
.btn-danger-text {
  color: var(--err);
}
.member-preview {
  width: 160px;
  height: 160px;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--surface-2);
}
.member-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.confirm {
  max-width: 560px;
}
.confirm h1 {
  font-size: 24px;
}
.dlg h2 {
  margin: 0 0 8px;
  font-size: 20px;
}
.dlg p {
  margin: 0 0 16px;
  color: var(--text-2);
}
.dlg-acts form,
.dlg-acts {
  margin: 0;
}

/* Entrar e instalador: um cartão no centro */
.auth {
  display: grid;
  place-items: start center;
  min-height: 100vh;
  padding: 32px 16px;
}
.auth-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  max-width: 480px;
  padding: 24px;
}
.auth-card.wide {
  max-width: 720px;
}
.auth-card h1,
.auth-card h2,
.auth-card p {
  margin: 0;
}
.auth-card h1 {
  font-size: 26px;
}
.auth-card h2 {
  font-size: 18px;
}
.auth-card label:not([class]) {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  font-weight: 650;
}
.auth-card input:not([class]):not([type="hidden"]):not([type="color"]):not([type="checkbox"]) {
  width: 100%;
  min-height: 48px;
  border-radius: var(--r-md);
  font-size: 16px;
  font-weight: 400;
}
.auth-card button:not([class]) {
  min-height: 48px;
}
.auth-sep {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}
.auth-sep::before,
.auth-sep::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}
.checks {
  list-style: none;
  margin: 0;
  padding: 0;
}
main.auth {
  max-width: none;
  margin: 0;
}
.auth-head {
  gap: 4px;
}
.auth-card fieldset {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 14px 16px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.auth-card legend {
  padding: 0 6px;
  font-weight: 700;
}
/* Explicação para navegador sem passkey; assets/passkey.js remove o hidden. */
[data-passkey-unsupported][hidden] {
  display: none;
}
.auth-card [data-passkey-status]:empty {
  display: none;
}
.check-msg {
  grid-column: 1 / -1;
}
.checks li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 12px;
  margin: 0;
  padding: 12px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
}

/*
 * ---------- Telas ainda não redesenhadas ----------
 * Elementos sem classe das telas atuais, com os tokens novos. Cada issue de
 * redesenho (#65, #69) troca a marcação pelos componentes acima e remove o que
 * deixar de ser usado.
 */
main {
  max-width: 48rem;
  margin: 0 auto;
  padding: 1rem;
}
a.button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
}
button:not([class]),
a.button {
  background: var(--brand-fill);
  color: var(--brand-contrast);
  border: 0;
  border-radius: var(--r-md);
  min-height: 44px;
  padding: 0.5rem 1rem;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}
button:not([class]):hover,
a.button:hover {
  background: var(--brand-hover);
}
input:not([class]):not([type="radio"]):not([type="checkbox"]):not([type="hidden"]):not(
  [type="file"]
),
select:not([class]),
textarea:not([class]) {
  font: inherit;
  min-height: 44px;
  padding: 0.375rem 0.625rem;
  max-width: 100%;
  border: 1px solid var(--field);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--text);
}
textarea:not([class]) {
  min-height: 6rem;
}
input[type="radio"]:not([class]),
input[type="checkbox"]:not([class]) {
  width: 20px;
  height: 20px;
  accent-color: var(--brand-fill);
}
label:not([class]) {
  display: block;
}
form.inline {
  display: inline;
}
[role="alert"] {
  color: var(--err);
  font-weight: 600;
}
.alert[role="alert"] {
  color: var(--text);
  font-weight: inherit;
}
.field-error {
  color: var(--err);
  font-weight: 600;
}
.update {
  padding: 1rem;
  border-radius: var(--r-md);
  background: var(--warn-soft);
}

/* ---------- Pontos de quebra (o mesmo HTML no celular e no desktop) ---------- */
@media (min-width: 560px) {
  .cards,
  .team {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 880px) {
  .wrap {
    padding: 0 32px;
  }
  h1 {
    font-size: 40px;
  }
  .cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
  }
  .show-wide {
    display: block;
  }
  .hide-wide {
    display: none;
  }
  .hdr-band .only-wide {
    display: inline;
  }
  .hdr-bar .wrap {
    min-height: 80px;
  }
  .hdr-nav {
    display: flex;
  }
  .hdr-cta {
    display: inline-flex;
  }
  .menu {
    display: none;
  }
  .hero {
    padding: 32px 0 16px;
  }
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: 48px;
    align-items: center;
  }
  .hero h1 {
    font-size: 52px;
  }
  .hero-media {
    order: 2;
    aspect-ratio: auto;
    height: 540px;
  }
  .search-fields {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) auto;
    align-items: end;
  }
  .hero .search-fields {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .hero .search-fields .btn {
    grid-column: 1 / -1;
  }
  .sec {
    padding: 56px 0;
  }
  .agent-band {
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 28px 32px;
  }
  .results-bar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .ftr .wrap {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
  }
  .about-grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 56px;
    align-items: start;
  }
  .team {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
  }
  .team .member {
    flex-direction: column;
    align-items: stretch;
    text-align: left;
  }
  .team .member .ph {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
  }
  .contact-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
  }
  .pn-side {
    position: sticky;
    top: 0;
    flex: 0 0 248px;
    height: 100vh;
    padding: 20px 14px;
    border-right: 1px solid var(--line);
    border-bottom: 0;
  }
  .pn-nav {
    flex-direction: column;
    margin: 8px 0 0;
    overflow: visible;
  }
  .pn-foot {
    flex-direction: column;
    align-items: stretch;
    margin-top: auto;
  }
  .pn-user {
    padding: 8px 12px;
  }
  .pn-main {
    padding: 32px 40px 48px;
  }
  .pn-head h1 {
    font-size: 30px;
  }
  .prop-row {
    grid-template-columns: 88px minmax(0, 1fr) auto;
  }
  .prop-row .acts {
    grid-column: auto;
    justify-content: flex-end;
  }
  .ph-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .form-grid.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .shortcuts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .wrap.gal-wrap {
    margin-top: 8px;
    padding: 0 32px;
  }
  .gal-track {
    border-radius: var(--r-lg);
  }
  .gal-slide {
    aspect-ratio: 16 / 9;
  }
  .pp {
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 40px;
    align-items: start;
  }
  .pp-head h1 {
    font-size: 34px;
  }
  .pp-aside {
    position: sticky;
    top: 24px;
  }
  .show-wide-flex {
    display: flex;
  }
  .hide-wide.pp-price {
    display: none;
  }
  .cta-bar {
    display: none;
  }
  .facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .about-grid.no-photo {
    grid-template-columns: minmax(0, 760px);
  }
  .ftr-bottom {
    grid-column: 1 / -1;
  }
}
