/* =========================================================
   Algayer Imóveis — estilos do site
   ========================================================= */

:root {
  --red: #d7141b;
  --red-600: #b51117;
  --red-700: #920e12;
  --red-50: #fdf1f1;
  --red-100: #f9cccf;

  --ink: #1d1d1d;
  --ink-2: #3d3d3d;
  --muted: #666666;
  --line: #e4e4e4;
  --line-2: #efefef;
  --paper: #f6f6f6;
  --surface: #ffffff;
  --sand: #ededed;

  --wa: #1fa855;
  --wa-600: #178a45;
  --ok: #1f7a4d;

  --font: "Red Hat Display", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: var(--font);

  --r-xs: 4px;
  --r-sm: 6px;
  --r: 8px;
  --r-lg: 10px;
  --r-xl: 12px;
  --pill: 6px;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .06);
  --shadow: 0 4px 14px -6px rgba(0, 0, 0, .14);
  --shadow-lg: 0 14px 36px -16px rgba(0, 0, 0, .24);

  --container: 1240px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
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 { margin: 0; line-height: 1.15; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--red) 55%, transparent); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--red-100); }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(56px, 8vw, 104px); }
.section-tight { padding-block: clamp(32px, 4.5vw, 56px); }

.icon { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-sm { width: 16px; height: 16px; }
.icon-lg { width: 24px; height: 24px; }
.icon-fill { fill: currentColor; stroke: none; }

/* ---------- Tipografia ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted);
}
.display {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.08;
}
.display em { font-style: normal; color: var(--red); }
.h-section { font-family: var(--font-display); font-weight: 700; font-size: clamp(26px, 2.8vw, 36px); line-height: 1.15; letter-spacing: -.02em; }
.h-section em { font-style: normal; color: inherit; }
.lead { font-size: clamp(17px, 1.6vw, 19px); color: var(--ink-2); line-height: 1.65; }
.muted { color: var(--muted); }

.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: clamp(28px, 4vw, 44px); flex-wrap: wrap; }
.section-head > div:first-child { display: grid; gap: 12px; max-width: 680px; }

/* ---------- Botões ---------- */
.btn {
  --bg: var(--ink); --fg: #fff; --bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px;
  border-radius: var(--pill); border: 1.5px solid var(--bd);
  background: var(--bg); color: var(--fg);
  font-weight: 600; font-size: 15.5px; line-height: 1.2; letter-spacing: 0;
  transition: transform .2s var(--ease), background-color .2s, border-color .2s, box-shadow .2s, color .2s;
  white-space: nowrap;
}
.btn:hover { transform: none; }
.btn:active { transform: translateY(0); }
.btn-red { --bg: var(--red); }
.btn-red:hover { --bg: var(--red-600); box-shadow: 0 10px 24px -10px rgba(215, 20, 27, .6); }
.btn-dark { --bg: var(--red); }
.btn-dark:hover { --bg: var(--red-600); box-shadow: 0 10px 24px -10px rgba(215, 20, 27, .6); }
.btn-wa { --bg: var(--wa); }
.btn-wa:hover { --bg: var(--wa-600); box-shadow: 0 10px 24px -10px rgba(31, 168, 85, .55); }
.btn-ghost { --bg: transparent; --fg: var(--ink); --bd: var(--line); }
.btn-ghost:hover { --bd: var(--ink); }
.btn-white { --bg: #fff; --fg: var(--ink); }
.btn-white:hover { --bg: var(--paper); }
.btn-outline-white { --bg: transparent; --fg: #fff; --bd: rgba(255,255,255,.4); }
.btn-outline-white:hover { --bd: #fff; }
.btn-lg { min-height: 56px; padding: 16px 28px; font-size: 16.5px; }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: 14px; }
.btn-block { width: 100%; }
.btn-icon { width: 44px; min-height: 44px; padding: 0; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ink); }
.link-arrow .icon { transition: transform .2s var(--ease); }
.link-arrow:hover { color: var(--red); }
.link-arrow:hover .icon { transform: translateX(4px); }

/* ---------- Topbar + Header ---------- */
.topbar { background: var(--ink); color: rgba(255,255,255,.86); font-size: 13.5px; }
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; }
.topbar-list { display: flex; align-items: center; gap: 22px; }
.topbar a { display: inline-flex; align-items: center; gap: 7px; transition: color .2s; }
.topbar a:hover { color: #fff; }
.topbar .icon { width: 15px; height: 15px; opacity: .95; }
.topbar-badge { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-weight: 600; }
.caixa-pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 4px; border-radius: var(--pill); background: rgba(255,255,255,.08); }
.caixa-pill b { display: inline-grid; place-items: center; height: 20px; padding: 0 7px; border-radius: var(--pill); background: #005ca9; color: #fff; font-size: 11px; letter-spacing: .04em; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s, background-color .25s;
}
.site-header.is-scrolled { border-color: var(--line); background: color-mix(in srgb, #fff 92%, transparent); box-shadow: 0 8px 30px -18px rgba(23,18,15,.25); }
.header-inner { display: flex; align-items: center; gap: 28px; height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.brand-marca { height: 48px; width: auto; }
.brand-nome { height: 22px; width: auto; }
.brand-text { display: grid; gap: 5px; line-height: 1; }
.brand-name { font-weight: 800; font-size: 21px; letter-spacing: .14em; color: var(--ink); }
.brand-sub { display: block; padding: 2px 0 1px; background: var(--red); color: #fff; font-size: 8px; font-weight: 700; letter-spacing: .62em; text-indent: .62em; text-align: center; border-radius: 2px; }

.main-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-link {
  position: relative; display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 14px; border-radius: var(--pill);
  font-weight: 600; font-size: 15px; color: var(--ink-2);
  transition: color .2s, background-color .2s;
}
.nav-link:hover, .nav-item:focus-within > .nav-link { color: var(--ink); background: var(--line-2); }
.nav-link.is-active { color: var(--red); }
.nav-link .icon { width: 14px; height: 14px; transition: transform .2s; }
.nav-item { position: relative; }
.nav-item:hover .nav-link .icon, .nav-item:focus-within .nav-link .icon { transform: rotate(180deg); }

.mega {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translate(-50%, 8px);
  width: 560px; padding: 14px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
  opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s var(--ease), visibility .2s;
}
.mega::before { content: ""; position: absolute; inset: -12px 0 auto; height: 12px; }
.nav-item:hover .mega, .nav-item:focus-within .mega { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.mega a { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: var(--r-sm); transition: background-color .2s; }
.mega a:hover { background: var(--paper); }
.mega-ico { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--red-50); color: var(--red); flex: none; }
.mega strong { display: block; font-size: 15px; }
.mega small { color: var(--muted); font-size: 13px; }
.mega-all { grid-column: 1 / -1; justify-content: space-between; background: var(--red); color: #fff; margin-top: 4px; }
.mega-all:hover { background: var(--red-600) !important; }

.header-actions { display: flex; align-items: center; gap: 10px; }
.fav-link { position: relative; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--line); background: #fff; transition: border-color .2s, color .2s; }
.fav-link:hover { border-color: var(--red); color: var(--red); }
.fav-count { position: absolute; top: -3px; right: -3px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--red); color: #fff; font-size: 11.5px; font-weight: 800; display: grid; place-items: center; border: 2px solid #fff; }
.fav-count[hidden] { display: none; }
.menu-btn { display: none; width: 46px; height: 46px; border-radius: 50%; background: var(--ink); color: #fff; place-items: center; }

/* Menu mobile */
.drawer { position: fixed; inset: 0; z-index: 100; visibility: hidden; }
.drawer.is-open { visibility: visible; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(23,18,15,.5); opacity: 0; transition: opacity .3s; }
.drawer.is-open .drawer-backdrop { opacity: 1; }
.drawer-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(420px, 100%);
  background: var(--paper); display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .35s var(--ease);
  overflow-y: auto;
}
.drawer.is-open .drawer-panel { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 16px var(--gutter); border-bottom: 1px solid var(--line); }
.drawer-close { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 1px solid var(--line); }
.drawer-body { padding: 20px var(--gutter) 32px; display: grid; gap: 24px; }
.drawer-title { font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.drawer-cats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.drawer-cats a { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: var(--r-sm); background: #fff; border: 1px solid var(--line); font-weight: 600; font-size: 14.5px; }
.drawer-cats a small { margin-left: auto; color: var(--muted); font-weight: 600; }
.drawer-cats .icon { color: var(--red); }
.drawer-links a { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--line); font-weight: 700; font-size: 18px; }
.drawer-contact { display: grid; gap: 10px; }

/* ---------- Topo (home): foto de ponta a ponta ---------- */
.logo-clara { display: none; }
body[data-page="home"] .site-header:not(.is-scrolled) { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
body[data-page="home"] .site-header:not(.is-scrolled) .logo-escura { display: none; }
body[data-page="home"] .site-header:not(.is-scrolled) .logo-clara { display: block; }
body[data-page="home"] .site-header:not(.is-scrolled) .brand-name { color: #fff; }
body[data-page="home"] .site-header:not(.is-scrolled) .main-nav .nav-link { color: rgba(255,255,255,.92); }
body[data-page="home"] .site-header:not(.is-scrolled) .main-nav .nav-link:hover,
body[data-page="home"] .site-header:not(.is-scrolled) .nav-item:focus-within > .nav-link { color: #fff; background: rgba(255,255,255,.14); }
body[data-page="home"] .site-header:not(.is-scrolled) .fav-link { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.38); color: #fff; }
body[data-page="home"] .site-header:not(.is-scrolled) .menu-btn { background: rgba(255,255,255,.16); box-shadow: inset 0 0 0 1px rgba(255,255,255,.32); }

.hero { position: relative; isolation: isolate; }
.hero-foto {
  --foco-celular: 25%;
  --hero-veu:
    linear-gradient(180deg, rgba(12,9,8,.62) 0%, rgba(12,9,8,0) 26%),
    linear-gradient(270deg, rgba(12,9,8,.9) 0%, rgba(12,9,8,.82) 40%, rgba(12,9,8,.5) 54%, rgba(12,9,8,0) 74%),
    linear-gradient(0deg, rgba(12,9,8,.66) 0%, rgba(12,9,8,0) 34%);
  display: grid;
  min-height: clamp(660px, max(calc(100svh - 40px), 56vw), 1000px);
  margin-top: calc(var(--header-h) * -1);
  padding: calc(var(--header-h) + clamp(28px, 4vw, 56px)) 0 0;
  margin-bottom: 150px;
  background: #231d18; color: #fff;
}
.hero-foto[data-lado="esquerda"] {
  --hero-veu:
    linear-gradient(180deg, rgba(12,9,8,.62) 0%, rgba(12,9,8,0) 26%),
    linear-gradient(90deg, rgba(12,9,8,.9) 0%, rgba(12,9,8,.82) 40%, rgba(12,9,8,.5) 54%, rgba(12,9,8,0) 74%),
    linear-gradient(0deg, rgba(12,9,8,.66) 0%, rgba(12,9,8,0) 34%);
}
.hero-foto[data-lado="centro"] {
  --hero-veu: linear-gradient(180deg, rgba(12,9,8,.72) 0%, rgba(12,9,8,.6) 30%, rgba(12,9,8,.6) 62%, rgba(12,9,8,.8) 100%);
}
.hero-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; background: #2a231d; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 100%; animation: heroZoom 16s ease-out both; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: var(--hero-veu); }
@media (min-width: 981px) {
  .hero-foto[data-lado="centro"] {
    --hero-veu:
      linear-gradient(180deg, rgba(12,9,8,.68) 0%, rgba(12,9,8,.44) 22%, rgba(12,9,8,.12) 38%, rgba(12,9,8,0) 50%),
      linear-gradient(0deg, rgba(12,9,8,.5) 0%, rgba(12,9,8,0) 26%);
    padding-top: calc(var(--header-h) + 28px);
  }
  .hero-foto[data-lado="centro"] .hero-copy { position: relative; align-self: stretch; justify-self: stretch; max-width: none; align-content: start; gap: 18px; }
  .hero-foto[data-lado="centro"] .hero-title br { display: none; }
  .hero-foto[data-lado="centro"] .hero-sub { max-width: 820px; }
  .hero-foto[data-lado="centro"] .hero-stats { display: none; }
  .hero-foto[data-lado="centro"] .hero-badge { position: absolute; right: 0; bottom: 0; }
}
@keyframes heroZoom { from { transform: scale(1.04); } to { transform: scale(1); } }

.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 620px); grid-template-rows: 1fr auto; column-gap: 48px; row-gap: clamp(28px, 4vw, 48px); }
.hero-copy { grid-column: 2; align-self: center; display: grid; gap: 20px; justify-items: start; min-width: 0; }
.hero-foto[data-lado="esquerda"] .hero-grid { grid-template-columns: minmax(0, 620px) minmax(0, 1fr); }
.hero-foto[data-lado="esquerda"] .hero-copy { grid-column: 1; }
.hero-foto[data-lado="centro"] .hero-grid { grid-template-columns: minmax(0, 1fr); }
.hero-foto[data-lado="centro"] .hero-copy { grid-column: 1; justify-self: center; justify-items: center; text-align: center; max-width: 860px; }
.hero-foto[data-lado="centro"] .hero-stats { justify-content: center; }
.hero-head { display: grid; gap: 16px; justify-items: inherit; }
.hero-foto .hero-copy, .hero-foto .hero-head { text-shadow: 0 1px 3px rgba(0,0,0,.55), 0 2px 22px rgba(0,0,0,.4); }
.hero-foto .eyebrow { color: #fff; font-size: 13px; font-weight: 700; }
.hero-foto .hero-title { font-size: clamp(36px, 4.4vw, 62px); color: #fff; }
.hero-foto .hero-title em { color: #ff3b42; }
.hero-foto .hero-sub { max-width: 540px; color: #fff; font-size: clamp(17px, 1.5vw, 19.5px); font-weight: 500; }
.hero-stats { display: flex; gap: clamp(20px, 3vw, 40px); flex-wrap: wrap; padding-top: 18px; border-top: 2px solid var(--red); }
.hero-stats div { display: grid; }
.hero-stats strong { font-family: var(--font-display); font-weight: 700; font-size: 30px; line-height: 1.1; letter-spacing: -.02em; }
.hero-stats span { font-size: 14px; color: rgba(255,255,255,.92); font-weight: 700; }
.hero-search { grid-column: 1 / -1; position: relative; z-index: 5; color: var(--ink); margin-bottom: -150px; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 8px 16px 8px 8px; border-radius: var(--r); text-align: left;
  background: rgba(12,9,8,.5); border: 1px solid rgba(255,255,255,.25); color: #fff; text-shadow: none;
  backdrop-filter: blur(12px) saturate(1.3); -webkit-backdrop-filter: blur(12px) saturate(1.3);
}
.hero-badge .caixa-logo { display: grid; place-items: center; width: 46px; height: 46px; border-radius: var(--r-sm); background: #005ca9; color: #fff; font-weight: 800; font-size: 11px; line-height: 1; text-align: center; letter-spacing: .03em; }
.hero-badge .caixa-logo span { color: #f7a51c; }
.hero-badge strong { display: block; font-size: 14.5px; line-height: 1.25; }
.hero-badge small { color: rgba(255,255,255,.9); font-size: 12.5px; }

/* ---------- Caixa de busca ---------- */
.search-box {
  position: relative; z-index: 5;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg); padding: 10px;
}
.search-tabs { display: flex; gap: 2px; padding: 4px 4px 10px; overflow-x: auto; scrollbar-width: none; }
.search-tabs::-webkit-scrollbar { display: none; }
.search-tab {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 13px; border-radius: var(--pill); font-size: 14px; font-weight: 700; color: var(--muted);
  white-space: nowrap; transition: background-color .2s, color .2s;
}
.search-tab .icon { width: 17px; height: 17px; }
.search-tab:hover { color: var(--ink); background: var(--paper); }
.search-tab.is-active { background: var(--red); color: #fff; }
.search-fields { display: grid; grid-template-columns: 1.4fr 1fr 1fr .9fr auto; gap: 6px; background: var(--paper); border-radius: var(--r); padding: 6px; }
.sf { position: relative; display: grid; gap: 1px; padding: 12px 18px; border-radius: var(--r-sm); background: #fff; min-width: 0; }
.sf label { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.sf select, .sf input {
  width: 100%; border: 0; outline: 0; background: transparent; padding: 2px 22px 2px 0;
  font-weight: 700; font-size: 15.5px; color: var(--ink);
  appearance: none; -webkit-appearance: none; text-overflow: ellipsis;
}
.sf select { cursor: pointer; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%236c655f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 4.5 6 8.5l4-4'/%3E%3C/svg%3E") no-repeat right 2px center; }
.sf:focus-within { box-shadow: inset 0 0 0 2px var(--ink); }
.search-submit { min-height: 100%; border-radius: var(--r-sm); padding-inline: 40px; font-size: 16px; }
.search-extra { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 8px 4px; font-size: 14px; flex-wrap: wrap; }
.search-code { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.search-code input { width: 130px; border: 1px solid var(--line); border-radius: var(--pill); padding: 7px 14px; font-size: 14px; font-weight: 600; background: var(--paper); }
.search-code input:focus { outline: 0; border-color: var(--ink); background: #fff; }
.search-code button { font-weight: 700; color: var(--ink); }
.search-code button:hover { color: var(--red); }

/* ---------- Categorias ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.cat-card {
  position: relative; display: grid; gap: 14px; padding: 22px 18px 20px;
  border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line);
  transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
  overflow: hidden;
}
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.cat-ico { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--red-50); color: var(--red); transition: background-color .3s, color .3s; }
.cat-ico .icon { width: 26px; height: 26px; stroke-width: 1.6; }
.cat-card:hover .cat-ico { background: var(--red); color: #fff; }
.cat-card strong { font-size: 16.5px; line-height: 1.25; }
.cat-card span { font-size: 14px; color: var(--muted); font-weight: 600; }
.cat-card .arrow { position: absolute; top: 20px; right: 18px; color: var(--line); transition: color .3s, transform .3s var(--ease); }
.cat-card:hover .arrow { color: var(--ink); transform: translate(2px, -2px); }

/* ---------- Card de imóvel ---------- */
.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr)); gap: clamp(16px, 2vw, 24px); }
.card {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--line);
  transition: transform .35s var(--ease), box-shadow .35s, border-color .35s;
}
.card:hover { box-shadow: var(--shadow); border-color: #d6d6d6; }
.card-media { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--sand); overflow: hidden; }
.card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .35s, transform .6s var(--ease); }
.card-media::after { content: ""; position: absolute; inset: auto 0 0; height: 40%; background: linear-gradient(transparent, rgba(0,0,0,.35)); pointer-events: none; }
.card-badges { position: absolute; top: 12px; left: 12px; z-index: 2; display: flex; gap: 6px; flex-wrap: wrap; }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: var(--pill); background: rgba(255,255,255,.95); color: var(--ink); font-size: 12px; font-weight: 700; letter-spacing: .01em; box-shadow: none; }
.badge-red { background: var(--red); color: #fff; }
.badge-dark { background: var(--ink); color: #fff; }
.badge-green { background: #e8f5ee; color: var(--ok); }
.badge-soft { background: var(--line-2); color: var(--ink-2); box-shadow: none; }
.card-count { position: absolute; right: 12px; bottom: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 5px; color: #fff; font-size: 12.5px; font-weight: 700; }
.card-count .icon { width: 15px; height: 15px; }
.card-nav { position: absolute; top: 50%; z-index: 3; width: 34px; height: 34px; margin-top: -17px; border-radius: 50%; background: rgba(255,255,255,.95); display: grid; place-items: center; opacity: 0; transition: opacity .25s, transform .2s; box-shadow: var(--shadow); }
.card-nav .icon { width: 16px; height: 16px; stroke-width: 2.4; }
.card-nav.prev { left: 10px; }
.card-nav.next { right: 10px; }
.card:hover .card-nav { opacity: 1; }
.card-nav:hover { transform: scale(1.08); }
.card-dots { position: absolute; left: 0; right: 0; bottom: 14px; z-index: 2; display: flex; justify-content: center; gap: 4px; opacity: 0; transition: opacity .25s; }
.card:hover .card-dots { opacity: 1; }
.card-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.55); }
.card-dots i.on { background: #fff; }

.fav-btn {
  position: absolute; top: 10px; right: 10px; z-index: 4;
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255,255,255,.95); color: var(--ink);
  box-shadow: var(--shadow-sm); transition: transform .2s var(--ease), color .2s;
}
.fav-btn:hover { transform: scale(1.08); color: var(--red); }
.fav-btn .icon { width: 19px; height: 19px; stroke-width: 2; }
.fav-btn.is-fav { color: var(--red); }
.fav-btn.is-fav .icon { fill: currentColor; }
.fav-btn.pop { animation: pop .4s var(--ease); }
@keyframes pop { 40% { transform: scale(1.25); } }

.card-body { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px 20px; flex: 1; }
.card-loc { display: flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--muted); font-weight: 600; }
.card-loc .icon { width: 15px; height: 15px; color: var(--red); }
.card-title { font-size: 17px; font-weight: 700; line-height: 1.35; letter-spacing: -.01em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; }
.card-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card-specs { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 14px; color: var(--ink-2); font-weight: 600; }
.card-specs li { display: inline-flex; align-items: center; gap: 6px; }
.card-specs .icon { width: 17px; height: 17px; color: var(--muted); }
.card-fin { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px 5px 8px; border-radius: var(--pill); background: #e8f5ee; color: var(--ok); font-size: 12.5px; font-weight: 800; border: 1px solid #c9e8d6; }
.card-fin .icon { width: 15px; height: 15px; }
.card-foot { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line-2); }
.card-price { display: grid; line-height: 1.15; }
.card-price small { font-size: 12px; color: var(--muted); font-weight: 600; }
.card-price strong { font-size: 21px; font-weight: 800; letter-spacing: -.02em; color: var(--red); }
.card-price .consult { font-size: 16px; color: var(--red); }
.card-price s { color: var(--muted); }
.card-price .promo { color: var(--red); }
.badge-promo { background: #f59e0b; color: #1c1300; }
.card-code { font-size: 12px; font-weight: 700; color: var(--muted); background: var(--paper); padding: 4px 8px; border-radius: 6px; letter-spacing: .03em; }

/* Carrossel horizontal */
.rail { position: relative; }
.rail-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 24px) / 4); gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 6px 2px 18px; margin: -6px -2px -18px; }
.rail-track::-webkit-scrollbar { display: none; }
.rail-track > * { scroll-snap-align: start; }
.rail-btns { display: flex; gap: 8px; }
.rail-btn { width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--line); background: #fff; display: grid; place-items: center; transition: border-color .2s, background-color .2s, color .2s; }
.rail-btn:hover:not(:disabled) { background: var(--red); border-color: var(--red); color: #fff; }
.rail-btn:disabled { opacity: .4; cursor: default; }

/* ---------- Galeria do escritório (A Algayer) ---------- */
.galeria-escritorio { display: grid; grid-template-columns: 1.3fr 1fr 1fr; grid-template-rows: repeat(2, clamp(170px, 18vw, 250px)); gap: 12px; }
.galeria-escritorio figure { margin: 0; border-radius: var(--r-lg); overflow: hidden; background: var(--sand); }
.galeria-escritorio img { width: 100%; height: 100%; object-fit: cover; }
.galeria-escritorio .g-a { grid-row: 1 / 3; }
.galeria-escritorio .g-a img { object-position: 40% 30%; }
.galeria-escritorio .g-d { grid-column: 2 / 4; }
@media (max-width: 720px) {
  .galeria-escritorio { grid-template-columns: 1fr 1fr; grid-template-rows: 230px 150px 190px; gap: 8px; }
  .galeria-escritorio .g-a { grid-column: 1 / -1; grid-row: auto; }
  .galeria-escritorio .g-d { grid-column: 1 / -1; }
}

/* ---------- Faixa financiamento (home) ---------- */
.finance-band { position: relative; border-radius: var(--r-xl); overflow: hidden; background: var(--ink); color: #fff; }
.finance-band::before { content: none; position: absolute; width: 640px; height: 640px; right: -180px; top: -260px; border-radius: 50%; background: radial-gradient(circle, rgba(215,20,27,.55), transparent 65%); }
.finance-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); padding: clamp(28px, 5vw, 64px); align-items: center; }
.finance-copy { display: grid; gap: 20px; min-width: 0; }
.finance-copy .btn { white-space: normal; text-align: center; }
.finance-copy .eyebrow { color: #ff9a9d; }
.finance-copy .h-section em { color: #ff8a8e; }
.finance-copy .lead { color: rgba(255,255,255,.75); }
.finance-list { display: grid; gap: 12px; }
.finance-list li { display: flex; gap: 12px; align-items: flex-start; color: rgba(255,255,255,.88); }
.finance-list .icon { color: #ff9a9d; margin-top: 3px; }

/* ---------- Simulador ---------- */
.sim { background: #fff; color: var(--ink); border-radius: var(--r-lg); padding: clamp(20px, 3vw, 30px); box-shadow: var(--shadow-lg); display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; min-width: 0; }
.sim .btn { white-space: normal; text-align: center; }
.sim-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.sim-head h3 { font-size: 19px; }
.sim-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.sim-row label { display: flex; justify-content: space-between; font-size: 14px; font-weight: 700; color: var(--ink-2); }
.sim-row label output { color: var(--ink); }
.money-input { display: flex; align-items: center; gap: 6px; border: 1.5px solid var(--line); border-radius: var(--r-sm); padding: 10px 14px; background: var(--paper); transition: border-color .2s, background-color .2s; }
.money-input:focus-within { border-color: var(--ink); background: #fff; }
.money-input span { color: var(--muted); font-weight: 700; }
.money-input input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-weight: 800; font-size: 18px; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 99px; background: linear-gradient(to right, var(--red) var(--p, 50%), var(--line) var(--p, 50%)); outline: none; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 2px solid var(--red); box-shadow: var(--shadow); cursor: grab; }
input[type="range"]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 2px solid var(--red); box-shadow: var(--shadow); cursor: grab; }
.seg { display: inline-flex; padding: 4px; border-radius: var(--pill); background: var(--line-2); gap: 2px; }
.seg button { padding: 7px 14px; border-radius: var(--pill); font-size: 13.5px; font-weight: 700; color: var(--muted); transition: background-color .2s, color .2s; }
.seg button.is-active { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.sim-result { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sim-result > div { padding: 14px 16px; border-radius: var(--r-sm); background: var(--paper); }
.sim-result small { display: block; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.sim-result strong { font-size: 19px; font-weight: 800; letter-spacing: -.01em; }
.sim-result .main { grid-column: 1 / -1; background: var(--red-50); }
.sim-result .main strong { font-size: 30px; color: var(--red); }
.sim-note { font-size: 12.5px; color: var(--muted); line-height: 1.5; }

/* ---------- Simulador Minha Casa Minha Vida ---------- */
.mcmv { background: #fff; color: var(--ink); border-radius: var(--r-lg); padding: clamp(20px, 3vw, 30px); box-shadow: var(--shadow-lg); min-width: 0; }
.mcmv-form, .mcmv-res { display: grid; gap: 14px; }
.mcmv-form[hidden], .mcmv-res[hidden] { display: none; }
.mcmv-head { display: grid; gap: 6px; margin-bottom: 2px; }
.mcmv-head h3 { font-size: 22px; letter-spacing: -.01em; }
.mcmv-head p { color: var(--muted); font-size: 14.5px; }
.mcmv-tag { justify-self: start; display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: var(--pill); background: var(--red-50); color: var(--red); font-size: 12.5px; font-weight: 800; letter-spacing: .02em; }
.mcmv .field label { font-size: 13.5px; }
.mcmv .money-input { padding: 9px 14px; }
.mcmv .money-input input { font-size: 16px; border: 0; background: transparent; padding: 2px 0; border-radius: 0; }
.mcmv .money-input input:focus { background: transparent; }
.finance-grid > * { min-width: 0; }
.mcmv-faixa { padding: 12px 14px; border-radius: var(--r-sm); background: #e8f5ee; color: #14532d; font-size: 14.5px; line-height: 1.45; }
.mcmv-faixa.fora { background: #fdf3dc; color: #6e4600; }
.mcmv-big { display: grid; padding: 16px 18px; border-radius: var(--r); background: var(--ink); color: #fff; }
.mcmv-big small { font-size: 13px; font-weight: 600; opacity: .75; }
.mcmv-big strong { font-size: clamp(30px, 4vw, 40px); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.mcmv .sim-result .main strong span { font-size: 15px; font-weight: 700; color: var(--muted); margin-left: 2px; }
.mcmv-alerta, .mcmv-ok { display: flex; gap: 8px; align-items: flex-start; padding: 11px 13px; border-radius: var(--r-sm); font-size: 14px; line-height: 1.45; }
.mcmv-alerta { background: #fdf3dc; color: #6e4600; }
.mcmv-ok { background: #e8f5ee; color: #14532d; }
.mcmv-alerta .icon, .mcmv-ok .icon { margin-top: 2px; }

/* Faixas do Minha Casa Minha Vida (página Financiamento) */
.faixas { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.faixa { display: grid; gap: 10px; align-content: start; padding: 22px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); }
.faixa h3 { font-family: var(--font-display); font-weight: 700; font-size: 22px; line-height: 1.15; letter-spacing: -.01em; }
.faixa .renda { font-size: 15px; font-weight: 700; }
.faixa dl { display: grid; gap: 6px; margin: 4px 0 0; font-size: 14px; }
.faixa dl div { display: flex; justify-content: space-between; gap: 10px; padding-top: 6px; border-top: 1px dashed var(--line); }
.faixa dt { color: var(--muted); }
.faixa dd { margin: 0; font-weight: 700; text-align: right; }
.faixa .sub { justify-self: start; padding: 4px 10px; border-radius: var(--pill); background: #e8f5ee; color: var(--ok); font-size: 12.5px; font-weight: 800; }
@media (max-width: 980px) { .faixas { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .faixas { grid-template-columns: 1fr; } }

/* ---------- Bairros ---------- */
.bairro-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.bairro {
  position: relative; display: flex; align-items: end; min-height: 190px; padding: 18px;
  border-radius: var(--r-lg); overflow: hidden; color: #fff; isolation: isolate;
}
.bairro img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .7s var(--ease); }
.bairro::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,.72)); }
.bairro:hover img { transform: scale(1.07); }
.bairro strong { display: block; font-size: 20px; line-height: 1.2; }
.bairro span { font-size: 14px; opacity: .85; font-weight: 600; }
.bairro.big { grid-column: span 2; grid-row: span 2; min-height: 394px; }
.bairro.big strong { font-family: var(--font-display); font-weight: 700; font-size: 28px; letter-spacing: -.02em; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: var(--pill); background: #fff; border: 1px solid var(--line); font-size: 14.5px; font-weight: 600; transition: border-color .2s, background-color .2s, color .2s; }
.chip small { color: var(--muted); font-weight: 700; }
.chip:hover { border-color: var(--ink); }

/* ---------- Diferenciais ---------- */
.why-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.why-photo { position: relative; border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 4 / 5; background: var(--sand); }
.why-photo img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 981px) { #why-photo { aspect-ratio: 4 / 3.3; } }
.why-quote {
  position: absolute; left: 20px; right: 20px; bottom: 20px; padding: 22px 24px;
  border-radius: var(--r); background: rgba(23,18,15,.82); backdrop-filter: blur(10px); color: #fff;
}
.why-quote p { font-family: var(--font-display); font-weight: 600; font-size: 20px; line-height: 1.3; }
.why-quote span { display: block; margin-top: 10px; font-size: 13.5px; opacity: .75; font-weight: 600; }
.feature-list { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 32px; margin-top: 32px; }
.feature { display: grid; gap: 10px; }
.feature-ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r); background: var(--red); color: #fff; }
.feature h3 { font-size: 17.5px; }
.feature p { color: var(--muted); font-size: 15px; }

/* ---------- CTA duplo ---------- */
.cta-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.cta-card { position: relative; display: grid; gap: 16px; align-content: start; padding: clamp(28px, 4vw, 48px); border-radius: var(--r-xl); overflow: hidden; min-height: 0; }
.cta-card h3 { font-family: var(--font-display); font-weight: 700; font-size: clamp(24px, 2.4vw, 30px); line-height: 1.15; letter-spacing: -.02em; }
.cta-card p { max-width: 420px; }
.cta-card .btn { justify-self: start; margin-top: 8px; }
.cta-sell { background: var(--red); color: #fff; }
.cta-sell p { color: rgba(255,255,255,.85); }
.cta-find { background: var(--sand); }
.cta-find p { color: var(--ink-2); }
.cta-art { position: absolute; right: -30px; bottom: -40px; width: 220px; height: 220px; opacity: .14; pointer-events: none; display: none; }
.cta-sell .cta-art { color: #fff; opacity: .16; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.8); padding-top: clamp(56px, 7vw, 88px); margin-top: clamp(40px, 6vw, 80px); font-size: 15px; }
.footer-top { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 48px; }
.footer-brand .brand-name { color: #fff; }
.footer-brand .brand-marca { height: 56px; }
.footer-brand .brand-nome { height: 25px; }
.footer-brand p { margin-top: 18px; max-width: 300px; }
.footer-slogan { font-family: var(--font-display); font-weight: 600; font-size: 19px; line-height: 1.3; color: #fff; margin-top: 18px; }
.site-footer h4 { color: #fff; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 18px; }
.footer-links { display: grid; gap: 10px; }
.footer-links a:hover { color: #fff; }
.footer-contact { display: grid; gap: 14px; }
.footer-contact a, .footer-contact div { display: flex; gap: 12px; align-items: flex-start; }
.footer-contact a:hover { color: #fff; }
.footer-contact .icon { color: #ff9a9d; margin-top: 3px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 22px 0 28px; border-top: 1px solid rgba(255,255,255,.12); font-size: 13.5px; color: rgba(255,255,255,.62); }
.social { display: flex; gap: 10px; margin-top: 22px; }
.social a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.2); transition: background-color .2s, border-color .2s; }
.social a:hover { background: #fff; color: var(--ink); border-color: #fff; }

/* WhatsApp flutuante */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 18px 10px 10px; border-radius: 999px;
  background: var(--wa); color: #fff; font-weight: 700; font-size: 15px;
  box-shadow: 0 14px 30px -10px rgba(31,168,85,.7);
  transition: transform .25s var(--ease), background-color .2s;
}
.wa-float:hover { transform: translateY(-3px); background: var(--wa-600); }
.wa-float .wa-ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.18); }
.wa-float .wa-ico .icon { width: 24px; height: 24px; }
.wa-float::before { content: ""; position: absolute; left: 10px; top: 10px; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.35); animation: ping 2.4s cubic-bezier(0,0,.2,1) infinite; }
@keyframes ping { 75%, 100% { transform: scale(1.8); opacity: 0; } }

/* ---------- Page header (internas) ---------- */
.page-head { padding-top: clamp(28px, 4vw, 48px); padding-bottom: clamp(20px, 3vw, 32px); }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 14px; color: var(--muted); font-weight: 600; margin-bottom: 14px; }
.crumbs a:hover { color: var(--ink); }
.crumbs .icon { width: 14px; height: 14px; }
.page-title { font-family: var(--font-display); font-weight: 700; font-size: clamp(28px, 3.2vw, 40px); line-height: 1.12; letter-spacing: -.025em; }
.page-title em { font-style: normal; color: inherit; }
h1 em, h2 em, h3 em, h4 em { font-style: normal; }

/* ---------- Busca / listagem ---------- */
.results-layout { display: grid; grid-template-columns: 300px 1fr; gap: 32px; align-items: start; }
.filters {
  position: sticky; top: calc(var(--header-h) + 16px);
  max-height: calc(100vh - var(--header-h) - 32px); overflow-y: auto; overscroll-behavior: contain;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  scrollbar-width: thin;
}
.filters-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line-2); position: sticky; top: 0; background: #fff; z-index: 2; }
.filters-head h2 { font-size: 17px; display: flex; align-items: center; gap: 8px; }
.filters-head button { font-size: 14px; font-weight: 700; color: var(--red); }
.filters-head button:hover { text-decoration: underline; }
.filters-close { display: none !important; }
.fgroup { padding: 18px 20px; border-bottom: 1px solid var(--line-2); display: grid; gap: 12px; }
.fgroup:last-child { border-bottom: 0; }
.fgroup > label, .fgroup-title { font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.f-input, .f-select {
  width: 100%; padding: 11px 14px; border: 1.5px solid var(--line); border-radius: var(--r-sm);
  background: var(--paper); font-size: 15px; font-weight: 600; outline: 0;
  transition: border-color .2s, background-color .2s;
  appearance: none; -webkit-appearance: none;
}
.f-select { padding-right: 36px; background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%236c655f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 4.5 6 8.5l4-4'/%3E%3C/svg%3E") no-repeat right 14px center; cursor: pointer; }
.f-input:focus, .f-select:focus { border-color: var(--ink); background-color: #fff; }
.f-search { position: relative; }
.f-search .icon { position: absolute; left: 13px; top: 50%; margin-top: -10px; color: var(--muted); }
.f-search .f-input { padding-left: 42px; }
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 13px; border-radius: var(--pill); border: 1.5px solid var(--line); background: #fff;
  font-size: 14px; font-weight: 600; color: var(--ink-2);
  transition: border-color .2s, background-color .2s, color .2s;
}
.pill small { color: var(--muted); font-weight: 700; font-size: 12px; }
.pill:hover { border-color: var(--ink); }
.pill.is-active { background: var(--red); border-color: var(--red); color: #fff; }
.pill.is-active small { color: rgba(255,255,255,.7); }
.pill .icon { width: 16px; height: 16px; }
.seg-full { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 4px; border-radius: var(--r-sm); background: var(--line-2); gap: 2px; }
.seg-full button { padding: 9px 0; border-radius: 9px; font-size: 14px; font-weight: 700; color: var(--muted); transition: background-color .2s, color .2s; }
.seg-full button.is-active { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; font-weight: 600; font-size: 15px; }
.toggle input { position: absolute; opacity: 0; pointer-events: none; }
.toggle .track { position: relative; width: 44px; height: 26px; border-radius: 99px; background: var(--line); transition: background-color .2s; flex: none; }
.toggle .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); transition: transform .25s var(--ease); }
.toggle input:checked + .track { background: var(--red); }
.toggle input:checked + .track::after { transform: translateX(18px); }
.toggle input:focus-visible + .track { outline: 3px solid color-mix(in srgb, var(--red) 55%, transparent); outline-offset: 2px; }
.filters-foot { display: none; }
.filters-backdrop { display: none; }

.results-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.results-count { font-size: 15px; color: var(--muted); font-weight: 600; }
.results-count strong { color: var(--ink); font-size: 17px; }
.results-tools { display: flex; align-items: center; gap: 10px; }
.sort-select { padding: 10px 38px 10px 16px; border-radius: var(--pill); border: 1.5px solid var(--line); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%236c655f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 4.5 6 8.5l4-4'/%3E%3C/svg%3E") no-repeat right 14px center; font-weight: 700; font-size: 14.5px; appearance: none; -webkit-appearance: none; cursor: pointer; }
.sort-select:focus { outline: 0; border-color: var(--ink); }
.filter-toggle { display: none; }
.active-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.active-chips:empty { display: none; }
.active-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 8px 6px 13px; border-radius: var(--pill); background: var(--red-50); color: var(--red-700); font-size: 13.5px; font-weight: 700; }
.active-chip .icon { width: 15px; height: 15px; }
.active-chip:hover { background: var(--red-100); }
.load-more { display: grid; justify-items: center; gap: 12px; margin-top: 36px; }
.load-more p { font-size: 14px; color: var(--muted); font-weight: 600; }
.progress { width: 220px; height: 4px; border-radius: 99px; background: var(--line); overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--red); border-radius: inherit; }

.empty { display: grid; justify-items: center; text-align: center; gap: 14px; padding: 56px 24px; border-radius: var(--r-lg); background: #fff; border: 1.5px dashed var(--line); }
.empty-ico { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: var(--red-50); color: var(--red); }
.empty h3 { font-size: 22px; }
.empty p { color: var(--muted); max-width: 460px; }
.empty-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 6px; }

/* ---------- Página do imóvel ---------- */
.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 8px; height: clamp(320px, 52vw, 560px); border-radius: var(--r-xl); overflow: hidden; position: relative; }
.gallery button { position: relative; overflow: hidden; background: var(--sand); }
.gallery button img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease), filter .3s; }
.gallery button:hover img { transform: scale(1.04); filter: brightness(.92); }
.gallery button:first-child { grid-row: span 2; }
.gallery.n1 { grid-template-columns: 1fr; }
.gallery.n2 { grid-template-columns: 2fr 1fr; }
.gallery.n2 button:nth-child(2) { grid-row: span 2; }
.gallery.n3 { grid-template-columns: 2fr 1fr; }
.gallery.n4 button:nth-child(4) { grid-column: span 2; }
.gallery .gallery-all { position: absolute; right: 16px; bottom: 16px; z-index: 2; background: #fff; overflow: visible; }
.gallery-mobile { display: none; }

.prop-layout { display: grid; grid-template-columns: 1fr 380px; gap: clamp(28px, 4vw, 56px); align-items: start; margin-top: clamp(24px, 3vw, 40px); }
.prop-head { display: grid; gap: 14px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.prop-tags { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.prop-title { font-family: var(--font-display); font-weight: 700; font-size: clamp(26px, 2.8vw, 36px); line-height: 1.15; letter-spacing: -.025em; }
.prop-loc { display: flex; align-items: center; gap: 8px; font-size: 16px; color: var(--ink-2); font-weight: 600; }
.prop-loc .icon { color: var(--red); }
.prop-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.fact { display: grid; gap: 8px; padding: 16px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); }
.fact .icon { width: 26px; height: 26px; color: var(--red); stroke-width: 1.6; }
.fact strong { font-size: 20px; font-weight: 800; line-height: 1.1; letter-spacing: -.01em; }
.fact span { font-size: 13.5px; color: var(--muted); font-weight: 600; line-height: 1.3; }
.prop-section { padding: 32px 0; border-bottom: 1px solid var(--line); }
.prop-section:last-child { border-bottom: 0; }
.prop-section h2 { font-size: 22px; margin-bottom: 18px; letter-spacing: -.01em; }
.desc { display: grid; gap: 10px; font-size: 16.5px; color: var(--ink-2); max-width: 70ch; }
.desc ul { display: grid; gap: 8px; margin: 2px 0 6px; }
.desc li { display: flex; gap: 10px; align-items: flex-start; }
.desc li::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: 3px; border-radius: 50%; background: var(--red-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23b11e23' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m2.5 6.2 2.3 2.3L9.5 3.8'/%3E%3C/svg%3E") no-repeat center; }
.desc h3 { font-size: 16.5px; margin-top: 8px; color: var(--ink); }
.desc-more { margin-top: 12px; }
.desc.is-clamped { max-height: 360px; overflow: hidden; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
.details { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
.details div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px dashed var(--line); font-size: 15px; }
.details dt { color: var(--muted); font-weight: 600; }
.details dd { margin: 0; font-weight: 700; text-align: right; }
.map-wrap { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); background: var(--sand); }
.map-wrap iframe { display: block; width: 100%; height: 360px; border: 0; }
.map-note { display: flex; gap: 8px; align-items: center; margin-top: 12px; font-size: 14px; color: var(--muted); }

.side { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 16px; }
.price-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; box-shadow: var(--shadow); display: grid; gap: 18px; }
.price-label { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.price-value { font-size: 38px; font-weight: 800; letter-spacing: -.03em; line-height: 1; color: var(--red); }
.price-value.consult { font-size: 28px; color: var(--red); }
.price-de { font-size: 15px; color: var(--muted); font-weight: 600; margin-bottom: 4px; }
.price-de s { color: var(--muted); }
.price-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.tag-fin { display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px; border-radius: var(--pill); background: #e8f5ee; color: var(--ok); font-size: 14px; font-weight: 800; border: 1.5px solid #bfe3cd; }
.tag-promo { display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px; border-radius: var(--pill); background: #fef3c7; color: #7c4a03; font-size: 14px; font-weight: 800; border: 1.5px solid #f6d488; }
.price-obs { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 14px; font-weight: 700; color: var(--ok); }
.price-est { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r-sm); background: var(--paper); font-size: 14px; }
.price-est strong { font-size: 16px; }
.price-est a { display: inline-flex; align-items: center; gap: 2px; white-space: nowrap; color: var(--red); font-weight: 700; font-size: 13.5px; }
.price-ctas { display: grid; gap: 10px; }
.agent { display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: var(--r-lg); background: var(--sand); }
.agent-photo { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; flex: none; box-shadow: 0 0 0 3px #fff; }
.agent-avatar { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 800; letter-spacing: .04em; flex: none; position: relative; }
.agent-avatar::after { content: ""; position: absolute; right: 1px; bottom: 1px; width: 13px; height: 13px; border-radius: 50%; background: var(--wa); border: 2.5px solid var(--sand); }
.agent strong { display: block; font-size: 15.5px; }
.agent small { color: var(--muted); font-size: 13px; font-weight: 600; }
.share-row { display: flex; gap: 8px; }
.share-row .btn { flex: 1; }
.fav-inline.is-fav { color: var(--red); border-color: var(--red-100); background: var(--red-50); }
.fav-inline.is-fav .icon { fill: currentColor; }

.mobile-bar { display: none; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(12,10,9,.96); color: #fff; display: none; grid-template-rows: auto 1fr auto; }
.lightbox.is-open { display: grid; }
.lb-top { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; gap: 12px; }
.lb-top span { font-weight: 700; font-size: 15px; }
.lb-close, .lb-nav { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.1); color: #fff; transition: background-color .2s; }
.lb-close:hover, .lb-nav:hover { background: rgba(255,255,255,.22); }
.lb-stage { position: relative; display: grid; place-items: center; min-height: 0; padding: 0 72px; }
.lb-stage img { max-width: 100%; max-height: calc(100vh - 190px); object-fit: contain; border-radius: 8px; user-select: none; }
.lb-nav { position: absolute; top: 50%; margin-top: -24px; }
.lb-nav.prev { left: 16px; }
.lb-nav.next { right: 16px; }
.lb-thumbs { display: flex; gap: 6px; padding: 14px 18px 18px; overflow-x: auto; scrollbar-width: none; justify-content: safe center; }
.lb-thumbs::-webkit-scrollbar { display: none; }
.lb-thumbs button { flex: none; width: 76px; height: 56px; border-radius: 8px; overflow: hidden; opacity: .45; transition: opacity .2s; outline-offset: 2px; }
.lb-thumbs button.is-active { opacity: 1; outline: 2px solid #fff; }
.lb-thumbs img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 150; display: none; place-items: center; padding: 16px; background: rgba(23,18,15,.55); }
.modal.is-open { display: grid; animation: fade .2s; }
.modal-card { width: min(520px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; background: #fff; border-radius: var(--r-lg); padding: 28px; box-shadow: var(--shadow-lg); animation: rise .3s var(--ease); }
.modal-head { display: flex; justify-content: space-between; align-items: start; gap: 16px; margin-bottom: 18px; }
.modal-head h3 { font-family: var(--font-display); font-weight: 700; font-size: 24px; line-height: 1.15; letter-spacing: -.02em; }
.modal-head p { color: var(--muted); font-size: 14.5px; margin-top: 6px; }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }

/* ---------- Formulários ---------- */
.form { display: grid; gap: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 14px; font-weight: 700; color: var(--ink-2); }
.field label small { font-weight: 600; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border: 1.5px solid var(--line); border-radius: var(--r-sm);
  background: var(--paper); font-size: 15.5px; outline: 0; transition: border-color .2s, background-color .2s;
}
.field select { appearance: none; -webkit-appearance: none; padding-right: 38px; background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%236c655f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 4.5 6 8.5l4-4'/%3E%3C/svg%3E") no-repeat right 15px center; }
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); background-color: #fff; }
.field input:user-invalid { border-color: var(--red); }
.form-note { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--muted); }
.form-note .icon { width: 16px; height: 16px; color: var(--wa); }

/* ---------- Páginas internas: blocos ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); padding: clamp(24px, 4vw, 44px); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: step; }
.step { position: relative; display: grid; gap: 10px; align-content: start; padding: 26px 22px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); counter-increment: step; }
.step::before { content: "0" counter(step); font-family: var(--font-display); font-weight: 700; font-size: 30px; line-height: 1; color: var(--red); }
.step h3 { font-size: 17px; }
.step p { font-size: 15px; color: var(--muted); }
.checklist { display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; }
.checklist .icon { color: var(--ok); margin-top: 2px; }
.doc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.doc-grid h3 { font-size: 19px; margin-bottom: 16px; display: flex; gap: 10px; align-items: center; }
.info-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.info-card { display: grid; gap: 12px; align-content: start; padding: 26px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); }
.info-card .feature-ico { background: var(--red-50); color: var(--red); }
.info-card h3 { font-size: 18px; }
.info-card p { color: var(--muted); font-size: 15px; }
.big-quote { font-family: var(--font-display); font-weight: 600; font-size: clamp(26px, 3.2vw, 40px); line-height: 1.2; letter-spacing: -.02em; }
.big-quote em { color: var(--red); }
.contact-list { display: grid; gap: 12px; }
.contact-item { display: flex; align-items: center; gap: 16px; padding: 16px 18px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); transition: border-color .2s, transform .2s var(--ease); }
a.contact-item:hover { border-color: var(--ink); transform: translateY(-2px); }
.contact-item .feature-ico { flex: none; }
.contact-item small { display: block; font-size: 13px; color: var(--muted); font-weight: 600; }
.contact-item strong { font-size: 16.5px; }
.faq { display: grid; gap: 10px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 4px 20px; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 0; font-weight: 700; font-size: 16.5px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { transition: transform .25s; flex: none; }
.faq details[open] summary .icon { transform: rotate(45deg); }
.faq details p { padding-bottom: 18px; color: var(--ink-2); }

/* Faixa de aviso (editável no painel) */
.aviso-bar { display: flex; justify-content: center; align-items: center; gap: 8px; padding: 9px var(--gutter); background: var(--red); color: #fff; font-size: 14px; font-weight: 600; text-align: center; line-height: 1.4; }
.aviso-bar em { font-style: normal; text-decoration: underline; text-underline-offset: 3px; }
a.aviso-bar:hover { background: var(--red-600); }

/* Aviso de privacidade */
.cookie { position: fixed; left: 20px; bottom: 20px; z-index: 90; max-width: 400px; display: flex; gap: 14px; align-items: center; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-lg); font-size: 13.5px; line-height: 1.45; color: var(--ink-2); animation: rise .4s var(--ease); }
.cookie a { text-decoration: underline; color: var(--ink); }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 300; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; display: flex; align-items: center; gap: 10px; padding: 13px 20px; border-radius: var(--pill); background: var(--ink); color: #fff; font-weight: 600; font-size: 15px; box-shadow: var(--shadow-lg); transition: opacity .25s, transform .3s var(--ease); }
.toast.is-show { opacity: 1; transform: translate(-50%, 0); }
.toast .icon { color: #7ee2a4; }

/* Animações de entrada */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Skeleton */
.skeleton { background: linear-gradient(90deg, var(--line-2), #fff, var(--line-2)); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* =========================================================
   Responsivo
   ========================================================= */
@media (max-width: 1180px) {
  .main-nav .nav-link { padding-inline: 10px; font-size: 14.5px; }
  .header-actions .btn-wa span { display: none; }
  .header-actions .btn-wa { width: 46px; padding: 0; }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .rail-track { grid-auto-columns: calc((100% - 2 * 24px) / 3); }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 980px) {
  :root { --header-h: 68px; }
  .topbar { display: none; }
  .main-nav { display: none; }
  .menu-btn { display: grid; }
  .header-actions { margin-left: auto; }
  .header-actions .btn-wa { display: none; }
  .hero-foto {
    --foto-h: clamp(600px, 78svh, 760px);
    --busca-sobe: 64px;
    --hero-veu:
      linear-gradient(180deg, rgba(12,9,8,.8) 0%, rgba(12,9,8,.62) 30%, rgba(12,9,8,.2) 50%, rgba(12,9,8,0) 62%),
      linear-gradient(0deg, rgba(12,9,8,.3) 0%, rgba(12,9,8,0) 24%) !important;
    min-height: 0; padding: 0 0 8px; margin-bottom: 0; background: none; color: var(--ink);
  }
  .hero-foto .hero-bg { bottom: auto; height: var(--foto-h); border-radius: 0; }
  .hero-foto .hero-bg img { object-position: var(--foco-celular) 60%; }
  .hero-foto .hero-grid { grid-template-columns: minmax(0, 1fr) !important; grid-template-rows: var(--foto-h) auto auto auto; grid-template-areas: "foto" "busca" "texto" "stats"; row-gap: 18px; }
  .hero-foto .hero-copy { display: contents; }
  .hero-foto .hero-head { grid-area: foto; align-self: start; justify-items: start; text-align: left; padding-top: calc(var(--header-h) + 22px); color: #fff; }
  .hero-foto .hero-sub { grid-area: texto; max-width: none; color: var(--ink-2); text-align: left; text-shadow: none; }
  .hero-foto[data-lado] .hero-stats { grid-area: stats; justify-content: flex-start; color: var(--ink); text-shadow: none; }
  .hero-foto .hero-stats span { color: var(--muted); font-weight: 600; }
  .hero-foto .hero-search { grid-area: busca; margin: calc(var(--busca-sobe) * -1) 0 0; }
  /* selo Caixa no canto de baixo da foto, à direita (longe do letreiro e do título) */
  .hero-foto[data-lado] .hero-badge { position: static; order: 3; justify-self: start; margin-top: 4px; }
  .search-fields { grid-template-columns: 1fr 1fr; }
  .search-submit { grid-column: 1 / -1; min-height: 52px; }
  .finance-grid, .why-grid, .split { grid-template-columns: minmax(0, 1fr); }
  .why-photo { aspect-ratio: 16 / 11; }
  .bairro-grid { grid-template-columns: 1fr 1fr; }
  .bairro.big { grid-column: span 2; grid-row: auto; min-height: 260px; }
  .cta-duo { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .info-cards { grid-template-columns: 1fr; }
  .rail-track { grid-auto-columns: calc((100% - 24px) / 2); }

  .results-layout { grid-template-columns: 1fr; }
  .filters {
    position: fixed; inset: auto 0 0 0; top: auto; z-index: 120;
    max-height: 88vh; border-radius: var(--r-lg) var(--r-lg) 0 0; border: 0;
    transform: translateY(105%); transition: transform .35s var(--ease);
    box-shadow: 0 -20px 60px rgba(0,0,0,.25);
  }
  .filters.is-open { transform: none; }
  .filters-close { display: grid !important; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--paper); color: var(--ink) !important; }
  .filters-foot { display: flex; gap: 10px; position: sticky; bottom: 0; padding: 14px 20px 18px; background: #fff; border-top: 1px solid var(--line); }
  .filters-foot .btn { flex: 1; }
  .filters-backdrop { display: block; position: fixed; inset: 0; z-index: 110; background: rgba(23,18,15,.5); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
  .filters-backdrop.is-open { opacity: 1; visibility: visible; }
  .filter-toggle { display: inline-flex; }

  .gallery { display: none; }
  .gallery-mobile { display: block; position: relative; margin-inline: calc(var(--gutter) * -1); }
  .gm-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .gm-track::-webkit-scrollbar { display: none; }
  .gm-track button { flex: none; width: 100%; aspect-ratio: 4 / 3; scroll-snap-align: center; background: var(--sand); }
  .gm-track img { width: 100%; height: 100%; object-fit: cover; }
  .gm-count { position: absolute; right: 14px; bottom: 14px; padding: 6px 12px; border-radius: var(--pill); background: rgba(0,0,0,.6); color: #fff; font-size: 13px; font-weight: 700; display: inline-flex; gap: 6px; align-items: center; }
  .gm-count .icon { width: 15px; height: 15px; }
  .prop-layout { grid-template-columns: 1fr; }
  .side { position: static; }
  .mobile-bar {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
    padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom));
    background: rgba(255,255,255,.96); backdrop-filter: blur(10px); border-top: 1px solid var(--line);
  }
  .mobile-bar small { display: block; font-size: 12px; color: var(--muted); font-weight: 600; }
  .mobile-bar strong { font-size: 20px; font-weight: 800; letter-spacing: -.02em; color: var(--red); }
  .page-imovel .wa-float { display: none; }
  .page-imovel .cookie { bottom: 84px; }
  .page-imovel .site-footer { padding-bottom: 80px; }
  .lb-stage { padding: 0 8px; }
  .lb-nav { display: none; }
}

@media (max-width: 720px) {
  body { font-size: 15.5px; }
  .brand-marca { height: 40px; }
  .brand-nome { height: 18px; }
  .brand-text { gap: 4px; }
  .brand-sub { font-size: 6.5px; }
  .hero-foto .hero-title { font-size: clamp(30px, 8vw, 36px); }
  .hero-foto .hero-sub { font-size: 16px; }
  .hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .hero-stats strong { font-size: 24px; }
  .hero-stats span { font-size: 12.5px; line-height: 1.3; }
  .search-box { padding: 8px; border-radius: var(--r); }
  .search-fields { grid-template-columns: 1fr 1fr; }
  .search-fields .sf:first-child { grid-column: 1 / -1; }
  .search-fields .search-submit { grid-column: auto; min-height: 0; }
  .sf { padding: 10px 14px; }
  .search-extra { justify-content: center; }
  .search-extra > a { display: none; }
  .cat-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .cat-card { padding: 16px 14px; gap: 10px; border-radius: var(--r); }
  .cat-ico { width: 44px; height: 44px; border-radius: 13px; }
  .cat-card strong { font-size: 15px; }
  .rail-track { grid-auto-columns: 84%; gap: 14px; }
  .rail-btns { display: none; }
  .bairro-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .bairro { min-height: 150px; padding: 14px; border-radius: var(--r); }
  .bairro strong { font-size: 17px; }
  .bairro.big strong { font-size: 32px; }
  .feature-list { grid-template-columns: 1fr; gap: 22px; }
  .sim-result { grid-template-columns: 1fr; }
  .finance-grid { padding: 24px 16px; }
  .sim { padding: 18px; }
  .btn { white-space: normal; text-align: center; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .wa-float { right: 14px; bottom: 14px; padding: 8px; }
  .wa-float .label { display: none; }
  .wa-float::before { left: 8px; top: 8px; }
  .details { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .steps, .doc-grid { grid-template-columns: 1fr; }
  .card-nav, .card-dots { display: none; }
  .price-card { padding: 22px; }
  .results-bar { gap: 10px; }
  .results-tools { width: 100%; }
  .results-tools .sort-select { flex: 1; }
  .modal-card { padding: 22px; }
  .lb-thumbs { display: none; }
  .cookie { left: 12px; right: 12px; bottom: 76px; max-width: none; }
}

@media print {
  .site-header, .topbar, .site-footer, .wa-float, .mobile-bar, .tabbar, .price-ctas, .prop-actions, .gallery-all { display: none !important; }
  body { background: #fff; }
}

/* =========================================================
   Celular: topo em tela cheia, barra de navegação e ajustes
   ========================================================= */
.tabbar, .so-celular, .prop-price-m { display: none; }

@media (max-width: 980px) {
  .prop-price-m { display: grid; gap: 4px; padding: 16px 18px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
  .prop-price-m .de { font-size: 13px; font-weight: 700; color: var(--muted); letter-spacing: .02em; }
  .prop-price-m .de s { color: var(--muted); }
  .prop-price-m strong { font-size: 32px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; color: var(--red); }
  .prop-price-m strong.promo, .prop-price-m strong.consult { color: var(--red); }
  .prop-price-m .price-tags { margin-top: 8px; }
  .page-imovel .side .price-card > div:first-child { display: none; }
}

@media (max-width: 720px) {
  :root { --header-h: 62px; }
  .header-inner { gap: 12px; }
  .fav-link, .menu-btn { width: 42px; height: 42px; }
  .header-actions .fav-link { display: none; }

  /* Topo: foto de ponta a ponta, título em cima do céu, busca encostada na foto */
  .hero-foto { --foto-h: clamp(540px, 78svh, 680px); --busca-sobe: 52px; }
  .hero-foto .hero-head { gap: 12px; padding-top: calc(var(--header-h) + 18px); }
  .hero-badge { padding: 6px 12px 6px 6px; gap: 9px; border-radius: var(--r); }
  .hero-badge .caixa-logo { width: 34px; height: 34px; border-radius: var(--r-xs); font-size: 8px; }
  .hero-badge strong { font-size: 12.5px; }
  .hero-badge small { display: none; }
  .search-box { box-shadow: var(--shadow-lg); }

  /* Seções mais enxutas */
  .section { padding-block: 44px; }
  .section-tight { padding-block: 26px; }
  .section-head { margin-bottom: 18px; }
  .h-section { font-size: 26px; }
  .section-head .link-arrow { display: none; }
  #grid-novos .card:nth-child(n+7) { display: none; }
  .so-celular { display: inline-flex; }

  /* Cards */
  .grid-cards { gap: 16px; }
  .card-body { padding: 16px 16px 18px; gap: 8px; }
  .card-title { font-size: 16.5px; min-height: 0; }
  .card-price strong { font-size: 22px; }

  /* Busca: barra de filtros fixa ao rolar */
  .page-head { padding-top: 18px; padding-bottom: 14px; }
  .page-title { font-size: 28px; }
  .results-bar { position: sticky; top: var(--header-h); z-index: 40; margin: 0 calc(var(--gutter) * -1) 14px; padding: 10px var(--gutter); background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
  .results-count { display: none; }

  /* Página do imóvel */
  .prop-head { gap: 10px; padding-bottom: 20px; }
  .prop-title { font-size: 26px; }
  .facts { grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 20px 0; }
  .facts:has(> :nth-child(4):last-child) { grid-template-columns: repeat(2, 1fr); }
  .fact { padding: 12px; gap: 4px; }
  .fact .icon { width: 22px; height: 22px; }
  .fact strong { font-size: 17px; }
  .fact span { font-size: 12px; }
  .prop-section { padding: 24px 0; }
  .desc { font-size: 15.5px; }
  .mobile-bar { padding-top: 10px; box-shadow: 0 -10px 30px -18px rgba(0,0,0,.35); }

  /* Barra de navegação inferior (estilo aplicativo) */
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.96); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid var(--line); box-shadow: 0 -10px 30px -20px rgba(23,18,15,.35); }
  .tabbar a { position: relative; display: grid; justify-items: center; gap: 3px; padding: 6px 2px; border-radius: 14px; font-size: 11px; font-weight: 700; color: var(--muted); }
  .tabbar a .icon { width: 23px; height: 23px; }
  .tabbar a.is-active { color: var(--red); }
  .tabbar a.is-active::before { content: ""; position: absolute; top: -6px; left: 30%; right: 30%; height: 3px; border-radius: 0 0 4px 4px; background: var(--red); }
  .tabbar .tab-wa { color: var(--wa-600); }
  .tabbar .fav-count { position: absolute; top: 2px; right: calc(50% - 22px); min-width: 18px; height: 18px; font-size: 10.5px; border-width: 2px; }
  body:has(.tabbar) { padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
  body:has(.tabbar) .wa-float { display: none; }
  body:has(.tabbar) .cookie { bottom: calc(80px + env(safe-area-inset-bottom)); }
  body:has(.tabbar) .toast { bottom: calc(86px + env(safe-area-inset-bottom)); }
  .site-footer { margin-top: 32px; }
}
