/* =========================================================
   Aliança Web Imóveis · protótipo de redesign (Kapila)
   Referências: Zap Imóveis (1) e QuintoAndar (2)
   ========================================================= */

:root {
  --navy: #001746;
  --navy-2: #0c2e72;
  --navy-3: #1d4ba8;
  --red: #da2a22;
  --red-d: #b4231c;
  --sand: #f8f1e9;
  --sand-2: #f1e5d7;
  --ink: #151c2c;
  --text: #333a4a;
  --muted: #6a7184;
  --line: #e3e6ee;
  --soft: #f4f6fa;
  --white: #fff;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 10px 30px -12px rgba(0, 23, 70, .22);
  --shadow-lg: 0 24px 60px -20px rgba(0, 23, 70, .35);
  --header-h: 76px;
  --wrap: 1240px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4 { color: var(--ink); margin: 0; line-height: 1.15; letter-spacing: -.02em; }
p { margin: 0; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ico { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ico--fill { fill: currentColor; stroke: none; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 26px; border-radius: 999px;
  font-weight: 700; font-size: 16px; letter-spacing: -.005em;
  transition: background .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
  white-space: nowrap;
}
.btn:active { transform: scale(.98); }
.btn--primary { background: var(--navy); color: #fff; }
.btn--primary:hover { background: var(--navy-2); box-shadow: 0 10px 24px -10px rgba(0, 23, 70, .6); }
.btn--red { background: var(--red); color: #fff; }
.btn--red:hover { background: var(--red-d); }
.btn--ghost { border: 1.5px solid var(--navy); color: var(--navy); background: #fff; }
.btn--ghost:hover { background: var(--navy); color: #fff; }
.btn--light { background: #fff; color: var(--navy); }
.btn--light:hover { background: var(--sand); }
.btn--wa { background: #1fa855; color: #fff; }
.btn--wa:hover { background: #178a45; }
.btn--sm { height: 42px; padding: 0 18px; font-size: 15px; }
.btn--block { width: 100%; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s;
}
.header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 20px -16px rgba(0, 23, 70, .4); }
.header--sand { background: rgba(248, 241, 233, .96); }
.header--sand.is-scrolled { background: rgba(255, 255, 255, .97); }
.header__in { height: var(--header-h); display: flex; align-items: center; gap: 28px; }
.header__logo img { height: 50px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav__item { position: relative; }
.nav__link {
  display: inline-flex; align-items: center; gap: 6px;
  height: 44px; padding: 0 14px; border-radius: 999px;
  font-weight: 600; font-size: 15.5px; color: var(--ink);
  transition: background .2s, color .2s;
}
.nav__link .ico { width: 16px; height: 16px; transition: transform .2s; }
.nav__link:hover, .nav__item:focus-within .nav__link { background: rgba(0, 23, 70, .06); }
.nav__item:hover .nav__link .ico { transform: rotate(180deg); }
.nav__link.is-active { color: var(--navy-2); }
.dropdown {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 250px;
  background: #fff; border-radius: 16px; box-shadow: var(--shadow-lg); border: 1px solid var(--line);
  padding: 8px; opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .2s, transform .2s, visibility .2s;
}
.nav__item:hover .dropdown, .nav__item:focus-within .dropdown { opacity: 1; visibility: visible; transform: none; }
.dropdown a { display: block; padding: 10px 14px; border-radius: 10px; font-size: 15px; font-weight: 500; }
.dropdown a:hover { background: var(--soft); color: var(--navy); }
.dropdown small { display: block; color: var(--muted); font-size: 13px; font-weight: 400; }
.header__actions { display: flex; align-items: center; gap: 10px; }
.header__burger { display: none; width: 44px; height: 44px; border-radius: 12px; align-items: center; justify-content: center; color: var(--navy); margin-left: auto; }
.header__burger .ico { width: 26px; height: 26px; }

/* Menu mobile */
.mmenu {
  position: fixed; inset: 0; z-index: 90; background: #fff;
  display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .35s cubic-bezier(.2, .8, .2, 1);
  visibility: hidden;
}
.mmenu.is-open { transform: none; visibility: visible; }
.mmenu__top { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; padding: 0 16px; border-bottom: 1px solid var(--line); }
.mmenu__top img { height: 40px; }
.mmenu__close { width: 44px; height: 44px; display: grid; place-items: center; color: var(--navy); }
.mmenu__close .ico { width: 26px; height: 26px; }
.mmenu__body { flex: 1; overflow: auto; padding: 18px 16px 24px; }
.mmenu__body a { display: flex; align-items: center; justify-content: space-between; padding: 16px 4px; border-bottom: 1px solid var(--line); font-weight: 700; font-size: 19px; color: var(--ink); }
.mmenu__body a .ico { color: var(--muted); }
.mmenu__foot { padding: 16px; display: grid; gap: 10px; border-top: 1px solid var(--line); }

/* ---------- Hero / busca (Zap) ---------- */
.hero { background: var(--sand); position: relative; padding: 28px 0 0; border-bottom-right-radius: 140px; overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 44px; align-items: stretch; padding-bottom: 64px; }
.search-card {
  background: #fff; border-radius: 22px; box-shadow: var(--shadow-lg);
  padding: 40px 40px 36px; align-self: center; position: relative; z-index: 2;
}
.search-card h1 { font-size: clamp(30px, 3.2vw, 44px); font-weight: 800; letter-spacing: -.035em; }
.search-card h1 em { font-style: normal; color: var(--red); }
.search-card__sub { margin-top: 12px; color: var(--muted); font-size: 16.5px; }
.tabs { display: flex; border-bottom: 1.5px solid var(--line); margin: 26px 0 22px; }
.tabs__btn {
  flex: 1; height: 52px; font-weight: 700; font-size: 16.5px; color: var(--ink);
  position: relative; transition: color .2s;
}
.tabs__btn::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1.5px; height: 3px; border-radius: 3px;
  background: var(--red); transform: scaleX(0); transition: transform .3s cubic-bezier(.2, .8, .2, 1);
}
.tabs__btn.is-active { color: var(--navy-2); }
.tabs__btn.is-active::after { transform: scaleX(1); }
.field { display: grid; gap: 8px; margin-bottom: 18px; position: relative; }
.field > label, .field__label { font-weight: 600; font-size: 15px; color: var(--ink); }
.input {
  display: flex; align-items: center; gap: 10px;
  height: 56px; padding: 0 20px; border: 1.5px solid #cfd4de; border-radius: 999px; background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.input:focus-within { border-color: var(--navy-2); box-shadow: 0 0 0 4px rgba(12, 46, 114, .1); }
.input .ico { color: var(--navy-2); width: 22px; height: 22px; }
.input input, .input select {
  flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; font-size: 16px;
  -webkit-appearance: none; appearance: none;
}
.input input::placeholder { color: #8a90a0; }
.input--select { padding-right: 16px; }
.input--select select { cursor: pointer; color: var(--text); }
.input--select .ico:last-child { color: var(--ink); width: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.suggest {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 5;
  background: #fff; border-radius: 16px; border: 1px solid var(--line); box-shadow: var(--shadow-lg);
  padding: 6px; display: none;
}
.suggest.is-open { display: block; }
.suggest button { display: flex; width: 100%; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 10px; text-align: left; font-size: 15px; }
.suggest button:hover, .suggest button.is-hl { background: var(--soft); }
.suggest button .ico { color: var(--muted); width: 18px; }
.suggest small { margin-left: auto; color: var(--muted); font-size: 13px; }
.search-card .btn { margin-top: 6px; height: 58px; font-size: 17px; }
.search-card__foot { display: flex; align-items: center; gap: 8px; margin-top: 18px; color: var(--muted); font-size: 14px; }
.search-card__foot strong { color: var(--ink); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #1fa855; box-shadow: 0 0 0 4px rgba(31, 168, 85, .18); }

.hero__media { position: relative; border-radius: 28px; overflow: hidden; min-height: 520px; box-shadow: var(--shadow); }
.hero__media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); animation: heroZoom 14s ease-out forwards; }
@keyframes heroZoom { to { transform: scale(1); } }
.hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(0, 23, 70, .55)); }
.hero__tag {
  position: absolute; left: 22px; bottom: 22px; z-index: 2; color: #fff;
  display: flex; align-items: center; gap: 12px;
}
.hero__tag b { display: block; font-size: 19px; }
.hero__tag span { font-size: 14px; opacity: .9; }
.hero__pin { width: 44px; height: 44px; border-radius: 50%; background: var(--red); display: grid; place-items: center; }
.hero__float {
  position: absolute; right: 22px; top: 22px; z-index: 2;
  background: #fff; border-radius: 16px; padding: 14px 16px; box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 12px; max-width: 260px;
}
.hero__float img { width: 54px; height: 54px; border-radius: 10px; object-fit: cover; }
.hero__float b { display: block; color: var(--ink); font-size: 15px; }
.hero__float span { color: var(--muted); font-size: 13px; }

/* ---------- Seções ---------- */
.section { padding: 84px 0; }
.section--soft { background: var(--soft); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 34px; }
.section-head--center { flex-direction: column; align-items: center; text-align: center; }
.section-head h2 { font-size: clamp(26px, 2.6vw, 36px); font-weight: 800; }
.section-head p { color: var(--muted); margin-top: 8px; font-size: 16.5px; }
.bar { width: 64px; height: 4px; border-radius: 4px; background: var(--red); margin-top: 18px; }
.link-more { display: inline-flex; align-items: center; gap: 6px; color: var(--navy-2); font-weight: 700; white-space: nowrap; }
.link-more .ico { width: 18px; transition: transform .2s; }
.link-more:hover .ico { transform: translateX(4px); }

/* Estilos de vida */
.styles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.style-card { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 4.4; color: #fff; isolation: isolate; }
.style-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.style-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0, 23, 70, 0) 35%, rgba(0, 23, 70, .85)); }
.style-card:hover img { transform: scale(1.06); }
.style-card__txt { position: absolute; left: 20px; right: 20px; bottom: 20px; }
.style-card__txt b { display: block; font-size: 21px; letter-spacing: -.02em; }
.style-card__txt span { font-size: 14px; opacity: .9; display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; }
.style-card__txt .ico { width: 16px; }

/* ---------- Card de imóvel (Zap) ---------- */
.card { display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); }
.card__media { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 10.5; background: var(--soft); }
.card__track { display: flex; height: 100%; transition: transform .45s cubic-bezier(.2, .8, .2, 1); }
.card__track img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; }
.card__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 38px; height: 38px; border-radius: 50%; background: #fff; color: var(--ink);
  display: grid; place-items: center; box-shadow: 0 4px 14px rgba(0, 0, 0, .18);
  opacity: 0; transition: opacity .2s, transform .2s;
}
.card__nav .ico { width: 18px; }
.card__nav--prev { left: 12px; }
.card__nav--next { right: 12px; }
.card:hover .card__nav { opacity: 1; }
.card__nav:hover { transform: translateY(-50%) scale(1.08); }
.card__dots { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); display: flex; gap: 5px; }
.card__dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .55); transition: width .25s, background .25s; }
.card__dots i.is-on { width: 16px; border-radius: 4px; background: #fff; }
.badge {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  padding: 6px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 700;
  background: #fff; color: var(--navy);
}
.badge--red { background: var(--red); color: #fff; }
.card__body { padding: 16px 6px 4px; display: flex; flex-direction: column; flex: 1; }
.card__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.card__price { font-size: 25px; font-weight: 800; color: var(--ink); letter-spacing: -.03em; }
.card__price small { font-size: 15px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.card__fees { color: var(--muted); font-size: 14.5px; margin-top: 2px; }
.fav {
  width: 44px; height: 44px; border-radius: 50%; flex: none;
  border: 1.5px solid var(--red); color: var(--red); display: grid; place-items: center;
  transition: background .2s, color .2s, transform .2s;
}
.fav .ico { width: 20px; }
.fav:hover { transform: scale(1.06); }
.fav.is-on { background: var(--red); color: #fff; }
.fav.is-on .ico { fill: currentColor; }
.specs { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 14px 0; color: var(--ink); font-weight: 600; font-size: 15.5px; }
.specs span { display: inline-flex; align-items: center; gap: 7px; }
.specs .ico { width: 19px; height: 19px; color: var(--muted); }
.card__place { font-weight: 700; color: var(--ink); font-size: 16.5px; }
.card__addr { color: var(--muted); font-size: 14.5px; margin-top: 1px; }
.card__cta { margin-top: auto; padding-top: 16px; }
.card__cta .btn { width: 100%; height: 46px; }

/* Carrossel */
.carousel { position: relative; }
.carousel__viewport { overflow: hidden; margin: -10px; padding: 10px; }
.carousel__track { display: flex; gap: 24px; transition: transform .55s cubic-bezier(.2, .8, .2, 1); }
.carousel__track > .card { flex: 0 0 calc((100% - 72px) / 4); }
.carousel__ctrl { display: flex; justify-content: flex-end; gap: 12px; margin-top: 26px; }
.circle-btn {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  border: 1.5px solid var(--navy); color: var(--navy); background: #fff; transition: background .2s, color .2s, opacity .2s;
}
.circle-btn:hover { background: var(--navy); color: #fff; }
.circle-btn:disabled { border-color: var(--line); color: #b9bfcc; background: var(--soft); cursor: default; }
.circle-btn .ico { width: 22px; }

/* Bairros */
.hoods { display: flex; flex-wrap: wrap; gap: 12px; }
.hood {
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px 12px 14px;
  border: 1.5px solid var(--line); border-radius: 999px; background: #fff; font-weight: 600; color: var(--ink);
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.hood:hover { border-color: var(--navy-2); transform: translateY(-2px); box-shadow: var(--shadow); }
.hood i { width: 34px; height: 34px; border-radius: 50%; background: var(--sand); color: var(--red); display: grid; place-items: center; }
.hood i .ico { width: 18px; }
.hood small { color: var(--muted); font-weight: 500; }

/* Faixa números */
.trust { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.trust__img { position: relative; border-radius: 28px; overflow: hidden; aspect-ratio: 5 / 4; }
.trust__img img { width: 100%; height: 100%; object-fit: cover; }
.trust__badge { position: absolute; left: 20px; bottom: 20px; background: #fff; border-radius: 18px; padding: 16px 20px; box-shadow: var(--shadow); }
.trust__badge b { font-size: 34px; color: var(--navy); letter-spacing: -.04em; display: block; line-height: 1; }
.trust__badge span { font-size: 14px; color: var(--muted); }
.trust h2 { font-size: clamp(28px, 2.8vw, 40px); font-weight: 800; }
.trust p.lead { margin-top: 16px; font-size: 17.5px; color: var(--text); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 30px 0; }
.stat { background: var(--soft); border-radius: 16px; padding: 18px; }
.stat b { display: block; font-size: 30px; color: var(--navy); letter-spacing: -.04em; line-height: 1.05; }
.stat span { font-size: 14px; color: var(--muted); }
ul.clean.checks { display: grid; gap: 12px; margin: 0 0 30px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; }
.checks .ico { color: #fff; background: var(--red); border-radius: 50%; padding: 4px; width: 24px; height: 24px; stroke-width: 2.6; margin-top: 1px; }
ul.clean { list-style: none; margin: 0; padding: 0; }

/* Anuncie */
.announce {
  position: relative; overflow: hidden; border-radius: 30px;
  background: var(--navy); color: #fff; padding: 60px;
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center;
}
.announce::before {
  content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(218, 42, 34, .55), transparent 65%);
}
.announce h2 { color: #fff; font-size: clamp(28px, 3vw, 42px); font-weight: 800; position: relative; }
.announce p { margin-top: 14px; color: rgba(255, 255, 255, .82); font-size: 17px; position: relative; }
.announce__steps { position: relative; display: grid; gap: 12px; }
.step { display: flex; align-items: center; gap: 16px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); border-radius: 16px; padding: 16px 18px; }
.step b { width: 38px; height: 38px; border-radius: 50%; background: var(--red); display: grid; place-items: center; flex: none; }
.announce .btn { margin-top: 26px; position: relative; }

/* ---------- Footer ---------- */
.footer { background: #0a1124; color: #c9cfdc; padding: 72px 0 28px; margin-top: 0; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px; }
.footer__logo img { height: 52px; width: auto; }
.footer p { font-size: 15px; margin-top: 16px; max-width: 320px; }
.footer h4 { color: #fff; font-size: 15px; margin-bottom: 16px; letter-spacing: 0; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 15px; }
.footer a:hover { color: #fff; }
.footer__contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer__contact .ico { color: var(--red); margin-top: 2px; width: 18px; }
.socials { display: flex; gap: 10px; margin-top: 20px; }
.socials a { width: 42px; height: 42px; border-radius: 50%; background: rgba(255, 255, 255, .08); display: grid; place-items: center; transition: background .2s; }
.socials a:hover { background: var(--red); }
.footer__bottom { margin-top: 56px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .1); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 14px; color: #8e96aa; }
.footer__bottom a { color: #fff; font-weight: 600; }
.footer__bottom a:hover { color: var(--red); }

/* WhatsApp flutuante */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  width: 60px; height: 60px; border-radius: 50%; background: #1fa855; color: #fff;
  display: grid; place-items: center; box-shadow: 0 12px 30px -8px rgba(31, 168, 85, .7);
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.07); }
.wa-float .ico { width: 30px; height: 30px; }

/* ---------- Página de busca ---------- */
.results-hero { background: var(--sand); padding: 26px 0 30px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--muted); }
.crumbs a:hover { color: var(--navy-2); text-decoration: underline; }
.crumbs span[aria-hidden] { opacity: .5; }
.results-hero h1 { font-size: clamp(26px, 2.8vw, 38px); font-weight: 800; margin-top: 12px; }
.results-hero p { color: var(--muted); margin-top: 6px; }

.searchbar {
  margin-top: 22px; background: #fff; border-radius: 999px; box-shadow: var(--shadow);
  display: flex; align-items: center; padding: 8px; gap: 6px;
}
.seg { display: inline-flex; background: var(--soft); border-radius: 999px; padding: 4px; flex: none; }
.seg button { height: 44px; padding: 0 20px; border-radius: 999px; font-weight: 700; font-size: 15px; color: var(--muted); transition: background .2s, color .2s, box-shadow .2s; }
.seg button.is-active { background: #fff; color: var(--navy); box-shadow: 0 2px 8px rgba(0, 23, 70, .12); }
.searchbar__loc { flex: 1; display: flex; align-items: center; gap: 10px; padding: 0 16px; min-width: 0; position: relative; }
.searchbar__loc .ico { color: var(--navy-2); }
.searchbar__loc input { flex: 1; min-width: 0; border: 0; outline: 0; height: 48px; font-size: 16px; background: transparent; }
.searchbar .btn { height: 52px; }

.results { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 36px; padding: 36px 0 90px; align-items: start; }
.filters { position: sticky; top: calc(var(--header-h) + 20px); background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 22px; max-height: calc(100vh - var(--header-h) - 40px); overflow: auto; }
.filters__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.filters__head h3 { font-size: 19px; }
.filters__clear { color: var(--red); font-weight: 700; font-size: 14px; }
.fgroup { padding: 18px 0; border-bottom: 1px solid var(--line); }
.fgroup:last-of-type { border-bottom: 0; }
.fgroup h4 { font-size: 15px; margin-bottom: 12px; letter-spacing: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  height: 40px; min-width: 44px; padding: 0 14px; border-radius: 999px; border: 1.5px solid #cfd4de;
  font-weight: 600; font-size: 14.5px; color: var(--ink); background: #fff; transition: all .2s;
}
.chip:hover { border-color: var(--navy-2); }
.chip.is-on { background: var(--navy); border-color: var(--navy); color: #fff; }
.check { display: flex; align-items: center; gap: 10px; padding: 6px 0; cursor: pointer; font-size: 15px; }
.check input { position: absolute; opacity: 0; pointer-events: none; }
.check i { width: 22px; height: 22px; border-radius: 7px; border: 1.5px solid #c3c9d6; display: grid; place-items: center; transition: all .2s; flex: none; }
.check i .ico { width: 14px; height: 14px; stroke: #fff; stroke-width: 3; opacity: 0; }
.check input:checked + i { background: var(--navy); border-color: var(--navy); }
.check input:checked + i .ico { opacity: 1; }
.check input:focus-visible + i { box-shadow: 0 0 0 4px rgba(12, 46, 114, .15); }
.check small { margin-left: auto; color: var(--muted); }
.range { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.range label { display: grid; gap: 4px; font-size: 13px; color: var(--muted); }
.range input { height: 44px; border: 1.5px solid #cfd4de; border-radius: 12px; padding: 0 12px; font-size: 15px; outline: 0; width: 100%; }
.range input:focus { border-color: var(--navy-2); }
.filters__apply { display: none; }
.scrim { display: none; }

.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.toolbar__count { font-weight: 700; color: var(--ink); font-size: 17px; }
.toolbar__count span { color: var(--muted); font-weight: 500; }
.toolbar__right { display: flex; align-items: center; gap: 10px; }
.select-pill { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; border: 1.5px solid #cfd4de; border-radius: 999px; font-size: 15px; background: #fff; }
.select-pill select { border: 0; outline: 0; background: transparent; font-weight: 600; -webkit-appearance: none; appearance: none; padding-right: 4px; cursor: pointer; }
.select-pill .ico { width: 16px; }
.view-toggle { display: inline-flex; border: 1.5px solid #cfd4de; border-radius: 999px; padding: 3px; }
.view-toggle button { width: 40px; height: 36px; border-radius: 999px; display: grid; place-items: center; color: var(--muted); }
.view-toggle button.is-active { background: var(--navy); color: #fff; }
.view-toggle .ico { width: 18px; }
.btn-filters { display: none; }
.active-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.active-chips:empty { display: none; }
.achip { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 8px 0 14px; border-radius: 999px; background: var(--sand); color: var(--ink); font-weight: 600; font-size: 14px; }
.achip button { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; }
.achip button:hover { background: rgba(0, 0, 0, .08); }
.achip .ico { width: 14px; }

.grid-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px 24px; }
.grid-cards.is-list { grid-template-columns: 1fr; gap: 20px; }
.grid-cards.is-list .card { flex-direction: row; gap: 24px; border: 1px solid var(--line); padding: 14px; }
.grid-cards.is-list .card__media { flex: 0 0 42%; aspect-ratio: 16 / 11; }
.grid-cards.is-list .card__body { padding: 6px 6px 4px 0; }
.grid-cards.is-list .card__cta { display: flex; gap: 10px; }
.grid-cards.is-list .card__cta .btn { width: auto; flex: 1; max-width: 220px; }
.empty { text-align: center; padding: 60px 20px; border: 1.5px dashed var(--line); border-radius: 20px; grid-column: 1 / -1; }
.empty h3 { font-size: 21px; }
.empty p { color: var(--muted); margin: 8px 0 18px; }
.pager { display: flex; justify-content: center; gap: 8px; margin-top: 48px; }
.pager button { width: 46px; height: 46px; border-radius: 50%; font-weight: 700; border: 1.5px solid var(--line); background: #fff; }
.pager button.is-active { background: var(--navy); color: #fff; border-color: var(--navy); }
.pager button:disabled { opacity: .45; cursor: default; }
.pager .ico { width: 18px; margin: auto; }
.ad-slot {
  grid-column: 1 / -1; border-radius: 20px; background: linear-gradient(110deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #fff; padding: 28px 32px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.ad-slot b { font-size: 21px; display: block; letter-spacing: -.02em; }
.ad-slot span { opacity: .85; }

/* ---------- Página do imóvel ---------- */
.prop-top { padding: 22px 0 0; }
.gallery {
  display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 230px 230px; gap: 10px;
  border-radius: 24px; overflow: hidden; margin-top: 18px; position: relative;
}
.gallery button { position: relative; overflow: hidden; background: var(--soft); }
.gallery button:first-child { grid-row: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .8, .2, 1), filter .3s; }
.gallery button:hover img { transform: scale(1.04); filter: brightness(.92); }
.gallery .gallery__all {
  position: absolute; right: 18px; bottom: 18px; z-index: 2;
  display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px;
  border-radius: 999px; background: #fff; color: var(--ink); font-weight: 700; font-size: 15px; box-shadow: var(--shadow);
}
.gallery__all .ico { width: 18px; }

.prop { display: grid; grid-template-columns: minmax(0, 1fr) 390px; gap: 56px; padding: 36px 0 80px; align-items: start; }
.prop__head { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; }
.prop__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.tag { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px; background: var(--soft); color: var(--navy-2); font-weight: 700; font-size: 13px; }
.tag--red { background: #fde9e8; color: var(--red-d); }
.prop h1 { font-size: clamp(26px, 2.6vw, 36px); font-weight: 800; }
.prop__addr { display: flex; align-items: center; gap: 8px; color: var(--muted); margin-top: 10px; font-size: 16px; }
.prop__addr .ico { color: var(--red); }
.prop__acts { display: flex; gap: 8px; }
.icon-btn { width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; color: var(--ink); background: #fff; transition: border-color .2s, color .2s; }
.icon-btn:hover { border-color: var(--navy-2); color: var(--navy-2); }
.icon-btn.is-on { border-color: var(--red); color: var(--red); }
.icon-btn.is-on .ico { fill: currentColor; }
.icon-btn .ico { width: 20px; }
.keyspecs { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 12px; margin: 28px 0 8px; }
.keyspec { border: 1px solid var(--line); border-radius: 16px; padding: 16px; }
.keyspec .ico { color: var(--navy-2); width: 24px; height: 24px; }
.keyspec b { display: block; font-size: 20px; color: var(--ink); margin-top: 10px; letter-spacing: -.02em; }
.keyspec span { font-size: 14px; color: var(--muted); }
.block { padding: 34px 0; border-bottom: 1px solid var(--line); }
.block:last-child { border-bottom: 0; }
.block h2 { font-size: 23px; font-weight: 800; margin-bottom: 16px; }
.desc { white-space: pre-line; color: var(--text); font-size: 16.5px; line-height: 1.7; position: relative; max-height: 220px; overflow: hidden; transition: max-height .5s; }
.desc::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 80px; background: linear-gradient(transparent, #fff); transition: opacity .3s; }
.desc.is-open { max-height: 3000px; }
.desc.is-open::after { opacity: 0; }
.more-btn { margin-top: 14px; font-weight: 700; color: var(--navy-2); text-decoration: underline; text-underline-offset: 4px; }
.feat-group + .feat-group { margin-top: 22px; }
.feat-group h3 { font-size: 15px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 12px; }
.feats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 20px; }
.feats li { display: flex; align-items: center; gap: 10px; font-weight: 500; color: var(--ink); }
.feats .ico { color: var(--red); width: 18px; stroke-width: 2.4; }
.map { border-radius: 20px; overflow: hidden; aspect-ratio: 16 / 7; background: var(--soft); border: 1px solid var(--line); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-note { margin-top: 10px; color: var(--muted); font-size: 14px; }

.sim { background: var(--soft); border-radius: 20px; padding: 24px; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; align-items: end; }
.sim label { display: grid; gap: 6px; font-size: 14px; color: var(--muted); font-weight: 600; }
.sim input, .sim select { height: 48px; border-radius: 12px; border: 1.5px solid #cfd4de; padding: 0 14px; background: #fff; font-size: 16px; outline: 0; width: 100%; }
.sim input:focus, .sim select:focus { border-color: var(--navy-2); }
.sim__out { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 16px; background: #fff; border-radius: 14px; padding: 18px 20px; flex-wrap: wrap; }
.sim__out b { font-size: 28px; color: var(--navy); letter-spacing: -.03em; }
.sim__out span { color: var(--muted); font-size: 14px; }

.contact-card { position: sticky; top: calc(var(--header-h) + 20px); border: 1px solid var(--line); border-radius: 24px; padding: 26px; box-shadow: var(--shadow); background: #fff; }
.contact-card__label { color: var(--muted); font-size: 14px; font-weight: 600; }
.contact-card__price { font-size: 34px; font-weight: 800; color: var(--ink); letter-spacing: -.04em; line-height: 1.1; margin-top: 2px; }
.contact-card__price small { font-size: 16px; color: var(--muted); font-weight: 600; letter-spacing: 0; }
.fees { margin: 18px 0; display: grid; gap: 8px; font-size: 15px; }
.fees div { display: flex; justify-content: space-between; }
.fees span { color: var(--muted); }
.fees b { color: var(--ink); font-weight: 600; }
.fees .total { padding-top: 10px; border-top: 1px dashed var(--line); }
.fees .total b { font-weight: 800; }
.contact-card form { display: grid; gap: 10px; }
.contact-card input, .contact-card textarea {
  width: 100%; border: 1.5px solid #cfd4de; border-radius: 14px; padding: 13px 15px; font-size: 15.5px; outline: 0; resize: none;
  transition: border-color .2s;
}
.contact-card input:focus, .contact-card textarea:focus { border-color: var(--navy-2); }
.contact-card .btn { height: 52px; }
.contact-card__or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; margin: 6px 0; }
.contact-card__or::before, .contact-card__or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.contact-card__meta { margin-top: 14px; font-size: 13px; color: var(--muted); text-align: center; }
.visit { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 4px 0 10px; }
.visit button { border: 1.5px solid var(--line); border-radius: 14px; padding: 8px 4px; text-align: center; transition: all .2s; }
.visit button small { display: block; font-size: 12px; color: var(--muted); text-transform: uppercase; font-weight: 600; }
.visit button b { display: block; font-size: 19px; color: var(--ink); }
.visit button.is-on { border-color: var(--navy); background: var(--navy); }
.visit button.is-on small, .visit button.is-on b { color: #fff; }
.form-ok { display: none; text-align: center; padding: 10px 0; }
.form-ok.is-on { display: block; }
.form-ok .ico { width: 54px; height: 54px; color: #fff; background: #1fa855; border-radius: 50%; padding: 12px; stroke-width: 2.6; margin: 0 auto 12px; }
.form-ok b { font-size: 19px; color: var(--ink); display: block; }
.form-ok p { color: var(--muted); font-size: 15px; margin-top: 4px; }

.mbar { display: none; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(7, 12, 26, .96); display: none; flex-direction: column; }
.lightbox.is-open { display: flex; }
.lightbox__top { display: flex; align-items: center; justify-content: space-between; color: #fff; padding: 16px 20px; }
.lightbox__top button { color: #fff; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; }
.lightbox__top button:hover { background: rgba(255, 255, 255, .1); }
.lightbox__top .ico { width: 26px; height: 26px; }
.lightbox__stage { flex: 1; position: relative; display: grid; place-items: center; padding: 0 80px; min-height: 0; }
.lightbox__stage img { max-height: 100%; max-width: 100%; object-fit: contain; border-radius: 10px; }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 56px; height: 56px; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; display: grid; place-items: center; }
.lightbox__nav:hover { background: rgba(255, 255, 255, .22); }
.lightbox__nav--prev { left: 16px; }
.lightbox__nav--next { right: 16px; }
.lightbox__thumbs { display: flex; gap: 8px; padding: 16px 20px; overflow-x: auto; justify-content: center; }
.lightbox__thumbs button { flex: 0 0 84px; height: 60px; border-radius: 8px; overflow: hidden; opacity: .45; transition: opacity .2s; outline-offset: 2px; }
.lightbox__thumbs button.is-on { opacity: 1; outline: 2px solid #fff; }
.lightbox__thumbs img { width: 100%; height: 100%; object-fit: cover; }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 120; transform: translate(-50%, 20px);
  background: var(--ink); color: #fff; padding: 14px 22px; border-radius: 999px; font-weight: 600; font-size: 15px;
  opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s; box-shadow: var(--shadow-lg);
  max-width: calc(100% - 32px); text-align: center;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* Aparição suave */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s cubic-bezier(.2, .8, .2, 1), transform .8s cubic-bezier(.2, .8, .2, 1); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsivo ---------- */
@media (max-width: 1180px) {
  .carousel__track > .card { flex-basis: calc((100% - 48px) / 3); }
  .grid-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav__link { padding: 0 10px; }
  .header__actions .btn--ghost { display: none; }
}
@media (max-width: 1020px) {
  .nav, .header__actions { display: none; }
  .header__burger { display: flex; }
  .hero { border-bottom-right-radius: 80px; }
  .hero__grid { grid-template-columns: 1fr; gap: 24px; }
  .hero__media { min-height: 300px; order: -1; }
  .styles { grid-template-columns: repeat(2, 1fr); }
  .trust { grid-template-columns: 1fr; gap: 36px; }
  .announce { grid-template-columns: 1fr; padding: 40px 28px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .results { grid-template-columns: 1fr; }
  .filters {
    position: fixed; inset: auto 0 0 0; top: auto; z-index: 95; border-radius: 24px 24px 0 0; max-height: 86vh;
    transform: translateY(105%); transition: transform .4s cubic-bezier(.2, .8, .2, 1); padding-bottom: 96px; visibility: hidden;
  }
  .filters.is-open { transform: none; visibility: visible; }
  .filters__apply { display: block; position: fixed; left: 0; right: 0; bottom: 0; padding: 14px 16px; background: #fff; border-top: 1px solid var(--line); }
  .btn-filters { display: inline-flex; }
  .scrim { display: block; position: fixed; inset: 0; z-index: 94; background: rgba(7, 12, 26, .5); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
  .scrim.is-on { opacity: 1; visibility: visible; }
  .prop { grid-template-columns: 1fr; gap: 10px; padding-bottom: 120px; }
  .contact-card { position: static; }
  .mbar {
    display: flex; gap: 10px; align-items: center; position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
    background: #fff; border-top: 1px solid var(--line); padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  }
  .mbar__price { flex: 1; min-width: 0; }
  .mbar__price b { display: block; font-size: 19px; color: var(--ink); letter-spacing: -.02em; }
  .mbar__price span { font-size: 13px; color: var(--muted); }
  .mbar .btn { height: 48px; padding: 0 18px; }
  .prop-page .wa-float { display: none; }
}
@media (max-width: 760px) {
  :root { --header-h: 66px; }
  .header__logo img { height: 38px; }
  .hero { padding-top: 16px; border-bottom-right-radius: 56px; }
  .hero__grid { padding-bottom: 40px; }
  .hero__media { min-height: 230px; border-radius: 20px; }
  .hero__float { display: none; }
  .search-card { padding: 26px 20px 24px; border-radius: 20px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .section { padding: 60px 0; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .section-head--center { align-items: center; }
  .styles { gap: 12px; }
  .style-card { aspect-ratio: 4 / 5; }
  .style-card__txt { left: 14px; right: 14px; bottom: 14px; }
  .style-card__txt b { font-size: 17px; }
  .carousel__track { gap: 16px; }
  .carousel__track > .card { flex-basis: 84%; }
  .card__nav { opacity: 1; width: 34px; height: 34px; }
  .stats { grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
  .stat { padding: 14px 12px; }
  .stat b { font-size: 23px; }
  .stat span { font-size: 12.5px; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .searchbar { border-radius: 22px; flex-wrap: wrap; padding: 10px; }
  .seg { width: 100%; }
  .seg button { flex: 1; }
  .searchbar__loc { flex-basis: 100%; border: 1.5px solid var(--line); border-radius: 999px; }
  .searchbar .btn { width: 100%; }
  .grid-cards, .grid-cards.is-list { grid-template-columns: 1fr; }
  .grid-cards.is-list .card { flex-direction: column; border: 0; padding: 0; gap: 0; }
  .grid-cards.is-list .card__media { flex: none; width: 100%; }
  .view-toggle { display: none; }
  .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 240px 110px; border-radius: 18px; margin-inline: -16px; border-radius: 0; }
  .gallery button:first-child { grid-row: auto; grid-column: span 2; }
  .gallery button:nth-child(n+4) { display: none; }
  .prop__head { flex-direction: column; }
  .feats { grid-template-columns: 1fr 1fr; }
  .keyspecs { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .keyspec { padding: 12px; }
  .keyspec b { font-size: 17px; }
  .sim { grid-template-columns: 1fr; }
  .map { aspect-ratio: 4 / 3; }
  .lightbox__stage { padding: 0 8px; }
  .lightbox__nav { width: 44px; height: 44px; background: rgba(0, 0, 0, .4); }
  .lightbox__nav--prev { left: 6px; }
  .lightbox__nav--next { right: 6px; }
  .lightbox__thumbs { justify-content: flex-start; }
  .ad-slot { padding: 22px; }
  .wa-float { right: 16px; bottom: 16px; width: 54px; height: 54px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
