/* Zionland Realty & Trading, 2026 redesign by WebLuxe PH
   Palette is lifted from the Zionland logo: navy pines, slate pines, gold roof. */
:root {
  --fog: #edf0ee;
  --fog-2: #e2e7e4;
  --paper: #ffffff;
  --ink: #1c2740;
  --ink-2: #3b4760;
  --mute: #66718a;
  --slate: #4a5d7e;
  --brass: #c49a2c;
  --brass-ink: #8a6a12;
  --pine: #2f5d4a;
  --line: rgba(28, 39, 64, .14);
  --line-2: rgba(28, 39, 64, .08);
  --r: 14px;
  --r-sm: 9px;
  --shadow: 0 1px 2px rgba(28,39,64,.06), 0 12px 32px -14px rgba(28,39,64,.28);
  --display: "Marcellus", "Trajan Pro", Georgia, serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  --wrap: 1220px;
  --gut: clamp(16px, 4vw, 40px);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--fog); color: var(--ink); font: 400 16.5px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2.5px solid var(--brass); outline-offset: 3px; border-radius: 4px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- type ---------- */
h1, h2, h3, .display { font-family: var(--display); font-weight: 400; letter-spacing: .005em; line-height: 1.08; margin: 0; }
h1 { font-size: clamp(2.5rem, 5.6vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); }
h3 { font-size: 1.35rem; line-height: 1.2; }
p { margin: 0 0 1em; }
.lede { font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: var(--ink-2); max-width: 56ch; }
.eyebrow { font: 500 .74rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--brass-ink); display: inline-flex; align-items: center; gap: .6em; margin-bottom: 1.1rem; }
.eyebrow::before { content: ""; width: 22px; height: 1.5px; background: currentColor; }
.on-dark .eyebrow { color: var(--brass); }
.mono { font-family: var(--mono); }
.num { font-variant-numeric: tabular-nums; }

/* ---------- buttons ---------- */
.btn { --bg: var(--ink); --fg: #fff; display: inline-flex; align-items: center; justify-content: center; gap: .55em; min-height: 48px; padding: 0 1.35em; border-radius: 999px; border: 1.5px solid var(--bg); background: var(--bg); color: var(--fg); font-weight: 600; font-size: .98rem; text-decoration: none; cursor: pointer; transition: transform .18s ease, background .18s ease, color .18s ease, border-color .18s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-gold { --bg: var(--brass); --fg: #1c2740; }
.btn-gold:hover { --bg: #d5ab3b; }
.btn-line { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-line:hover { border-color: var(--ink); }
.on-dark .btn-line { color: #fff; border-color: rgba(255,255,255,.35); }
.on-dark .btn-line:hover { border-color: #fff; }
.btn-sm { min-height: 40px; font-size: .9rem; padding: 0 1.05em; }
.btn svg { width: 18px; height: 18px; flex: none; }
.link-arrow { font-weight: 600; text-decoration: none; display: inline-flex; gap: .4em; align-items: center; border-bottom: 1.5px solid var(--brass); padding-bottom: 2px; }
.link-arrow:hover { color: var(--brass-ink); }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 50; background: rgba(237,240,238,.86); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.top.scrolled { border-color: var(--line); }
.top .wrap { display: flex; align-items: center; gap: 24px; height: 76px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand img { height: 56px; width: auto; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { text-decoration: none; font-weight: 500; font-size: .95rem; padding: 8px 12px; border-radius: 999px; color: var(--ink-2); }
.nav a:hover { color: var(--ink); background: var(--fog-2); }
.nav a[aria-current="page"] { color: var(--ink); background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); }
.top-cta { display: flex; gap: 10px; align-items: center; }
.top-phone { font: 500 .85rem var(--mono); text-decoration: none; color: var(--ink-2); }
.menu-btn { display: none; margin-left: auto; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); cursor: pointer; align-items: center; justify-content: center; }
.menu-btn span, .menu-btn span::before, .menu-btn span::after { display: block; width: 18px; height: 1.6px; background: var(--ink); position: relative; transition: transform .2s; }
.menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; }
.menu-btn span::before { top: -6px; } .menu-btn span::after { top: 6px; }
.menu-open .menu-btn span { background: transparent; }
.menu-open .menu-btn span::before { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-btn span::after { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 1020px) {
  .top-phone { display: none; }
  .nav { display: none; }
  .menu-btn { display: inline-flex; }
  .top-cta { margin-left: 0; }
  .menu-open .nav { display: flex; flex-direction: column; position: fixed; inset: 76px 0 auto 0; background: var(--fog); padding: 12px var(--gut) 28px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .menu-open .nav a { font-size: 1.15rem; padding: 14px 10px; border-radius: 10px; }
}
@media (max-width: 560px) { .top .top-cta .btn { display: none; } .brand img { height: 44px; } }

/* ---------- contour signature ---------- */
.contours { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.contours path { fill: none; stroke: currentColor; stroke-width: 1; vector-effect: non-scaling-stroke; }
.contours.draw path { stroke-dasharray: var(--len, 2400); stroke-dashoffset: var(--len, 2400); animation: draw 2.6s cubic-bezier(.3,.6,.2,1) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.elev { font: 500 .72rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 8px; }
.elev::before { content: ""; width: 9px; height: 9px; border: 1.5px solid currentColor; transform: rotate(45deg); }

/* ---------- hero ---------- */
.hero { position: relative; padding: clamp(28px, 4vw, 48px) 0 0; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 0; border-radius: 22px; overflow: hidden; background: var(--ink); color: #fff; min-height: min(78vh, 720px); box-shadow: var(--shadow); }
.hero-copy { position: relative; padding: clamp(32px, 5vw, 64px); display: flex; flex-direction: column; justify-content: space-between; gap: 32px; isolation: isolate; }
.hero-copy .contours { color: rgba(196,154,44,.22); z-index: -1; }
.hero-copy h1 { color: #fff; }
.hero-copy h1 em { font-style: normal; color: var(--brass); }
.hero-copy .lede { color: rgba(255,255,255,.78); margin-top: 1.1rem; }
.hero-meta { display: flex; gap: 18px; flex-wrap: wrap; color: rgba(255,255,255,.62); }
.hero-photo { position: relative; min-height: 360px; }
.hero-photo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(28,39,64,.55), transparent 30%); }
.plate { position: absolute; right: 20px; bottom: 20px; z-index: 2; width: min(330px, calc(100% - 40px)); background: rgba(255,255,255,.96); color: var(--ink); border-radius: var(--r); padding: 14px; display: grid; grid-template-columns: 76px 1fr; gap: 12px; text-decoration: none; box-shadow: var(--shadow); transition: transform .2s; }
.plate:hover { transform: translateY(-3px); }
.plate img { width: 76px; height: 76px; border-radius: 10px; object-fit: cover; }
.plate small { font: 500 .66rem/1.2 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--brass-ink); }
.plate b { display: block; font-weight: 600; font-size: .93rem; line-height: 1.3; margin: 3px 0; }
.plate span { font: 500 .8rem var(--mono); color: var(--mute); }

/* search card */
.search { background: var(--paper); color: var(--ink); border-radius: var(--r); padding: 8px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 6px; align-items: stretch; box-shadow: 0 20px 40px -20px rgba(0,0,0,.5); }
.search .seg { grid-column: 1 / -1; justify-self: start; }
.seg { display: inline-flex; background: var(--fog); border-radius: 10px; padding: 4px; gap: 2px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; }
.seg span { display: block; padding: 10px 14px; border-radius: 7px; font-weight: 600; font-size: .9rem; cursor: pointer; color: var(--mute); }
.seg input:checked + span { background: var(--ink); color: #fff; }
.seg input:focus-visible + span { outline: 2px solid var(--brass); }
.field-inline { display: flex; flex-direction: column; justify-content: center; padding: 4px 12px; border-radius: 10px; }
.field-inline:hover { background: var(--fog); }
.field-inline label { font: 500 .66rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--mute); margin-bottom: 4px; }
.field-inline select { border: 0; background: transparent; font-weight: 600; padding: 2px 0; cursor: pointer; appearance: none; -webkit-appearance: none; outline: none; }
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .search { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .elev { font-size: .64rem; letter-spacing: .08em; }
  .hero-photo { min-height: 300px; }
  .hero-photo::after { background: linear-gradient(0deg, rgba(28,39,64,.6), transparent 40%); }
  .search { grid-template-columns: 1fr 1fr; }
  .search .seg { grid-column: 1 / -1; justify-self: stretch; }
  .search .seg label { flex: 1; text-align: center; }
  .search .btn { grid-column: 1 / -1; }
}

/* ---------- doors (buyer/seller split) ---------- */
.doors { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.door { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: end; padding: 26px 28px; border-radius: var(--r); background: var(--paper); text-decoration: none; border: 1px solid var(--line-2); transition: border-color .2s, transform .2s; overflow: hidden; }
.door:hover { border-color: var(--ink); transform: translateY(-2px); }
.door h3 { font-size: 1.55rem; margin-bottom: 6px; }
.door p { margin: 0; color: var(--mute); max-width: 42ch; }
.door .arrow { width: 52px; height: 52px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; transition: background .2s; }
.door:hover .arrow { background: var(--brass); color: var(--ink); }
.door.sell .arrow { background: var(--fog); color: var(--ink); }
@media (max-width: 760px) { .doors { grid-template-columns: 1fr; } .door { padding: 22px; } }

/* ---------- sections ---------- */
.sec { padding: clamp(64px, 9vw, 120px) 0; }
.sec-tight { padding: clamp(44px, 6vw, 72px) 0; }
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: clamp(28px, 4vw, 44px); flex-wrap: wrap; }
.sec-head h2 { max-width: 18ch; }
.sec-head p { max-width: 46ch; color: var(--mute); margin: 0; }
.dark { background: var(--ink); color: #fff; position: relative; overflow: hidden; isolation: isolate; }
.dark .contours { color: rgba(255,255,255,.07); z-index: -1; }
.dark p { color: rgba(255,255,255,.72); }
.paper { background: var(--paper); }

/* ---------- listing cards ---------- */
.grid-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 1020px) { .grid-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-cards { grid-template-columns: 1fr; } }
.card { background: var(--paper); border-radius: var(--r); overflow: hidden; text-decoration: none; display: flex; flex-direction: column; border: 1px solid var(--line-2); transition: transform .25s ease, box-shadow .25s ease; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-img { position: relative; aspect-ratio: 4 / 3; background: var(--fog-2); overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.card:hover .card-img img { transform: scale(1.04); }
.card-img .noimg { position: absolute; inset: 0; display: grid; place-items: center; color: var(--slate); background: var(--fog-2); }
.card-img .noimg .contours { color: rgba(74,93,126,.25); }
.card-img .noimg span { position: relative; font: 500 .72rem var(--mono); letter-spacing: .12em; text-transform: uppercase; background: var(--paper); padding: 8px 12px; border-radius: 999px; }
.chip { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; flex-wrap: wrap; }
.chip span { background: rgba(255,255,255,.94); color: var(--ink); font: 600 .72rem/1 var(--body); padding: 7px 10px; border-radius: 999px; }
.chip span.gold { background: var(--brass); }
.card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-loc { font: 500 .72rem/1.2 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
.card-title { font-weight: 600; font-size: 1.04rem; line-height: 1.35; }
.card-foot { margin-top: auto; padding-top: 12px; border-top: 1px dashed var(--line); display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.price { font-family: var(--display); font-size: 1.4rem; line-height: 1; }
.price.ask { font-family: var(--body); font-size: .92rem; font-weight: 600; color: var(--brass-ink); }
.survey { font: 500 .76rem var(--mono); color: var(--slate); white-space: nowrap; }
.survey b { font-weight: 600; color: var(--ink); }
.skel { background: linear-gradient(90deg, var(--fog-2), #f4f6f5, var(--fog-2)); background-size: 200% 100%; animation: sk 1.2s infinite linear; border-radius: var(--r); height: 360px; }
@keyframes sk { to { background-position: -200% 0; } }

/* ---------- type tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.tile { background: var(--paper); padding: 22px 22px 20px; text-decoration: none; display: flex; flex-direction: column; gap: 22px; transition: background .2s; min-height: 150px; }
.tile:hover { background: var(--fog); }
.tile .count { font: 400 2.4rem/1 var(--display); }
.tile .count small { font: 500 .72rem var(--mono); letter-spacing: .1em; color: var(--mute); margin-left: 6px; text-transform: uppercase; }
.tile b { font-weight: 600; margin-top: auto; display: flex; justify-content: space-between; align-items: center; }
@media (max-width: 860px) { .tiles { grid-template-columns: repeat(2, 1fr); } }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; counter-reset: s; position: relative; }
.step { padding: 0 18px 0 0; position: relative; }
.step::before { counter-increment: s; content: counter(s, decimal-leading-zero); font: 500 .8rem var(--mono); color: var(--brass); display: block; margin-bottom: 14px; }
.step .bar { height: 2px; background: rgba(255,255,255,.18); margin-bottom: 22px; position: relative; }
.step .bar::after { content: ""; position: absolute; left: 0; top: -4px; width: 10px; height: 10px; background: var(--brass); transform: rotate(45deg); }
.step h3 { font-size: 1.25rem; margin-bottom: 10px; color: #fff; }
.step p { font-size: .95rem; margin: 0; }
@media (max-width: 960px) { .steps { grid-template-columns: 1fr; gap: 28px; } .step { padding: 0 0 0 28px; border-left: 2px solid rgba(255,255,255,.18); } .step .bar { display: none; } }

/* ---------- areas ---------- */
.areas { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.area { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px; border-radius: var(--r-sm); background: var(--paper); text-decoration: none; border: 1px solid var(--line-2); transition: border-color .2s; }
.area:hover { border-color: var(--ink); }
.area b { font-weight: 600; }
.area span { font: 500 .78rem var(--mono); color: var(--mute); }

/* ---------- split / trust ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 80px); align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.photo-frame { border-radius: 18px; overflow: hidden; position: relative; aspect-ratio: 4 / 5; }
.photo-frame img { width: 100%; height: 100%; object-fit: cover; }
.creds { display: grid; gap: 0; border-top: 1px solid var(--line); margin-top: 28px; }
.cred { display: grid; grid-template-columns: 170px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cred dt { font: 500 .72rem/1.5 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
.cred dd { margin: 0; font-weight: 600; }
@media (max-width: 520px) { .cred { grid-template-columns: 1fr; gap: 2px; } }
.quote { font-family: var(--display); font-size: clamp(1.5rem, 2.8vw, 2.2rem); line-height: 1.3; margin: 0 0 22px; }
.quote-by { font: 500 .78rem var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--brass); }

/* ---------- faq ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 44px 22px 0; font-weight: 600; font-size: 1.08rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font: 300 1.7rem var(--body); color: var(--brass-ink); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--ink-2); max-width: 70ch; padding-bottom: 22px; margin: 0; }

/* ---------- cta band ---------- */
.cta-band { border-radius: 22px; padding: clamp(36px, 6vw, 72px); display: grid; grid-template-columns: 1.3fr auto; gap: 32px; align-items: end; }
.cta-band .btns { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 860px) { .cta-band { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.foot { background: var(--ink); color: rgba(255,255,255,.72); padding: 64px 0 110px; position: relative; overflow: hidden; isolation: isolate; }
.foot .contours { color: rgba(255,255,255,.05); z-index: -1; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 36px; }
.foot img.logo { height: 74px; width: auto; margin-bottom: 16px; }
.foot h4 { font: 500 .72rem var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--brass); margin: 0 0 16px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.foot a { text-decoration: none; color: rgba(255,255,255,.82); }
.foot a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.foot-legal { margin-top: 48px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font: 500 .74rem/1.6 var(--mono); color: rgba(255,255,255,.5); }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .foot-grid { grid-template-columns: 1fr; } }

/* ---------- mobile action bar ---------- */
.actbar { position: fixed; z-index: 60; left: 12px; right: 12px; bottom: 12px; display: none; grid-template-columns: .8fr .8fr 1.9fr; gap: 6px; background: var(--ink); padding: 6px; border-radius: 18px; box-shadow: 0 16px 40px -10px rgba(0,0,0,.5); }
.actbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 9px 4px; border-radius: 13px; color: #fff; text-decoration: none; font-size: .76rem; font-weight: 600; }
.actbar a svg { width: 20px; height: 20px; }
.actbar a.main { background: var(--brass); color: var(--ink); flex-direction: row; font-size: .9rem; gap: 8px; white-space: nowrap; }
@media (max-width: 760px) { .actbar { display: grid; } body:has(.actbar) main { padding-bottom: 76px; } }

/* ---------- page heads ---------- */
.page-head { padding: clamp(40px, 6vw, 72px) 0 clamp(24px, 3vw, 36px); position: relative; }
.crumbs { font: 500 .74rem var(--mono); letter-spacing: .08em; color: var(--mute); margin-bottom: 18px; }
.crumbs a { text-decoration: none; } .crumbs a:hover { color: var(--ink); }

/* ---------- filters ---------- */
.filters { display: grid; grid-template-columns: repeat(5, 1fr) auto; gap: 8px; background: var(--paper); border: 1px solid var(--line-2); border-radius: var(--r); padding: 8px; position: sticky; top: 84px; z-index: 20; box-shadow: 0 10px 30px -22px rgba(28,39,64,.5); }
.filters .field-inline input { border: 0; outline: none; background: transparent; font-weight: 600; padding: 2px 0; width: 100%; }
.filters .field-inline { border: 1px solid transparent; }
.filters .field-inline:focus-within { border-color: var(--line); background: var(--fog); }
.results-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 26px 0 18px; flex-wrap: wrap; }
.results-bar .count { font: 500 .82rem var(--mono); color: var(--mute); }
.results-bar .count b { color: var(--ink); }
.chips-row { display: flex; gap: 8px; flex-wrap: wrap; }
.pill { border: 1px solid var(--line); background: var(--paper); border-radius: 999px; padding: 8px 14px; font-weight: 600; font-size: .86rem; cursor: pointer; }
.pill[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.empty { text-align: center; padding: 60px 20px; background: var(--paper); border-radius: var(--r); border: 1px dashed var(--line); }
.empty h3 { margin-bottom: 8px; }
.empty p { color: var(--mute); }
@media (max-width: 1020px) { .filters { grid-template-columns: 1fr 1fr 1fr; position: static; } .filters .btn { grid-column: span 3; } }
@media (max-width: 560px) { .filters { grid-template-columns: 1fr 1fr; } .filters .btn, .filters .kw { grid-column: 1 / -1; } }

/* ---------- property detail ---------- */
.pd-hero { display: grid; grid-template-columns: 1.6fr 1fr; gap: 28px; align-items: start; }
.pd-img { border-radius: 18px; overflow: hidden; aspect-ratio: 16 / 11; background: var(--fog-2); position: relative; }
.pd-img img { width: 100%; height: 100%; object-fit: cover; }
.pd-title { margin: 22px 0 6px; font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.pd-tag { color: var(--mute); font-size: 1.05rem; margin: 0 0 4px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin: 24px 0; background: var(--paper); }
.fact { padding: 16px 18px; border-right: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.fact small { display: block; font: 500 .68rem var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--mute); margin-bottom: 6px; }
.fact b { font: 400 1.35rem/1.1 var(--display); }
.pd-desc h4 { font: 500 .74rem var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--brass-ink); margin: 26px 0 10px; }
.pd-desc ul { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 22px; }
.pd-desc li { padding-left: 18px; position: relative; }
.pd-desc li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; background: var(--brass); transform: rotate(45deg); }
@media (max-width: 640px) { .pd-desc ul { grid-template-columns: 1fr; } }
.side { position: sticky; top: 96px; display: grid; gap: 14px; }
.box { background: var(--paper); border: 1px solid var(--line-2); border-radius: var(--r); padding: 22px; }
.box .price { font-size: 2.1rem; }
.box-label { font: 500 .7rem var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--mute); margin-bottom: 8px; display: block; }
@media (max-width: 960px) { .pd-hero { grid-template-columns: 1fr; } .side { position: static; } }

/* calculator */
.calc-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; margin-bottom: 12px; }
.calc-row label { font-size: .9rem; color: var(--ink-2); }
.calc-row output { font: 600 .9rem var(--mono); }
input[type=range] { grid-column: 1 / -1; width: 100%; accent-color: var(--ink); }
.calc-out { margin-top: 10px; padding: 16px; border-radius: var(--r-sm); background: var(--fog); }
.calc-out b { font: 400 1.8rem var(--display); display: block; }
.fine { font-size: .8rem; color: var(--mute); margin: 10px 0 0; }

/* ---------- forms ---------- */
.form { display: grid; gap: 14px; }
.form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .form .row2 { grid-template-columns: 1fr; } }
.fld { display: grid; gap: 6px; }
.fld > label, .fld > legend { font-weight: 600; font-size: .9rem; }
.fld .hint { font-size: .82rem; color: var(--mute); }
.fld input, .fld select, .fld textarea { width: 100%; border: 1.5px solid var(--line); background: var(--paper); border-radius: 10px; padding: 12px 14px; min-height: 48px; transition: border-color .15s; }
.fld textarea { min-height: 110px; resize: vertical; }
.fld input:focus, .fld select:focus, .fld textarea:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 4px rgba(196,154,44,.22); }
.fld input:user-invalid, .fld select:user-invalid { border-color: #b3412f; }
.req { color: #b3412f; }
.hp { position: absolute; left: -9999px; }
.form-note { font-size: .82rem; color: var(--mute); margin: 0; }
.form-error { color: #9c3524; font-weight: 600; font-size: .9rem; margin: 0; }

/* ---------- funnel ---------- */
.funnel { display: grid; grid-template-columns: 320px 1fr; min-height: calc(100vh - 76px); }
.funnel-side { background: var(--ink); color: #fff; padding: 40px 32px; position: relative; overflow: hidden; isolation: isolate; display: flex; flex-direction: column; gap: 28px; }
.funnel-side .contours { color: rgba(196,154,44,.16); z-index: -1; }
.funnel-side p { color: rgba(255,255,255,.7); }
.gauge { display: grid; gap: 0; margin-top: auto; }
.gauge li { list-style: none; display: grid; grid-template-columns: 64px 18px 1fr; gap: 10px; align-items: center; padding: 9px 0; color: rgba(255,255,255,.42); font-size: .92rem; transition: color .3s; }
.gauge li .m { font: 500 .7rem var(--mono); text-align: right; }
.gauge li .dot { width: 10px; height: 10px; border: 1.5px solid currentColor; transform: rotate(45deg); justify-self: center; transition: background .3s; }
.gauge li.done, .gauge li.now { color: #fff; }
.gauge li.done .dot { background: var(--brass); border-color: var(--brass); }
.gauge li.now .dot { border-color: var(--brass); box-shadow: 0 0 0 4px rgba(196,154,44,.25); }
.gauge { padding: 0; margin: 0; display: flex; flex-direction: column-reverse; }
.funnel-main { padding: clamp(28px, 5vw, 64px); display: flex; flex-direction: column; }
.q { display: none; max-width: 760px; animation: rise .45s cubic-bezier(.2,.7,.2,1); }
.q.on { display: block; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
.q h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin-bottom: 10px; }
.q > p { color: var(--mute); margin-bottom: 26px; }
.opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; inset: 0; }
.opt span { display: flex; flex-direction: column; gap: 4px; padding: 18px; border: 1.5px solid var(--line); border-radius: var(--r); background: var(--paper); cursor: pointer; min-height: 88px; transition: border-color .15s, background .15s; }
.opt span b { font-weight: 600; }
.opt span small { color: var(--mute); font-size: .85rem; }
.opt span:hover { border-color: var(--ink-2); }
.opt input:checked + span { border-color: var(--ink); background: var(--ink); color: #fff; }
.opt input:checked + span small { color: rgba(255,255,255,.7); }
.opt input:focus-visible + span { outline: 2.5px solid var(--brass); outline-offset: 2px; }
.q-nav { display: flex; gap: 10px; margin-top: 30px; align-items: center; }
.q-nav .back { background: none; border: 0; font-weight: 600; color: var(--mute); cursor: pointer; padding: 10px 6px; }
.q-nav .back:hover { color: var(--ink); }
.match-preview { margin-top: 26px; font: 500 .82rem var(--mono); color: var(--mute); }
.match-preview b { color: var(--pine); }
@media (max-width: 900px) {
  .funnel { grid-template-columns: 1fr; min-height: 0; }
  .funnel-side { padding: 22px var(--gut); gap: 12px; }
  .funnel-side .intro { display: none; }
  .gauge { flex-direction: row; justify-content: space-between; }
  .gauge li { grid-template-columns: 1fr; justify-items: center; gap: 6px; padding: 0; font-size: 0; }
  .gauge li .m { font-size: .62rem; text-align: center; }
  .gauge li .dot { order: -1; }
}

/* ---------- misc ---------- */
.notice { background: var(--paper); border-left: 3px solid var(--brass); padding: 14px 18px; border-radius: 0 var(--r-sm) var(--r-sm) 0; font-size: .92rem; }
.badge-ok { display: inline-flex; align-items: center; gap: 6px; font: 600 .78rem var(--body); color: var(--pine); }
.badge-ok::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--pine); }
.contact-list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.contact-list li { display: grid; grid-template-columns: 130px 1fr; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact-list small { font: 500 .7rem var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--mute); padding-top: 3px; }
.contact-list a { font-weight: 600; text-decoration: none; }
.contact-list a:hover { color: var(--brass-ink); }
.map-frame { border: 0; width: 100%; height: 340px; border-radius: var(--r); filter: grayscale(.4); }

/* reveal on scroll */
.rv { opacity: 0; transform: translateY(22px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0s); }
.rv.in { opacity: 1; transform: none; }
.no-js .rv { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; scroll-behavior: auto !important; }
  .rv { opacity: 1; transform: none; }
}
