:root {
  --bg: #f4f5f2;
  --surface: #fff;
  --ink: #15211d;
  --ink-2: #3c4844;
  --muted: #69756f;
  --line: #e2e6e2;
  --line-2: #eef0ed;
  --forest: #1c3a32;
  --forest-2: #285044;
  --forest-deep: #10231d;
  --brass: #8c6a32;
  --brass-2: #b8975a;
  --brass-tint: #f3ecdf;
  --serif: 'Noto Serif Thai', Georgia, serif;
  --sans: 'IBM Plex Sans Thai', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
  --r-lg: 20px;
  --r-md: 14px;
  --r-sm: 10px;
  --shadow-1: 0 1px 2px rgba(16,35,29,.06), 0 4px 14px -6px rgba(16,35,29,.12);
  --shadow-2: 0 2px 4px rgba(16,35,29,.05), 0 22px 44px -18px rgba(16,35,29,.32);
  --ease: cubic-bezier(.2,.7,.2,1);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body { margin: 0; overflow-x: clip; background: var(--bg); color: var(--ink); font: 400 16px/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--brass-2); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(1240px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.i { width: 18px; height: 18px; flex: none; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 48px; padding: 0 22px; border: 0; border-radius: 999px; font-weight: 600; font-size: 15.5px; line-height: 1; white-space: nowrap; transition: background .2s, color .2s, box-shadow .2s, transform .2s var(--ease); }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--forest); color: #fff; }
.btn-primary:hover { background: var(--forest-2); }
.btn-outline { background: var(--surface); color: var(--forest); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-outline:hover { box-shadow: inset 0 0 0 1.5px var(--forest); }
.btn-light { background: rgba(255,255,255,.12); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.22); }
.btn-light:hover { background: rgba(255,255,255,.2); }
.btn-block { width: 100%; }
.btn.is-line.btn-brand { background: #06c755; color: #fff; }
.btn.is-line.btn-brand:hover { background: #05b04b; }
.btn.is-facebook.btn-brand { background: #1877f2; color: #fff; }
.btn.is-facebook.btn-brand:hover { background: #166ad8; }
.btn.is-phone.btn-brand { background: var(--forest); color: #fff; }
.btn.is-phone.btn-brand:hover { background: var(--forest-2); }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); transition: box-shadow .2s; }
.icon-btn:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }

/* ---------- header ---------- */
.site-head { position: fixed; inset: 0 0 auto; z-index: 60; color: #fff; transition: background .3s, color .3s, box-shadow .3s; }
.site-head .wrap { display: flex; align-items: center; gap: 28px; height: 76px; }
.site-head.solid, .site-head.solid-always { background: rgba(255,255,255,.94); color: var(--ink); box-shadow: 0 1px 0 var(--line); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); }
.site-head.solid-always { position: sticky; top: 0; }
.logo { display: inline-flex; align-items: center; gap: 12px; margin-right: auto; min-width: 0; }
.logo-mark { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--brass-2); color: var(--forest-deep); flex: none; }
.logo-mark .i { width: 22px; height: 22px; stroke-width: 2; }
.logo-name { font: 600 19px/1.2 var(--serif); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav { display: flex; gap: 26px; font-weight: 500; font-size: 15px; }
.nav a { opacity: .85; transition: opacity .2s; }
.nav a:hover { opacity: 1; }
.btn-head { height: 42px; padding: 0 18px; font-size: 14.5px; background: rgba(255,255,255,.14); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); }
.btn-head:hover { background: rgba(255,255,255,.24); }
.solid .btn-head, .solid-always .btn-head { background: var(--forest); color: #fff; box-shadow: none; }
.solid .btn-head:hover, .solid-always .btn-head:hover { background: var(--forest-2); }

/* ---------- hero ---------- */
.hero { position: relative; min-height: min(92vh, 820px); display: flex; align-items: flex-end; padding: 140px 0 clamp(48px, 7vw, 88px); color: #fff; background: var(--forest-deep); z-index: 1; }
.hero.pop-open { z-index: 80; }
.hero-media { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center 55%; transform: scale(1.06); opacity: 0; transition: opacity 1.2s var(--ease), transform 2.4s var(--ease); }
.hero-media.in { opacity: 1; transform: scale(1); }
.hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10,22,18,.55) 0%, rgba(10,22,18,.12) 32%, rgba(10,22,18,.35) 60%, rgba(10,22,18,.86) 100%), linear-gradient(90deg, rgba(10,22,18,.55) 0%, transparent 65%); }
.hero-copy { max-width: 760px; }
.hero h1 { margin: 0; font: 600 clamp(34px, 5.6vw, 66px)/1.18 var(--serif); letter-spacing: -.01em; text-wrap: balance; }
.hero p.lead { margin: 18px 0 0; max-width: 34em; font-size: clamp(16px, 1.7vw, 19px); color: rgba(255,255,255,.85); }
/* "backwards" so no transform lingers after the entrance (a transform would trap the fixed price sheet on phones) */
.hero-in > * { animation: rise .9s var(--ease) backwards; }
.hero-in > *:nth-child(2) { animation-delay: .08s; }
.hero-in > *:nth-child(3) { animation-delay: .16s; }
.hero-in > *:nth-child(4) { animation-delay: .24s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }

/* search bar */
.searchbar { position: relative; margin-top: 36px; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) auto; align-items: center; gap: 0; max-width: 900px; padding: 8px; background: var(--surface); color: var(--ink); border-radius: 22px; box-shadow: 0 30px 60px -24px rgba(0,0,0,.55); }
.sb-field { position: relative; display: flex; align-items: center; gap: 12px; height: 64px; padding: 0 18px; border-radius: 16px; transition: background .2s; min-width: 0; }
.sb-field:hover, .sb-field:focus-within, .sb-field.open { background: var(--line-2); }
.sb-field + .sb-field::before { content: ''; position: absolute; left: 0; top: 16px; bottom: 16px; width: 1px; background: var(--line); }
.sb-field:hover::before, .sb-field.open::before, .sb-field:hover + .sb-field::before, .sb-field.open + .sb-field::before, .sb-field:focus-within::before { opacity: 0; }
.sb-field > .i { width: 22px; height: 22px; color: var(--brass); }
.sb-text { display: grid; min-width: 0; flex: 1; }
.sb-text small { font-size: 13px; font-weight: 600; color: var(--ink); line-height: 1.3; }
.sb-text input { border: 0; outline: 0; background: none; padding: 0; height: 26px; font-size: 16px; min-width: 0; width: 100%; }
.sb-text input::placeholder { color: var(--muted); }
.sb-text .val { font-size: 16px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; height: 26px; line-height: 26px; }
.sb-text .val.set { color: var(--ink); }
button.sb-field { border: 0; background: none; text-align: left; width: 100%; }
button.sb-field:hover, button.sb-field.open { background: var(--line-2); }
.sb-clear { display: none; width: 28px; height: 28px; border-radius: 50%; border: 0; background: var(--line); color: var(--ink); place-items: center; flex: none; }
.sb-clear .i { width: 14px; height: 14px; }
.has-value .sb-clear { display: grid; }
.sb-go { height: 64px; padding: 0 30px; border-radius: 16px; font-size: 16px; }
.sb-go .i { width: 20px; height: 20px; }

/* popovers (suggestions + price) */
.pop { position: absolute; top: calc(100% + 12px); z-index: 30; background: var(--surface); color: var(--ink); border-radius: var(--r-lg); box-shadow: 0 30px 70px -20px rgba(16,35,29,.45), 0 0 0 1px rgba(16,35,29,.05); }
.sugg { left: 0; width: min(460px, 100%); margin: 0; padding: 10px; list-style: none; max-height: 360px; overflow: auto; }
.sugg li { display: flex; align-items: center; gap: 14px; padding: 10px 12px; border-radius: 12px; cursor: pointer; }
.sugg li[aria-selected="true"], .sugg li:hover { background: var(--line-2); }
.sugg .sg-ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--brass-tint); color: var(--brass); flex: none; }
.sugg .sg-t { display: grid; line-height: 1.35; min-width: 0; }
.sugg .sg-t b { font-weight: 600; }
.sugg .sg-t small { color: var(--muted); font-size: 13.5px; }
.sugg .none { color: var(--muted); cursor: default; padding: 14px; }
.sugg .head { padding: 6px 12px 8px; font-size: 13px; color: var(--muted); font-weight: 600; cursor: default; }
.sugg .head:hover { background: none; }
.price-pop { left: 0; right: 0; padding: 24px 26px 22px; }
.pp-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.pp-head b { font: 600 15px var(--sans); }
.pp-range { font: 600 22px/1.2 var(--serif); color: var(--forest); }
.hist { display: flex; align-items: flex-end; gap: 3px; height: 72px; margin-top: 18px; }
.hist i { flex: 1; min-height: 2px; background: var(--line); border-radius: 3px 3px 1px 1px; transition: background .25s; }
.hist i.on { background: var(--forest-2); }
.hist i.zero { background: var(--line-2); }
.hist i.zero.on { background: #c9d6d0; }
.slider { position: relative; height: 30px; margin-top: -2px; }
.slider .rail { position: absolute; left: 0; right: 0; top: 14px; height: 3px; border-radius: 3px; background: var(--line); }
.slider .fill { position: absolute; top: 14px; height: 3px; border-radius: 3px; background: var(--brass-2); }
.slider input[type=range] { position: absolute; inset: 0; width: 100%; margin: 0; background: none; pointer-events: none; -webkit-appearance: none; appearance: none; }
.slider input[type=range]::-webkit-slider-runnable-track { background: none; height: 30px; }
.slider input[type=range]::-moz-range-track { background: none; height: 30px; }
.slider input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; pointer-events: auto; width: 26px; height: 26px; margin-top: 2px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 0 0 1px rgba(16,35,29,.12), 0 3px 10px rgba(16,35,29,.28); cursor: grab; }
.slider input[type=range]::-moz-range-thumb { pointer-events: auto; width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 0 0 1px rgba(16,35,29,.12), 0 3px 10px rgba(16,35,29,.28); cursor: grab; }
.slider input[type=range]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 3px var(--brass-2), 0 3px 10px rgba(16,35,29,.28); }
.pp-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.pp-inputs label { display: grid; gap: 2px; padding: 8px 14px; border: 1.5px solid var(--line); border-radius: 12px; transition: border-color .2s; }
.pp-inputs label:focus-within { border-color: var(--forest); }
.pp-inputs small { font-size: 12.5px; color: var(--muted); }
.pp-inputs label, .pp-inputs span { min-width: 0; }
.pp-inputs span { display: flex; align-items: baseline; gap: 6px; }
.pp-inputs input { flex: 1 1 auto; width: 0; min-width: 0; border: 0; outline: 0; background: none; padding: 0; font-size: 17px; font-weight: 500; }
.pp-inputs em { font-style: normal; color: var(--muted); font-size: 14px; white-space: nowrap; }
.pp-quick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.pp-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line-2); }
.linkbtn { border: 0; background: none; padding: 6px 2px; font-weight: 600; color: var(--ink); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line); }
.linkbtn:hover { text-decoration-color: currentColor; }
.scrim { position: fixed; inset: 0; z-index: 25; background: rgba(10,22,18,.4); opacity: 0; pointer-events: none; transition: opacity .25s; }
.scrim.show { opacity: 1; pointer-events: auto; }

.hero-stats { display: flex; flex-wrap: wrap; gap: 10px 36px; margin-top: 30px; color: rgba(255,255,255,.82); font-size: 15px; }
.hero-stats b { display: block; font: 600 26px/1.2 var(--serif); color: #fff; }

/* ---------- chips ---------- */
.chip { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 16px; border: 0; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line); font-weight: 500; font-size: 15px; transition: background .2s, color .2s, box-shadow .2s; }
.chip:hover { box-shadow: inset 0 0 0 1.5px var(--ink-2); }
.chip[aria-pressed="true"] { background: var(--forest); color: #fff; box-shadow: none; }
.chip .n { font-size: 13px; opacity: .6; }
.chip.sm { height: 36px; padding: 0 14px; font-size: 14px; }

/* ---------- listing section ---------- */
.listing { padding: clamp(56px, 7vw, 96px) 0 clamp(64px, 8vw, 110px); }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.sec-head h2 { margin: 0; font: 600 clamp(28px, 3.4vw, 40px)/1.2 var(--serif); letter-spacing: -.005em; }
.sec-head p { margin: 6px 0 0; color: var(--muted); }
.select { position: relative; display: inline-flex; align-items: center; }
.select select { appearance: none; -webkit-appearance: none; height: 44px; padding: 0 44px 0 42px; border: 0; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line); font-weight: 500; cursor: pointer; }
.select select:hover { box-shadow: inset 0 0 0 1.5px var(--ink-2); }
.select .i { position: absolute; pointer-events: none; color: var(--muted); }
.select svg:first-of-type { left: 16px; }
.select svg:last-of-type { right: 16px; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin: 28px 0 14px; }
.toolbar > * { min-width: 0; max-width: 100%; }
.types { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; margin: -2px; }
.types::-webkit-scrollbar { display: none; }
.types .chip { flex: none; }
.active-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-height: 0; margin-bottom: 22px; }
.token { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 8px 0 14px; border: 0; border-radius: 999px; background: var(--brass-tint); color: #5e4720; font-size: 14px; font-weight: 500; }
.token .i { width: 15px; height: 15px; }
.token:hover { background: #ebdfc8; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 32px 26px; }
.card { display: flex; flex-direction: column; background: var(--surface); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-1); transition: box-shadow .35s var(--ease), transform .35s var(--ease); }
.card:hover { box-shadow: var(--shadow-2); transform: translateY(-4px); }
.card-ph { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--line-2); }
.card-ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .45s, transform .9s var(--ease); }
.card-ph img.alt { opacity: 0; }
.card:hover .card-ph img.alt.ready { opacity: 1; }
.card:hover .card-ph img { transform: scale(1.04); }
.card-ph .noimg { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); }
.card-ph .noimg .i { width: 40px; height: 40px; }
.card.is-sold .card-ph img { filter: grayscale(.9) brightness(.92); }
.tag-type, .tag-sold, .tag-photos { position: absolute; z-index: 1; display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.tag-type { left: 14px; top: 14px; background: rgba(255,255,255,.94); color: var(--forest); backdrop-filter: blur(6px); }
.tag-sold { left: 14px; bottom: 14px; background: var(--ink); color: #fff; }
.tag-photos { right: 14px; bottom: 14px; background: rgba(16,35,29,.62); color: #fff; backdrop-filter: blur(6px); }
.tag-photos .i { width: 15px; height: 15px; }
.card-body { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 22px; }
.card-price { font: 600 25px/1.2 var(--serif); color: var(--brass); letter-spacing: -.005em; }
.card-title { margin: 8px 0 0; font-size: 17px; font-weight: 600; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-place { display: flex; align-items: center; gap: 6px; margin: 6px 0 0; color: var(--muted); font-size: 14.5px; }
.card-place .i { width: 16px; height: 16px; }
.card-place span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-specs { display: flex; flex-wrap: wrap; gap: 6px 18px; list-style: none; margin: auto 0 0; padding: 16px 0 0; border-top: 1px solid var(--line-2); color: var(--ink-2); font-size: 14px; }
.card-body .card-place + .card-specs { margin-top: 16px; }
.card-specs li { display: inline-flex; align-items: center; gap: 7px; }
.card-specs .i { width: 17px; height: 17px; color: var(--brass); }
.skel { pointer-events: none; }
.skel .card-ph, .skel .ln { animation: pulse 1.3s ease-in-out infinite; }
.skel .ln { height: 14px; border-radius: 6px; background: var(--line-2); margin-top: 12px; }
@keyframes pulse { 50% { opacity: .45; } }
.empty { display: grid; justify-items: center; text-align: center; padding: 72px 16px; background: var(--surface); border-radius: var(--r-lg); color: var(--muted); }
.empty .em-ic { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 20px; background: var(--brass-tint); color: var(--brass); margin-bottom: 18px; }
.empty .em-ic .i { width: 28px; height: 28px; }
.empty strong { font: 600 22px/1.4 var(--serif); color: var(--ink); }
.empty p { margin: 6px 0 20px; }

/* ---------- contact band + footer ---------- */
.band { padding: 0 0 clamp(64px, 8vw, 110px); }
.band-in { position: relative; overflow: hidden; display: flex; justify-content: space-between; align-items: center; gap: 28px; flex-wrap: wrap; padding: clamp(32px, 5vw, 56px); border-radius: 28px; background: var(--forest); color: #fff; }
.band-in::before { content: ''; position: absolute; right: -80px; top: -120px; width: 380px; height: 380px; border-radius: 50%; border: 1px solid rgba(184,151,90,.35); }
.band-in::after { content: ''; position: absolute; right: 40px; top: -40px; width: 260px; height: 260px; border-radius: 50%; border: 1px solid rgba(184,151,90,.22); }
.band h2 { margin: 0; font: 600 clamp(24px, 3vw, 34px)/1.3 var(--serif); }
.band p { margin: 8px 0 0; color: rgba(255,255,255,.78); max-width: 32em; }
.band .btn.is-phone.btn-brand { background: #fff; color: var(--forest); }
.band .btn.is-phone.btn-brand:hover { background: var(--brass-tint); }
.band .contacts { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 10px; }
.foot { background: var(--forest-deep); color: rgba(255,255,255,.72); padding: 56px 0 36px; font-size: 15px; }
.foot-top { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,.1); }
.foot .logo { color: #fff; margin: 0 0 14px; }
.foot p { margin: 0; max-width: 30em; }
.foot h3 { margin: 0 0 12px; font-size: 14px; font-weight: 600; color: #fff; }
.foot .contacts { display: flex; flex-wrap: wrap; gap: 8px; }
.foot .btn { height: 42px; font-size: 14.5px; }
.foot-bottom { padding-top: 22px; font-size: 13.5px; color: rgba(255,255,255,.5); }

.toast { position: fixed; left: 50%; bottom: 28px; z-index: 300; padding: 12px 22px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 500; box-shadow: 0 16px 40px -12px rgba(0,0,0,.5); transform: translate(-50%, 20px); opacity: 0; pointer-events: none; transition: opacity .25s, transform .3s var(--ease); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- detail page ---------- */
.d-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 26px 0 18px; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; color: var(--muted); font-size: 14.5px; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.crumbs .i { width: 14px; height: 14px; opacity: .6; }
.d-actions { display: flex; gap: 8px; }
.d-actions .btn { height: 42px; padding: 0 16px; font-size: 14.5px; }
.d-title h1 { margin: 0; font: 600 clamp(26px, 3.4vw, 40px)/1.25 var(--serif); letter-spacing: -.005em; text-wrap: balance; }
.d-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 10px; color: var(--muted); }
.d-meta .loc { display: inline-flex; align-items: center; gap: 6px; }
.pill { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 999px; background: var(--brass-tint); color: #5e4720; font-size: 13px; font-weight: 600; }
.pill.dark { background: var(--ink); color: #fff; }

.mosaic { position: relative; display: grid; gap: 10px; margin-top: 26px; height: clamp(320px, 46vw, 540px); border-radius: var(--r-lg); overflow: hidden; }
.mosaic button { position: relative; padding: 0; border: 0; overflow: hidden; background: var(--line-2); cursor: zoom-in; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), filter .3s; }
.mosaic button:hover img { transform: scale(1.03); filter: brightness(.94); }
.mosaic.n1 { grid-template-columns: 1fr; }
.mosaic.n2 { grid-template-columns: 1fr 1fr; }
.mosaic.n3 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; }
.mosaic.n3 button:first-child { grid-row: span 2; }
.mosaic.n4 { grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; }
.mosaic.n4 button:first-child { grid-row: span 2; }
.mosaic.n4 button:nth-child(2) { grid-column: span 2; }
.mosaic.n5 { grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; }
.mosaic.n5 button:first-child { grid-row: span 2; }
.mosaic .all { position: absolute; right: 18px; bottom: 18px; height: 42px; padding: 0 18px; background: rgba(255,255,255,.96); color: var(--ink); box-shadow: 0 6px 20px -6px rgba(0,0,0,.4); font-size: 14.5px; }
.mosaic .all:hover { background: #fff; }
.mosaic.no-photo { display: grid; place-items: center; background: var(--line-2); color: var(--muted); }

.carousel { display: none; }

.d-body { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(28px, 5vw, 72px); align-items: start; padding: 40px 0 clamp(56px, 7vw, 96px); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; }
.fact { display: grid; gap: 10px; padding: 18px; background: var(--surface); border-radius: var(--r-md); box-shadow: inset 0 0 0 1px var(--line); }
.fact .i { width: 26px; height: 26px; color: var(--brass); }
.fact b { display: block; font: 600 21px/1.2 var(--serif); }
.fact small { color: var(--muted); font-size: 14px; }
.d-sec { margin-top: 44px; }
.d-sec h2 { margin: 0 0 14px; font: 600 24px/1.3 var(--serif); }
.d-sec .desc { margin: 0; white-space: pre-line; color: var(--ink-2); font-size: 16.5px; line-height: 1.85; max-width: 44em; }
.table { margin: 0; background: var(--surface); border-radius: var(--r-md); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.table div { display: grid; grid-template-columns: minmax(120px, 34%) 1fr; gap: 16px; padding: 14px 20px; border-top: 1px solid var(--line-2); }
.table div:first-child { border-top: 0; }
.table dt { color: var(--muted); }
.table dd { margin: 0; font-weight: 500; }

.maplink { font-weight: 600; color: var(--forest); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--brass-2); }
.maplink:hover { text-decoration-color: currentColor; }
.map-card { overflow: hidden; background: var(--surface); border-radius: var(--r-lg); box-shadow: inset 0 0 0 1px var(--line); }
.map-card iframe { display: block; width: 100%; height: 340px; border: 0; background: var(--line-2); }
.map-ph { display: grid; place-items: center; height: 200px; background: linear-gradient(135deg, #e9eee9, #dfe6e1); color: var(--forest); }
.map-ph .i { width: 44px; height: 44px; }
.map-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 16px 20px; border-top: 1px solid var(--line-2); }
.map-txt { display: grid; min-width: 0; line-height: 1.4; }
.map-txt small { color: var(--muted); }
.map-bar .btn { height: 44px; padding: 0 18px; font-size: 14.5px; }
.price-card { position: sticky; top: 100px; padding: 28px; background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-2), inset 0 0 0 1px var(--line-2); }
.price-card .lbl { color: var(--muted); font-size: 14.5px; }
.price-card .price { margin-top: 2px; font: 600 clamp(30px, 3vw, 38px)/1.2 var(--serif); color: var(--brass); letter-spacing: -.01em; }
.price-card .per { margin-top: 6px; color: var(--muted); font-size: 14.5px; }
.price-card .stack { display: grid; gap: 10px; margin-top: 22px; }
.price-card .note { margin: 18px 0 0; padding-top: 16px; border-top: 1px solid var(--line-2); color: var(--muted); font-size: 14px; }
.price-card .sold-note { margin-top: 16px; padding: 12px 14px; border-radius: 12px; background: var(--line-2); color: var(--ink-2); font-size: 14.5px; }

.related { padding: 0 0 clamp(64px, 8vw, 110px); }
.related h2 { margin: 0 0 24px; font: 600 clamp(24px, 2.8vw, 32px)/1.3 var(--serif); }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 200; display: grid; grid-template-rows: auto 1fr auto; background: #0b1512; color: #fff; opacity: 0; pointer-events: none; transition: opacity .25s; }
.lightbox.open { opacity: 1; pointer-events: auto; }
.lb-top { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; }
.lb-count { font-size: 15px; color: rgba(255,255,255,.8); }
.lb-close { display: inline-flex; align-items: center; gap: 6px; height: 42px; padding: 0 16px; border: 0; border-radius: 999px; background: rgba(255,255,255,.1); color: #fff; font-weight: 500; }
.lb-close:hover { background: rgba(255,255,255,.18); }
.lb-stage { position: relative; min-height: 0; }
.lb-track { position: absolute; inset: 0; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.lb-track::-webkit-scrollbar { display: none; }
.lb-track > div { flex: 0 0 100%; display: grid; place-items: center; scroll-snap-align: center; scroll-snap-stop: always; padding: 0 clamp(0px, 6vw, 96px); }
.lb-track img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; }
.lb-arrow { position: absolute; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; border: 0; background: rgba(255,255,255,.1); color: #fff; transition: background .2s, opacity .2s; }
.lb-arrow:hover { background: rgba(255,255,255,.2); }
.lb-arrow .i { width: 24px; height: 24px; }
.lb-arrow.prev { left: 18px; }
.lb-arrow.next { right: 18px; }
.lb-thumbs { display: flex; gap: 8px; justify-content: safe center; overflow-x: auto; padding: 14px 18px 18px; scrollbar-width: none; }
.lb-thumbs::-webkit-scrollbar { display: none; }
.lb-thumbs button { flex: none; width: 84px; aspect-ratio: 4 / 3; padding: 0; border: 0; border-radius: 8px; overflow: hidden; opacity: .45; outline: 2px solid transparent; outline-offset: 2px; transition: opacity .2s, outline-color .2s; }
.lb-thumbs button:hover { opacity: .8; }
.lb-thumbs button[aria-current="true"] { opacity: 1; outline-color: #fff; }
.lb-thumbs img { width: 100%; height: 100%; object-fit: cover; }

.mbar { display: none; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .nav { display: none; }
  .d-body { grid-template-columns: 1fr; }
  .price-card { position: static; }
  .price-card .stack { display: none; }
  .mosaic { display: none; }
  .carousel { display: block; position: relative; margin: 18px calc(-1 * var(--gutter)) 0; }
  .car-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; aspect-ratio: 4 / 3; background: var(--line-2); }
  .car-track::-webkit-scrollbar { display: none; }
  .car-track button { flex: 0 0 100%; padding: 0; border: 0; scroll-snap-align: center; scroll-snap-stop: always; }
  .car-track img { width: 100%; height: 100%; object-fit: cover; }
  .car-count { position: absolute; right: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 999px; background: rgba(16,35,29,.66); color: #fff; font-size: 13.5px; backdrop-filter: blur(6px); }
  .car-count .i { width: 15px; height: 15px; }
  .mbar { display: flex; align-items: center; gap: 12px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.97); box-shadow: 0 -1px 0 var(--line), 0 -12px 30px -16px rgba(16,35,29,.35); backdrop-filter: blur(12px); }
  .mbar .mp { margin-right: auto; min-width: 0; }
  .mbar .mp small { display: block; color: var(--muted); font-size: 12.5px; line-height: 1.2; }
  .mbar .mp b { font: 600 19px/1.3 var(--serif); color: var(--brass); white-space: nowrap; }
  .mbar .btn { height: 46px; padding: 0 16px; }
  .mbar .btn span { display: none; }
  .mbar .btn.is-phone span, .mbar .btn:only-child span { display: inline; }
  body.has-mbar { padding-bottom: 82px; }
  .d-actions .btn span { display: none; }
  .d-actions .btn { width: 42px; padding: 0; }
}
@media (max-width: 760px) {
  .site-head .wrap { height: 64px; gap: 12px; }
  .logo-mark { width: 36px; height: 36px; border-radius: 10px; }
  .logo-name { font-size: 17px; }
  .btn-head span { display: none; }
  .btn-head { width: 42px; padding: 0; }
  .hero { min-height: auto; padding-top: 112px; }
  .searchbar { grid-template-columns: 1fr; padding: 8px; border-radius: 20px; }
  .sb-field { height: 60px; }
  .sb-field + .sb-field::before { left: 18px; right: 18px; top: 0; bottom: auto; width: auto; height: 1px; }
  .sb-go { height: 54px; margin-top: 6px; }
  .pop { position: fixed; left: 0 !important; right: 0; top: auto; bottom: 0; width: auto !important; max-height: 82vh; overflow: auto; border-radius: 24px 24px 0 0; padding-bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 70; }
  .sugg { position: absolute; top: calc(100% + 8px); bottom: auto; border-radius: 18px; max-height: 300px; padding-bottom: 10px; }
  .scrim { z-index: 65; }
  .hero-stats { gap: 8px 26px; }
  .hero-stats b { font-size: 22px; }
  .toolbar { flex-direction: column; align-items: stretch; }
  .toolbar .select { align-self: flex-start; }
  .grid { gap: 22px; }
  .lb-arrow { display: none; }
  .lb-thumbs { display: none; }
  .table div { grid-template-columns: 1fr 1.3fr; padding: 12px 16px; }
  .map-card iframe { height: 260px; }
  .map-bar .btn { width: 100%; }
  .facts { grid-template-columns: 1fr 1fr; gap: 10px; }
  .fact { grid-template-columns: auto 1fr; align-items: center; gap: 12px; padding: 14px; }
  .fact b { font-size: 18px; }
  .fact small { font-size: 13px; }
  .band-in { border-radius: 22px; }
}
@media (hover: none) { .card-ph img.alt { display: none; } .card:hover { transform: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .hero-media { opacity: 1; transform: none; }
}
