/* =================================================================
   LOPES — Redesign de conceito  •  Agência Lume
   Sistema visual fiel à marca: vermelho #EB194B + Be Vietnam Pro
   ================================================================= */

:root {
  /* Marca */
  --red:        #EB194B;
  --red-dark:   #C8123F;
  --red-soft:   #FDE7EE;
  --red-glow:   rgba(235, 25, 75, .35);

  /* Tinta / neutros */
  --ink:        #1A1A1F;
  --ink-2:      #2A2A2A;
  --gray:       #6F6F6F;
  --gray-2:     #9A9AA0;
  --line:       #ECECEF;
  --line-2:     #E2E2E6;

  /* Fundos */
  --bg:         #FFFFFF;
  --bg-soft:    #F7F8FA;
  --bg-soft-2:  #F0F3F5;

  /* Acentos */
  --green:      #00866E;
  --green-soft: #E2F3EF;
  --amber:      #F6A609;
  --amber-soft: #FEF1D8;

  /* Geometria */
  --r-sm: 12px;
  --r:    18px;
  --r-lg: 26px;
  --pill: 999px;

  /* Sombras */
  --sh-xs: 0 1px 2px rgba(20,20,30,.05);
  --sh-sm: 0 4px 14px rgba(20,20,30,.06);
  --sh-md: 0 14px 40px rgba(20,20,30,.10);
  --sh-lg: 0 28px 70px rgba(20,20,30,.16);
  --sh-red: 0 14px 30px rgba(235,25,75,.30);

  --ease: cubic-bezier(.22,.61,.36,1);
  --maxw: 1240px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: rgba(235,25,75,.14); }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body {
  font-family: "Be Vietnam Pro", -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select { font-family: inherit; font-size: inherit; color: inherit; }
ul { list-style: none; }

::selection { background: var(--red); color: #fff; }

/* Scrollbar discreta */
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-thumb { background: #d6d6db; border-radius: 99px; border: 3px solid #fff; }
::-webkit-scrollbar-thumb:hover { background: #bdbdc4; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }

/* ---------- Tipografia ---------- */
h1, h2, h3, h4 { font-weight: 700; line-height: 1.1; letter-spacing: -.02em; color: var(--ink); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--red);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--red); border-radius: 9px; }
.section-title { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
.lead { color: var(--gray); font-size: 1.06rem; max-width: 56ch; }
.text-red { color: var(--red); }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 50px; padding: 0 26px;
  border-radius: var(--pill);
  font-weight: 600; font-size: .96rem;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--red); color: #fff; box-shadow: var(--sh-red); }
.btn-primary:hover { background: var(--red-dark); transform: translateY(-2px); box-shadow: 0 18px 38px rgba(235,25,75,.40); }
.btn-ghost { background: #fff; color: var(--ink); border: 1.5px solid var(--line-2); }
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; transform: translateY(-2px); }
.btn-wa { background: #1FAF54; color: #fff; box-shadow: 0 12px 26px rgba(31,175,84,.30); }
.btn-wa:hover { background: #189447; transform: translateY(-2px); }
.btn-sm { height: 42px; padding: 0 20px; font-size: .9rem; }
.btn-lg { height: 56px; padding: 0 32px; font-size: 1.02rem; }
.btn-block { width: 100%; }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 9px; }
.logo svg { height: 30px; width: auto; }
.logo .heart { color: var(--red); }

/* =================================================================
   HEADER
   ================================================================= */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 28px; height: 76px; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.nav a {
  position: relative; padding: 10px 14px; border-radius: 10px;
  font-size: .94rem; font-weight: 500; color: var(--ink-2);
  transition: color .2s, background .2s;
}
.nav a:hover { color: var(--red); background: var(--red-soft); }
.nav a.active { color: var(--red); }
.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.icon-btn {
  width: 46px; height: 46px; border-radius: var(--pill);
  display: inline-grid; place-items: center;
  border: 1.5px solid var(--line-2); color: var(--ink-2);
  transition: all .2s var(--ease); position: relative;
}
.icon-btn:hover { border-color: var(--red); color: var(--red); }
.icon-btn .badge {
  position: absolute; top: -4px; right: -4px;
  min-width: 19px; height: 19px; padding: 0 5px;
  background: var(--red); color: #fff; font-size: .68rem; font-weight: 700;
  border-radius: 99px; display: grid; place-items: center; border: 2px solid #fff;
}
.burger { display: none; }

/* =================================================================
   HERO + BUSCA
   ================================================================= */
.hero { position: relative; padding: 56px 0 0; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 100% 0%, var(--red-soft) 0%, transparent 55%),
    radial-gradient(90% 80% at 0% 10%, #F4F6F9 0%, transparent 60%);
  z-index: -1;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero-copy { padding-bottom: 40px; }
.badge-90 {
  display: inline-flex; align-items: center; gap: 10px;
  background: #fff; border: 1px solid var(--line-2); border-radius: var(--pill);
  padding: 7px 7px 7px 16px; font-size: .82rem; font-weight: 600; color: var(--ink-2);
  box-shadow: var(--sh-sm); margin-bottom: 22px;
}
.badge-90 b { color: var(--red); }
.badge-90 .dot { width: 30px; height: 30px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: .72rem; }
.hero h1 { font-size: clamp(2.3rem, 5vw, 3.7rem); letter-spacing: -.035em; }
.hero h1 .accent { color: var(--red); position: relative; white-space: nowrap; }
.hero h1 .accent::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 12px;
  background: var(--red-soft); z-index: -1; border-radius: 6px;
}
.hero p.lead { margin-top: 20px; font-size: 1.14rem; }

.hero-stats { display: flex; gap: 34px; margin-top: 34px; }
.hero-stats .stat strong { display: block; font-size: 1.9rem; font-weight: 800; letter-spacing: -.03em; color: var(--ink); }
.hero-stats .stat span { font-size: .84rem; color: var(--gray); }

/* Visual do hero */
.hero-visual { position: relative; align-self: stretch; min-height: 480px; }
.hero-photo {
  position: absolute; inset: 0; border-radius: 30px; overflow: hidden;
  box-shadow: var(--sh-lg);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-float {
  position: absolute; background: rgba(255,255,255,.92); backdrop-filter: blur(8px);
  border-radius: var(--r); box-shadow: var(--sh-md); padding: 14px 16px;
  display: flex; align-items: center; gap: 12px;
  animation: floaty 5s ease-in-out infinite;
}
.hero-float .ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--red-soft); color: var(--red); }
.hero-float small { color: var(--gray); font-size: .74rem; display: block; }
.hero-float b { font-size: .98rem; }
.hero-float.f1 { top: 28px; left: -26px; }
.hero-float.f2 { bottom: 96px; right: -22px; animation-delay: -2.5s; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* Caixa de busca */
.searchbar {
  background: #fff; border-radius: var(--r-lg);
  box-shadow: var(--sh-lg); border: 1px solid var(--line);
  padding: 10px; margin-top: -44px; position: relative; z-index: 5;
}
.search-tabs { display: flex; gap: 6px; padding: 6px 6px 12px; }
.search-tab {
  padding: 9px 20px; border-radius: var(--pill); font-weight: 600; font-size: .92rem;
  color: var(--gray); transition: all .2s;
}
.search-tab.active { background: var(--ink); color: #fff; }
.search-fields { display: grid; grid-template-columns: 2fr 1.2fr 1.2fr auto; gap: 6px; align-items: stretch; }
.sfield {
  display: flex; flex-direction: column; gap: 2px; justify-content: center;
  padding: 10px 18px; border-radius: var(--r-sm); transition: background .2s;
  position: relative; min-width: 0;
}
.sfield + .sfield::before { content: ""; position: absolute; left: 0; top: 16px; bottom: 16px; width: 1px; background: var(--line-2); }
.sfield:hover { background: var(--bg-soft); }
.sfield label { font-size: .72rem; font-weight: 600; color: var(--gray); text-transform: uppercase; letter-spacing: .05em; }
.sfield input, .sfield select {
  border: none; background: transparent; font-size: .98rem; font-weight: 500; outline: none;
  width: 100%; padding: 2px 0; cursor: pointer; appearance: none;
}
.sfield input::placeholder { color: var(--gray-2); font-weight: 400; }
.search-go {
  width: 58px; border-radius: var(--r-sm); background: var(--red); color: #fff;
  display: grid; place-items: center; transition: background .2s, transform .2s;
}
.search-go:hover { background: var(--red-dark); }
.search-go svg { width: 22px; height: 22px; }
.search-chips { display: flex; gap: 8px; padding: 14px 8px 6px; flex-wrap: wrap; align-items: center; }
.search-chips .ch-label { font-size: .82rem; color: var(--gray); margin-right: 2px; }
.chip {
  padding: 7px 15px; border-radius: var(--pill); border: 1.5px solid var(--line-2);
  font-size: .85rem; font-weight: 500; color: var(--ink-2); transition: all .2s; background: #fff;
}
.chip:hover, .chip.active { border-color: var(--red); color: var(--red); background: var(--red-soft); }
.chip.map { margin-left: auto; border-color: var(--ink); color: var(--ink); }
.chip.map:hover { background: var(--ink); color: #fff; }

/* =================================================================
   SECTIONS genéricas
   ================================================================= */
section { position: relative; }
.section { padding: 84px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; }
.section-head .lead { margin-top: 12px; }
.link-arrow { display: inline-flex; align-items: center; gap: 7px; color: var(--red); font-weight: 600; font-size: .94rem; transition: gap .2s; white-space: nowrap; }
.link-arrow:hover { gap: 12px; }

/* Faixa de confiança */
.trust { background: var(--ink); color: #fff; }
.trust-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }
.trust-item { padding: 8px 0; }
.trust-item strong { display: block; font-size: clamp(2rem,4vw,2.9rem); font-weight: 800; letter-spacing: -.04em; }
.trust-item strong em { font-style: normal; color: var(--red); }
.trust-item span { color: #B9B9C2; font-size: .92rem; }
.trust-item + .trust-item { border-left: 1px solid rgba(255,255,255,.12); padding-left: 24px; }

/* =================================================================
   CARD DE IMÓVEL  (premium)
   ================================================================= */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.pcard {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
  display: flex; flex-direction: column;
}
.pcard:hover { transform: translateY(-7px); box-shadow: var(--sh-md); border-color: transparent; }
.pcard-media { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.pcard-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.pcard:hover .pcard-media img { transform: scale(1.07); }
.pcard-tags { position: absolute; top: 14px; left: 14px; display: flex; gap: 7px; }
.tag {
  padding: 6px 12px; border-radius: var(--pill); font-size: .73rem; font-weight: 700;
  letter-spacing: .02em; backdrop-filter: blur(6px); text-transform: uppercase;
}
.tag-new { background: var(--red); color: #fff; }
.tag-excl { background: rgba(0,0,0,.72); color: #fff; }
.tag-green { background: var(--green); color: #fff; }
.fav {
  position: absolute; top: 12px; right: 12px; width: 42px; height: 42px;
  border-radius: 50%; background: rgba(255,255,255,.92); backdrop-filter: blur(6px);
  display: grid; place-items: center; color: var(--ink-2); transition: all .25s var(--ease);
  box-shadow: var(--sh-xs);
}
.fav:hover { color: var(--red); transform: scale(1.1); }
.fav.on { color: #fff; background: var(--red); }
.fav.on svg { fill: #fff; }
.fav svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; }
.pcard-media .ribbon {
  position: absolute; bottom: 0; left: 0; right: 0; padding: 26px 16px 12px;
  background: linear-gradient(transparent, rgba(0,0,0,.55)); color: #fff;
  font-size: .82rem; font-weight: 500; display: flex; align-items: center; gap: 6px;
}
.pcard-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.pcard-price { display: flex; align-items: baseline; gap: 8px; }
.pcard-price b { font-size: 1.42rem; font-weight: 800; letter-spacing: -.03em; }
.pcard-price .per { color: var(--gray); font-size: .82rem; font-weight: 500; }
.pcard-title { font-size: 1.06rem; font-weight: 600; line-height: 1.3; }
.pcard-loc { display: flex; align-items: center; gap: 6px; color: var(--gray); font-size: .9rem; }
.pcard-loc svg { width: 15px; height: 15px; flex: none; color: var(--red); }
.pcard-specs { display: flex; gap: 16px; padding-top: 14px; border-top: 1px solid var(--line); margin-top: auto; }
.spec { display: flex; align-items: center; gap: 7px; font-size: .88rem; color: var(--ink-2); font-weight: 500; }
.spec svg { width: 18px; height: 18px; color: var(--gray); }

/* =================================================================
   "POR QUE LOPES" — blocos de valor
   ================================================================= */
.why { background: var(--bg-soft); }
.why-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 22px; }
.vcard {
  background: #fff; border-radius: var(--r-lg); padding: 30px 26px; border: 1px solid var(--line);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.vcard:hover { transform: translateY(-5px); box-shadow: var(--sh-sm); }
.vcard .vic {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center;
  background: var(--red-soft); color: var(--red); margin-bottom: 20px;
}
.vcard .vic svg { width: 27px; height: 27px; }
.vcard h3 { font-size: 1.14rem; margin-bottom: 8px; }
.vcard p { color: var(--gray); font-size: .94rem; }

/* =================================================================
   SIMULADOR de financiamento
   ================================================================= */
.simu { background: linear-gradient(135deg, var(--red) 0%, #B30E37 100%); color: #fff; border-radius: var(--r-lg); overflow: hidden; position: relative; }
.simu::before { content: ""; position: absolute; inset: 0; background: radial-gradient(70% 120% at 100% 0%, rgba(255,255,255,.16), transparent 60%); }
.simu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; padding: 54px; align-items: center; position: relative; }
.simu h2 { color: #fff; font-size: clamp(1.7rem,3vw,2.3rem); }
.simu p { color: rgba(255,255,255,.86); margin-top: 12px; font-size: 1.02rem; }
.simu-panel { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); border-radius: var(--r); padding: 30px; backdrop-filter: blur(6px); }
.simu-row { margin-bottom: 22px; }
.simu-row .rlabel { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.simu-row .rlabel span { font-size: .9rem; color: rgba(255,255,255,.85); }
.simu-row .rlabel b { font-size: 1.2rem; font-weight: 800; }
input[type=range] { -webkit-appearance: none; width: 100%; height: 6px; border-radius: 99px; background: rgba(255,255,255,.28); outline: none; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: #fff; cursor: pointer; box-shadow: 0 3px 10px rgba(0,0,0,.3); border: 4px solid var(--red); }
input[type=range]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff; cursor: pointer; border: 4px solid var(--red); }
.simu-result { text-align: center; padding: 22px; background: #fff; color: var(--ink); border-radius: var(--r-sm); margin-top: 6px; }
.simu-result span { font-size: .82rem; color: var(--gray); display: block; }
.simu-result strong { font-size: 2.2rem; font-weight: 800; letter-spacing: -.03em; color: var(--red); display: block; line-height: 1.2; }
.simu-result small { color: var(--gray); font-size: .78rem; }

/* =================================================================
   CTA LEAD
   ================================================================= */
.leadcta { background: var(--ink); color: #fff; border-radius: var(--r-lg); overflow: hidden; position: relative; }
.leadcta-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; }
.leadcta-copy { padding: 54px; }
.leadcta-copy h2 { color: #fff; font-size: clamp(1.8rem,3vw,2.5rem); }
.leadcta-copy p { color: #B9B9C2; margin-top: 14px; font-size: 1.04rem; }
.lead-form { display: grid; gap: 12px; margin-top: 28px; max-width: 420px; }
.lead-form .frow { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.lead-form input {
  height: 52px; border-radius: var(--r-sm); border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.06); color: #fff; padding: 0 18px; font-size: .96rem;
}
.lead-form input::placeholder { color: #8C8C96; }
.lead-form input:focus { outline: none; border-color: var(--red); background: rgba(255,255,255,.1); }
.leadcta-photo { position: relative; min-height: 460px; height: 100%; }
.leadcta-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lead-note { font-size: .82rem; color: #8C8C96; margin-top: 4px; }

/* =================================================================
   CONTEÚDO / GUIA
   ================================================================= */
.guide-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.gcard { border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); transition: transform .3s var(--ease), box-shadow .3s; background: #fff; }
.gcard:hover { transform: translateY(-5px); box-shadow: var(--sh-sm); }
.gcard-media { aspect-ratio: 16/10; overflow: hidden; }
.gcard-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gcard:hover .gcard-media img { transform: scale(1.06); }
.gcard-body { padding: 20px 22px 24px; }
.gcard .cat { font-size: .76rem; font-weight: 700; color: var(--red); text-transform: uppercase; letter-spacing: .06em; }
.gcard h3 { font-size: 1.1rem; margin: 8px 0 0; line-height: 1.3; }
.gcard .meta { color: var(--gray); font-size: .84rem; margin-top: 12px; }

/* =================================================================
   FOOTER
   ================================================================= */
.site-footer { background: #15151A; color: #C4C4CC; padding: 70px 0 30px; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 50px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-brand .logo svg { height: 32px; }
.footer-brand .logo { color: #fff; }
.footer-brand p { margin-top: 18px; font-size: .92rem; color: #8C8C96; max-width: 32ch; }
.footer-apps { display: flex; gap: 10px; margin-top: 22px; }
.app-badge { display: inline-flex; align-items: center; gap: 8px; border: 1px solid rgba(255,255,255,.18); border-radius: 12px; padding: 9px 14px; font-size: .82rem; color: #fff; transition: border-color .2s; }
.app-badge:hover { border-color: var(--red); }
.footer-col h4 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 18px; font-weight: 700; }
.footer-col a { display: block; padding: 6px 0; font-size: .92rem; color: #A0A0AA; transition: color .2s; }
.footer-col a:hover { color: var(--red); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 26px; flex-wrap: wrap; }
.footer-bottom p { font-size: .82rem; color: #75757F; }
.socials { display: flex; gap: 10px; }
.socials a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.15); display: grid; place-items: center; color: #C4C4CC; transition: all .2s; }
.socials a:hover { background: var(--red); border-color: var(--red); color: #fff; }
.socials svg { width: 18px; height: 18px; }

/* Selo Agência Lume (discreto, assinatura) */
.lume-sig { text-align: center; padding: 16px; font-size: .78rem; color: #5A5A64; background: #0F0F13; }
.lume-sig b { color: #8C8C96; }

/* =================================================================
   REVEAL on scroll
   ================================================================= */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* WhatsApp flutuante */
.wa-float {
  position: fixed; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); right: 20px; z-index: 90;
  width: 60px; height: 60px; border-radius: 50%; background: #1FAF54; color: #fff;
  display: grid; place-items: center; box-shadow: 0 12px 30px rgba(31,175,84,.45);
  transition: transform .25s var(--ease);
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; }
.wa-float::after {
  content: ""; position: absolute; inset: -6px; border-radius: 50%;
  border: 2px solid rgba(31,175,84,.5); animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse { 0% { transform: scale(.9); opacity: .8; } 100% { transform: scale(1.35); opacity: 0; } }

/* =================================================================
   PÁGINA DE BUSCA
   ================================================================= */
.search-page { padding-top: 24px; }
.filters-bar {
  position: sticky; top: 76px; z-index: 50; background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); padding: 16px 0;
}
.filters-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.filter-pill {
  display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px;
  border-radius: var(--pill); border: 1.5px solid var(--line-2); background: #fff;
  font-size: .9rem; font-weight: 500; color: var(--ink-2); transition: all .2s;
}
.filter-pill:hover { border-color: var(--ink); }
.filter-pill svg { width: 16px; height: 16px; color: var(--gray); }
.filter-pill.active { border-color: var(--red); color: var(--red); background: var(--red-soft); }
.filter-pill.active svg { color: var(--red); }
.filter-clear { color: var(--gray); font-size: .88rem; font-weight: 500; margin-left: 4px; }
.filter-clear:hover { color: var(--red); }

.results-layout { display: grid; grid-template-columns: 1.35fr 1fr; gap: 0; }
.results-list { padding: 28px 32px 60px 0; }
.results-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; flex-wrap: wrap; gap: 12px; }
.results-head h1 { font-size: 1.5rem; }
.results-head .count { color: var(--gray); font-size: .94rem; font-weight: 400; }
.sort-select { display: inline-flex; align-items: center; gap: 8px; border: 1.5px solid var(--line-2); border-radius: var(--pill); padding: 9px 16px; font-size: .9rem; font-weight: 500; }
.sort-select select { border: none; background: transparent; font-weight: 600; cursor: pointer; outline: none; }

.results-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }

/* Mapa */
.results-map { position: sticky; top: 141px; height: calc(100vh - 141px); }
.map-canvas {
  position: relative; height: 100%; border-radius: 0; overflow: hidden;
  background:
    linear-gradient(rgba(235,25,75,.025), rgba(235,25,75,.025)),
    repeating-linear-gradient(0deg, #EAEDF0 0, #EAEDF0 1px, transparent 1px, transparent 44px),
    repeating-linear-gradient(90deg, #EAEDF0 0, #EAEDF0 1px, transparent 1px, transparent 44px),
    #F2F4F7;
}
.map-canvas::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 30% 40%, rgba(0,134,110,.10), transparent 22%),
    radial-gradient(circle at 70% 65%, rgba(235,25,75,.06), transparent 26%);
}
/* "ruas" diagonais */
.map-canvas .road { position: absolute; background: #fff; opacity: .9; }
.map-canvas .road.r1 { height: 10px; width: 140%; top: 30%; left: -20%; transform: rotate(-12deg); }
.map-canvas .road.r2 { height: 7px; width: 140%; top: 62%; left: -20%; transform: rotate(8deg); }
.map-canvas .road.r3 { width: 9px; height: 130%; left: 44%; top: -15%; transform: rotate(6deg); }
.map-canvas .road.r4 { width: 6px; height: 130%; left: 74%; top: -15%; transform: rotate(-4deg); }
.map-pin {
  position: absolute; transform: translate(-50%,-100%);
  background: #fff; border: 1.5px solid var(--line-2); border-radius: var(--pill);
  padding: 7px 13px; font-size: .82rem; font-weight: 700; color: var(--ink);
  box-shadow: var(--sh-sm); cursor: pointer; transition: all .2s var(--ease); white-space: nowrap;
}
.map-pin::after { content: ""; position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%) rotate(45deg); width: 10px; height: 10px; background: #fff; border-right: 1.5px solid var(--line-2); border-bottom: 1.5px solid var(--line-2); }
.map-pin:hover, .map-pin.active { background: var(--red); color: #fff; border-color: var(--red); transform: translate(-50%,-100%) scale(1.08); z-index: 5; }
.map-pin:hover::after, .map-pin.active::after { background: var(--red); border-color: var(--red); }
.map-tag { position: absolute; top: 18px; left: 18px; background: #fff; border-radius: var(--pill); padding: 9px 16px; font-size: .86rem; font-weight: 600; box-shadow: var(--sh-sm); display: flex; align-items: center; gap: 8px; }
.map-tag svg { width: 16px; height: 16px; color: var(--red); }
.map-zoom { position: absolute; right: 18px; bottom: 18px; display: flex; flex-direction: column; background: #fff; border-radius: 12px; box-shadow: var(--sh-sm); overflow: hidden; }
.map-zoom button { width: 42px; height: 42px; display: grid; place-items: center; color: var(--ink); font-size: 1.3rem; }
.map-zoom button + button { border-top: 1px solid var(--line); }
.map-zoom button:hover { background: var(--bg-soft); color: var(--red); }

/* card horizontal compacto pra lista */
.pcard.compact .pcard-media { aspect-ratio: 16/11; }
.pcard.compact .pcard-price b { font-size: 1.25rem; }

/* =================================================================
   PÁGINA DO IMÓVEL
   ================================================================= */
.imovel-top { padding: 22px 0 0; }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: .86rem; color: var(--gray); margin-bottom: 18px; }
.breadcrumb a:hover { color: var(--red); }
.breadcrumb svg { width: 14px; height: 14px; }

.gallery { display: grid; grid-template-columns: 2fr 1fr; gap: 12px; border-radius: var(--r-lg); overflow: hidden; height: 460px; }
.gallery-main { position: relative; overflow: hidden; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-side { display: grid; grid-template-rows: 1fr 1fr; gap: 12px; }
.gallery-side .gs { position: relative; overflow: hidden; }
.gallery-side img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.gallery-side .gs:hover img { transform: scale(1.06); }
.gallery .more {
  position: absolute; inset: 0; background: rgba(20,20,30,.55); color: #fff;
  display: grid; place-items: center; font-weight: 600; cursor: pointer; backdrop-filter: blur(2px);
}
.gallery .badge-photos { position: absolute; bottom: 16px; left: 16px; background: rgba(0,0,0,.6); color: #fff; padding: 8px 14px; border-radius: var(--pill); font-size: .82rem; font-weight: 500; display: flex; gap: 7px; align-items: center; }

.imovel-grid { display: grid; grid-template-columns: 1fr 380px; gap: 50px; padding: 44px 0 80px; align-items: start; }
.imovel-main { min-width: 0; }
.imovel-tags { display: flex; gap: 8px; margin-bottom: 14px; }
.imovel-main h1 { font-size: clamp(1.6rem,3vw,2.2rem); }
.imovel-loc { display: flex; align-items: center; gap: 7px; color: var(--gray); margin-top: 10px; font-size: 1rem; }
.imovel-loc svg { width: 18px; height: 18px; color: var(--red); }

.specs-strip { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; margin: 30px 0; }
.specbox { background: var(--bg-soft); border-radius: var(--r); padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.specbox .ic { width: 40px; height: 40px; border-radius: 12px; background: #fff; display: grid; place-items: center; color: var(--red); box-shadow: var(--sh-xs); }
.specbox .ic svg { width: 21px; height: 21px; }
.specbox strong { font-size: 1.3rem; font-weight: 800; letter-spacing: -.02em; }
.specbox span { font-size: .84rem; color: var(--gray); }

.block { padding: 30px 0; border-top: 1px solid var(--line); }
.block h2 { font-size: 1.35rem; margin-bottom: 18px; }
.block p { color: var(--gray); line-height: 1.75; }
.amenities { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.amenity { display: flex; align-items: center; gap: 11px; font-size: .94rem; font-weight: 500; }
.amenity .ck { width: 30px; height: 30px; border-radius: 9px; background: var(--green-soft); color: var(--green); display: grid; place-items: center; flex: none; }
.amenity .ck svg { width: 16px; height: 16px; }

/* Sidebar sticky de conversão */
.imovel-aside { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 18px; }
.price-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-md); padding: 26px; }
.price-card .pc-label { font-size: .84rem; color: var(--gray); }
.price-card .pc-price { font-size: 2.1rem; font-weight: 800; letter-spacing: -.03em; margin: 2px 0 4px; }
.price-card .pc-cond { font-size: .86rem; color: var(--gray); padding-bottom: 18px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.price-card .pc-cta { display: grid; gap: 10px; }
.mini-simu { background: var(--bg-soft); border-radius: var(--r); padding: 16px 18px; margin-top: 18px; }
.mini-simu .ms-top { display: flex; justify-content: space-between; align-items: center; font-size: .86rem; color: var(--gray); margin-bottom: 8px; }
.mini-simu .ms-val { font-weight: 700; color: var(--ink); }
.mini-simu .ms-result { display: flex; justify-content: space-between; align-items: baseline; margin-top: 12px; }
.mini-simu .ms-result b { font-size: 1.3rem; font-weight: 800; color: var(--red); }
.mini-simu .ms-result span { font-size: .8rem; color: var(--gray); }

.broker-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; display: flex; gap: 14px; align-items: center; }
.broker-card img { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; }
.broker-card .bk-name { font-weight: 700; font-size: 1rem; }
.broker-card .bk-role { font-size: .84rem; color: var(--gray); }
.broker-card .bk-creci { font-size: .78rem; color: var(--green); font-weight: 600; margin-top: 2px; }

/* selo confiança no aside */
.trust-mini { display: flex; align-items: center; gap: 10px; font-size: .84rem; color: var(--gray); justify-content: center; padding-top: 4px; }
.trust-mini svg { width: 16px; height: 16px; color: var(--green); }

/* =================================================================
   RESPONSIVO
   ================================================================= */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero-visual { min-height: 360px; }
  .hero-float.f1 { left: 12px; } .hero-float.f2 { right: 12px; }
  .cards-grid, .guide-grid { grid-template-columns: repeat(2,1fr); }
  .why-grid { grid-template-columns: repeat(2,1fr); }
  .results-layout { grid-template-columns: 1fr; }
  .results-map { display: none; }
  .results-list { padding-right: 0; }
  .results-cards { grid-template-columns: 1fr 1fr; }
  .imovel-grid { grid-template-columns: 1fr; }
  .imovel-aside { position: static; }
  .simu-grid, .leadcta-grid { grid-template-columns: 1fr; }
  .leadcta-photo { min-height: 240px; }
  .gallery { grid-template-columns: 1fr; height: auto; }
  .gallery-side { grid-template-rows: none; grid-template-columns: 1fr 1fr; height: 160px; }
}
@media (max-width: 760px) {
  .wrap { padding-inline: 18px; }
  .nav, .header-actions .btn { display: none; }
  .burger { display: grid; }
  .search-fields { grid-template-columns: 1fr; }
  .sfield + .sfield::before { display: none; }
  .sfield { border-top: 1px solid var(--line); border-radius: 0; }
  .search-go { width: 100%; height: 52px; margin-top: 6px; }
  .hero-stats { gap: 20px; flex-wrap: wrap; }
  .trust-grid { grid-template-columns: 1fr 1fr; gap: 30px 20px; }
  .trust-item + .trust-item { border-left: none; padding-left: 0; }
  .cards-grid, .guide-grid, .why-grid, .results-cards { grid-template-columns: 1fr; }
  .specs-strip { grid-template-columns: 1fr 1fr; }
  .amenities { grid-template-columns: 1fr 1fr; }
  .simu-grid, .leadcta-copy { padding: 32px 24px; }
  .lead-form .frow { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 30px; }
  .gallery-side { display: none; }
  .badge-90 { font-size: .76rem; }
}

/* Header mobile menu */
.mobile-menu { display: none; }
.mobile-menu.open { display: block; position: fixed; inset: 76px 0 0; background: #fff; z-index: 99; padding: 24px; }
.mobile-menu a { display: block; padding: 16px 0; font-size: 1.2rem; font-weight: 600; border-bottom: 1px solid var(--line); }

/* =================================================================
   MOBILE — refinamentos de experiência (cliente abre no celular)
   ================================================================= */

/* Barra de ação fixa no rodapé (página do imóvel) */
.mobile-cta-bar { display: none; }
@media (max-width: 880px) {
  body.has-cta-bar { padding-bottom: 84px; }
  .mobile-cta-bar {
    display: flex; align-items: center; gap: 12px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 95;
    background: rgba(255,255,255,.96); backdrop-filter: blur(12px);
    border-top: 1px solid var(--line-2);
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -10px 30px rgba(20,20,30,.10);
  }
  .mobile-cta-bar .mc-price { flex: 1; min-width: 0; line-height: 1.1; }
  .mobile-cta-bar .mc-price small { display: block; font-size: .72rem; color: var(--gray); }
  .mobile-cta-bar .mc-price b { font-size: 1.18rem; font-weight: 800; letter-spacing: -.02em; }
  .mobile-cta-bar .btn { height: 48px; flex: none; }
  .mobile-cta-bar .btn-primary { padding: 0 20px; }
  .mobile-cta-bar .mc-wa { width: 48px; padding: 0; border-radius: 50%; }
  .mobile-cta-bar .mc-wa svg { width: 22px; height: 22px; }
  body.has-cta-bar .wa-float { display: none; } /* evita duplicar WhatsApp */
}

@media (max-width: 760px) {
  /* Header com mais respiro e ações maiores ao toque */
  .header-inner { height: 64px; gap: 14px; }
  .site-header { box-shadow: var(--sh-xs); }
  .logo svg { height: 26px; }
  .icon-btn { width: 44px; height: 44px; }
  .mobile-menu.open, .filters-bar { top: 64px; }
  .mobile-menu.open { inset: 64px 0 0; padding: 20px 22px calc(24px + env(safe-area-inset-bottom,0px)); }

  /* Hero: sem sobreposição apertada, tipografia calibrada */
  .hero { padding: 26px 0 0; }
  .hero h1 { font-size: clamp(2rem, 8vw, 2.6rem); }
  .hero p.lead { font-size: 1rem; }
  .hero-visual { min-height: 300px; margin-top: 4px; }
  .hero-photo { border-radius: 22px; }
  .hero-float { padding: 11px 13px; border-radius: 14px; }
  .hero-float .ic { width: 34px; height: 34px; }
  .hero-float b { font-size: .9rem; }
  .hero-float.f1 { top: 14px; left: 10px; }
  .hero-float.f2 { bottom: 18px; right: 10px; }
  .hero-stats { gap: 16px 26px; margin-top: 26px; }
  .hero-stats .stat strong { font-size: 1.5rem; }
  .badge-90 { margin-bottom: 18px; }

  /* Busca: caixa sem overlap negativo + campo de toque confortável */
  .searchbar { margin-top: 22px; border-radius: 22px; padding: 8px; }
  .search-tabs { padding: 4px 4px 10px; gap: 4px; overflow-x: auto; scrollbar-width: none; }
  .search-tabs::-webkit-scrollbar { display: none; }
  .search-tab { flex: 0 0 auto; }
  .sfield { padding: 12px 16px; }
  .sfield input, .sfield select { font-size: 1.02rem; } /* >=16px evita zoom no iOS */
  .search-chips { gap: 8px; padding: 12px 6px 6px; overflow-x: auto; scrollbar-width: none; flex-wrap: nowrap; }
  .search-chips::-webkit-scrollbar { display: none; }
  .search-chips .ch-label { display: none; }
  .chip { flex: 0 0 auto; }
  .chip.map { margin-left: 0; }

  /* Filtros da busca: faixa que rola na horizontal (não quebra em várias linhas) */
  .filters-bar { padding: 12px 0; }
  .filters-row {
    flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch;
    scrollbar-width: none; padding-inline: 18px; margin-inline: -18px;
    scroll-snap-type: x proximity;
  }
  .filters-row::-webkit-scrollbar { display: none; }
  .filter-pill, .filter-clear { flex: 0 0 auto; height: 42px; }

  /* Resultados: cabeçalho empilhado e legível */
  .results-list { padding-top: 20px; }
  .results-head h1 { font-size: 1.2rem; }
  .results-head .count { display: block; margin-top: 4px; }
  .sort-select { width: 100%; justify-content: space-between; }

  /* Seções e títulos */
  .section-head { flex-direction: column; align-items: flex-start; gap: 10px; margin-bottom: 28px; }
  .section-title { font-size: clamp(1.5rem, 6.5vw, 2rem); }
  .lead { font-size: 1rem; }

  /* Imóvel: galeria e blocos */
  .gallery { border-radius: 18px; }
  .badge-photos { bottom: 12px; left: 12px; }
  .imovel-top { padding-top: 16px; }
  .breadcrumb { font-size: .78rem; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
  .breadcrumb::-webkit-scrollbar { display: none; }
  .imovel-grid { gap: 28px; padding: 28px 0 40px; }
  .specbox { padding: 16px; }
  .specbox strong { font-size: 1.15rem; }
  .price-card { padding: 22px; }
  .price-card .pc-price { font-size: 1.8rem; }

  /* CTAs e formulários: largura total, toque confortável */
  .btn-lg { height: 54px; }
  .leadcta-copy { padding: 30px 22px; }
  .leadcta-copy h2 br { display: none; }

  /* Simulador */
  .simu-grid { padding: 28px 22px; gap: 28px; }
  .simu-panel { padding: 22px; }
  input[type=range] { height: 26px; } /* área de toque maior no slider */
  input[type=range]::-webkit-slider-thumb { width: 26px; height: 26px; }

  /* Rodapé */
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* Celulares pequenos */
@media (max-width: 400px) {
  .wrap { padding-inline: 16px; }
  .hero h1 { font-size: 1.85rem; }
  .hero-float.f2 { display: none; } /* evita poluir telas estreitas */
  .hero-stats .stat strong { font-size: 1.35rem; }
  .trust-grid { gap: 24px 16px; }
  .pcard-price b { font-size: 1.3rem; }
  .mobile-cta-bar .btn-primary { padding: 0 16px; font-size: .92rem; }
}

/* Acessibilidade: respeita quem prefere menos movimento */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .08s !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .hero-float { animation: none; }
}
