:root {
  --bg: #fafaf8;
  --bg-white: #ffffff;
  --text: #111111;
  --text-secondary: #555555;
  --text-muted: #999999;
  --border: rgba(0,0,0,0.07);
  --border-medium: rgba(0,0,0,0.13);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow: 0 4px 24px rgba(0,0,0,0.09);
  --shadow-hover: 0 8px 40px rgba(0,0,0,0.14);
  --shadow-float: 0 2px 12px rgba(0,0,0,0.1);
  --radius: 14px;
  --radius-sm: 8px;
  --radius-pill: 999px;
  --transition: 0.2s cubic-bezier(0.4,0,0.2,1);
  --wa: #25d366;
  --wa-hover: #1db954;
  --gold: #c8a979;
  --dark: #0c0d0f;
}

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

html {
  /* trava qualquer rolagem horizontal acidental (era o que fazia "a tela ir pro nada"
     ao arrastar): clip não cria container de rolagem, então position:sticky/fixed seguem
     funcionando. touch-action manipulation mata o duplo-toque-zoom (a pinça é bloqueada por JS). */
  overflow-x: clip;
  touch-action: manipulation;
}

body {
  font-family: "Poppins", system-ui, -apple-system, sans-serif;
  background-color: var(--bg);
  overflow-x: clip;
  background-image:
    radial-gradient(ellipse 110% 100% at 50% 0%, rgba(200,169,121,0.04), transparent 72%),
    radial-gradient(circle, rgba(17,17,17,0.05) 1.1px, transparent 1.2px);
  background-size: 100% 820px, 24px 24px;
  background-repeat: no-repeat, repeat;
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
  max-width: 100%;
  -webkit-font-smoothing: antialiased;
}

.hidden { display: none !important; }

/* ── Botão flutuante de WhatsApp (todas as páginas) ── */
.wa-fab {
  position: fixed; bottom: 22px; right: 22px; z-index: 950;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--wa); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 30px rgba(37,211,102,0.5);
  transition: transform var(--transition), box-shadow var(--transition);
  animation: waPulse 2.6s ease-in-out infinite;
}
.wa-fab:hover { transform: scale(1.08); box-shadow: 0 14px 38px rgba(37,211,102,0.62); }
.wa-fab svg { width: 30px; height: 30px; }
@keyframes waPulse {
  0%, 100% { box-shadow: 0 10px 30px rgba(37,211,102,0.5), 0 0 0 0 rgba(37,211,102,0.35); }
  50% { box-shadow: 0 10px 30px rgba(37,211,102,0.5), 0 0 0 14px rgba(37,211,102,0); }
}
@media (max-width: 600px) { .wa-fab { width: 52px; height: 52px; bottom: 16px; right: 16px; } .wa-fab svg { width: 27px; height: 27px; } }

/* ── Aviso de cookies (LGPD) ── */
.cookie-bar {
  position: fixed; left: 50%; bottom: 18px; transform: translate(-50%, 160%);
  z-index: 960; width: min(680px, calc(100% - 2rem));
  display: flex; align-items: center; gap: 1rem;
  background: rgba(20,21,24,0.93);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.12); border-radius: 16px;
  padding: 0.9rem 1.1rem; box-shadow: 0 20px 50px rgba(0,0,0,0.45);
  transition: transform 0.5s cubic-bezier(0.22,1,0.36,1);
}
.cookie-bar.show { transform: translate(-50%, 0); }
.cookie-bar p { color: rgba(255,255,255,0.82); font-size: 0.82rem; line-height: 1.5; margin: 0; }
.cookie-bar a { color: var(--gold); }
.cookie-ok {
  flex-shrink: 0; padding: 0.6rem 1.4rem; background: #fff; color: #111;
  border: none; border-radius: var(--radius-pill); font-weight: 700; font-size: 0.82rem;
  cursor: pointer; font-family: inherit; transition: all var(--transition);
}
.cookie-ok:hover { background: var(--gold); }
@media (max-width: 560px) {
  .cookie-bar { flex-direction: column; align-items: stretch; text-align: center; bottom: 84px; }
}

/* ── Coração de favoritos no header ── */
.header-fav {
  position: relative; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  color: #fff; text-decoration: none; transition: background var(--transition), color var(--transition);
}
.header-fav svg { width: 20px; height: 20px; }
.header-fav:hover { background: rgba(255,255,255,0.14); }
.site-header.scrolled .header-fav { color: var(--text); }
.site-header.scrolled .header-fav:hover { background: rgba(0,0,0,0.06); }
.fav-count {
  position: absolute; top: -1px; right: -1px;
  min-width: 17px; height: 17px; padding: 0 4px; border-radius: 99px;
  background: #ef4444; color: #fff; font-size: 0.6rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center; line-height: 1;
}

/* ── Página de favoritos ── */
.favoritos-page { max-width: 1100px; margin: 0 auto; padding: 130px 2rem 2.5rem; }
.legal-back, .favoritos-page .legal-back { display: inline-block; font-size: 0.85rem; font-weight: 600; color: var(--text-secondary); text-decoration: none; }
.favoritos-page h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 500; letter-spacing: -0.02em; margin-top: 1rem; }
.favoritos-sub { color: var(--text-secondary); margin: 0.5rem 0 2rem; }
.fav-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.4rem; }
.fav-grid .sim-card { width: 100%; }
.fav-vazio { text-align: center; padding: 3.5rem 1rem; }
.fav-vazio-icone svg { width: 58px; height: 58px; color: var(--border-medium); }
.fav-vazio h2 { margin: 1.1rem 0 0.4rem; font-size: 1.3rem; }
.fav-vazio p { color: var(--text-secondary); margin-bottom: 1.6rem; }


/* ── Transição suave entre páginas (fade) ── */
.page-transition {
  position: fixed; inset: 0; z-index: 9999; pointer-events: none;
  background: var(--bg);
  opacity: 1;
  animation: ptReveal 0.6s ease forwards;
}
@keyframes ptReveal { from { opacity: 1; } to { opacity: 0; } }
body.pt-leaving .page-transition {
  animation: none; opacity: 1; pointer-events: all;
  transition: opacity 0.6s ease;
}
@media (prefers-reduced-motion: reduce) { .page-transition { display: none; } }

/* ══════════════════════════════
   HERO
══════════════════════════════ */
.hero-wrapper {
  position: relative;
  min-height: 88vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* sem overflow:hidden aqui — senão corta a sombra do filtro (deixa quadrada) */
}

/* Foto de fundo — dissolve (some) na base, revelando o fundo claro (sem véu branco) */
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  overflow: hidden;   /* clipa o parallax/blur aqui, sem afetar a sombra do filtro */
  -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 72%, transparent 100%);
}
/* Slideshow: cada slide tem a foto + a própria camada de blur; crossfade entre eles */
.hero-slides { position: absolute; inset: 0; }
.hero-slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 1.4s ease;
}
.hero-slide.on { opacity: 1; }
.hero-slide picture { display: block; width: 100%; height: 100%; }
.hero-slide img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
/* Camada que embaça a imagem na base (a foto vai borrando enquanto some) */
.hero-slide-blur {
  position: absolute; inset: 0; z-index: 1;
  background-image: var(--blur-img, url("hero-patos.jpg"));
  background-size: cover; background-position: center 30%;
  filter: blur(10px) saturate(1.03);
  -webkit-mask-image: linear-gradient(to bottom, transparent 70%, #000 98%);
  mask-image: linear-gradient(to bottom, transparent 70%, #000 98%);
}
/* Zoom lento (Ken Burns) enquanto o slide está visível */
@media (prefers-reduced-motion: no-preference) {
  .hero-slide.on { animation: heroKen 9s ease-out forwards; }
  @keyframes heroKen { from { transform: scale(1); } to { transform: scale(1.06); } }
}

/* Névoa na base do hero — "nuvens" brancas irregulares dissolvem a foto no fundo claro */
.hero-fog {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 36vh;
  z-index: 1; pointer-events: none;
  background:
    radial-gradient(58% 105% at 18% 100%, rgba(250,250,248,0.95), transparent 68%),
    radial-gradient(48% 88% at 48% 100%, rgba(250,250,248,0.85), transparent 70%),
    radial-gradient(55% 100% at 80% 100%, rgba(250,250,248,0.92), transparent 66%),
    radial-gradient(40% 70% at 65% 100%, rgba(250,250,248,0.8), transparent 72%),
    linear-gradient(to bottom, rgba(250,250,248,0) 0%, rgba(250,250,248,0.4) 52%, rgba(250,250,248,0.92) 86%, #fafaf8 100%);
}

/* Gradiente escuro em cima para o header e embaixo para os filtros */
.hero-gradient {
  z-index: 2;
  position: absolute; inset: 0;
  background:
    linear-gradient(to bottom,
      rgba(0,0,0,0.72) 0%,
      rgba(0,0,0,0.32) 28%,
      rgba(0,0,0,0.16) 50%,
      rgba(0,0,0,0) 70%
    );
}

/* ── Header sobreposto ── */
.site-header {
  position: relative; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 0.85rem 2rem;
}

.header-brand {
  display: flex; align-items: center; gap: 0.65rem;
  text-decoration: none; flex-shrink: 0;
}
.brand-icon {
  width: 38px; height: 38px;
  background: #fff;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: #111;
  flex-shrink: 0;
}
.brand-name {
  font-size: 1.05rem; font-weight: 800;
  color: #fff; letter-spacing: -0.03em;
}
.brand-tag {
  font-size: 0.63rem; color: rgba(255,255,255,0.55);
  display: block; line-height: 1; margin-top: 2px;
}
/* Logo do Lucas (branca/transparente). Sobre o hero fica branca; no header claro inverte p/ preta */
.brand-logo { height: 116px; width: auto; display: block; }
.site-header.scrolled .brand-logo { filter: invert(1); height: 88px; }

.header-nav {
  display: flex; align-items: center; gap: 0.25rem;
  flex: 1; justify-content: center;
}
.nav-link {
  position: relative;
  padding: 0.45rem 0.85rem;
  font-size: 0.82rem; font-weight: 600;
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  border-radius: var(--radius-pill);
  transition: color var(--transition);
}
.nav-link:hover { color: #fff; }
/* sublinhado que cresce na seção ativa conforme rola */
.nav-link::after {
  content: ""; position: absolute; left: 0.85rem; right: 0.85rem; bottom: 0.05rem;
  height: 2px; background: currentColor; border-radius: 2px;
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.45,0,0.2,1);
}
.nav-link.active { color: #fff; }
.site-header.scrolled .nav-link.active { color: var(--text); }
.nav-link.active::after { transform: scaleX(1); }


.header-right { display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0; }

.btn-whatsapp {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.5rem 1rem;
  background: var(--wa); color: #fff;
  font-size: 0.78rem; font-weight: 700;
  border: none; border-radius: var(--radius-pill);
  cursor: pointer; text-decoration: none;
  box-shadow: 0 2px 12px rgba(37,211,102,0.4);
  transition: all var(--transition);
}
.btn-whatsapp:hover {
  background: var(--wa-hover);
  box-shadow: 0 4px 20px rgba(37,211,102,0.5);
  transform: translateY(-1px);
}

.btn-menu-mobile {
  display: none;
  width: 40px; height: 40px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-sm);
  color: #fff; cursor: pointer;
  align-items: center; justify-content: center;
}

/* ── Menu mobile (overlay do hambúrguer) ── */
.mobile-menu {
  position: fixed; inset: 0; z-index: 1100;
  background: rgba(12,13,15,0.97);
  -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px);
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
  padding-left: 2.2rem;
  opacity: 0; visibility: hidden; transform: scale(1.05);
  transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s;
}
.mobile-menu.open { opacity: 1; visibility: visible; transform: scale(1); }
.mobile-menu-close {
  position: absolute; top: 18px; right: 20px;
  width: 46px; height: 46px; border: none; cursor: pointer;
  background: rgba(255,255,255,0.1); color: #fff;
  font-size: 1.9rem; line-height: 1; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.mobile-menu-close:hover { background: rgba(255,255,255,0.18); }
.mobile-menu-nav { display: flex; flex-direction: column; align-items: flex-start; gap: 0.4rem; }
.mobile-link {
  display: flex; align-items: center; gap: 0.95rem;
  color: #fff; text-decoration: none; font-size: 1.5rem; font-weight: 700;
  padding: 0.5rem 0; letter-spacing: -0.02em; opacity: 0.9;
  transition: opacity var(--transition), transform var(--transition);
}
.mobile-link svg { width: 24px; height: 24px; flex-shrink: 0; color: var(--gold); opacity: 0.9; }
.mobile-link:hover, .mobile-link:active { opacity: 1; transform: translateX(3px); }
.mobile-wa {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 0.55rem;
  margin-top: 1.6rem; padding: 0.9rem 1.8rem; background: var(--wa); color: #fff;
  border-radius: var(--radius-pill); font-weight: 700; text-decoration: none; font-size: 1rem;
  box-shadow: 0 8px 26px rgba(37,211,102,0.4);
}
.mobile-wa svg { width: 20px; height: 20px; flex-shrink: 0; }

/* ── Título hero ── */
.hero-content {
  position: relative; z-index: 10;
  flex: 0 0 auto;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: 2rem 1.5rem 0;
}
.hero-content h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.12;
  color: #fff;
  margin-bottom: 0.75rem;
  text-shadow: 0 2px 20px rgba(0,0,0,0.4);
}
.hero-content h1 em {
  font-style: normal;
  color: #fff;
  text-decoration: underline;
  text-decoration-color: rgba(255,255,255,0.4);
  text-underline-offset: 6px;
  text-decoration-thickness: 3px;
}
.hero-content p {
  font-size: 1rem; color: rgba(255,255,255,0.75);
  max-width: 420px;
}

/* Bolinhas do slideshow do hero — mesmo padrão das outras galerias do site,
   com o dourado da marca na ativa em vez de branco puro (mais autoral que bolinha cinza padrão) */
.hero-dots {
  display: flex; justify-content: center; align-items: center; gap: 0.5rem;
  margin-top: 1.5rem;
}
.hero-dots:empty { display: none; }
.hero-dot {
  width: 7px; height: 7px; padding: 0; border: none; border-radius: 50%;
  background: rgba(255,255,255,0.4); cursor: pointer;
  transition: all var(--transition);
}
.hero-dot:hover { background: rgba(255,255,255,0.7); }
.hero-dot.active { background: var(--gold); width: 24px; border-radius: 99px; }

/* ── Filtros dentro do hero — console de busca flutuante (premium 3D) ── */
.filters-section {
  position: relative; z-index: 10;
  padding: 0 2rem;
  max-width: 980px;
  width: 100%;
  margin: 2rem auto 0;
}

/* Card flutuante: gradiente sutil + sombras em camadas (contato + luz-chave difusa) +
   brilho interno no topo + borda de vidro → sensação de "flutuar" acima da página. */
.filters-card {
  position: relative;
  background: linear-gradient(158deg, rgba(255,255,255,0.98) 0%, rgba(247,246,243,0.98) 100%);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  backdrop-filter: blur(16px) saturate(1.5);
  border: 1px solid rgba(255,255,255,0.7);
  border-radius: 20px;
  box-shadow:
    0 1px 2px rgba(0,0,0,0.05),
    0 12px 26px -12px rgba(0,0,0,0.24),
    0 36px 64px -30px rgba(18,18,24,0.44),
    inset 0 1px 0 rgba(255,255,255,0.9);
  padding: 0.45rem;
  transition: transform var(--transition), box-shadow var(--transition),
              border-radius 0.4s cubic-bezier(0.45,0,0.85,0.35);
}


/* Aviso "imóvel indisponível" — vermelho claro, entrada suave em fade */
.busca-aviso {
  display: none;
  margin: 1rem auto 0; max-width: 620px;
  background: #fdecec; border: 1px solid #f3b9b9; color: #c0392b;
  padding: 0.85rem 1.3rem; border-radius: var(--radius-pill);
  font-size: 0.9rem; font-weight: 600; text-align: center;
  box-shadow: 0 10px 34px rgba(192,57,43,0.18);
}
.busca-aviso.show { display: block; animation: avisoFade 0.9s ease both; }
@keyframes avisoFade {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Barra de filtros (3 campos + mais filtros + buscar) ── */
.filter-bar { display: flex; align-items: stretch; width: 100%; }
.fb-field {
  display: flex; flex-direction: column; justify-content: center; gap: 2px;
  padding: 0.55rem 1.2rem; min-width: 0;
  border-radius: 13px; transition: background var(--transition);
}
.fb-field:hover { background: rgba(17,17,17,0.035); }
.fb-label { font-size: 0.64rem; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; color: var(--text-muted); }
.fb-select {
  border: none; background: transparent; outline: none; cursor: pointer;
  font-family: inherit; font-size: 0.95rem; font-weight: 600; color: var(--text);
  appearance: none; padding-right: 1.4rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.1rem center; background-size: 13px;
}
.fb-divider { width: 1px; background: linear-gradient(to bottom, transparent, var(--border-medium), transparent); margin: 0.6rem 0; flex-shrink: 0; }
.fb-search { flex: 1; flex-direction: row; align-items: center; gap: 0.6rem; }
.fb-search svg { color: var(--gold); flex-shrink: 0; }
.fb-search input {
  flex: 1; min-width: 0; border: none; background: transparent; outline: none;
  font-family: inherit; font-size: 0.95rem; color: var(--text);
}
.fb-search input::placeholder { color: var(--text-muted); }

/* Mais filtros */
.fb-more { position: relative; display: flex; align-items: center; flex-shrink: 0; padding: 0 0.4rem; }
.btn-mais {
  display: inline-flex; align-items: center; gap: 0.45rem; white-space: nowrap;
  background: transparent; border: none; cursor: pointer; font-family: inherit;
  font-size: 0.9rem; font-weight: 600; color: var(--text-secondary);
  padding: 0.6rem 0.95rem; border-radius: 12px; transition: all var(--transition);
}
.btn-mais:hover, .btn-mais.open { background: rgba(17,17,17,0.05); color: var(--text); }
.btn-mais svg { transition: transform var(--transition); }
.btn-mais.open svg { transform: rotate(180deg); }

/* "Mais filtros" — abre INLINE dentro do card branco (expande pra baixo, some ao fechar).
   Animação de altura com grid-template-rows (começa devagar e acelera). */
.mais-panel {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  text-align: left;
  transition:
    grid-template-rows 0.55s cubic-bezier(0.45,0,0.85,0.35),
    opacity 0.35s ease;
}
.mais-panel.open { grid-template-rows: 1fr; opacity: 1; }
.mais-inner {
  overflow: hidden; min-height: 0;
}
.mais-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.25rem;
  padding: 1rem 1rem 0;
  border-top: 1px solid var(--border);
  margin-top: 0.45rem;
}
.mais-field-full { grid-column: 1 / -1; }
.mais-footer { display: flex; gap: 0.6rem; justify-content: flex-end; padding: 1rem 1rem 0.6rem; }

.filters-card:has(.mais-panel.open) { border-radius: 22px; }
.mais-field { display: flex; flex-direction: column; gap: 0.45rem; }
.mais-field label { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); }
.mais-select {
  width: 100%; padding: 0.62rem 0.8rem; font-size: 0.88rem; font-family: inherit;
  background: var(--bg); border: 1.5px solid transparent; border-radius: var(--radius-sm);
  color: var(--text); outline: none; transition: border-color var(--transition);
}
.mais-select:focus { border-color: var(--text); background: #fff; }
select.mais-select {
  appearance: none; cursor: pointer; padding-right: 2rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.7rem center; background-size: 13px;
}
.seg { display: flex; gap: 4px; background: var(--bg); border-radius: var(--radius-pill); padding: 4px; }
.seg button {
  flex: 1; padding: 0.45rem 0.3rem; font-size: 0.82rem; font-weight: 600; font-family: inherit;
  background: transparent; color: var(--text-secondary); border: none;
  border-radius: var(--radius-pill); cursor: pointer; transition: all var(--transition);
}
.seg button:hover { color: var(--text); }
.seg button.active { background: var(--text); color: #fff; box-shadow: var(--shadow-float); }
.mais-limpar, .mais-aplicar {
  flex: 1; padding: 0.7rem; font-family: inherit; font-weight: 700; font-size: 0.82rem;
  border-radius: var(--radius-pill); cursor: pointer; transition: all var(--transition);
}
.mais-limpar { background: transparent; border: 1.5px solid var(--border-medium); color: var(--text-secondary); }
.mais-limpar:hover { color: var(--text); border-color: var(--text); }
.mais-aplicar { background: var(--text); color: #fff; border: none; }
.mais-aplicar:hover { background: #333; }

/* Botão Encontrar imóvel — botão escuro 3D com relevo (luz no topo, sombra projetada) */
.btn-buscar {
  flex-shrink: 0; margin: 0.25rem;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0 1.8rem; color: #fff;
  font-size: 0.9rem; font-weight: 700; letter-spacing: 0.01em;
  border: none; border-radius: 14px;
  background: linear-gradient(180deg, #26262b 0%, #0d0d10 100%);
  cursor: pointer; white-space: nowrap;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.14),
    0 6px 16px -6px rgba(0,0,0,0.55),
    0 2px 4px rgba(0,0,0,0.2);
  transition: all var(--transition); font-family: inherit;
}
.btn-buscar:hover { transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255,255,255,0.16), 0 10px 24px -8px rgba(0,0,0,0.6); }
.btn-buscar:active { transform: translateY(0); }

/* ══════════════════════════════
   LISTAGEM
══════════════════════════════ */
.main-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.5rem 2rem 5rem;
}

.results-bar {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1.25rem;
}
.results-count { font-size: 0.85rem; color: var(--text-secondary); }
.results-count strong { color: var(--text); font-weight: 700; }

/* ── Carrossel horizontal de imóveis ── */
.imoveis-grid {
  display: flex; align-items: stretch; gap: 1.1rem;
  overflow-x: auto; scroll-behavior: smooth;
  /* respiro p/ a sombra (forte embaixo) caber sem ser cortada pelo scroll */
  padding: 1rem 0.6rem 3.5rem;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;            /* trava em card inteiro (sem corte no meio) */
  scroll-padding-inline: 0.6rem;
  /* fade bem fininho na borda — só suaviza o corte, não engole o card */
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 0.6rem, #000 calc(100% - 0.6rem), transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 0.6rem, #000 calc(100% - 0.6rem), transparent 100%);
}
.imoveis-grid::-webkit-scrollbar { display: none; }
.imoveis-grid { cursor: grab; }
.imoveis-grid.dragging { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; user-select: none; }
.imoveis-track { display: flex; align-items: stretch; gap: 1.1rem; }
.imoveis-grid .empty-state { flex: 1; }

/* Setas 3D do carrossel */
.car-nav { display: flex; gap: 0.5rem; }
.car-arrow {
  width: 46px; height: 46px; border-radius: 50%;
  border: none; cursor: pointer; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; line-height: 1; color: var(--text);
  background: linear-gradient(145deg, #ffffff, #e7e7e0);
  box-shadow: 6px 6px 14px rgba(0,0,0,0.14), -5px -5px 12px rgba(255,255,255,0.9), inset 0 0 0 1px rgba(255,255,255,0.5);
  transition: transform var(--transition), box-shadow var(--transition);
}
.car-arrow:hover { transform: translateY(-2px); box-shadow: 8px 8px 20px rgba(0,0,0,0.2), -6px -6px 14px rgba(255,255,255,0.95); }
.car-arrow:active { transform: translateY(1px); box-shadow: inset 4px 4px 10px rgba(0,0,0,0.18), inset -3px -3px 8px rgba(255,255,255,0.7); }

/* Fileiras por finalidade (Vendas / Aluguéis) */
.listagem { padding: 1.5rem 0 0.5rem; }
.cat-row { max-width: 1100px; margin: 0 auto; padding: 1.5rem 2rem 0.5rem; scroll-margin-top: 90px; }
.cat-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.cat-head h2 { font-size: 1.5rem; font-weight: 500; letter-spacing: -0.02em; }
.cat-count { font-size: 0.95rem; font-weight: 600; color: var(--text-muted); margin-left: 0.4rem; }

/* ── Card (imagem arredondada flutuante + texto abaixo) ── */
.card-imovel {
  display: flex; flex-direction: column;
  background: transparent; border: none; cursor: pointer;
}

.card-foto {
  position: relative; aspect-ratio: 16/9;   /* foto deitada (modelo vídeo / câmera deitada) */
  overflow: hidden;
  background-color: #e9e9e4; background-size: cover; background-position: center;  /* blur-up (placeholder) */
  border-radius: var(--radius);
  border: 1px solid rgba(0,0,0,0.08);        /* contorno fininho p/ não parecer tudo junto */
  /* sombra SÓ embaixo (spread negativo = sem extensão lateral/topo, não vira retângulo ao rolar) */
  box-shadow: 0 24px 30px -22px rgba(0,0,0,0.42);
  transition: box-shadow var(--transition), transform var(--transition);
}
.card-foto img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.2,0,0.2,1), opacity 0.13s ease;
}
.card-imovel:hover .card-foto { transform: translateY(-8px); box-shadow: 0 34px 44px -26px rgba(0,0,0,0.48); }
.card-imovel:hover .card-foto img { transform: scale(1.05); }

/* mini-carrossel de fotos no card da home (ver outras fotos sem abrir o imóvel) */
.card-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px; border-radius: 50%; border: none;
  background: rgba(255,255,255,0.92); color: #111;
  font-size: 1.2rem; line-height: 1; cursor: pointer; z-index: 3;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 3px 10px rgba(0,0,0,0.25);
  opacity: 0; transition: opacity var(--transition), background var(--transition);
}
.card-foto:hover .card-nav { opacity: 1; }
.card-nav:hover { background: #fff; }
.card-nav-prev { left: 10px; }
.card-nav-next { right: 10px; }
.card-dots {
  position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 5px; z-index: 3;
}
.card-dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,0.55); transition: all var(--transition); }
.card-dot.active { background: #fff; width: 18px; border-radius: 99px; }

/* pill de negócio (topo-esquerdo) */
.card-code {
  position: absolute; top: 0.7rem; left: 0.7rem; z-index: 2;
  background: rgba(17,17,17,0.7); backdrop-filter: blur(6px);
  color: #fff; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.02em;
  padding: 0.3rem 0.6rem; border-radius: var(--radius-pill);
}

/* Badges (usados na página do imóvel) */
.badge {
  display: inline-flex; align-items: center;
  padding: 0.22rem 0.55rem;
  font-size: 0.62rem; font-weight: 700;
  border-radius: var(--radius-pill);
  white-space: nowrap; letter-spacing: 0.02em;
  backdrop-filter: blur(8px);
}
.badge-venda { background: rgba(17,17,17,0.85); color: #fff; }
.badge-aluguel { background: rgba(99,102,241,0.9); color: #fff; }
.badge-tipo { background: rgba(255,255,255,0.88); color: #111; }
.badge-destaque { background: rgba(234,179,8,0.92); color: #111; }

/* corpo: texto abaixo da imagem */
.card-body { padding: 0.95rem 0.3rem 0; }
.card-titulo {
  font-size: 0.98rem; font-weight: 700; color: var(--text); letter-spacing: -0.02em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.card-bairro {
  display: flex; align-items: center; gap: 0.3rem;
  font-size: 0.82rem; color: var(--text-secondary); margin-top: 0.25rem;
}
.card-preco {
  font-size: 1.25rem; font-weight: 800; letter-spacing: -0.03em;
  color: var(--text); margin-top: 0.45rem; line-height: 1.2;
}
.preco-suffix { font-size: 0.72rem; font-weight: 500; color: var(--text-muted); }
.card-specs {
  display: flex; justify-content: space-between; align-items: center;
  gap: 0.5rem; margin-top: 0.85rem; padding-top: 0.85rem;
  border-top: 1px solid var(--border);
}
.spec-item {
  display: flex; align-items: center; gap: 0.4rem;
  font-size: 0.88rem; color: var(--text); font-weight: 600; white-space: nowrap;
}
.spec-item svg { color: var(--text-secondary); flex-shrink: 0; }

/* ── Empty state ── */
.empty-state {
  text-align: center; padding: 4rem 1.5rem;
  color: var(--text-muted); grid-column: 1 / -1;
}
.empty-state h3 { font-size: 1rem; color: var(--text-secondary); margin-bottom: 0.35rem; }

/* ══════════════════════════════
   PÁGINA DO IMÓVEL
══════════════════════════════ */
/* Fundo das páginas de imóvel: branco + brilho azul suave no canto superior direito */
.imovel-body { background-color: #ffffff; display: flex; flex-direction: column; min-height: 100vh; }
.imovel-body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(circle at top right, rgba(70,130,180,0.42), transparent 70%);
  filter: blur(80px);
}
/* conteúdo com altura natural (rodapé vem logo após).
   width:100% + min-width:0 evita que o flex encolha pro conteúdo e estoure a tela no mobile */
.imovel-page, .favoritos-page, .legal-page { flex: 0 0 auto; width: 100%; min-width: 0; }

/* Fundo da página de favoritos: brilho TEAL no canto superior direito */
body.fav-page::before { background: radial-gradient(circle at top right, rgba(56,193,182,0.45), transparent 70%); }

.imovel-page {
  padding: 113px 0 4rem;                  /* topo = altura do header fixo (foto colada nele) */
  display: flex; flex-direction: column;  /* permite reordenar as seções no celular */
}
/* min-width:0 nos filhos flex: sem isso, uma seção com conteúdo largo (o carrossel de
   "imóveis semelhantes") ganhava min-width automático e esticava a página pra 1100px no
   celular → rolagem horizontal pro vazio ao arrastar. Esse era o bug do "slide vai pro nada". */
.imovel-page > * { min-width: 0; max-width: 100%; }
.imovel-conteudo { max-width: 1100px; margin: 0 auto; padding: 0 2rem; }

/* ── Vídeo do imóvel (opcional) — vídeo em pé à esquerda + texto à direita ── */
.imovel-video { margin: 3rem 0; }
.imovel-video-inner {
  display: grid; grid-template-columns: 320px 1fr; gap: 3rem; align-items: center;
}
.imovel-video-text { max-width: 460px; }
.imovel-video-label {
  display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 0.9rem;
}
.imovel-video-text h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); font-weight: 500; letter-spacing: -0.02em; line-height: 1.12; }
.imovel-video-text p { color: var(--text-secondary); font-size: 1rem; line-height: 1.75; margin-top: 1.1rem; }
.imovel-video-link {
  display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 1.6rem;
  padding: 0.8rem 1.4rem; background: var(--text); color: #fff;
  font-size: 0.88rem; font-weight: 700; text-decoration: none;
  border-radius: var(--radius-pill); transition: all var(--transition);
}
.imovel-video-link:hover { background: #333; transform: translateY(-2px); box-shadow: var(--shadow); }
.imovel-video-card {
  position: relative; display: block; aspect-ratio: 9/16;
  width: 100%; max-width: 320px;
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  text-decoration: none;
}
@media (max-width: 760px) {
  .imovel-video-inner { grid-template-columns: 1fr; gap: 1.75rem; justify-items: center; text-align: center; }
  .imovel-video-text { text-align: center; order: 1; }   /* a frase vem ACIMA do vídeo */
  .imovel-video-card { order: 2; }
}
.imovel-video-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.imovel-video-card:hover img { transform: scale(1.04); }
.imovel-video-card .video-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 72px; height: 72px; border-radius: 50%;
  background: rgba(255,255,255,0.92);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3); padding-left: 4px;
  transition: transform var(--transition);
}
.imovel-video-card:hover .video-play { transform: translate(-50%,-50%) scale(1.08); }
.imovel-video-cta {
  position: absolute; bottom: 1rem; left: 1rem;
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(17,17,17,0.72); backdrop-filter: blur(6px);
  color: #fff; font-size: 0.85rem; font-weight: 700;
  padding: 0.5rem 0.9rem; border-radius: var(--radius-pill);
}

/* ── Carrossel grande (topo, foto deitada de ponta a ponta — estilo referência) ── */
.imovel-gallery { position: relative; margin-bottom: 0; }
.gallery-viewport {
  position: relative; overflow: hidden;
  background: #e9e9e4;
  touch-action: pan-y;   /* o arrasto horizontal é tratado pelo JS; vertical rola a página */
}
/* will-change força o Safari/iOS a manter esse elemento numa camada de composição própria —
   sem isso, no arrasto rápido com o dedo ele às vezes "solta" o desenho e pisca em branco. */
.gallery-track { display: flex; transition: transform 0.55s cubic-bezier(0.22,1,0.36,1); will-change: transform; }
.gallery-slide { flex: 0 0 100%; height: min(74vh, 800px); background-color: #e9e9e4; background-image: var(--img-d); background-size: cover; background-position: center; transform: translateZ(0); }
@media (max-width: 820px) { .gallery-slide { background-image: var(--img-m, var(--img-d)); } }
.gallery-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px; border-radius: 50%; border: none;
  background: rgba(255,255,255,0.92); color: #111;
  font-size: 1.5rem; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-float); transition: all var(--transition); z-index: 2;
}
.gallery-arrow:hover { background: #fff; transform: translateY(-50%) scale(1.08); }
.gallery-prev { left: 1rem; }
.gallery-next { right: 1rem; }
.gallery-count {
  position: absolute; top: 1rem; right: 1rem; z-index: 2;
  background: rgba(0,0,0,0.6); color: #fff;
  font-size: 0.72rem; font-weight: 600;
  padding: 0.25rem 0.6rem; border-radius: var(--radius-pill);
}
.gallery-dots {
  position: absolute; left: 50%; bottom: 70px; transform: translateX(-50%);
  display: flex; justify-content: center; gap: 0.4rem; margin: 0; z-index: 3;
  background: rgba(0,0,0,0.3); padding: 7px 11px; border-radius: 99px;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.gallery-dot {
  width: 8px; height: 8px; padding: 0; border: none;
  border-radius: 50%; background: rgba(255,255,255,0.5); cursor: pointer;
  transition: all var(--transition);
}
.gallery-dot.active { background: #fff; width: 22px; border-radius: 99px; }

/* ── Fileira de miniaturas (centralizada — estilo referência) ── */
.thumbs-wrap { display: flex; align-items: center; gap: 0.3rem; margin-top: 0.9rem; }
.thumbs-arrow { display: none; }
.gallery-thumbs {
  display: flex; gap: 0.6rem;
  width: max-content; max-width: calc(100% - 4rem);
  margin: 0 auto;
  overflow-x: auto; padding-bottom: 4px;
  scrollbar-width: thin;
}
.gallery-thumb {
  flex: 0 0 112px; height: 74px;
  border: 2px solid transparent; border-radius: 8px; overflow: hidden;
  padding: 0; cursor: pointer; background: #e9e9e4;
  opacity: 0.7; transition: opacity var(--transition), border-color var(--transition);
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-thumb:hover { opacity: 1; }
.gallery-thumb.active { border-color: var(--text); opacity: 1; }
/* as miniaturas assumem em todas as telas — as bolinhas ficam guardadas */
.gallery-dots { display: none; }

/* ── Detalhe: principal (vidro) + lateral — abaixo da foto, sem invadir ── */
.imovel-detail {
  display: grid; grid-template-columns: 1fr 350px; gap: 2rem;
  align-items: start;
  position: relative; z-index: 2;
  margin-top: 2.2rem;
}
/* Bloco de informações = vidro líquido (glassmorphism) flutuando sobre a imagem */
.imovel-main {
  min-width: 0;
  background: rgba(255,255,255,0.5);
  -webkit-backdrop-filter: blur(24px) saturate(1.5);
  backdrop-filter: blur(24px) saturate(1.5);
  border: 1px solid rgba(255,255,255,0.7);
  border-radius: 22px;
  box-shadow: 0 30px 70px rgba(0,0,0,0.20), inset 0 1px 0 rgba(255,255,255,0.85);
  padding: 1.85rem 1.9rem;
}
.imovel-side { position: sticky; top: 128px; }

/* Migalha (Início / Imóveis / Casa — 320 m²) */
.imovel-migalha {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem;
  font-size: 0.82rem; color: var(--text-muted); margin-bottom: 1.2rem;
}
.imovel-migalha a { color: var(--text-secondary); text-decoration: none; }
.imovel-migalha a:hover { text-decoration: underline; }
.imovel-migalha .sep { opacity: 0.55; }
.imovel-migalha .atual { color: var(--gold); }

/* Tipografia fina, de luxo (estilo referência) */
.imovel-cod {
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 0.9rem;
}
.imovel-titulo {
  font-size: clamp(1.5rem, 2.6vw, 2.05rem); font-weight: 500;
  letter-spacing: -0.015em; line-height: 1.25; color: var(--text); margin: 0;
}
.imovel-local { display: flex; align-items: center; gap: 0.35rem; color: var(--text-muted); font-size: 0.88rem; margin-top: 0.8rem; }
.imovel-acoes { display: flex; gap: 0.7rem; margin-top: 1.4rem; flex-wrap: wrap; }
.imovel-acao {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.7rem 1.3rem; cursor: pointer; font-family: inherit;
  font-size: 0.66rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--text); background: transparent;
  border: 1px solid var(--border-medium); border-radius: var(--radius-pill);
  transition: all var(--transition);
}
.imovel-acao:hover { border-color: var(--text); background: rgba(255,255,255,0.5); }
.imovel-acao svg { width: 15px; height: 15px; stroke: currentColor; fill: none; }
.imovel-acao.faved svg { fill: #ef4444; stroke: #ef4444; }
.imovel-hr { height: 1px; background: var(--border); margin: 1.6rem 0; }
.imovel-specs { display: flex; flex-wrap: wrap; gap: 1rem 2.2rem; margin: 0; }
.imovel-spec { display: flex; align-items: center; gap: 0.6rem; font-size: 0.92rem; color: var(--text-secondary); }
.imovel-spec svg { color: var(--gold); flex-shrink: 0; }
.imovel-spec strong { font-weight: 600; color: var(--text); }
.imovel-desc { margin: 1.75rem 0; }
.imovel-desc h3 { font-size: 1.15rem; font-weight: 500; letter-spacing: -0.01em; margin-bottom: 0.6rem; }
.imovel-desc p { color: var(--text-secondary); line-height: 1.9; font-size: 0.92rem; }

/* ── Simulador de financiamento ── */
.simulador {
  margin: 1.75rem 0 0; padding: 1.4rem 1.5rem;
  background: rgba(255,255,255,0.55);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.6); border-radius: 18px;
  box-shadow: 0 18px 40px -22px rgba(0,0,0,0.3);
}
.simulador h3 { font-size: 1rem; font-weight: 700; }
.sim-aviso { font-size: 0.76rem; color: var(--text-muted); margin: 0.3rem 0 1.1rem; line-height: 1.5; }
.sim-campos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem; }
.sim-campos label { display: flex; flex-direction: column; gap: 0.35rem; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted); }
.sim-campos input, .sim-campos select {
  padding: 0.6rem 0.7rem; font-size: 0.9rem; font-family: inherit; font-weight: 600; color: var(--text);
  background: rgba(255,255,255,0.7); border: 1.5px solid rgba(255,255,255,0.6); border-radius: var(--radius-sm); outline: none;
  transition: border-color var(--transition);
}
.sim-campos input:focus, .sim-campos select:focus { border-color: var(--text); background: #fff; }
.sim-resultado {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  margin-top: 1.2rem; padding-top: 1.1rem; border-top: 1px solid var(--border);
}
.sim-resultado span { font-size: 0.82rem; color: var(--text-secondary); font-weight: 600; }
.sim-resultado strong { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; }
@media (max-width: 560px) { .sim-campos { grid-template-columns: 1fr; } }

/* ── Mapa ── */
.imovel-mapa { margin: 1.75rem 0 0; }
.imovel-mapa h3 { font-size: 1.15rem; font-weight: 500; letter-spacing: -0.01em; margin-bottom: 0.7rem; }
.mapa-frame {
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border); box-shadow: var(--shadow-sm);
}
.mapa-frame iframe { width: 100%; height: 340px; border: 0; display: block; }
.mapa-link { display: inline-block; margin-top: 0.7rem; font-size: 0.82rem; font-weight: 600; color: var(--text); text-decoration: none; }
.mapa-link:hover { text-decoration: underline; }

/* ── Card de contato (lateral) — mesmo vidro do bloco de info ── */
.contato-card {
  background: rgba(255,255,255,0.5);
  -webkit-backdrop-filter: blur(24px) saturate(1.5);
  backdrop-filter: blur(24px) saturate(1.5);
  border: 1px solid rgba(255,255,255,0.7);
  border-radius: 22px; padding: 1.5rem;
  box-shadow: 0 30px 70px rgba(0,0,0,0.20), inset 0 1px 0 rgba(255,255,255,0.85);
}
/* ── Card de preço (lateral, estilo referência) ── */
.preco-card-label {
  display: block; font-size: 0.66rem; font-weight: 700; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--text-muted);
}
.preco-card-valor { font-size: 1.9rem; font-weight: 800; letter-spacing: -0.03em; margin-top: 0.3rem; line-height: 1.1; }
.preco-card-hr { height: 1px; background: var(--border); margin: 1.15rem 0; }
.preco-linhas { display: flex; flex-direction: column; gap: 0.6rem; }
.preco-linha { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; font-size: 0.88rem; }
.preco-linha span { color: var(--text-muted); }
.preco-linha strong { font-weight: 600; white-space: nowrap; }
.preco-cta {
  width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  padding: 1rem 0.8rem; background: var(--gold); color: #fff;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  text-decoration: none; border-radius: 4px; transition: all var(--transition);
}
.preco-cta:hover { background: #b9975f; transform: translateY(-1px); box-shadow: 0 8px 24px rgba(200,169,121,0.35); }
.preco-cta svg { width: 16px; height: 16px; flex-shrink: 0; }
.preco-corretor { text-align: center; }
.preco-corretor strong { display: block; font-size: 0.98rem; font-weight: 700; }
.preco-corretor span { display: block; font-size: 0.76rem; color: var(--text-muted); margin-top: 0.2rem; }

/* Formulário no fim da página do imóvel (mesmo estilo da home, tema claro) */
.imovel-fale { max-width: 1100px; margin: 3.5rem auto 0; padding: 3rem 2rem 0; border-top: 1px solid var(--border); }
@media (max-width: 820px) { .imovel-fale { padding: 2.5rem 1.25rem 0; } }


/* ── Imóveis semelhantes (carrossel) ── */
.similares { max-width: 1100px; margin: 3rem auto 0; padding: 0 2rem; }
.similares-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.1rem; }
.similares h2 { font-size: 1.35rem; font-weight: 500; letter-spacing: -0.02em; }
.similares-nav { display: flex; gap: 0.4rem; }
.sim-arrow {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1.5px solid var(--border-medium); background: #fff; color: var(--text);
  font-size: 1.15rem; cursor: pointer; transition: all var(--transition);
  display: flex; align-items: center; justify-content: center;
}
.sim-arrow:hover { background: var(--text); color: #fff; border-color: var(--text); }
.similares-track {
  display: flex; gap: 1rem; overflow-x: auto; scroll-behavior: smooth;
  padding: 0.4rem 0.6rem 2.2rem; scrollbar-width: none;
  scroll-snap-type: x mandatory;   /* cada parada cai num card inteiro (sem corte no meio) */
  scroll-padding-inline: 0.6rem;
  /* fade bem fininho — só suaviza o corte, não engole o card */
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 0.6rem, #000 calc(100% - 0.6rem), transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 0.6rem, #000 calc(100% - 0.6rem), transparent 100%);
}
.similares-track::-webkit-scrollbar { display: none; }
.sim-card {
  flex: 0 0 280px; scroll-snap-align: start; scroll-snap-stop: always;
  /* vidro (glassmorphism), igual ao resto da página do imóvel */
  background: rgba(255,255,255,0.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  backdrop-filter: blur(20px) saturate(1.4);
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: 18px; overflow: hidden;
  box-shadow: 0 22px 36px -24px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.75);
  text-decoration: none; color: inherit;
  transition: box-shadow var(--transition), transform var(--transition);
}
.sim-card:hover { box-shadow: 0 30px 46px -26px rgba(0,0,0,0.38); transform: translateY(-4px); }
.sim-foto { position: relative; aspect-ratio: 16/10; overflow: hidden; background-color: #f0f0f0; background-size: cover; background-position: center; }
.sim-foto img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease, opacity 0.13s ease; }
.sim-card:hover .sim-foto img { transform: scale(1.05); }

/* mini-carrossel de fotos no card (ver outras fotos sem abrir o imóvel) */
.sim-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px; border-radius: 50%; border: none;
  background: rgba(255,255,255,0.9); color: #111;
  font-size: 1.15rem; line-height: 1; cursor: pointer; z-index: 3;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 3px 10px rgba(0,0,0,0.25);
  opacity: 0; transition: opacity var(--transition), background var(--transition);
}
.sim-foto:hover .sim-nav { opacity: 1; }
.sim-nav:hover { background: #fff; }
.sim-nav-prev { left: 8px; }
.sim-nav-next { right: 8px; }
.sim-dots {
  position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 4px; z-index: 3;
}
.sim-dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,0.55); transition: all var(--transition); }
.sim-dot.active { background: #fff; width: 16px; border-radius: 99px; }
.sim-body { padding: 0.85rem 1rem 1rem; }
.sim-preco { font-size: 1.1rem; font-weight: 800; letter-spacing: -0.02em; }
.sim-titulo { font-size: 0.8rem; color: var(--text-secondary); margin-top: 0.2rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sim-local { font-size: 0.72rem; color: var(--text-muted); margin-top: 0.35rem; display: flex; align-items: center; gap: 0.25rem; }
.sim-specs { font-size: 0.72rem; color: var(--text-secondary); margin-top: 0.5rem; padding-top: 0.5rem; border-top: 1px solid var(--border); }
/* Specs com ícones (só na home) */
.sim-specs-ic { display: flex; justify-content: space-between; align-items: center; gap: 0.4rem; }
.sim-specs-ic .spec-item { font-size: 0.82rem; font-weight: 600; gap: 0.32rem; color: var(--text); }
.sim-specs-ic .spec-item svg { width: 16px; height: 16px; color: var(--text-secondary); }
/* Cards da home = idênticos aos "imóveis semelhantes" (tamanho + borrão), só com specs em ícones */

.imovel-missing { text-align: center; padding: 5rem 1.5rem; }
.imovel-missing h2 { font-size: 1.3rem; font-weight: 500; margin-bottom: 0.75rem; }
.imovel-missing a { color: var(--text); font-weight: 600; }

@media (max-width: 860px) {
  .imovel-page { padding: 82px 0 3rem; }   /* galeria colada no header, sem espaço */
  .imovel-conteudo { padding: 0 1rem; }

  /* GALERIA deitada, borda a borda, com miniaturas + setinhas (estilo referência) */
  .gallery-slide { height: auto; aspect-ratio: 6 / 5; }
  .gallery-arrow { display: none; }   /* no celular troca pelo dedo ou pelas miniaturas */
  .gallery-count { top: 0.7rem; right: 0.7rem; }
  .thumbs-wrap { padding: 0 0.4rem; margin-top: 0.7rem; }
  .thumbs-arrow {
    display: flex; align-items: center; justify-content: center;
    width: 34px; height: 34px; flex-shrink: 0;
    border: none; background: transparent; color: var(--text);
    font-size: 1.6rem; line-height: 1; cursor: pointer; padding: 0;
  }
  .gallery-thumbs { max-width: 100%; }
  .gallery-thumb { flex: 0 0 96px; height: 64px; }

  /* No celular o formulário desce pro FIM da página (depois de bairros e semelhantes), igual à home */
  .imovel-fale { order: 10; }

  /* Card de vidro abaixo da foto (sem invadir), tipografia compacta */
  .imovel-detail { grid-template-columns: 1fr; gap: 1.5rem; margin-top: 1.4rem; }
  .imovel-main { padding: 1.3rem 1.2rem; border-radius: 18px; }
  .imovel-side { position: static; }
  .similares { padding: 0 1rem; }
  .imovel-titulo { font-size: 1.35rem; }
  .imovel-local { font-size: 0.8rem; margin-top: 0.5rem; }
  .imovel-acoes { margin-top: 1.1rem; }
  .imovel-hr { margin: 1.2rem 0; }
  .imovel-specs { gap: 0.7rem 1.5rem; }
  .imovel-spec { font-size: 0.84rem; gap: 0.45rem; }
  .imovel-spec svg { width: 16px; height: 16px; }
  .imovel-desc { margin: 1.1rem 0; }
  .imovel-desc p { font-size: 0.86rem; line-height: 1.7; }
}

/* ══════════════════════════════
   SEÇÕES DA HOME (rodapé)
══════════════════════════════ */
.home-sec { max-width: 1100px; margin: 0 auto; padding: 4rem 2rem; }
/* menos espaço entre "Quem atende você" (Lucas) e "Imóveis em vídeo" */
.sobre-section { padding-bottom: 1.5rem; }
.videos-section { padding-top: 1.5rem; }
.sec-label { display: inline-block; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); margin-bottom: 0.6rem; }
.home-sec h2 { font-size: clamp(1.8rem, 3.6vw, 2.4rem); font-weight: 500; letter-spacing: -0.02em; line-height: 1.15; }
.sec-head { text-align: center; margin-bottom: 2rem; }
.sec-head p { color: var(--text-secondary); margin-top: 0.4rem; font-size: 0.9rem; }

/* ── Sobre o dono ── */
.sobre-inner { display: grid; grid-template-columns: 320px 1fr; gap: 2.5rem; align-items: center; }
.sobre-foto { perspective: 1000px; }
.sobre-foto-3d {
  border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/5;
  box-shadow: var(--shadow);
  transform-style: preserve-3d; will-change: transform;
  transition: box-shadow var(--transition);
}
.sobre-foto-3d img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.sobre-texto h2 { margin-bottom: 0.2rem; }
.sobre-cargo { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 1rem; }
.sobre-texto p { color: var(--text-secondary); line-height: 1.8; font-size: 0.92rem; }
.sobre-btn {
  display: inline-flex; margin-top: 1.4rem; padding: 0.8rem 1.6rem;
  background: var(--wa); color: #fff; font-weight: 700; font-size: 0.88rem;
  border-radius: var(--radius-pill); text-decoration: none;
  box-shadow: 0 4px 16px rgba(37,211,102,0.35); transition: all var(--transition);
}
.sobre-btn:hover { background: var(--wa-hover); transform: translateY(-2px); box-shadow: 0 8px 26px rgba(37,211,102,0.5); }

/* ── Vídeos / Instagram ── */
.videos-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.video-item { display: flex; flex-direction: column; }
.video-imovel-link {
  display: block; text-align: center; margin-top: 0.7rem;
  padding: 0.7rem; font-size: 0.82rem; font-weight: 700;
  color: #fff; text-decoration: none;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-pill); transition: all var(--transition);
}
.video-imovel-link:hover { background: var(--gold); color: #15171b; border-color: var(--gold); transform: translateY(-1px); }
.video-card {
  position: relative; display: block; aspect-ratio: 9/16;
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm);
  text-decoration: none; transition: box-shadow var(--transition), transform var(--transition);
}
.video-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-4px); }
.video-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.video-card:hover img { transform: scale(1.06); }
.video-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.72), rgba(0,0,0,0.05) 55%);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 0.9rem;
}
.video-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 52px; height: 52px; border-radius: 50%; background: rgba(255,255,255,0.92);
  display: flex; align-items: center; justify-content: center; transition: transform var(--transition);
}
.video-card:hover .video-play { transform: translate(-50%,-50%) scale(1.12); }
.video-play svg { color: #111; margin-left: 2px; }
.video-cap { color: #fff; font-size: 0.82rem; font-weight: 700; position: relative; z-index: 1; line-height: 1.3; }
.video-ig { display: flex; align-items: center; gap: 0.3rem; color: rgba(255,255,255,0.85); font-size: 0.7rem; margin-top: 0.25rem; position: relative; z-index: 1; }
.video-card--arquivo { cursor: default; }
.video-card--arquivo:hover { transform: none; box-shadow: var(--shadow-sm); }
.video-card--arquivo video { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-overlay--arquivo { pointer-events: none; }

/* ── Localização ── */
.local-inner { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 2.5rem; align-items: stretch; }
.local-list { list-style: none; margin: 1.25rem 0; display: flex; flex-direction: column; gap: 0.9rem; }
.local-list li { display: flex; flex-direction: column; gap: 0.15rem; font-size: 0.9rem; color: var(--text-secondary); }
.local-list strong { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); }
.local-link { font-weight: 600; color: var(--text); text-decoration: none; font-size: 0.85rem; }
.local-link:hover { text-decoration: underline; }
.local-mapa { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow); min-height: 340px; background: linear-gradient(135deg, #eef1f5, #e2e7ec); }
.local-mapa iframe { width: 100%; height: 100%; min-height: 340px; border: 0; display: block; }

/* ── Formulário "Fale com o Lucas" (estilo referência: 2 colunas, campos de linha) ── */
.fale-inner {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 3.5rem;
  align-items: center; text-align: left;   /* info e formulário centralizados entre si */
}
.fale-info h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 500; letter-spacing: -0.02em; line-height: 1.12; }
.fale-sub { color: var(--text-secondary); font-size: 0.95rem; margin-top: 0.8rem; line-height: 1.7; }
.fale-lista { list-style: none; margin-top: 2.2rem; display: flex; flex-direction: column; gap: 1.4rem; }
.fale-lista li { display: flex; gap: 1rem; align-items: flex-start; }
.fale-ic {
  width: 44px; height: 44px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border-medium); border-radius: 6px; color: var(--gold);
}
.fale-ic svg { width: 19px; height: 19px; }
.fale-lista strong {
  display: block; font-size: 0.64rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 0.25rem;
}
.fale-lista li div a, .fale-lista li div span { color: var(--text); font-size: 0.93rem; text-decoration: none; line-height: 1.5; }
.fale-lista li div a:hover { text-decoration: underline; }

.home-form { display: flex; flex-direction: column; gap: 1.5rem; text-align: left; }
.hf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.hf-field { display: flex; flex-direction: column; gap: 0.5rem; }
.hf-field > span {
  font-size: 0.64rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-muted);
}
.hf-field input, .hf-field select, .hf-field textarea {
  width: 100%; padding: 0.55rem 0.05rem; font-size: 0.95rem; font-family: inherit;
  background: transparent; border: none; border-bottom: 1px solid var(--border-medium);
  border-radius: 0; color: var(--text); outline: none;
  transition: border-color var(--transition);
  appearance: none; -webkit-appearance: none;
}
.hf-field select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.2rem center; background-size: 13px;
}
.hf-field select option { color: #111; }
.hf-field input:focus, .hf-field select:focus, .hf-field textarea:focus { border-bottom-color: var(--text); }
/* nasce com 1 linha (linha colada no texto) e cresce sozinho enquanto digita */
.hf-field textarea { resize: none; min-height: 0; overflow: hidden; line-height: 1.6; }
.hf-actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: 0.3rem; }
.home-form button[type="submit"] {
  padding: 1rem 2.1rem; background: var(--text); color: #fff;
  border: none; border-radius: 0; font-family: inherit;
  font-weight: 600; font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase;
  cursor: pointer; transition: all var(--transition);
}
.home-form button[type="submit"]:hover { background: #333; transform: translateY(-1px); box-shadow: var(--shadow); }
/* mesmo tamanho e forma do botão "Enviar mensagem" (só muda a cor) */
.home-wa-direct {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  padding: 1rem 1.8rem; background: var(--wa); color: #fff;
  font-size: 0.74rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  text-decoration: none; border-radius: 0; transition: all var(--transition);
}
.home-wa-direct:hover { background: var(--wa-hover); transform: translateY(-1px); box-shadow: 0 8px 26px rgba(37,211,102,0.4); }
.home-wa-direct svg { width: 16px; height: 16px; }

@media (max-width: 820px) {
  .home-sec { padding: 3rem 1.25rem; }
  .sobre-inner { grid-template-columns: 1fr; gap: 1.5rem; max-width: 420px; }
  .videos-grid { grid-template-columns: repeat(2, 1fr); }
  .local-inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .fale-inner { grid-template-columns: 1fr; gap: 2.4rem; }
  .hf-row { grid-template-columns: 1fr; gap: 1.5rem; }
  .hf-actions { flex-direction: column; align-items: stretch; }
  .home-form button[type="submit"] { width: 100%; }
  .home-wa-direct { justify-content: center; }
}

/* ══════════════════════════════
   ZONA ESCURA (exclusividade)
══════════════════════════════ */
.dark-zone {
  position: relative;
  background-color: var(--dark);
  background-image:
    radial-gradient(ellipse 60% 40% at 50% 14%, rgba(255,255,255,0.03), transparent 70%),
    radial-gradient(circle, rgba(255,255,255,0.022) 1px, transparent 1.2px);
  background-size: auto, 24px 24px;
  color: rgba(255,255,255,0.72);
}
.dark-zone .sec-label { color: var(--gold); }
.dark-zone h2 { color: #fff; }
.dark-zone .sec-head p { color: rgba(255,255,255,0.6); }

/* Sobre */
.dark-zone .sobre-texto p { color: rgba(255,255,255,0.65); }
.dark-zone .sobre-cargo { color: rgba(255,255,255,0.5); }
.dark-zone .sobre-foto-3d { box-shadow: 0 30px 70px rgba(0,0,0,0.6); }

/* Localização */
.dark-zone .local-list li { color: rgba(255,255,255,0.72); }
.dark-zone .local-list strong { color: var(--gold); }
.dark-zone .local-link { color: #fff; }
.dark-zone .local-mapa { border-color: rgba(255,255,255,0.1); box-shadow: 0 20px 60px rgba(0,0,0,0.5); }

/* Formulário — card escuro */
.dark-zone .fale-sub { color: rgba(255,255,255,0.55); }
.dark-zone .fale-ic { border-color: rgba(255,255,255,0.18); }
.dark-zone .fale-lista strong { color: rgba(255,255,255,0.42); }
.dark-zone .fale-lista li div a, .dark-zone .fale-lista li div span { color: rgba(255,255,255,0.92); }
.dark-zone .hf-field > span { color: rgba(255,255,255,0.42); }
.dark-zone .hf-field input, .dark-zone .hf-field select, .dark-zone .hf-field textarea {
  color: #fff; border-bottom-color: rgba(255,255,255,0.22);
}
.dark-zone .hf-field input::placeholder,
.dark-zone .hf-field textarea::placeholder { color: rgba(255,255,255,0.35); }
.dark-zone .hf-field select:invalid { color: rgba(255,255,255,0.35); }
.dark-zone .hf-field input:focus, .dark-zone .hf-field select:focus, .dark-zone .hf-field textarea:focus { border-bottom-color: var(--gold); }
.dark-zone .home-form button[type="submit"] { background: var(--gold); color: #15171b; }
.dark-zone .home-form button[type="submit"]:hover { background: #d8bd8a; box-shadow: 0 8px 24px rgba(200,169,121,0.3); }


/* ── Footer ── */
/* ── Rodapé escuro em colunas (mesmo em todas as páginas) ── */
.site-footer {
  background: var(--dark); color: rgba(255,255,255,0.6);
  padding: 3.25rem 2rem 1.5rem; text-align: left; font-size: 0.82rem;
  flex: 1 0 auto;                       /* preenche o fim da tela em páginas curtas (sem branco abaixo) */
  display: flex; flex-direction: column;
}
.footer-grid {
  max-width: 1100px; width: 100%; margin: 0 auto;
  display: grid; grid-template-columns: 1.5fr 1fr 1.3fr; gap: 2.5rem;
  padding-bottom: 2rem;
}
.footer-brand-col .footer-main { font-size: 1.15rem; font-weight: 800; color: #fff; letter-spacing: -0.02em; }
.footer-tag { color: rgba(255,255,255,0.5); margin: 0.7rem 0 1.1rem; line-height: 1.65; font-size: 0.82rem; max-width: 320px; }
.footer-col h4 { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gold); margin-bottom: 0.95rem; }
.footer-col a, .footer-col span {
  display: flex; align-items: center; gap: 0.55rem;
  color: rgba(255,255,255,0.62); text-decoration: none; padding: 0.32rem 0; font-size: 0.86rem;
  transition: color var(--transition);
}
.footer-col a:hover { color: #fff; }
.footer-col svg { width: 16px; height: 16px; color: var(--gold); flex-shrink: 0; }
.footer-bottom {
  max-width: 1100px; width: 100%; margin: auto auto 0; padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-size: 0.76rem; color: rgba(255,255,255,0.42);
}
.footer-bottom a { color: rgba(255,255,255,0.6); text-decoration: none; }
.footer-bottom a:hover { color: #fff; }
.footer-bottom-right { display: flex; align-items: center; gap: 1.3rem; }
.footer-top {
  background: none; border: none; cursor: pointer; font-family: inherit;
  color: rgba(255,255,255,0.6); font-size: 0.76rem; font-weight: 600;
  display: inline-flex; align-items: center; gap: 0.3rem; transition: color var(--transition);
}
.footer-top:hover { color: var(--gold); }
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr; gap: 1.75rem; }
  .footer-bottom { flex-direction: column-reverse; text-align: center; gap: 0.8rem; }
}

/* Botão dourado (reusado no estado vazio dos Favoritos) */
.anuncie-btn {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.95rem 1.8rem; background: var(--gold); color: #15171b;
  font-size: 0.95rem; font-weight: 800; text-decoration: none;
  border-radius: var(--radius-pill); white-space: nowrap;
  transition: transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 10px 30px -8px rgba(200,169,121,0.6);
}
.anuncie-btn:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -8px rgba(200,169,121,0.75); }

/* Ícones das redes sociais no rodapé (rodapé é escuro em todas as páginas) */
.footer-social { display: flex; justify-content: flex-start; gap: 0.6rem; margin: 0; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.6); border: 1px solid rgba(255,255,255,0.2);
  text-decoration: none; transition: all var(--transition);
}
.footer-social a:hover { color: #fff; border-color: rgba(255,255,255,0.45); background: rgba(255,255,255,0.08); transform: translateY(-2px); }
.footer-social svg { width: 17px; height: 17px; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .header-nav { display: none; }
  .btn-menu-mobile { display: flex; }
  .site-header { padding: 1rem 1.25rem; }
  .filters-section { padding: 0 1.25rem 2rem; }
}

@media (max-width: 760px) {
  /* MOBILE: cada campo vira um CONTAINER FLUTUANTE próprio (estilo da referência, porém
     premium 3D) — o "card" some e os campos ganham gradiente sutil + sombra em camadas. */
  .filters-card {
    background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none;
    border: none; box-shadow: none; padding: 0; border-radius: 0;
  }
  .filter-bar { flex-direction: column; align-items: stretch; gap: 0.7rem; }

  .fb-field, .btn-mais {
    background: linear-gradient(158deg, #ffffff 0%, #f5f4f1 100%);
    border: 1px solid rgba(255,255,255,0.85);
    border-radius: 15px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 12px 22px -14px rgba(18,18,24,0.5);
    transition: transform 0.14s ease, box-shadow var(--transition);
  }
  .fb-field { padding: 0.75rem 1.05rem; gap: 3px; }
  .fb-field:active, .btn-mais:active { transform: scale(0.985); }
  .fb-field:hover { background: linear-gradient(158deg, #ffffff 0%, #f5f4f1 100%); }
  /* busca fica em linha (ícone + input) dentro do container */
  .fb-search { flex-direction: row !important; align-items: center; gap: 0.7rem; }
  .fb-select { font-size: 1rem; }   /* >=16px: não deixa o iOS dar zoom ao focar */
  .fb-search input { font-size: 1rem; }
  .fb-divider { display: none; }
  .fb-more { padding: 0; }
  .btn-mais {
    width: 100%; justify-content: space-between;
    padding: 0.95rem 1.1rem; color: var(--text); font-size: 0.95rem;
  }
  .mais-panel { width: 100%; right: 0; }
  .btn-buscar {
    margin: 0.15rem 0 0; padding: 1.05rem; width: 100%;
    border-radius: 15px; font-size: 0.95rem;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.14), 0 12px 26px -8px rgba(0,0,0,0.55);
  }
}

@media (max-width: 600px) {
  .hero-wrapper { min-height: 100svh; }
  .hero-content h1 { font-size: 2rem; }
  .filters-section { padding: 0 1rem 1.5rem; }
  .main-content { padding: 1.5rem 1rem 4rem; }
  .imoveis-grid { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════
   ANIMAÇÕES & MICRO-INTERAÇÕES
══════════════════════════════════════════════ */

/* ── Header fixo + estado "scrolled" ── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  transition: background var(--transition), box-shadow var(--transition),
              padding var(--transition), backdrop-filter var(--transition);
}
.site-header.scrolled {
  background: rgba(255,255,255,0.6);
  -webkit-backdrop-filter: blur(22px) saturate(1.6);
  backdrop-filter: blur(22px) saturate(1.6);
  box-shadow: 0 4px 30px rgba(0,0,0,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.5);
  padding-top: 0.78rem; padding-bottom: 0.78rem;
}
.brand-icon { transition: transform var(--transition), background var(--transition), color var(--transition); }
.site-header.scrolled .brand-name { color: var(--text); }
.site-header.scrolled .brand-tag { color: var(--text-muted); }
.site-header.scrolled .brand-icon { background: var(--text); color: #fff; transform: scale(0.9); }
.site-header.scrolled .nav-link { color: var(--text-secondary); }
.site-header.scrolled .nav-link:hover { color: var(--text); }
.site-header.scrolled .btn-menu-mobile {
  background: var(--bg); border-color: var(--border-medium); color: var(--text);
}

/* ── Guard anti-FOUC (hero entra via GSAP) ── */
body.gsap-init .hero-content h1,
body.gsap-init .hero-content p,
body.gsap-init .filters-card,
body.gsap-init .site-header .header-brand,
body.gsap-init .site-header .header-nav,
body.gsap-init .site-header .header-right { opacity: 0; }

/* ── Parallax: imagem do hero ligeiramente maior ── */
.hero-bg img { height: 120%; will-change: transform; }

/* ── Nav links: underline que desliza da esquerda ── */
.nav-link { position: relative; }
.nav-link::after {
  content: ""; position: absolute; left: 0.85rem; right: 0.85rem; bottom: 0.26rem;
  height: 2px; background: currentColor; border-radius: 2px;
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.28s cubic-bezier(0.4,0,0.2,1);
}
.nav-link:hover { background: transparent; }
.nav-link:hover::after { transform: scaleX(1); }

/* ── Botão Buscar: pulse em loop + base p/ ripple ── */
.btn-buscar { position: relative; overflow: hidden; }
@keyframes pulseBuscar {
  0%, 100% { box-shadow: 0 2px 12px rgba(0,0,0,0.18); }
  50%      { box-shadow: 0 5px 24px rgba(0,0,0,0.34); }
}
.btn-buscar.pulsing { animation: pulseBuscar 2.4s ease-in-out infinite; }
.btn-buscar:hover { animation-play-state: paused; transform: translateY(-2px) scale(1.03); }

/* ── Ripple ── */
.btn-whatsapp { position: relative; overflow: hidden; }
.ripple {
  position: absolute; border-radius: 50%;
  background: rgba(255,255,255,0.5);
  transform: scale(0); pointer-events: none;
  animation: rippleAnim 0.6s ease-out forwards;
}
@keyframes rippleAnim { to { transform: scale(2.6); opacity: 0; } }

/* ── WhatsApp / CTA: scale up + sombra crescente ── */
.btn-whatsapp:hover { transform: translateY(-2px) scale(1.04); box-shadow: 0 8px 26px rgba(37,211,102,0.55); }

/* ── Cards: itens do carrossel (largura fixa) + reveal no scroll ── */
.card-reveal {
  flex: 0 0 400px; max-width: 88vw;                 /* item do carrossel (maior) */
  scroll-snap-align: start;
  display: flex; flex-direction: column;
}
.card-imovel {
  flex: 1 1 auto;                                 /* preenche a altura do wrapper */
  display: flex; flex-direction: column;
}
.card-foto { flex-shrink: 0; }                    /* imagem não encolhe */

/* ── Botão favoritar (coração — branco sobre a imagem) ── */
.btn-fav {
  position: absolute; top: 0.7rem; right: 0.7rem; z-index: 3;
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  background: transparent; border: none; cursor: pointer; padding: 0;
  transition: transform var(--transition);
}
.btn-fav svg { width: 22px; height: 22px; stroke: #fff; fill: none; stroke-width: 2; filter: drop-shadow(0 1px 3px rgba(0,0,0,0.45)); transition: fill var(--transition), stroke var(--transition); }
.btn-fav:hover { transform: scale(1.14); }
.btn-fav.faved svg { fill: #ef4444; stroke: #ef4444; }
.btn-fav.pop { animation: heartPop 0.42s cubic-bezier(0.34,1.56,0.64,1); }
@keyframes heartPop {
  0%   { transform: scale(1); }
  35%  { transform: scale(1.35); }
  60%  { transform: scale(0.9); }
  100% { transform: scale(1); }
}

/* ── Blur-up: foto nítida entra suave por cima do placeholder borrado ── */
.card-foto img, .sim-foto img, .gallery-slide img { transition: opacity 0.5s ease, transform 0.45s ease; }
.card-foto.loading img { opacity: 0; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ── Regiões atendidas (bairros) — larga como a referência, cards grandes ── */
.bento-section {
  max-width: 1720px; margin: 0 auto; padding: 1.5rem 3.5rem 4.5rem;
}
.bento-head { text-align: left; margin-bottom: 2.2rem; }
.bento-eyebrow {
  display: block; text-transform: uppercase; letter-spacing: 0.24em;
  font-size: 0.72rem; font-weight: 600; color: var(--gold);
  margin-bottom: 0.9rem;
}
.bento-head h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 500; letter-spacing: -0.02em; line-height: 1.12; }
.bento-head p { color: var(--text-secondary); font-size: 0.92rem; margin-top: 0.7rem; }

/* ── Título com TextEffect (revela caractere a caractere) ── */
.te-char { display: inline-block; will-change: transform, opacity, filter; }

.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
}
.bento-tile {
  position: relative; overflow: hidden;
  display: block;                /* serve como <button> (home) e como <a> (página do imóvel) */
  aspect-ratio: 3 / 4;
  border: none; padding: 0; cursor: pointer;
  border-radius: 10px;
  background: #ddd;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  transition: box-shadow var(--transition), transform var(--transition);
}

/* a mesma seção, dentro da página do imóvel */
.imovel-bairros { padding-top: 3.5rem; }

.bento-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  transition: transform 0.6s cubic-bezier(0.2,0,0.2,1);
}
.bento-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.12) 45%, rgba(0,0,0,0) 72%);
  transition: opacity var(--transition);
}
.bento-tile:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.bento-tile:hover .bento-img { transform: scale(1.08); }
.bento-tile:hover .bento-overlay { opacity: 0.85; }

.bento-text { position: absolute; left: 1.1rem; right: 1.1rem; bottom: 1rem; z-index: 2; text-align: left; pointer-events: none; }
.bento-name { display: block; color: #fff; font-weight: 600; font-size: 1.12rem; letter-spacing: -0.01em; text-shadow: 0 1px 10px rgba(0,0,0,0.5); }
.bento-desc { display: block; color: rgba(255,255,255,0.85); font-size: 0.74rem; margin-top: 0.15rem; }

.bento-cta {
  position: absolute; top: 0.85rem; right: 0.9rem; z-index: 2;
  font-size: 0.68rem; font-weight: 700; color: #111;
  background: rgba(255,255,255,0.94); padding: 0.3rem 0.6rem; border-radius: var(--radius-pill);
  opacity: 0; transform: translateY(-5px); transition: all var(--transition);
  pointer-events: none;
}
.bento-tile:hover .bento-cta { opacity: 1; transform: translateY(0); }

@media (max-width: 1024px) {
  .bento-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .bento-section { padding: 2.5rem 1rem 3rem; }
  .bento-grid { grid-template-columns: 1fr 1fr; gap: 0.7rem; }
}

/* ── Chip do filtro ativo + estado vazio ── */
.filtro-chip {
  display: inline-flex; align-items: center; gap: 0.7rem;
  margin-bottom: 1.2rem; padding: 0.45rem 0.6rem 0.45rem 1rem;
  background: var(--text); color: #fff;
  border-radius: var(--radius-pill);
  font-size: 0.8rem; font-weight: 600;
}
.filtro-chip button {
  border: none; cursor: pointer;
  background: rgba(255,255,255,0.16); color: #fff;
  font-family: inherit; font-size: 0.72rem; font-weight: 700;
  padding: 0.25rem 0.65rem; border-radius: var(--radius-pill);
  transition: background var(--transition);
}
.filtro-chip button:hover { background: rgba(255,255,255,0.32); }
.sem-resultados { color: var(--text-secondary); font-size: 0.9rem; padding: 0.5rem 0 2rem; }

/* ── Preferência de movimento reduzido ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .btn-buscar.pulsing { animation: none; }
  .card-foto.loading::after { animation: none; opacity: 0; }
  body.gsap-init .hero-content h1,
  body.gsap-init .hero-content p,
  body.gsap-init .filters-card,
  body.gsap-init .site-header .header-brand,
  body.gsap-init .site-header .header-nav,
  body.gsap-init .site-header .header-right { opacity: 1 !important; }
}

/* ══════════════════════════════
   AJUSTES DO BRIEFING (Lucas Junio)
══════════════════════════════ */

/* Finalidade — pill neutra (poucas cores, tom formal) */
.badge-negocio { background: rgba(17,17,17,0.85); color: #fff; }

/* Características no painel "Mais filtros" */
.caracteristicas {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.35rem 0.6rem;
  max-height: 168px; overflow-y: auto; padding-right: 0.2rem;
}
.carac-chk {
  display: flex; align-items: center; gap: 0.4rem;
  font-size: 0.78rem; color: var(--text-secondary); cursor: pointer; font-weight: 500;
}
.carac-chk input { accent-color: var(--text); width: 15px; height: 15px; cursor: pointer; }

/* Características na página do imóvel */
.imovel-carac { margin: 1.75rem 0 0; }
.imovel-carac h3 { font-size: 1.15rem; font-weight: 500; letter-spacing: -0.01em; margin-bottom: 0.7rem; }
.carac-tags { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.carac-tag {
  font-size: 0.78rem; font-weight: 500; color: var(--text-secondary);
  background: #fff; border: 1px solid var(--border);
  padding: 0.4rem 0.75rem; border-radius: var(--radius-pill);
}

/* Frase automática (disclaimer) */
.imovel-disclaimer { margin-top: 0.85rem; font-size: 0.75rem; color: var(--text-muted); font-style: italic; }

/* Redes do corretor (sobre) */
.sobre-redes { display: flex; gap: 1rem; margin-top: 1.1rem; }
.sobre-redes a {
  font-size: 0.82rem; font-weight: 600; text-decoration: none;
  color: var(--text); border-bottom: 1px solid transparent; transition: border-color var(--transition);
}
.dark-zone .sobre-redes a { color: #fff; }
.sobre-redes a:hover { border-color: currentColor; }

.site-footer a { color: inherit; text-decoration: none; }

@media (max-width: 760px) {
  .caracteristicas { grid-template-columns: 1fr; max-height: 150px; }
}

/* ══════════════════════════════
   FUNDO DE VIDRO (imagem do hero, desfocada)
══════════════════════════════ */
.frost-zone { position: relative; isolation: isolate; overflow: hidden; }
.frost-zone::before {
  content: ""; position: absolute; inset: -50px; z-index: -2;
  background-image: url("hero-patos.jpg");
  background-size: cover; background-position: center;
  filter: blur(44px) saturate(1.05);
  opacity: 0.5;                      /* borrão bem discreto — o fundo fica quase branco */
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 130px), transparent 100%);
  mask-image: linear-gradient(to bottom, #000 calc(100% - 130px), transparent 100%);
}
.frost-zone::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  /* véu claro: sai sólido do hero e revela o borrão devagar (sem faixa marcada) */
  background: linear-gradient(to bottom,
    rgba(250,250,248,1) 0%,
    rgba(250,250,248,0.96) 160px,
    rgba(250,250,248,0.8) 460px,
    rgba(250,250,248,0.8) 100%);
}

/* ══════════════════════════════
   MAPA + CONTATO (estilo agendamento)
══════════════════════════════ */
.local-section .local-inner { grid-template-columns: 1.15fr 0.85fr; align-items: center; }
.local-mapa {
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 24px 60px rgba(0,0,0,0.5);
  min-height: 360px;
}
.local-mapa iframe { width: 100%; height: 100%; min-height: 360px; border: 0; display: block; }

.local-contatos { list-style: none; margin: 1.4rem 0 1.6rem; display: flex; flex-direction: column; gap: 1.1rem; }
.local-contatos li { display: flex; align-items: center; gap: 0.85rem; font-size: 0.95rem; color: rgba(255,255,255,0.8); line-height: 1.4; }
.local-contatos svg { width: 22px; height: 22px; flex-shrink: 0; color: var(--gold); }
.local-contatos a { color: inherit; text-decoration: none; }
.local-contatos a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* ── Avaliações (Google) — balões adaptados ao preto, em carrossel ── */
.avaliacoes-section { padding-top: 1rem; }
.avaliacoes-section .sec-head { text-align: center; }
.aval-wrap { position: relative; }
.aval-track {
  display: flex; gap: 1.5rem; overflow-x: auto; scroll-behavior: smooth;
  padding: 1rem 0.6rem 2.5rem; scrollbar-width: none; scroll-snap-type: x mandatory;
  scroll-padding-inline: 0.6rem;
  /* fade bem fininho — só suaviza o corte, não engole o card */
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 0.6rem, #000 calc(100% - 0.6rem), transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 0.6rem, #000 calc(100% - 0.6rem), transparent 100%);
}
.aval-track::-webkit-scrollbar { display: none; }
.aval-card {
  flex: 0 0 320px; max-width: 320px; scroll-snap-align: start; scroll-snap-stop: always;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px; padding: 1.4rem;
  /* sombra só embaixo = card flutuando sobre o preto (sem retângulo ao rolar) */
  box-shadow: 0 28px 44px -26px rgba(0,0,0,0.7), inset 0 1px 0 rgba(255,255,255,0.06);
  transition: background var(--transition), border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.aval-card:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.18); transform: translateY(-4px); box-shadow: 0 38px 56px -28px rgba(0,0,0,0.8); }
.aval-head { display: flex; align-items: center; gap: 0.7rem; }
.aval-avatar {
  width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: #fff; font-size: 1rem;
}
.aval-quem { min-width: 0; flex: 1; }
.aval-nome { font-weight: 700; color: #fff; font-size: 0.92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.aval-meta { font-size: 0.72rem; color: rgba(255,255,255,0.5); }
.aval-google { width: 20px; height: 20px; flex-shrink: 0; }
.aval-stars { color: #fbbc04; margin: 0.9rem 0 0.6rem; font-size: 0.95rem; letter-spacing: 2px; }
.aval-texto { color: rgba(255,255,255,0.78); font-size: 0.9rem; line-height: 1.6; }
.aval-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 4;
  width: 42px; height: 42px; border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; line-height: 1; color: #fff;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.22);
  transition: all var(--transition);
}
.aval-arrow:hover { background: rgba(255,255,255,0.16); border-color: rgba(255,255,255,0.45); }
.aval-prev { left: -12px; }
.aval-next { right: -12px; }
.aval-mais { text-align: center; margin-top: 1.5rem; }
.aval-mais a { color: var(--gold); font-weight: 700; font-size: 0.9rem; text-decoration: none; transition: opacity var(--transition); }
.aval-mais a:hover { opacity: 0.8; text-decoration: underline; text-underline-offset: 3px; }


/* ══════════════════════════════
   PÁGINA LEGAL (privacidade)
══════════════════════════════ */
.legal-page { max-width: 760px; margin: 0 auto; padding: 110px 1.5rem 4rem; }
.legal-back { display: inline-block; margin-bottom: 1.5rem; font-size: 0.85rem; font-weight: 600; color: var(--text-secondary); text-decoration: none; }
.legal-back:hover { color: var(--text); }
.legal-page h1 { font-size: 1.8rem; font-weight: 500; letter-spacing: -0.02em; margin-bottom: 0.5rem; }
.legal-update { color: var(--text-muted); font-size: 0.8rem; margin-bottom: 2rem; }
.legal-page h2 { font-size: 1.05rem; font-weight: 700; margin: 1.75rem 0 0.5rem; }
.legal-page p { color: var(--text-secondary); line-height: 1.75; font-size: 0.92rem; }

/* ════════════════════════════════════════════════════════════
   AJUSTES MOBILE — performance + layout no celular
   (no fim do arquivo p/ vencer regras anteriores por ordem)
═══════════════════════════════════════════════════════════════ */
@media (max-width: 820px) {
  /* Lenis fica desligado no celular → habilita scroll suave NATIVO p/ âncoras */
  html { scroll-behavior: auto; scroll-padding-top: 96px; }   /* o scroll suave é via JS (rAF); 'smooth' no CSS brigava e travava */

  /* Header menor no celular (logo gigante empurrava o hero) */
  .brand-logo { height: 72px; }
  .site-header.scrolled .brand-logo { height: 62px; }

  /* HERO: não pode ser invadido pelo header fixo */
  .hero-wrapper { min-height: auto; justify-content: flex-start; }
  .hero-content { padding-top: 7.5rem; padding-bottom: 0.5rem; }
  .hero-content h1 { font-size: 1.72rem; line-height: 1.16; margin-bottom: 0.55rem; }
  .hero-content p { font-size: 0.92rem; }
  .hero-dots { margin-top: 1.1rem; }
  .hero-bg img { height: 120%; }   /* folga p/ o parallax mover sem cortar */
  .hero-blur { background-image: url("hero-patos-mobile.jpg"); }   /* versão leve no celular (mantém o embaçado) */

  /* LOCALIZAÇÃO: descrição em cima, mapa retangular (deitado) embaixo */
  .local-section .local-inner { grid-template-columns: 1fr; gap: 1.25rem; align-items: stretch; }
  .local-section .local-info { order: 1; }
  .local-section .local-mapa { order: 2; aspect-ratio: 16 / 10; min-height: 0; }
  .local-section .local-mapa iframe { height: 100%; min-height: 0; }

  /* FADE-IN ao rolar (leve) — só nos BLOCOS (os cards do carrossel ficam estáticos
     p/ deslizar limpo igual aos "imóveis semelhantes", sem glitch no arrasto). */
  .m-reveal .reveal-block {
    opacity: 0; transform: translateY(24px);
    transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .m-reveal .reveal-block.in { opacity: 1; transform: none; }

  /* "Mais filtros" SUAVE: sem animar a altura (que travava); só fade + leve slide do conteúdo */
  .mais-panel { transition: opacity 0.26s ease; }
  .mais-inner { transform: translateY(-6px); transition: transform 0.28s ease; }
  .mais-panel.open .mais-inner {
    transform: none;
    /* vira um container flutuante próprio (o card branco sumiu no mobile) */
    background: linear-gradient(158deg, #ffffff 0%, #f5f4f1 100%);
    border: 1px solid rgba(255,255,255,0.85);
    border-radius: 15px; margin-top: 0.7rem;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 12px 22px -14px rgba(18,18,24,0.5);
  }
  .mais-panel.open .mais-grid { border-top: none; margin-top: 0; padding: 1rem 1rem 0; }

  /* ═══════ SCROLL LISO: corta os efeitos que travam a GPU do celular ═══════ */
  /* 1) VIDRO (backdrop-filter) — o maior vilão do scroll. Desliga e deixa o fundo opaco. */
  .site-header.scrolled, .filters-card, .sim-card, .contato-card, .imovel-main,
  .mobile-menu, .cookie-bar, .card-code, .badge, .badge-venda,
  .imovel-video-cta, .simulador, .lightbox {
    -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
  }
  .site-header.scrolled { background: rgba(255,255,255,0.95); }
  .contato-card, .imovel-main { background: #fff; }
  .sim-card { background: rgba(255,255,255,0.92); }   /* opaco no celular (sem o vidro) */

  /* 2) Fundo borrado da listagem (carregava a imagem de 724KB + blur de 44px). Vira leve + vivo. */
  .frost-zone::before, .frost-zone::after { display: none; }
  .frost-zone { overflow: visible; }   /* não engolir o swipe nativo do carrossel */
  .frost-zone {
    background-color: #f9f8f6;
    background-image:
      radial-gradient(circle at 16% 10%, rgba(200,169,121,0.09), transparent 38%),
      radial-gradient(circle at 86% 88%, rgba(200,169,121,0.06), transparent 42%),
      radial-gradient(rgba(17,17,17,0.045) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 22px 22px;
    background-attachment: scroll;   /* nunca fixed no mobile (fixed trava o scroll) */
  }

  /* Setinhas + bolinhas de prévia das fotos: fora no celular (display:none vence o :hover) */
  .card-nav, .card-dots, .sim-nav, .sim-dots { display: none; }

  /* 3) (Embaçado da base do hero mantido — só usa a imagem leve, ver acima) */

  /* 4) Carrossel de Vendas/Aluguel: arrastado por transform (segue o dedo liso),
        com um peek do vizinho e BORRÃO fininho nas bordas (igual aos "semelhantes"). */
  .imoveis-grid {
    display: block; overflow: hidden;
    padding-left: 0.6rem; padding-right: 0.6rem; scroll-snap-type: none;
    /* borrão fininho nas bordas, igual aos "semelhantes" */
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 0.6rem, #000 calc(100% - 0.6rem), transparent 100%);
    mask-image: linear-gradient(to right, transparent 0, #000 0.6rem, #000 calc(100% - 0.6rem), transparent 100%);
  }
  .imoveis-track { gap: 0.9rem; will-change: transform; }
  .imoveis-track .card-reveal {
    flex: 0 0 78vw; max-width: 78vw;   /* menor, com peek do próximo (igual à foto) */
    padding-left: 0; padding-right: 0;
  }
  .similares-track, .aval-track {
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 0.6rem, #000 calc(100% - 0.6rem), transparent 100%);
    mask-image: linear-gradient(to right, transparent 0, #000 0.6rem, #000 calc(100% - 0.6rem), transparent 100%);
  }

  /* Avaliações: tira as setas (invadiam o card) — arrasta com o dedo (swipe nativo) */
  .aval-arrow { display: none; }

  /* Transição SUAVE do hero p/ a listagem: topo da frost-zone dissolve no fundo claro */
  .frost-zone { background-image:
      linear-gradient(to bottom, var(--bg) 0, rgba(249,248,246,0) 160px),
      radial-gradient(circle at 16% 10%, rgba(200,169,121,0.09), transparent 38%),
      radial-gradient(circle at 86% 88%, rgba(200,169,121,0.06), transparent 42%),
      radial-gradient(rgba(17,17,17,0.045) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 100% 100%, 22px 22px;
  }

  /* Coração maior, com fundo escuro discreto = visível em qualquer foto e fácil de tocar */
  .btn-fav {
    width: 40px; height: 40px; top: 0.5rem; right: 0.5rem;
    background: rgba(0,0,0,0.32); border-radius: 50%;
  }
  .btn-fav svg { width: 19px; height: 19px; }

  /* 5) Sombras mais leves (sombra com blur grande repinta a cada quadro) */
  .card-foto { box-shadow: 0 10px 20px -14px rgba(0,0,0,0.4); }

  /* ═══════ ANIMAÇÕES LEVES (só transform/opacity = 60fps no celular) ═══════ */
  /* 1) Entrada do hero: título, subtítulo e filtros sobem com fade ao abrir (uma vez) */
  .hero-content h1 { animation: mHeroUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.05s both; }
  .hero-content p  { animation: mHeroUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.18s both; }
  .filters-card    { animation: mHeroUp 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.32s both; }

  /* 2) Tap feedback: o elemento "afunda" levemente ao tocar (sensação de app nativo) */
  .card-imovel, .sim-card, .bento-tile,
  .btn-buscar, .header-right .btn-whatsapp, .btn-mais,
  .gallery-arrow, .footer-top, .home-wa-direct {
    transition: transform 0.14s ease;
  }
  .card-imovel:active, .sim-card:active, .bento-tile:active { transform: scale(0.975); }
  .btn-buscar:active, .header-right .btn-whatsapp:active, .btn-mais:active,
  .gallery-arrow:active, .footer-top:active, .home-wa-direct:active { transform: scale(0.94); }

  /* 3) Stagger: os cards da fileira entram em sequência (não todos de uma vez) */
}

/* Keyframe da entrada do hero (transform + opacity = leve) */
@keyframes mHeroUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: none; }
}

/* ── Foto em tela cheia (lightbox da galeria do imóvel) ── */
.gallery-slide img { cursor: zoom-in; }
.lightbox {
  position: fixed; inset: 0; z-index: 3000; display: none;
  align-items: center; justify-content: center;
  background: rgba(0,0,0,0.93);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.lightbox.open { display: block; animation: lbIn 0.2s ease; }
@keyframes lbIn { from { opacity: 0; } to { opacity: 1; } }
.lb-track { display: flex; width: 100%; height: 100%; will-change: transform; }
.lb-slide { flex: 0 0 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.lb-slide img { max-width: 96vw; max-height: 90vh; object-fit: contain; border-radius: 8px; box-shadow: 0 24px 70px rgba(0,0,0,0.7); }
.lb-close, .lb-arrow {
  position: absolute; border: none; cursor: pointer; color: #fff;
  background: rgba(255,255,255,0.15); display: flex; align-items: center; justify-content: center;
  transition: background 0.2s ease;
}
.lb-close:hover, .lb-arrow:hover { background: rgba(255,255,255,0.3); }
.lb-close { top: 1rem; right: 1rem; width: 44px; height: 44px; border-radius: 50%; font-size: 1.4rem; }
.lb-arrow { top: 50%; transform: translateY(-50%); width: 50px; height: 50px; border-radius: 50%; font-size: 2rem; line-height: 1; }
.lb-prev { left: 1rem; } .lb-next { right: 1rem; }
.lb-count {
  position: absolute; bottom: 1.3rem; left: 50%; transform: translateX(-50%);
  color: #fff; font-size: 0.85rem; font-weight: 600;
  background: rgba(0,0,0,0.45); padding: 0.3rem 0.85rem; border-radius: 999px;
}
@media (max-width: 600px) {
  .lb-arrow { width: 42px; height: 42px; font-size: 1.6rem; }
  .lb-prev { left: 0.5rem; } .lb-next { right: 0.5rem; }
  .lb-slide img { max-width: 100vw; border-radius: 0; }
}

/* ── Mensagem de sucesso do formulário (lead salvo) ── */
.form-sucesso {
  text-align: center;
  padding: 30px 18px;
  color: #1f9d57;
  font-size: 1rem;
  line-height: 1.55;
}
.form-sucesso strong { display: inline-block; font-size: 1.15rem; margin-bottom: 4px; }

/* ── Player de vídeo (arquivo) na página do imóvel ── */
.imovel-video-player {
  width: 100%;
  border-radius: 22px;
  overflow: hidden;
  background: #000;
  aspect-ratio: 4 / 5;
  max-height: 78vh;
  box-shadow: 0 18px 50px rgba(0,0,0,0.18);
}
.imovel-video-player video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── Sem zoom automático no celular ──
   iOS/Android dão zoom sozinhos ao focar campos com fonte menor que 16px. */
@media (max-width: 820px) {
  input, select, textarea { font-size: 16px !important; }
}
