/* Soleira — imobiliária fictícia (projeto conceitual)
   Paleta: concreto (base), mata (marca), ipê-rosa (acento raro).
   Tipo: Archivo com eixo de largura (expandida nos títulos, normal no texto) + Newsreader nas histórias. */

:root {
  --paper: #f2f3ef;
  --paper-2: #e5e8e1;
  --card: #fafbf8;
  --ink: #17201b;
  --ink-2: #48534c;
  --ink-3: #5a655e;
  --on-ipe: #ffffff;
  --line: #cbd1c8;
  --line-2: #dde1da;
  --mata: #24392d;
  --mata-2: #33503f;
  --solid-bg: #24392d;
  --solid-ink: #f2f3ef;
  --ipe: #b3306a;
  --ipe-soft: #f4dde8;
  --dark-band: #1c2d23;
  --dark-band-2: #243a2d;
  --on-dark: #eef1ec;
  --on-dark-2: #b9c6bd;
  --foot: #142019;
  --map-land: #e9ece5;
  --map-sea: #cfdcd8;
  --map-line: #b9c2b6;
  --map-park: #d7e0cf;
  --shadow: 0 1px 2px rgba(23, 32, 27, .06), 0 8px 24px rgba(23, 32, 27, .08);
  --shadow-lg: 0 24px 64px rgba(10, 18, 13, .28);

  --f-sans: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-serif: "Newsreader", Georgia, "Times New Roman", serif;

  --wrap: 1400px;
  --pad: clamp(20px, 4vw, 56px);
  --band: clamp(72px, 9vw, 136px);
  --gap: clamp(16px, 2vw, 28px);
  --r-s: 4px;
  --r-m: 8px;
  --r-l: 14px;
  --dur-1: 150ms;
  --dur-2: 260ms;
  --dur-3: 420ms;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 72px;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --paper: #0f1511;
  --paper-2: #141c17;
  --card: #18211b;
  --ink: #e5eae3;
  --ink-2: #aab4ad;
  --ink-3: #8a958d;
  --line: #2d3931;
  --line-2: #222c25;
  --mata: #9cc2a7;
  --mata-2: #b9d5c0;
  --solid-bg: #dfe8df;
  --solid-ink: #0f1511;
  --ipe: #f08ab3;
  --ipe-soft: #3a1f2b;
  --on-ipe: #1b0c13;
  --dark-band: #18261d;
  --dark-band-2: #203127;
  --foot: #0a0f0c;
  --map-land: #18211b;
  --map-sea: #142427;
  --map-line: #34423a;
  --map-park: #1d2b21;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .35);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0f1511;
    --paper-2: #141c17;
    --card: #18211b;
    --ink: #e5eae3;
    --ink-2: #aab4ad;
    --ink-3: #8a958d;
    --line: #2d3931;
    --line-2: #222c25;
    --mata: #9cc2a7;
    --mata-2: #b9d5c0;
    --solid-bg: #dfe8df;
    --solid-ink: #0f1511;
    --ipe: #f08ab3;
    --ipe-soft: #3a1f2b;
  --on-ipe: #1b0c13;
    --dark-band: #18261d;
    --dark-band-2: #203127;
    --foot: #0a0f0c;
    --map-land: #18211b;
    --map-sea: #142427;
    --map-line: #34423a;
    --map-park: #1d2b21;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .35);
    color-scheme: dark;
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--f-sans); font-size: 1.0625rem; line-height: 1.55; font-weight: 400;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
svg { display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
dl, dd { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--ipe); outline-offset: 3px; border-radius: 3px; }
::selection { background: var(--ipe-soft); }

.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--solid-bg); color: var(--solid-ink); padding: 10px 16px; border-radius: var(--r-s); text-decoration: none; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }
.band { padding-block: var(--band); }
.band-alt { background: var(--paper-2); }
.muted { color: var(--ink-2); }
.small { font-size: .875rem; line-height: 1.5; }
.scroll-x { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.scroll-x::-webkit-scrollbar { display: none; }

/* ---------- Type ---------- */
.mega, .h1, .h2, .h3, .h4, .logo-word, .price, .disp {
  font-family: var(--f-sans); font-optical-sizing: auto;
}
.mega { font-size: clamp(2.5rem, .8rem + 6.6vw, 6.6rem); font-stretch: 125%; font-weight: 600; line-height: .94; letter-spacing: -.035em; }
.h1 { font-size: clamp(2.4rem, 1.3rem + 4.2vw, 5.2rem); font-stretch: 125%; font-weight: 600; line-height: .98; letter-spacing: -.03em; }
.h2 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.4rem); font-stretch: 118%; font-weight: 600; line-height: 1.02; letter-spacing: -.026em; text-wrap: balance; }
.h3 { font-size: clamp(1.3rem, 1.1rem + .8vw, 1.75rem); font-stretch: 112%; font-weight: 600; line-height: 1.15; letter-spacing: -.012em; }
.h4 { font-size: 1.125rem; font-stretch: 108%; font-weight: 600; line-height: 1.3; }
.sec-head { display: grid; gap: 12px; margin-bottom: clamp(32px, 4vw, 56px); max-width: 760px; }
.sec-head-row { max-width: none; display: flex; align-items: end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.sec-head-row > div:first-child { max-width: 680px; display: grid; gap: 12px; }
.sec-sub { color: var(--ink-2); margin: 0; font-size: 1.0625rem; max-width: 60ch; }

/* ---------- Buttons & controls ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 999px; font-weight: 500; font-size: 1rem;
  font-stretch: 105%; text-decoration: none; white-space: nowrap; border: 1px solid transparent;
  transition: background-color var(--dur-1) var(--ease), color var(--dur-1) var(--ease), border-color var(--dur-1) var(--ease), transform var(--dur-1) var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: .9375rem; }
.btn-block { width: 100%; }
.btn-solid { background: var(--solid-bg); color: var(--solid-ink); }
.btn-solid:hover { background: var(--mata-2); }
:root[data-theme="dark"] .btn-solid:hover { background: #ffffff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn-solid:hover { background: #ffffff; } }
.btn-line { border-color: var(--line); background: transparent; color: var(--ink); }
.btn-line:hover { border-color: var(--ink); }
.btn-light { background: var(--on-dark); color: #17201b; }
.btn-light:hover { background: #ffffff; }
.btn-ghost-light { border-color: rgba(238, 241, 236, .4); color: var(--on-dark); }
.btn-ghost-light:hover { border-color: var(--on-dark); }
.link { color: inherit; text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 1px; }

.icon {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; position: relative;
  transition: background-color var(--dur-1) var(--ease);
}
.icon:hover { background: color-mix(in srgb, currentColor 10%, transparent); }
.icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.icon.round { border: 1px solid var(--line); }
.dot {
  position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
  background: var(--ipe); color: var(--on-ipe); font-size: .6875rem; font-weight: 700; line-height: 18px; text-align: center;
}

.seg { display: inline-flex; padding: 4px; gap: 2px; border-radius: 999px; background: var(--paper-2); border: 1px solid var(--line-2); }
.band-alt .seg { background: var(--paper); }
.seg button {
  min-height: 38px; padding: 0 16px; border-radius: 999px; font-size: .9375rem; font-weight: 500; color: var(--ink-2);
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  transition: background-color var(--dur-1) var(--ease), color var(--dur-1) var(--ease);
}
.seg button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.seg button:hover { color: var(--ink); }
.seg button[aria-pressed="true"] { background: var(--card); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .08), 0 0 0 1px var(--line-2); }
.seg-wide { display: flex; }
.seg-wide button { flex: 1; justify-content: center; }

.chips { gap: 8px; padding-bottom: 2px; }
.chip {
  flex: none; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line);
  font-size: .9375rem; font-weight: 500; color: var(--ink-2); background: transparent; white-space: nowrap;
  transition: border-color var(--dur-1) var(--ease), background-color var(--dur-1) var(--ease), color var(--dur-1) var(--ease);
}
.chip:hover { border-color: var(--ink-3); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--solid-bg); border-color: var(--solid-bg); color: var(--solid-ink); }
.chip .n { opacity: .65; margin-left: 4px; font-variant-numeric: tabular-nums; }

.fld { display: grid; gap: 2px; font-size: .8125rem; color: var(--ink-2); font-weight: 500; }
.fld select, .f select, .f input, .f textarea, .search input {
  width: 100%; min-height: 44px; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--card);
  padding: 0 14px; color: var(--ink); font-size: 1rem;
}
.fld select, .f select { appearance: none; padding-right: 36px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2366716a' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; background-size: 18px; }
.fld-line select { min-width: 150px; }

.search { position: relative; display: block; flex: 1 1 240px; }
.search svg { position: absolute; left: 14px; top: 50%; translate: 0 -50%; width: 18px; height: 18px; fill: none; stroke: var(--ink-3); stroke-width: 1.8; pointer-events: none; }
.search input { padding-left: 42px; border-radius: 999px; }

/* ---------- Header ---------- */
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h); color: var(--ink);
  background: var(--paper); border-bottom: 1px solid var(--line-2);
  transition: background-color var(--dur-2) var(--ease), color var(--dur-2) var(--ease), border-color var(--dur-2) var(--ease);
}
.top[data-over="hero"] { background: transparent; border-color: transparent; color: #f5f7f3; }
.top-in { height: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); display: flex; align-items: center; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.logo-mark { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: square; }
.logo-mark .sill { stroke: var(--ipe); stroke-width: 2.2; }
.top[data-over="hero"] .logo-mark .sill { stroke: #f39ec1; }
.logo-word { font-size: 1.375rem; font-stretch: 125%; font-weight: 600; letter-spacing: -.03em; line-height: 1; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { padding: 10px 12px; border-radius: 999px; text-decoration: none; font-size: .9375rem; font-weight: 500; opacity: .86; transition: opacity var(--dur-1) var(--ease), background-color var(--dur-1) var(--ease); }
.nav a:hover { opacity: 1; background: color-mix(in srgb, currentColor 9%, transparent); }
.top-tools { display: flex; align-items: center; gap: 4px; }
.top[data-over="hero"] .btn-solid { background: #f5f7f3; color: #17201b; }
.only-s { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: max(620px, min(100svh, 980px)); display: grid; grid-template-rows: 1fr auto auto;
  background: var(--paper-2); color: #f5f7f3; isolation: isolate;
}
.hero-media { position: absolute; inset: 0; z-index: -1; overflow: hidden; background: #2a3a30; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8, 14, 10, .46) 0%, rgba(8, 14, 10, 0) 22%, rgba(8, 14, 10, 0) 42%, rgba(8, 14, 10, .62) 78%, rgba(8, 14, 10, .78) 100%);
}
.hero-copy { grid-row: 2; padding-bottom: clamp(24px, 3vw, 40px); display: grid; gap: 18px; }
.hero-copy .mega { max-width: 11ch; text-wrap: balance; }
.hero-lede { max-width: 46ch; font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem); line-height: 1.5; margin: 0; color: rgba(245, 247, 243, .92); }
.hero-credit {
  justify-self: start; font-size: .8125rem; color: rgba(245, 247, 243, .8); text-decoration: underline; text-underline-offset: .25em;
  text-decoration-color: rgba(245, 247, 243, .4); min-height: 32px;
}
.hero-credit:hover { color: #fff; text-decoration-color: #fff; }
.hero-sill { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--ipe); z-index: 2; transform-origin: 50% 50%; }

/* door reveal: the photo opens like a door standing on the sill */
@media (prefers-reduced-motion: no-preference) {
  .hero-media { animation: door 1.4s cubic-bezier(.7, 0, .18, 1) .45s both; }
  .hero-sill { animation: sill .6s cubic-bezier(.6, 0, .2, 1) 0s both; }
  .hero-copy > *, .finder { animation: rise .8s var(--ease) both; }
  .hero-copy > :nth-child(1) { animation-delay: 1.35s; }
  .hero-copy > :nth-child(2) { animation-delay: 1.5s; }
  .hero-copy > :nth-child(3) { animation-delay: 1.6s; }
  .finder { animation-delay: 1.65s; }
  .top[data-over="hero"] { animation: fadein .6s ease 1.3s both; }
}
@keyframes door { from { clip-path: inset(16% 40.5% 0 40.5%); } to { clip-path: inset(0 0 0 0); } }
@keyframes sill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }

.finder {
  grid-row: 3; position: relative; z-index: 3; color: var(--ink); background: var(--paper);
  display: grid; grid-template-columns: auto repeat(3, minmax(150px, 1fr)) auto; align-items: end; gap: 12px;
  padding: 16px; border-radius: var(--r-l) var(--r-l) 0 0; margin: 0 auto; max-width: min(1100px, calc(100% - 2 * var(--pad)));
  width: 100%; box-shadow: 0 -10px 40px rgba(8, 14, 10, .18);
}
.finder .fld select { border-color: var(--line-2); background-color: var(--paper-2); }
.seg-finder { align-self: end; min-height: 46px; }
.finder-go { min-height: 46px; }

/* ---------- Edição: spreads ---------- */
.spreads { display: grid; gap: clamp(64px, 8vw, 120px); }
.spread { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); align-items: end; }
.spread-pic { grid-column: 1 / span 7; position: relative; }
.spread-pic img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: var(--r-s); }
.spread-copy { grid-column: 9 / span 4; display: grid; gap: 18px; }
.spread.rev .spread-pic { grid-column: 6 / span 7; grid-row: 1; }
.spread.rev .spread-copy { grid-column: 1 / span 4; grid-row: 1; }
.spread-pic2 { width: 62%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-s); }
.spread-where { font-size: .9375rem; color: var(--ink-2); margin: 0; }
.spread-title { font-size: clamp(2rem, 1.2rem + 2.6vw, 3.4rem); font-stretch: 125%; font-weight: 600; line-height: .98; letter-spacing: -.03em; }
.story { font-family: var(--f-serif); font-size: clamp(1.15rem, 1.05rem + .35vw, 1.375rem); line-height: 1.5; color: var(--ink); margin: 0; font-weight: 400; }
.spread-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.spread-foot .price { font-size: 1.375rem; }

/* specs (icons + values) */
.specs { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--ink-2); font-size: .9375rem; }
.specs li { display: inline-flex; align-items: center; gap: 6px; font-variant-numeric: tabular-nums; }
.specs svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.price { margin: 0; font-stretch: 110%; font-weight: 600; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.price small { font-size: .7em; font-weight: 500; color: var(--ink-2); letter-spacing: 0; }

/* ---------- Filters & grid ---------- */
.filters { display: grid; gap: 14px; margin-bottom: 28px; }
.filters-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; }
.view-toggle { align-self: end; }
.filters > .seg { justify-self: start; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 3vw, 40px) var(--gap); }
.card { position: relative; display: grid; gap: 12px; align-content: start; }
.card-pic { position: relative; border-radius: var(--r-s); overflow: hidden; background: var(--line-2); aspect-ratio: 4 / 3; }
.card-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity var(--dur-3) var(--ease); }
.card-pic .alt { opacity: 0; }
@media (hover: hover) and (pointer: fine) {
  .card:hover .card-pic .alt.ready { opacity: 1; }
}
.badge {
  position: absolute; top: 12px; left: 12px; z-index: 2; padding: 5px 10px; border-radius: 999px;
  background: var(--card); color: var(--ink); font-size: .8125rem; font-weight: 600; line-height: 1.2;
}
.badge.hot { background: var(--ipe); color: var(--on-ipe); }
.fav {
  position: absolute; top: 8px; right: 8px; z-index: 3; width: 44px; height: 44px; border-radius: 999px;
  display: grid; place-items: center; background: color-mix(in srgb, var(--card) 92%, transparent); color: var(--ink);
  transition: transform var(--dur-1) var(--ease), background-color var(--dur-1) var(--ease);
}
.fav svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.fav:hover { transform: scale(1.06); }
.fav[aria-pressed="true"] { color: var(--ipe); }
.fav[aria-pressed="true"] svg { fill: currentColor; }
@media (prefers-reduced-motion: no-preference) {
  .fav.pop svg { animation: pop .38s var(--ease); }
}
@keyframes pop { 40% { transform: scale(1.3); } }
.card-body { display: grid; gap: 4px; }
.card-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.card .price { font-size: 1.25rem; }
.card-name { font-weight: 600; font-size: 1.0625rem; line-height: 1.3; text-align: left; }
.card-name::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card-where { font-size: .9375rem; color: var(--ink-2); margin: 0; }
.card .specs { margin-top: 6px; }
.card:hover .card-name { text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 1px; }
.deal-tag { font-size: .8125rem; color: var(--ink-3); white-space: nowrap; }

.more { display: flex; justify-content: center; margin-top: 44px; }
.empty { display: grid; justify-items: center; text-align: center; gap: 8px; padding: 64px 16px; border: 1px dashed var(--line); border-radius: var(--r-m); }
.empty .h3 { margin-bottom: 4px; }
.empty .btn { margin-top: 12px; }

/* ---------- Map ---------- */
.mapview { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: var(--gap); align-items: start; }
.map { position: relative; aspect-ratio: 1000 / 640; border-radius: var(--r-m); overflow: hidden; border: 1px solid var(--line); background: var(--map-land); }
.map-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-svg .sea { fill: var(--map-sea); }
.map-svg .coast { fill: none; stroke: var(--map-line); stroke-width: 1.5; }
.map-svg .river { fill: none; stroke: var(--map-sea); stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; }
.map-svg .contour { fill: none; stroke: var(--map-line); stroke-width: 1; opacity: .7; }
.map-svg .park { fill: var(--map-park); }
.map-svg .road { fill: none; stroke: var(--card); stroke-width: 5; stroke-linecap: round; }
.map-svg .road-s { fill: none; stroke: var(--card); stroke-width: 2.5; stroke-linecap: round; opacity: .9; }
.map-svg .zone { fill: none; stroke: var(--ink-3); stroke-width: 1; stroke-dasharray: 3 5; opacity: .6; }
.map-svg .zlabel { font-family: var(--f-sans); font-size: 15px; font-weight: 600; font-stretch: 112%; fill: var(--ink-2); letter-spacing: -.01em; }
.map-svg .wlabel { font-family: var(--f-serif); font-style: italic; font-size: 15px; fill: var(--ink-3); }
.pins { position: absolute; inset: 0; }
.pin {
  position: absolute; transform: translate(-50%, -50%); z-index: 1;
  padding: 4px 9px; min-height: 28px; border-radius: 999px; background: var(--card); color: var(--ink);
  border: 1px solid var(--line); font-size: .8125rem; font-weight: 600; font-stretch: 105%; white-space: nowrap; font-variant-numeric: tabular-nums;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .12);
  transition: background-color var(--dur-1) var(--ease), color var(--dur-1) var(--ease), transform var(--dur-1) var(--ease);
}
.pin:hover { z-index: 3; transform: translate(-50%, -50%) scale(1.06); }
.pin[aria-pressed="true"] { background: var(--solid-bg); color: var(--solid-ink); border-color: var(--solid-bg); z-index: 4; }
.pin.is-fav::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--ipe); margin-right: 6px; vertical-align: 1px; }
.map-side { display: grid; gap: 14px; position: sticky; top: calc(var(--header-h) + 16px); }
.map-hint { padding: 20px; border: 1px dashed var(--line); border-radius: var(--r-m); color: var(--ink-2); font-size: .9375rem; }
.map-hint strong { color: var(--ink); display: block; margin-bottom: 4px; font-weight: 600; }

/* ---------- Bairros ---------- */
.bairros-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(28px, 4vw, 56px); align-items: start; }
.bairros { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.bairro { display: grid; gap: 10px; text-align: left; align-content: start; color: inherit; }
.bairro-pic { overflow: hidden; border-radius: var(--r-s); aspect-ratio: 4 / 5; background: var(--line-2); }
.bairro-pic img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease); }
@media (hover: hover) { .bairro:hover .bairro-pic img { transform: scale(1.035); } }
.bairro-name { font-size: 1.25rem; font-stretch: 112%; font-weight: 600; letter-spacing: -.012em; line-height: 1.2; }
.bairro-reg { font-size: .875rem; color: var(--ink-3); }
.bairro-txt { font-size: .9375rem; color: var(--ink-2); margin: 0; }
.bairro-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .875rem; color: var(--ink); font-variant-numeric: tabular-nums; }
.bairro-cta { font-size: .9375rem; font-weight: 600; text-decoration: underline; text-underline-offset: .22em; text-decoration-thickness: 1px; }
.m2chart { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 18px; padding: 24px; border-radius: var(--r-m); background: var(--card); border: 1px solid var(--line-2); }
.m2chart figcaption { display: grid; gap: 4px; }
.m2chart figcaption p { margin: 0; }
.bars { display: grid; gap: 12px; }
.bars li { display: grid; gap: 6px; }
.bar-top { display: flex; justify-content: space-between; gap: 12px; font-size: .9375rem; }
.bar-top b { font-weight: 600; font-variant-numeric: tabular-nums; }
.bar { height: 10px; border-radius: 0 4px 4px 0; background: var(--mata); transform-origin: left; }
.bars li.on .bar { background: var(--ipe); }
.tbl-wrap summary { cursor: pointer; font-size: .875rem; color: var(--ink-2); text-decoration: underline; text-underline-offset: .2em; }
.tbl { width: 100%; border-collapse: collapse; font-size: .9375rem; margin-top: 12px; font-variant-numeric: tabular-nums; }
.tbl th, .tbl td { text-align: left; padding: 9px 8px; border-bottom: 1px solid var(--line-2); }
.tbl th { font-weight: 600; color: var(--ink-2); font-size: .8125rem; }

/* ---------- Lançamento ---------- */
.band-dark { background: var(--dark-band); color: var(--on-dark); }
.band-dark .muted, .band-dark .sec-sub { color: var(--on-dark-2); }
.band-dark .icon.round { border-color: rgba(238, 241, 236, .25); color: var(--on-dark); }
.la-head { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); align-items: center; }
.la-copy { grid-column: 1 / span 5; display: grid; gap: 22px; align-content: center; }
.la-tag { margin: 0; font-size: .9375rem; color: var(--on-dark-2); }
.la-lede { margin: 0; font-size: 1.125rem; color: rgba(238, 241, 236, .88); max-width: 46ch; }
.la-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; padding-block: 8px; border-top: 1px solid rgba(238, 241, 236, .18); padding-top: 22px; }
.la-stats dt { font-size: .875rem; color: var(--on-dark-2); }
.la-stats dd { font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem); font-stretch: 118%; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.la-hero { grid-column: 7 / span 6; position: relative; }
.la-hero img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--r-s); }
.la-hero figcaption, .gal figcaption { position: absolute; left: 12px; bottom: 12px; padding: 4px 10px; border-radius: 999px; background: rgba(10, 16, 12, .6); color: #eef1ec; font-size: .75rem; }
.la-gallery, .plantas, .obra { margin-top: clamp(56px, 7vw, 96px); }
.gal-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.arrows { display: flex; gap: 8px; }
.gal { gap: 14px; margin-inline: calc(var(--pad) * -1); padding-inline: var(--pad); scroll-padding-inline: var(--pad); }
.gal figure { flex: none; position: relative; scroll-snap-align: start; }
.gal img { height: clamp(220px, 28vw, 400px); width: auto; aspect-ratio: auto; border-radius: var(--r-s); object-fit: cover; }

.tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.tab {
  min-height: 42px; padding: 0 16px; border-radius: 999px; border: 1px solid rgba(238, 241, 236, .25); color: var(--on-dark-2);
  font-size: .9375rem; font-weight: 500; transition: background-color var(--dur-1) var(--ease), color var(--dur-1) var(--ease);
}
.tab:hover { color: var(--on-dark); border-color: rgba(238, 241, 236, .5); }
.tab[aria-selected="true"] { background: var(--on-dark); color: #17201b; border-color: var(--on-dark); }
.plan-panel { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.plan-svg { width: 100%; height: auto; background: var(--dark-band-2); border-radius: var(--r-m); padding: clamp(14px, 2vw, 28px); }
.plan-svg .room { fill: rgba(238, 241, 236, .03); stroke: #dfe7e0; stroke-width: .7; }
.plan-svg .room.out { fill: rgba(156, 194, 167, .14); stroke-dasharray: 1.6 1.2; }
.plan-svg .rl { font-family: var(--f-sans); font-size: 2.6px; fill: #dfe7e0; text-anchor: middle; dominant-baseline: middle; font-weight: 500; }
.plan-svg .fl { font-family: var(--f-sans); font-size: 3px; fill: #b9c6bd; font-weight: 600; }
.plan-svg .outline { fill: none; stroke: #eef1ec; stroke-width: 1.4; }
.plan-info { display: grid; gap: 16px; }
.plan-info .h2 { font-stretch: 125%; }
.plan-kv { display: flex; flex-wrap: wrap; gap: 8px 24px; font-variant-numeric: tabular-nums; }
.plan-kv div { display: grid; }
.plan-kv dt { font-size: .8125rem; color: var(--on-dark-2); }
.plan-kv dd { font-size: 1.25rem; font-weight: 600; font-stretch: 110%; }
.ticks { display: grid; gap: 8px; }
.ticks li { display: flex; gap: 10px; align-items: center; }
.ticks svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; flex: none; opacity: .8; }

.timeline { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; margin-top: 24px; position: relative; }
.timeline li { position: relative; padding: 28px 20px 0 0; display: grid; gap: 4px; align-content: start; }
.timeline li::before { content: ""; position: absolute; top: 7px; left: 0; right: 0; height: 2px; background: rgba(238, 241, 236, .2); }
.timeline li::after { content: ""; position: absolute; top: 0; left: 0; width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(238, 241, 236, .5); background: var(--dark-band); }
.timeline li.done::after { background: var(--ipe); border-color: var(--ipe); }
.timeline li.done::before { background: linear-gradient(90deg, var(--ipe) 0 30%, rgba(238, 241, 236, .2) 30%); }
.tl-when { font-size: .875rem; color: var(--on-dark-2); font-variant-numeric: tabular-nums; }
.tl-name { font-weight: 600; font-size: 1.0625rem; }
.tl-txt { font-size: .9375rem; color: rgba(238, 241, 236, .8); margin: 0; }
.tl-now { justify-self: start; margin-top: 4px; font-size: .75rem; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--ipe); color: var(--on-ipe); }

/* ---------- Simulador ---------- */
.sim { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.sim-copy { display: grid; gap: 16px; position: sticky; top: calc(var(--header-h) + 24px); }
.sim-copy p { margin: 0; }
.sim-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--gap); }
.sim-in { display: grid; gap: 22px; align-content: start; }
.rng { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; align-items: baseline; }
.rng label { font-weight: 500; font-size: .9375rem; color: var(--ink-2); }
.rng output { font-weight: 600; font-stretch: 110%; font-variant-numeric: tabular-nums; font-size: 1.125rem; }
.rng input { grid-column: 1 / -1; width: 100%; accent-color: var(--mata); height: 28px; margin: 0; }
.sim-out { background: var(--card); border: 1px solid var(--line-2); border-radius: var(--r-l); padding: clamp(20px, 2.4vw, 32px); display: grid; gap: 14px; align-content: start; }
.sim-k { margin: 0; color: var(--ink-2); font-size: .9375rem; }
.sim-big { margin: 0; font-size: clamp(2.2rem, 1.6rem + 2vw, 3.2rem); font-stretch: 118%; font-weight: 600; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.sim-dl { display: grid; gap: 0; border-top: 1px solid var(--line-2); }
.sim-dl div { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line-2); font-size: .9375rem; }
.sim-dl dt { color: var(--ink-2); }
.sim-dl dd { font-weight: 600; font-variant-numeric: tabular-nums; }
.sim-out p { margin: 0; }

/* ---------- Como funciona ---------- */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--gap); counter-reset: s; }
.steps li { display: grid; gap: 8px; align-content: start; padding-top: 18px; border-top: 1px solid var(--line); }
.step-n { font-size: clamp(2.2rem, 1.6rem + 2vw, 3.4rem); font-stretch: 125%; font-weight: 600; line-height: 1; color: var(--ink-3); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.steps p { margin: 0; color: var(--ink-2); font-size: .9375rem; }

/* ---------- Corretores ---------- */
.agents { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(28px, 3vw, 40px) var(--gap); }
.agent { display: grid; gap: 12px; text-align: left; width: 100%; align-content: start; }
.agent-pic { aspect-ratio: 4 / 5; border-radius: 999px 999px var(--r-s) var(--r-s); overflow: hidden; background: var(--line-2); }
.agent-pic img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease); }
@media (hover: hover) { .agent:hover .agent-pic img { transform: scale(1.03); } }
.agent-name { font-size: 1.125rem; font-weight: 600; font-stretch: 108%; line-height: 1.25; }
.agent-role { font-size: .9375rem; color: var(--ink-2); line-height: 1.4; }
.agent-n { font-size: .8125rem; color: var(--ink-3); }

/* ---------- Anuncie ---------- */
.an { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.an-pic img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-s); }
.an-copy { display: grid; gap: 20px; max-width: 620px; }
.an-copy > p { margin: 0; color: var(--ink-2); font-size: 1.125rem; }
.facts { display: grid; gap: 0; border-top: 1px solid var(--line); }
.facts li { display: grid; grid-template-columns: minmax(160px, 1fr) 2fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: .9375rem; }
.facts strong { font-weight: 600; }
.facts span { color: var(--ink-2); }

/* ---------- Forms ---------- */
.form { display: grid; gap: 14px; }
.f { display: grid; gap: 6px; }
.f label, .f .lbl { font-size: .875rem; font-weight: 500; color: var(--ink-2); }
.f2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.f textarea { padding: 12px 14px; min-height: 96px; resize: vertical; }
.f input[aria-invalid="true"] { border-color: var(--ipe); }
.err { color: var(--ipe); font-size: .8125rem; margin: 0; }
.demo-note { margin: 0; font-size: .8125rem; color: var(--ink-2); padding: 8px 12px; border-radius: var(--r-m); background: var(--paper-2); border: 1px solid var(--line-2); }
.form-msg { margin: 0; font-size: .9375rem; min-height: 1.4em; }
.form-msg.ok { color: var(--ink); font-weight: 500; }
.pick { display: flex; flex-wrap: wrap; gap: 8px; }
.pick .chip { min-height: 44px; display: grid; place-items: center; line-height: 1.15; text-align: center; }
.pick .chip small { display: block; font-size: .75rem; font-weight: 500; opacity: .75; }

/* ---------- Jornal ---------- */
.posts { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(28px, 3vw, 40px) var(--gap); }
.post { display: grid; gap: 12px; text-align: left; align-content: start; width: 100%; }
.post-pic { overflow: hidden; border-radius: var(--r-s); aspect-ratio: 4 / 3; background: var(--line-2); }
.post-pic img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease); }
@media (hover: hover) { .post:hover .post-pic img { transform: scale(1.03); } }
.post-meta { font-size: .8125rem; color: var(--ink-3); }
.post-title { font-size: 1.1875rem; font-weight: 600; font-stretch: 108%; line-height: 1.25; letter-spacing: -.01em; }
.post-sum { font-size: .9375rem; color: var(--ink-2); margin: 0; }
.post.big { grid-column: span 2; grid-row: span 2; }
.post.big .post-pic { aspect-ratio: 5 / 4; }
.post.big .post-title { font-size: clamp(1.5rem, 1.2rem + 1vw, 2.1rem); font-stretch: 118%; letter-spacing: -.02em; }
.post.big .post-sum { font-family: var(--f-serif); font-size: 1.1875rem; color: var(--ink); }

/* ---------- FAQ ---------- */
.faq-in { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(28px, 5vw, 80px); }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; font-weight: 600; font-size: 1.125rem; font-stretch: 105%; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; flex: none; transition: transform var(--dur-2) var(--ease); }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq details p { margin: 0 0 22px; color: var(--ink-2); max-width: 64ch; }

/* ---------- Footer ---------- */
.foot { background: var(--foot); color: #dfe6e0; padding-block: clamp(56px, 7vw, 96px) 40px; }
.foot .logo-mark .sill { stroke: #f39ec1; }
.foot-top { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: end; padding-bottom: 40px; border-bottom: 1px solid rgba(223, 230, 224, .14); }
.logo-foot .logo-word { font-size: clamp(2.6rem, 1.6rem + 5vw, 6rem); }
.logo-foot .logo-mark { width: clamp(40px, 5vw, 72px); height: clamp(40px, 5vw, 72px); stroke-width: 1.4; }
.foot-claim { margin: 0; color: #aebbb2; max-width: 34ch; }
.foot-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding-block: 40px; }
.foot-h { font-size: .875rem; font-weight: 600; color: #8fa096; margin-bottom: 12px; }
.foot ul { display: grid; gap: 6px; }
.foot a, .foot .link { color: #dfe6e0; text-decoration: none; font-size: .9375rem; min-height: 32px; display: inline-flex; align-items: center; }
.foot a:hover, .foot .link:hover { text-decoration: underline; }
.foot-base { border-top: 1px solid rgba(223, 230, 224, .14); padding-top: 28px; display: grid; gap: 18px; font-size: .875rem; color: #aebbb2; }
.foot-base p { margin: 0; max-width: 92ch; }
.foot-base strong { color: #eef1ec; font-weight: 600; }
.credits summary { cursor: pointer; color: #dfe6e0; text-decoration: underline; text-underline-offset: .2em; width: fit-content; min-height: 32px; display: inline-flex; align-items: center; }
.credits ul { margin-top: 14px; columns: 4 200px; column-gap: 24px; display: block; }
.credits li { break-inside: avoid; padding: 2px 0; font-size: .8125rem; }
.credits a { font-size: .8125rem; min-height: 0; color: #c9d4cc; }

/* ---------- Dialogs ---------- */
dialog { border: 0; padding: 0; color: var(--ink); background: var(--paper); max-height: 100dvh; }
dialog::backdrop { background: rgba(8, 13, 10, .55); }
.modal { width: min(1120px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); border-radius: var(--r-l); overflow: auto; box-shadow: var(--shadow-lg); overscroll-behavior: contain; }
.small-dlg { width: min(520px, calc(100vw - 32px)); padding: clamp(22px, 3vw, 32px); gap: 14px; }
.small-dlg[open] { display: grid; }
.close-x { position: absolute; top: 10px; right: 10px; z-index: 5; background: var(--card); box-shadow: 0 0 0 1px var(--line-2); }
.drawer { margin: 0; height: 100dvh; max-height: 100dvh; width: min(460px, 100vw); padding: 20px; display: none; flex-direction: column; gap: 16px; overflow: auto; box-shadow: var(--shadow-lg); }
.drawer[open] { display: flex; }
.drawer-l { margin-right: auto; }
.drawer-r { margin-left: auto; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.drawer-nav { display: grid; }
.drawer-nav a { padding: 14px 4px; border-bottom: 1px solid var(--line-2); text-decoration: none; font-size: 1.25rem; font-stretch: 112%; font-weight: 600; letter-spacing: -.01em; }
@media (prefers-reduced-motion: no-preference) {
  .modal[open] { animation: dlg var(--dur-2) var(--ease); }
  .drawer-r[open] { animation: slideR var(--dur-2) var(--ease); }
  .drawer-l[open] { animation: slideL var(--dur-2) var(--ease); }
  dialog[open]::backdrop { animation: fadein var(--dur-2) ease; }
}
@keyframes dlg { from { opacity: 0; transform: translateY(12px) scale(.99); } }
@keyframes slideR { from { transform: translateX(24px); opacity: 0; } }
@keyframes slideL { from { transform: translateX(-24px); opacity: 0; } }

/* listing modal */
.ld { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.ld-gal { position: relative; background: #0d130f; }
.ld-main { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.ld-main img { width: 100%; height: 100%; object-fit: cover; }
.ld-nav { position: absolute; inset: auto 12px 12px auto; display: flex; gap: 8px; align-items: center; }
.ld-nav .icon { background: rgba(250, 251, 248, .92); color: #17201b; }
.ld-count { padding: 4px 10px; border-radius: 999px; background: rgba(10, 16, 12, .6); color: #eef1ec; font-size: .8125rem; font-variant-numeric: tabular-nums; }
.ld-thumbs { display: flex; gap: 6px; padding: 8px; overflow-x: auto; }
.ld-thumbs button { flex: none; width: 84px; aspect-ratio: 4 / 3; border-radius: 3px; overflow: hidden; opacity: .55; transition: opacity var(--dur-1) var(--ease); outline-offset: 1px; }
.ld-thumbs button[aria-current="true"] { opacity: 1; box-shadow: 0 0 0 2px #eef1ec; }
.ld-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.ld-info { padding: clamp(22px, 3vw, 36px); display: grid; gap: 18px; align-content: start; }
.ld-where { font-size: .9375rem; color: var(--ink-2); margin: 0; padding-right: 48px; }
.ld-name { font-size: clamp(1.7rem, 1.3rem + 1.5vw, 2.5rem); font-stretch: 122%; font-weight: 600; line-height: 1.02; letter-spacing: -.028em; }
.ld-price { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem); }
.ld-costs { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: .9375rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.ld-specs { display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1px solid var(--line); }
.ld-specs div { padding: 12px 8px 12px 0; display: grid; gap: 2px; }
.ld-specs div + div { padding-left: 12px; border-left: 1px solid var(--line-2); }
.ld-specs dt { font-size: .8125rem; color: var(--ink-2); display: flex; align-items: center; gap: 6px; }
.ld-specs dt svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.ld-specs dd { font-weight: 600; font-size: 1.125rem; font-variant-numeric: tabular-nums; font-stretch: 108%; }
.ld-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.ld-actions .btn[aria-pressed="true"] { border-color: var(--ipe); color: var(--ipe); }
.ld-actions .btn[aria-pressed="true"] svg { fill: currentColor; }
.ld-more { grid-column: 1 / -1; padding: clamp(22px, 3vw, 36px); border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 56px); }
.ld-desc { font-family: var(--f-serif); font-size: 1.25rem; line-height: 1.5; margin: 0; }
.ld-feats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; margin-top: 18px; }
.ld-feats li { display: flex; gap: 8px; align-items: flex-start; font-size: .9375rem; }
.ld-feats svg { width: 18px; height: 18px; fill: none; stroke: var(--mata); stroke-width: 1.9; flex: none; margin-top: 2px; }
.ld-bairro { margin-top: 24px; padding: 18px; border-radius: var(--r-m); background: var(--paper-2); display: grid; gap: 6px; font-size: .9375rem; }
.ld-bairro p { margin: 0; color: var(--ink-2); }
.ld-side { display: grid; gap: 18px; align-content: start; }
.mini-agent { display: grid; grid-template-columns: 64px 1fr; gap: 14px; align-items: center; text-align: left; }
.mini-agent img { width: 64px; height: 80px; object-fit: cover; border-radius: 999px 999px 3px 3px; }
.mini-agent strong { display: block; font-weight: 600; }
.mini-agent span { font-size: .875rem; color: var(--ink-2); }
.mini-agent u { font-size: .875rem; text-underline-offset: .2em; }
.visit-box { padding: 18px; border: 1px solid var(--line); border-radius: var(--r-m); display: grid; gap: 14px; }
.ld-similar { grid-column: 1 / -1; padding: 0 clamp(22px, 3vw, 36px) clamp(22px, 3vw, 36px); }
.ld-similar .h4 { margin-bottom: 16px; }
.mini-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.mini-card { display: grid; gap: 6px; text-align: left; }
.mini-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 3px; }
.mini-card b { font-weight: 600; font-size: .9375rem; }
.mini-card span { font-size: .875rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }

/* agent modal */
.ad { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }
.ad-pic img { width: 100%; height: 100%; min-height: 100%; object-fit: cover; aspect-ratio: 4 / 5; }
.ad-info { padding: clamp(22px, 3vw, 40px); display: grid; gap: 18px; align-content: start; }
.ad-quote { font-family: var(--f-serif); font-style: italic; font-size: clamp(1.25rem, 1.1rem + .6vw, 1.6rem); line-height: 1.35; margin: 0; }
.ad-facts { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.ad-facts div { display: grid; }
.ad-facts dt { font-size: .8125rem; color: var(--ink-2); }
.ad-facts dd { font-weight: 600; font-variant-numeric: tabular-nums; }

/* post modal */
.pdlg { width: min(760px, calc(100vw - 32px)); }
.pd-pic img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.pd-body { padding: clamp(22px, 4vw, 48px); display: grid; gap: 16px; }
.pd-body p { font-family: var(--f-serif); font-size: 1.1875rem; line-height: 1.65; margin: 0; max-width: 62ch; }
.pd-body .post-meta { font-family: var(--f-sans); }

/* favorites */
.fav-list { display: grid; gap: 4px; }
.fav-row { display: grid; grid-template-columns: 88px 1fr 44px; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line-2); }
.fav-row img { width: 88px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 3px; }
.fav-row button.n { text-align: left; font-weight: 600; font-size: .9375rem; line-height: 1.3; }
.fav-row span { display: block; font-size: .875rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.cmp { overflow-x: auto; margin-inline: -20px; padding-inline: 20px; }
.cmp table { border-collapse: collapse; font-size: .875rem; min-width: 100%; font-variant-numeric: tabular-nums; }
.cmp th, .cmp td { padding: 10px 10px 10px 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line-2); min-width: 120px; }
.cmp thead img { width: 120px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 3px; margin-bottom: 6px; }
.cmp thead th { font-weight: 600; }
.cmp tbody th { color: var(--ink-2); font-weight: 500; min-width: 96px; position: sticky; left: -20px; background: var(--paper); padding-left: 0; }
.cmp td.best { font-weight: 700; color: var(--ink); }
.cmp td.best::after { content: " ●"; color: var(--ipe); font-size: .7em; }
.fav-empty { display: grid; gap: 10px; justify-items: start; padding: 24px 0; }
.fav-empty p { margin: 0; color: var(--ink-2); }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 90; max-width: calc(100vw - 32px);
  background: var(--solid-bg); color: var(--solid-ink); padding: 12px 18px; border-radius: 999px; font-size: .9375rem; box-shadow: var(--shadow);
}
@media (prefers-reduced-motion: no-preference) { .toast:not([hidden]) { animation: rise .3s var(--ease); } }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .nav { display: none; }
  .top-tools { margin-left: auto; }
  .only-s { display: inline-grid; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .bairros-layout { grid-template-columns: 1fr; }
  .m2chart { position: static; max-width: 560px; }
  .agents { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); row-gap: 36px; }
  .posts { grid-template-columns: repeat(2, 1fr); }
  .post.big { grid-column: span 2; grid-row: auto; }
  .post.big .post-pic { aspect-ratio: 16 / 9; }
  .sim { grid-template-columns: 1fr; }
  .sim-copy { position: static; max-width: 640px; }
  .mapview { grid-template-columns: 1fr; }
  .map-side { position: static; }
  .finder { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .seg-finder { grid-column: 1 / -1; justify-self: start; }
  .finder-go { grid-column: 1 / -1; }
}
@media (max-width: 960px) {
  .spread, .spread.rev { grid-template-columns: 1fr; gap: 20px; }
  .spread-pic, .spread.rev .spread-pic, .spread-copy, .spread.rev .spread-copy { grid-column: 1; grid-row: auto; }
  .spread-pic2 { display: none; }
  .la-head { grid-template-columns: 1fr; }
  .la-copy, .la-hero { grid-column: 1; }
  .la-hero { order: -1; }
  .plan-panel { grid-template-columns: 1fr; }
  .an { grid-template-columns: 1fr; }
  .an-pic img { aspect-ratio: 16 / 10; }
  .faq-in { grid-template-columns: 1fr; }
  .ld, .ld-more { grid-template-columns: 1fr; }
  .ad { grid-template-columns: 1fr; }
  .ad-pic img { aspect-ratio: 1 / 1; max-height: 360px; object-position: 50% 25%; }
  .timeline { grid-template-columns: 1fr; gap: 0; }
  .timeline li { padding: 0 0 26px 32px; }
  .timeline li::before { top: 0; bottom: 0; left: 7px; right: auto; width: 2px; height: auto; }
  .timeline li.done::before { background: linear-gradient(180deg, var(--ipe) 0 40%, rgba(238, 241, 236, .2) 40%); }
  .timeline li:last-child::before { display: none; }
  .foot-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  :root { --header-h: 64px; }
  .hide-s { display: none !important; }
  .grid { grid-template-columns: 1fr; }
  .bairros { grid-template-columns: repeat(2, 1fr); }
  .bairro-pic { aspect-ratio: 1 / 1; }
  .agents { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .steps li { grid-template-columns: 64px 1fr; column-gap: 12px; }
  .steps li .step-n { grid-row: span 2; }
  .posts { grid-template-columns: 1fr; }
  .post.big { grid-column: auto; }
  .sim-form { grid-template-columns: 1fr; }
  .finder { grid-template-columns: 1fr 1fr; padding: 14px; gap: 10px; }
  .finder .fld:nth-of-type(3) { grid-column: 1 / -1; }
  .f2 { grid-template-columns: 1fr; }
  .facts li { grid-template-columns: 1fr; gap: 2px; }
  .mini-cards { grid-template-columns: 1fr 1fr; }
  .mini-cards > :nth-child(3) { display: none; }
  .ld-specs { grid-template-columns: repeat(2, 1fr); }
  .ld-specs div:nth-child(3) { padding-left: 0; border-left: 0; }
  .ld-specs div:nth-child(n+3) { border-top: 1px solid var(--line-2); }
  .ld-feats { grid-template-columns: 1fr; }
  .modal { width: 100vw; max-height: 100dvh; height: 100dvh; border-radius: 0; max-width: 100vw; }
  .small-dlg { height: fit-content; max-height: calc(100dvh - 24px); width: calc(100vw - 24px); border-radius: var(--r-l); }
  .filters-row .fld-line { flex: 1 1 calc(50% - 6px); }
  .filters-row .fld-line select { min-width: 0; }
  .filters-row .search { flex-basis: 100%; }
  .pin { padding: 0; min-height: 0; width: 14px; height: 14px; font-size: 0; border-width: 2px; border-color: var(--card); background: var(--solid-bg); }
  .pin.is-fav::before { display: none; }
  .pin.is-fav { background: var(--ipe); }
  .pin[aria-pressed="true"] { width: 20px; height: 20px; background: var(--ipe); }
  .pin::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; }
  .map-svg .zlabel { font-size: 22px; }
  .map-svg .wlabel { font-size: 20px; }
  .view-toggle { width: 100%; }
  .view-toggle button { flex: 1; justify-content: center; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .cmp tbody th { left: -20px; }
}
@media (max-width: 400px) {
  .seg button { padding: 0 12px; }
  .bairros { grid-template-columns: 1fr; }
  .bairro-pic { aspect-ratio: 16 / 10; }
  .finder { grid-template-columns: 1fr; }
  .finder .fld:nth-of-type(3) { grid-column: auto; }
  .agents { gap: 24px 14px; }
  .foot-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
@media (forced-colors: active) {
  .bar { background: CanvasText; }
  .pin[aria-pressed="true"], .chip[aria-pressed="true"], .seg button[aria-pressed="true"] { outline: 2px solid Highlight; }
}

/* ---------- Additions used by app.js ---------- */
html { scrollbar-gutter: stable; }
html.lock { overflow: hidden; }
.card-h { font: inherit; margin: 0; }
.card-name { color: inherit; }
.bars.anim .bar { transform: scaleX(0); }
.bars.anim.in .bar { transform: none; transition: transform 900ms var(--ease); }
.zlabels { position: absolute; inset: 0; pointer-events: none; }
.zlab {
  position: absolute; transform: translate(-50%, -50%); white-space: nowrap;
  font-size: .875rem; font-weight: 600; font-stretch: 112%; letter-spacing: -.01em; color: var(--ink-2);
  text-shadow: 0 0 3px var(--map-land), 0 0 6px var(--map-land);
}
.zlab.end { transform: translate(-100%, -50%); }
.map-svg .field { fill: var(--map-park); opacity: .55; }
.map-svg .water { fill: var(--map-sea); }
.map-svg .compass path { fill: var(--ink-3); }
.map-svg .compass text, .map-svg .scale text { font-family: var(--f-sans); font-size: 13px; font-weight: 600; fill: var(--ink-3); }
.map-svg .scale path { stroke: var(--ink-3); stroke-width: 1.5; fill: none; }
.pin.rent { border-style: dashed; }
.pin[aria-pressed="true"].rent { border-style: solid; }
.map-side .card { padding: 14px; border-radius: var(--r-m); background: var(--card); border: 1px solid var(--line-2); }
.map-side .btn { justify-self: start; }
.ld-sub { margin-top: 24px; }
.ld-total { font-size: 1.75rem; margin: 0; }
.visit-box .sim-dl { margin-top: 4px; }
.visit-box .btn { justify-self: start; }
.ad-role { margin: 0; font-size: 1.0625rem; }
.ad-info > p { margin: 0; }
.ad-info .h4 { margin-top: 8px; }
.ad-info .mini-cards { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.plan-svg .north path { fill: #eef1ec; }
.ok-state { display: grid; gap: 10px; justify-items: start; padding: 8px 0 4px; outline: none; }
.ok-state > svg { width: 36px; height: 36px; fill: none; stroke: var(--mata); stroke-width: 2; }
.ok-state p { margin: 0; }
.fav-row > div { display: grid; gap: 2px; }
.cmp thead th .link { font-weight: 600; text-align: left; display: block; max-width: 140px; }
.cmp thead td { min-width: 96px; }
.foot .credits ul { display: block; }
.credits li a + a { margin-left: 6px; }
.credits li a { display: inline; }
.gal img { max-width: none; }
.sim > * { min-width: 0; }
.seg-wide button { white-space: normal; text-align: center; line-height: 1.2; padding-block: 6px; }
@media (max-width: 1180px) { .sim { grid-template-columns: minmax(0, 1fr); } }
.seg { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg button { flex: none; }
.seg-wide button { flex: 1; }

/* Mobile hero: photo and headline on top, search panel below on paper */
@media (max-width: 720px) {
  .hero { min-height: 0; grid-template-rows: auto auto; background: var(--paper); }
  .hero-media { position: relative; inset: auto; grid-row: 1; grid-column: 1; height: max(480px, 76svh); z-index: 0; }
  .hero-media::after { background: linear-gradient(180deg, rgba(8, 14, 10, .5) 0%, rgba(8, 14, 10, 0) 24%, rgba(8, 14, 10, .15) 45%, rgba(8, 14, 10, .78) 82%, rgba(8, 14, 10, .86) 100%); }
  .hero-copy { grid-row: 1; grid-column: 1; align-self: end; z-index: 1; padding-bottom: 28px; }
  .hero-sill { position: relative; grid-row: 1; grid-column: 1; align-self: end; inset: auto; width: 100%; }
  .finder { grid-row: 2; max-width: none; border-radius: 0; box-shadow: none; padding: 20px var(--pad) 8px; }
}
.plan-scroll { overflow-x: auto; border-radius: var(--r-m); }
@media (max-width: 720px) { .plan-svg { min-width: 560px; } }
.small-dlg[open] { align-content: start; }
@media (max-width: 720px) {
  .pin.rent { border-style: solid; }
  .pin[aria-pressed="true"] { background: var(--solid-bg); box-shadow: 0 0 0 3px var(--ipe); }
}

/* Hero legibility over bright foliage */
.hero-media::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(8, 14, 10, .5) 0%, rgba(8, 14, 10, .22) 40%, rgba(8, 14, 10, 0) 68%); pointer-events: none; }
.hero-media::after { z-index: 1; }
.hero-copy { text-shadow: 0 1px 16px rgba(6, 10, 8, .35); }
/* Edition spreads: keep image and story side by side, centred */
.spread { align-items: center; }
@media (max-width: 1180px) and (min-width: 961px) {
  .spread-pic { grid-column: 1 / span 6; }
  .spread-copy { grid-column: 8 / span 5; }
  .spread.rev .spread-pic { grid-column: 7 / span 6; }
  .spread.rev .spread-copy { grid-column: 1 / span 5; }
  .spread-pic2 { display: none; }
}

/* Touch: keep every control at least 44px tall on coarse pointers */
@media (pointer: coarse) {
  .chip, .seg button, .tab { min-height: 44px; }
  .foot a, .foot .link, .credits summary, .hero-credit, .tbl-wrap summary { min-height: 44px; display: inline-flex; align-items: center; }
  .ld-bairro .link, .mini-agent u { padding-block: 10px; display: inline-block; }
}
.nav a[aria-current="true"] { opacity: 1; background: color-mix(in srgb, currentColor 10%, transparent); }
