/* ════════════════════════════════════════════════════════════════════════
   /vitrine — Site público de Thamyris Evelyn Quintanilha (Fase 4, SITE-12)
   Identidade visual PRÓPRIA e DEDICADA da vitrine (D-38/D-39/D-40/D-41),
   independente da paleta do /admin (D-34 superado — o /admin interno NÃO
   muda, só a vitrine ganha esta direção). Direção "neutro editorial
   premium": quase-preto & off-white com um único acento verde-oliva discreto —
   as fotos dos imóveis são a cor da página, a UI recua. Mesmo bloco :root
   e mesmos nomes de seletor da folha anterior (D-38 muda só os VALORES),
   por isso app.js/imovel.js seguem funcionando sem alterações de JS.
   Compartilhada por index.html, imovel.html e (Plan 03) venda/locacao/
   contato — por isso os estilos de header/nav/footer/.filtros-painel/
   .paginacao/#lightbox moram aqui.
   ════════════════════════════════════════════════════════════════════════ */

:root {
  --bg: #F7F5F1;
  --surface: #FFFFFF;
  --border: #E5E0D8;
  --accent: #1478E8;
  --accent-light: #3B92F5;
  --destructive: #B3462C;
  --text: #1C1A17;
  --muted: #6B6255;
  --success: #4D7A4D;
  --rascunho-bg: #F0ECE5;
  --text-on-dark: #F7F5F1;
  --header-bg: #0B1B33;
  --radius: 10px;
  --radius-card: 14px;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Fraunces', Georgia, serif;
  --transition: 0.15s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { color-scheme: light; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); }
a:hover { color: var(--accent-light); }

.tabular-nums { font-variant-numeric: tabular-nums; }

/* ── Hero + card de busca (foto de fachada + scrim direcional; marca = azul) ── */
.hero {
  position: relative;
  /* Scrim em gradiente por cima da foto: escuro à esquerda/base (onde ficam
     título e card, legibilidade garantida), a fachada aparece à direita.
     background-color de fallback se a foto falhar. */
  background-color: var(--header-bg);
  background-image:
    linear-gradient(100deg, rgba(11, 27, 51, 0.92) 0%, rgba(11, 27, 51, 0.72) 42%, rgba(11, 27, 51, 0.28) 100%),
    url(assets/fachada.webp);
  background-size: cover, cover;
  background-position: center, center right;
  background-repeat: no-repeat;
  color: var(--text-on-dark);
  padding: 64px 20px 84px;
}
.hero-conteudo { max-width: 860px; margin: 0 auto; }
.hero-eyebrow {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9ec5f5; /* azul-claro legível sobre o scrim escuro */
  margin-bottom: 14px;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
}
.hero-titulo {
  font-family: var(--font-display);
  font-size: clamp(32px, 6vw, 52px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--text-on-dark);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
}
.hero-sub {
  font-size: clamp(15px, 2.4vw, 18px);
  color: rgba(247, 245, 241, 0.9);
  margin-top: 14px;
  max-width: 46ch;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.4);
}

/* Card de busca — o "signature" da página */
.hero-busca {
  margin-top: 30px;
  background: var(--surface);
  border-radius: var(--radius-card);
  padding: 20px;
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.55);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.hero-busca-linha { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.hero-campo { display: flex; flex-direction: column; gap: 7px; }
.hero-campo-cresce { flex: 1 1 260px; }
.hero-campo label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero-campo input[type="search"] {
  font-family: var(--font);
  font-size: 16px;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  width: 100%;
}
.hero-campo input[type="search"]:focus {
  outline: 2px solid var(--accent-light);
  outline-offset: 1px;
  border-color: var(--accent);
}
.hero-btn { min-height: 48px; padding: 0 28px; font-size: 15px; white-space: nowrap; }

/* Atalhos por região */
.hero-atalhos { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.atalho {
  font-family: var(--font);
  font-size: 14px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid rgba(247, 245, 241, 0.28);
  background: rgba(247, 245, 241, 0.06);
  color: var(--text-on-dark);
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition);
}
.atalho:hover {
  background: rgba(247, 245, 241, 0.14);
  border-color: var(--accent-light);
}

/* FAB de WhatsApp — flutuante, todas as páginas */
.fab-whatsapp {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 60;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px -6px rgba(0, 0, 0, 0.5);
  transition: transform var(--transition);
}
.fab-whatsapp:hover { transform: scale(1.06); color: #fff; }
.fab-whatsapp:focus-visible { outline: 3px solid var(--accent-light); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  .fab-whatsapp, .atalho { transition: none; }
}

/* ── Layout ─────────────────────────────────────────────────────────────── */
#app { display: flex; flex-direction: column; min-height: 100vh; }

/* ── Header/nav global (D-43): sticky, fundo quase-preto, texto off-white ── */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 27, 51, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(247, 245, 241, 0.1);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--text-on-dark);
  transition: transform 0.3s ease;
}
/* Auto-hide: some ao rolar pra baixo, volta ao rolar pra cima (JS alterna a classe) */
header.header-hidden { transform: translateY(-100%); }

header h1 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--text-on-dark);
}

/* Wordmark tipográfico (D-41): "Thamyris Quintanilha" em Fraunces +
   descritor/CRECI em Inter miúdo, uppercase, letter-spacing */
.wordmark-link { display: flex; flex-direction: column; gap: 2px; text-decoration: none; color: inherit; }
.wordmark-link:hover { color: inherit; }
.wordmark {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.1;
  color: var(--text-on-dark);
}
.wordmark-descritor {
  font-family: var(--font);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(247, 245, 241, 0.7);
}

/* Nav (Venda | Locação | Contato) — acento só no indicador ativo (D-38) */
.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.site-nav a {
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-on-dark);
  text-decoration: none;
  padding: 4px 2px;
  border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}
.site-nav a:hover { color: var(--accent-light); }
.site-nav a.active {
  color: var(--text-on-dark);
  border-bottom-color: var(--accent);
}
/* CTA de captação de proprietários — botão destacado no nav */
.site-nav a.nav-cta {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 9px 18px;
  transition: background var(--transition), transform var(--transition);
}
.site-nav a.nav-cta:hover {
  background: var(--accent-light);
  color: #fff;
  transform: translateY(-1px);
}

/* CTA WhatsApp no header — único uso de fundo sólido em acento (D-38 lista explícita) */
.header-actions { display: flex; align-items: center; gap: 12px; }
.btn-whatsapp-header {
  min-height: 44px;
  padding: 10px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #FFFFFF;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), border-color var(--transition);
}
.btn-whatsapp-header:hover { background: var(--accent-light); border-color: var(--accent-light); color: #FFFFFF; }

/* Hamburguer mobile (colapsa nav se não couber — D-43, executor decide) */
.nav-toggle {
  display: none;
  min-height: 44px;
  min-width: 44px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid rgba(247, 245, 241, 0.3);
  border-radius: var(--radius);
  color: var(--text-on-dark);
  font-size: 18px;
  cursor: pointer;
}
/* ── Menu mobile: drawer deslizante + overlay (mobile-first, ≤768px) ─────── */
.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(11, 27, 51, 0.55);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.nav-overlay.aberto { opacity: 1; visibility: visible; }

@media (max-width: 768px) {
  .nav-toggle { display: inline-flex; }

  /* O nav vira um painel que desliza da direita */
  .site-nav {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 100;
    height: 100dvh;
    width: min(86vw, 340px);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 84px 20px 24px;
    background: var(--header-bg);
    background-image: linear-gradient(180deg, rgba(20,120,232,0.10), transparent 240px);
    box-shadow: -16px 0 50px -16px rgba(0, 0, 0, 0.65);
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
  }
  .site-nav.open { transform: translateX(0); }

  /* Cabeçalho do drawer (mini-wordmark) */
  .site-nav::before {
    content: "Thamyris Quintanilha";
    position: absolute;
    top: 26px;
    left: 20px;
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
    color: var(--text-on-dark);
    letter-spacing: 0.01em;
  }

  /* Itens grandes, alvo de toque generoso, com seta e hover suave */
  .site-nav a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 16px;
    min-height: 52px;
    padding: 0 12px;
    border-radius: var(--radius);
    border-bottom: none;
    color: rgba(247, 245, 241, 0.92);
    transition: background 0.15s ease, color 0.15s ease;
  }
  .site-nav a::after {
    content: "›";
    font-size: 20px;
    color: rgba(247, 245, 241, 0.4);
  }
  .site-nav a:hover, .site-nav a:focus-visible {
    background: rgba(247, 245, 241, 0.08);
    color: #fff;
  }
  .site-nav a.active { color: var(--accent-light); }
  .site-nav a.active::after { color: var(--accent-light); }

  /* Divisória sutil entre os links de navegação e o CTA */
  .site-nav a.nav-cta {
    margin-top: auto;
    justify-content: center;
    padding: 16px 18px;
    border-radius: var(--radius);
    font-size: 15px;
    box-shadow: 0 8px 20px -8px rgba(20, 120, 232, 0.7);
  }
  .site-nav a.nav-cta::after { content: none; }
  .site-nav a.nav-cta:hover { transform: none; background: var(--accent-light); }

  /* Entrada dos itens em stagger leve quando o drawer abre */
  .site-nav.open a {
    animation: nav-item-in 0.35s ease both;
  }
  .site-nav.open a:nth-child(2) { animation-delay: 0.04s; }
  .site-nav.open a:nth-child(3) { animation-delay: 0.08s; }
  .site-nav.open a:nth-child(4) { animation-delay: 0.12s; }
  .site-nav.open a:nth-child(5) { animation-delay: 0.16s; }
  @keyframes nav-item-in {
    from { opacity: 0; transform: translateX(12px); }
    to { opacity: 1; transform: translateX(0); }
  }

  /* Botão de fechar (✕) no topo do drawer */
  .nav-fechar {
    position: absolute;
    top: 20px;
    right: 16px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: rgba(247, 245, 241, 0.8);
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.15s ease;
  }
  .nav-fechar:hover { background: rgba(247, 245, 241, 0.1); color: #fff; }

  body.nav-travado { overflow: hidden; }
}
@media (max-width: 768px) and (prefers-reduced-motion: reduce) {
  .site-nav.open a { animation: none; }
}
@media (min-width: 769px) {
  .nav-fechar { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .site-nav, .nav-overlay { transition: none; }
}

main { flex: 1; padding: 24px 20px 64px; max-width: 1200px; width: 100%; margin: 0 auto; }

/* ── Pills (filtro de finalidade na home — D-44 remove nas rotas dedicadas) ── */
.pills { display: flex; gap: 8px; flex-wrap: wrap; }
.pill {
  min-height: 44px;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  background: var(--surface);
  color: var(--muted);
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.pill:hover { background: var(--rascunho-bg); }
.pill.active {
  background: rgba(20, 120, 232, 0.1);
  border-color: var(--accent);
  color: var(--accent);
}

/* ── Cards grid (D-40): 2 colunas desktop / 1 coluna mobile, respiro generoso ── */
.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 768px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); gap: 40px; }
}

.imovel-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(28, 26, 23, 0.06);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}
.imovel-card:hover { color: inherit; }

/* Proporção 3:2 (D-40, era 4:3) — width/height implícito via aspect-ratio,
   evita CLS (Pitfall 3) */
.card-foto {
  position: relative;
  aspect-ratio: 3 / 2;
  background: var(--rascunho-bg);
  width: 100%;
}
.card-foto img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-foto-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: 13px;
}
.card-body { padding: 18px 20px 22px; flex: 1; }
@media (min-width: 768px) { .card-body { padding: 20px 22px 24px; } }
/* Tipo (eyebrow cinza) */
.card-tipo {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 4px;
}
/* Título = localização, em Fraunces escuro (modelo portal imobiliário) */
.card-titulo {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 12px;
}
/* Specs: m² • Quartos • Banheiros */
.card-specs { font-size: 14px; color: var(--muted); }

/* ── Badges de status ───────────────────────────────────────────────────── */
.badge {
  position: absolute;
  top: 10px;
  left: 10px;
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(28, 26, 23, 0.78);
  color: var(--text-on-dark);
}

/* ── Skeleton ───────────────────────────────────────────────────────────── */
.skeleton { pointer-events: none; }
.skeleton-block { background: linear-gradient(90deg, var(--rascunho-bg) 25%, #FBF9F6 37%, var(--rascunho-bg) 63%); background-size: 400% 100%; animation: skeleton-loading 1.4s ease infinite; }
.skeleton-line { height: 12px; border-radius: 4px; margin: 8px 0; background: linear-gradient(90deg, var(--rascunho-bg) 25%, #FBF9F6 37%, var(--rascunho-bg) 63%); background-size: 400% 100%; animation: skeleton-loading 1.4s ease infinite; }
@keyframes skeleton-loading { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

/* ── Empty state ────────────────────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 64px 20px;
  color: var(--muted);
}
.empty-state h3 { font-family: var(--font-display); font-size: 20px; font-weight: 600; color: var(--text); margin-bottom: 8px; }
.empty-state p { max-width: 480px; margin: 0 auto 16px; }
.empty-state .empty-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 8px; }

/* ── Botões ─────────────────────────────────────────────────────────────── */
.btn {
  min-height: 44px;
  padding: 10px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  cursor: pointer;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  background: var(--surface);
  color: var(--text);
  transition: background var(--transition), border-color var(--transition), color var(--transition), transform var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
}
.btn:hover { background: var(--rascunho-bg); }
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--accent); border-color: var(--accent); color: #FFFFFF; }
.btn-primary:hover { background: var(--accent-light); border-color: var(--accent-light); color: #FFFFFF; }

.btn-outline { background: var(--surface); border-color: var(--accent); color: var(--accent); }
.btn-outline:hover { background: rgba(20, 120, 232, 0.08); }

/* ── Formulários / inputs de filtro ─────────────────────────────────────── */
.form-group { margin-bottom: 16px; }
label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 6px;
}
input, select {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 15px;
  background: var(--surface);
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
}
input::placeholder { color: var(--muted); opacity: 0.7; }
input:focus, select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(20, 120, 232, 0.15);
}
select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%236B6255' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 480px) { .form-row { grid-template-columns: 1fr; } }
.hint { font-size: 13px; color: var(--muted); margin-top: 8px; }

/* Título de seção do formulário de lead (lead-form.js) */
.form-section-title { font-family: var(--font-display); font-size: 20px; font-weight: 600; line-height: 1.2; margin: 24px 0 10px; }

/* ── Página individual do imóvel ─────────────────────────────────────────── */
.imovel-voltar {
  display: inline-block;
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
  margin-bottom: 18px;
}
.imovel-voltar:hover { color: var(--accent); }

/* MOBILE (padrão): tudo empilhado numa coluna, na ordem do print —
   galeria → cabeçalho (finalidade + Sob consulta + specs) → localização →
   características → descrição → botão de contato. Para isso os dois containers
   (.imovel-coluna-principal e .imovel-painel) usam display:contents, deixando
   seus filhos como irmãos diretos do .imovel-layout (flex column) e ordenáveis. */
.imovel-layout {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.imovel-coluna-principal,
.imovel-painel { display: contents; }
.imovel-galeria { order: 1; }
.imovel-cabecalho { order: 2; }
.imovel-mapa { order: 3; }
.imovel-bloco { order: 4; }
.imovel-contato-btn { order: 5; }

@media (min-width: 960px) {
  /* DESKTOP: volta ao grid de 2 colunas com o card lateral (inalterado). */
  .imovel-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(320px, 1fr);
    gap: 40px;
    align-items: start;
  }
  .imovel-coluna-principal { display: flex; flex-direction: column; gap: 28px; min-width: 0; }
  .imovel-painel { display: flex; flex-direction: column; }
  /* reset dos orders (só valem no mobile) */
  .imovel-galeria, .imovel-cabecalho, .imovel-mapa, .imovel-bloco, .imovel-contato-btn { order: 0; }
}

/* Galeria */
.imovel-galeria { display: flex; flex-direction: column; gap: 12px; margin: 0; }
.imovel-capa {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius-card);
  border: 1px solid var(--border);
  cursor: zoom-in;
  background: var(--rascunho-bg);
}
.imovel-capa-vazia {
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: 14px; cursor: default;
}
.imovel-thumbs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.imovel-thumb {
  width: 92px; height: 68px;
  flex: 0 0 auto;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  cursor: pointer;
  opacity: 0.7;
  transition: opacity var(--transition), border-color var(--transition);
}
.imovel-thumb:hover { opacity: 1; }
.imovel-thumb.ativa { opacity: 1; border-color: var(--accent); box-shadow: 0 0 0 2px rgba(20,120,232,0.25); }

/* Eyebrow de tipo (Apartamento, Cobertura…) acima do título */
.imovel-tipo {
  font-family: var(--font);
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 4px;
}
/* Título do imóvel: H1 no topo, acima do layout de 2 colunas */
.imovel-titulo {
  font-family: var(--font-display);
  font-size: clamp(24px, 3.2vw, 32px);
  font-weight: 600;
  line-height: 1.15;
  margin-bottom: 20px;
}

/* Cabeçalho do card de decisão: finalidade + preço + encargos + specs */
.imovel-cabecalho { display: flex; flex-direction: column; }
.imovel-finalidade {
  display: inline-block;
  align-self: flex-start;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--rascunho-bg);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.imovel-preco {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 34px);
  font-weight: 600;
  color: #1FA855;
  line-height: 1.05;
}
.imovel-encargos { font-size: 13px; color: var(--muted); margin-top: 6px; }
/* Preço "Sob consulta": mesma tipografia do preço, cor de texto (não o verde de valor) */
.imovel-preco-consulta { color: var(--text); }

/* Card de localização — faixa de "mapa" decorativa + endereço, clicável */
.imovel-mapa {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: var(--radius-card);
  border: 1px solid var(--border);
  background:
    linear-gradient(rgba(247,245,241,0.82), rgba(247,245,241,0.82)),
    repeating-linear-gradient(45deg, #E9E4DB 0 2px, transparent 2px 22px),
    repeating-linear-gradient(-45deg, #E9E4DB 0 2px, transparent 2px 22px);
  text-decoration: none;
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.imovel-mapa:hover { border-color: var(--accent); box-shadow: 0 4px 14px -6px rgba(20,120,232,0.35); }
.imovel-mapa-pin {
  flex: 0 0 auto;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--accent);
}
.imovel-mapa-pin svg { width: 22px; height: 22px; }
.imovel-mapa-texto { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.imovel-mapa-texto small { font-size: 12px; color: var(--muted); }
.imovel-mapa-texto strong { font-size: 15px; font-weight: 600; }
.imovel-mapa-seta { margin-left: auto; font-size: 26px; color: var(--muted); line-height: 1; }

/* Specs essenciais — grid ícone + label/valor dentro do card de decisão.
   2 colunas compactas; separador acima marca a transição preço → specs. */
.imovel-specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px 14px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}
.imovel-spec { display: flex; align-items: center; gap: 10px; }
.imovel-spec-icone { width: 26px; height: 26px; flex: 0 0 auto; color: var(--accent); }
.imovel-spec-info { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.imovel-spec-label { font-size: 11px; color: var(--muted); }
.imovel-spec-num { font-family: var(--font-display); font-size: 17px; font-weight: 600; color: var(--text); }

/* Bloco de seção (características / descrição) na coluna principal */
.imovel-bloco { margin: 0; }
.imovel-secao-titulo {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.imovel-descricao { font-size: 16px; line-height: 1.7; color: var(--text); white-space: pre-line; }
.imovel-amenities {
  list-style: none;
  display: grid;
  /* Mobile-first: 2 colunas em telas estreitas */
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 16px;
}
@media (min-width: 640px) {
  /* Desktop/tablet: preenche com quantas colunas couberem (3+) */
  .imovel-amenities { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
}
.imovel-amenities li { display: flex; align-items: center; gap: 9px; font-size: 15px; color: var(--text); }
.imovel-amenities li::before {
  content: "✓";
  flex: 0 0 auto;
  width: 20px; height: 20px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 999px;
  background: rgba(31,168,85,0.12);
  color: #1FA855; font-size: 12px; font-weight: 700;
}

/* Painel de decisão: no desktop vira card branco lateral sticky (borda/sombra).
   No mobile é display:contents (definido acima) — sem card, empilha direto. */
@media (min-width: 960px) {
  .imovel-painel {
    gap: 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    padding: 24px;
    box-shadow: 0 4px 18px rgba(11, 27, 51, 0.06);
    position: sticky;
    top: 96px;
  }
}
/* Botão de contato: faixa azul da marca (abre o WhatsApp) */
.imovel-contato-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 15px 18px;
  border-radius: var(--radius);
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  box-shadow: 0 6px 16px -6px rgba(20, 120, 232, 0.6);
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}
.imovel-contato-btn:hover {
  background: #0F63C4;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 10px 22px -8px rgba(20, 120, 232, 0.7);
}
.imovel-contato-btn:focus-visible { outline: 3px solid var(--accent-light); outline-offset: 2px; }
.imovel-contato-icone { width: 20px; height: 20px; flex: 0 0 auto; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

@media (prefers-reduced-motion: reduce) {
  .imovel-thumb, .imovel-contato-btn, .imovel-mapa { transition: none; }
}

/* ── Página legal (Política de Privacidade) ──────────────────────────────── */
.pagina-legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 32px 20px 64px;
}
.pagina-legal h1 {
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 600;
  line-height: 1.1;
  margin: 12px 0 4px;
}
.legal-atualizacao { font-size: 13px; color: var(--muted); margin-bottom: 28px; }
.pagina-legal section { margin-bottom: 26px; }
.pagina-legal h2 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: 8px;
}
.pagina-legal p { font-size: 15.5px; line-height: 1.7; color: var(--text); margin-bottom: 8px; }
.legal-lista { margin: 8px 0 8px 20px; display: flex; flex-direction: column; gap: 6px; }
.legal-lista li { font-size: 15.5px; line-height: 1.6; color: var(--text); }
.pagina-legal a { color: var(--accent); text-decoration: underline; }

.footer-legal { margin-top: 10px; font-size: 13px; }
.footer-legal a { color: var(--text-on-dark); opacity: 0.75; text-decoration: underline; }
.footer-legal a:hover { opacity: 1; }

/* ── Banner de cookies (barra inferior) ──────────────────────────────────── */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 70;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  padding: 14px 20px;
  background: rgba(11, 27, 51, 0.98);
  color: var(--text-on-dark);
  border-top: 1px solid rgba(247, 245, 241, 0.14);
  box-shadow: 0 -6px 24px -12px rgba(0, 0, 0, 0.5);
  animation: cookie-sobe 0.3s ease;
}
@keyframes cookie-sobe { from { transform: translateY(100%); } to { transform: translateY(0); } }
.cookie-banner-saindo { transform: translateY(100%); transition: transform 0.25s ease; }
.cookie-banner-texto { font-size: 14px; line-height: 1.5; margin: 0; max-width: 70ch; }
.cookie-banner-texto a { color: #9ec5f5; text-decoration: underline; }
.cookie-banner-btn {
  flex: 0 0 auto;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  padding: 10px 24px;
  border: none;
  border-radius: var(--radius);
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  transition: background var(--transition);
}
.cookie-banner-btn:hover { background: var(--accent-light); }
.cookie-banner-btn:focus-visible { outline: 3px solid #9ec5f5; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  .cookie-banner { animation: none; }
  .cookie-banner-saindo { transition: none; }
}
/* Banner de cookies compacto no celular — não ocupar meia tela */
@media (max-width: 640px) {
  .cookie-banner {
    gap: 10px 12px;
    padding: 10px 14px;
    justify-content: space-between;
  }
  .cookie-banner-texto { font-size: 12px; line-height: 1.4; flex: 1 1 auto; }
  .cookie-banner-btn { padding: 8px 16px; font-size: 13px; }
}

/* ── Filtro mobile: acordeão colapsável (mantido da Fase 3) ─────────────── */
.filtros-mobile-toggle {
  display: none;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 16px;
  text-align: left;
}
.filtros-mobile-toggle:hover { background: var(--rascunho-bg); }

.filtros-painel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 14px 16px;
  margin-bottom: 24px;
}

/* Filtros compactos: os grupos fluem numa linha só, campos enxutos.
   Escopado a .filtros-painel — NÃO afeta o formulário de lead. */
.filtros-painel .form-row {
  display: contents; /* dissolve o wrapper: os .form-group entram no flex do painel */
}
.filtros-painel { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: end; }
.filtros-painel .form-group {
  margin-bottom: 0;
  flex: 1 1 150px;
  min-width: 130px;
}
.filtros-painel .form-group label {
  font-size: 11px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.filtros-painel select,
.filtros-painel input[type="number"] {
  min-height: 42px;
  padding: 8px 10px;
  font-size: 14px;
}

@media (max-width: 900px) {
  .filtros-painel { display: none; }
  .filtros-painel.open { display: flex; }
  .filtros-mobile-toggle { display: block; }
}
@media (min-width: 901px) {
  .filtros-mobile-toggle { display: none; }
}

/* ── Paginação ───────────────────────────────────────────────────────────── */
.paginacao {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 32px;
}
.pag-btn {
  min-height: 44px;
  min-width: 44px;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}
.pag-btn:hover { background: var(--rascunho-bg); }
.pag-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #FFFFFF;
}

/* ── Bloco de captação de leads (LEAD-01/02, Fase 6 Plan 04) ────────────────
   Reusa o tratamento de card já estabelecido para .filtros-painel (surface/
   border/radius-card) — nenhuma custom property nova. Coluna única, 560px
   internos, centrado (06-UI-SPEC.md § Layout & Interaction Notes). */
.form-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 24px;
  max-width: 560px;
  margin: 32px auto;
}
@media (min-width: 768px) {
  .form-block { padding: 32px; }
}
.form-block:empty { display: none; }

/* ── Lightbox nativo ─────────────────────────────────────────────────────── */
#lightbox {
  border: none;
  padding: 0;
  background: rgba(0, 0, 0, 0.92);
  max-width: 100vw;
  max-height: 100vh;
  width: 100vw;
  height: 100vh;
}
#lightbox::backdrop { background: rgba(0, 0, 0, 0.92); }
#lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  display: block;
  margin: auto;
}
#lightbox-prev, #lightbox-next, #lightbox-close {
  position: absolute;
  min-height: 44px;
  min-width: 44px;
  background: rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
  border: none;
  border-radius: 50%;
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
#lightbox-prev:hover, #lightbox-next:hover, #lightbox-close:hover { background: rgba(255, 255, 255, 0.22); }
#lightbox-prev { top: 50%; left: 16px; transform: translateY(-50%); }
#lightbox-next { top: 50%; right: 16px; transform: translateY(-50%); }
#lightbox-close { top: 16px; right: 16px; }

/* ── Footer global (site-wide, D-43 companion) ──────────────────────────── */
.site-footer {
  background: var(--header-bg);
  color: var(--text-on-dark);
  padding: 48px 20px;
  text-align: center;
  margin-top: auto;
}
.site-footer .footer-wordmark {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
}
.site-footer .footer-regioes {
  font-family: var(--font);
  font-size: 13px;
  font-weight: 400;
  color: rgba(247, 245, 241, 0.7);
  letter-spacing: 0.02em;
}

/* ── Página de Contato — 2 colunas (retrato + info) + cards de canais ────── */
.pagina-contato {
  max-width: 1000px;
  margin: 0 auto;
  padding: 56px 20px 72px;
}
.contato-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}
@media (min-width: 820px) {
  .contato-grid { grid-template-columns: 380px 1fr; gap: 48px; align-items: start; }
}
.contato-retrato-wrap { position: relative; }
.contato-retrato {
  /* Mobile: foto compacta, limitada pela ALTURA (não só largura), pra não
     ocupar a tela toda. Vira um retrato pequeno centralizado. */
  height: 200px;
  width: auto;
  max-width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: top center;
  border-radius: var(--radius-card);
  display: block;
  margin: 0 auto;
  box-shadow: 0 16px 40px -20px rgba(11, 27, 51, 0.5);
}
@media (min-width: 820px) {
  /* Desktop: retrato grande na coluna esquerda */
  .contato-retrato { height: auto; width: 100%; max-width: 380px; }
}
.contato-eyebrow {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 10px;
}
.pagina-contato h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 6vw, 44px);
  font-weight: 600;
  line-height: 1.08;
  margin-bottom: 16px;
}
.pagina-contato .posicionamento {
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
  margin-bottom: 24px;
  max-width: 52ch;
}
.contato-cta { display: inline-block; margin-bottom: 28px; }

/* Cards de canais clicáveis */
.contato-canais {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 24px;
}
@media (min-width: 480px) { .contato-canais { grid-template-columns: 1fr 1fr; } }
.canal-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.canal-card:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 20px -12px rgba(20, 120, 232, 0.5);
  transform: translateY(-2px);
  color: var(--text);
}
.canal-card svg { width: 26px; height: 26px; flex: 0 0 auto; color: var(--accent); }
.canal-card span { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.canal-card strong { font-size: 15px; font-weight: 600; }
.canal-card small { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.contato-regioes { font-size: 14px; color: var(--muted); padding-top: 20px; border-top: 1px solid var(--border); }
.contato-regioes strong { color: var(--text); font-weight: 600; }

/* ── Display/section titles (D-39: até 40px, mobile 30px) ───────────────── */
.section-titulo {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 600;
  line-height: 1.1;
}
@media (max-width: 640px) { .section-titulo { font-size: 30px; } }
