/* Rayadoen — condos near the train, every walk timed (fictional brand), PV Dev demo round 3.
   Materials, not decoration: off-white plaster ground, poured-concrete surfaces, walnut for
   anything you press, brass only where a station or a saved home is. One signature: the
   brass train-line map. Everything else is quiet. No scroll libraries, transform/opacity only. */

/* ---------- Tokens ---------- */
:root {
  --bg: #ECEAE5;            /* lime plaster */
  --paper: #F6F5F1;         /* fields, sheets */
  --concrete: #D9D6CF;      /* poured concrete surface */
  --concrete-2: #C9C5BD;
  --line: #C2BDB4;          /* hairlines (decorative) */
  --line-strong: #807B74;   /* form borders, 3.3:1 on plaster */
  --ink: #2A2724;           /* graphite text, 12.3:1 */
  --muted: #5E5A54;         /* 5.7:1 on plaster */
  --walnut: #5A3D2B;        /* actions, 8.2:1 */
  --walnut-deep: #33251C;
  --walnut-night: #261C15;
  --on-dark: #EFEAE1;
  --on-dark-muted: #C9BFB1; /* 8.1:1 on walnut-deep */
  --brass: #B08D57;         /* marks only, never small text on light */
  --brass-light: #C9A46A;   /* lines on dark, 6.3:1 */
  --brass-ink: #7A5C2E;     /* brass as text on light, 5.1:1 */
  --error: #8A2E1F;
  --line-green: #06C755;

  --font-display: "Maitree", "Niramit", Georgia, serif;
  --font-ui: "Niramit", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* scale: 15 · 17 · 21 · 24 · 36 · 60 · 84 */
  --t-sm: .9375rem;
  --t-base: clamp(1rem, .97rem + .15vw, 1.0625rem);
  --t-md: clamp(1.1875rem, 1.1rem + .35vw, 1.3125rem);
  --t-lg: clamp(1.3125rem, 1.2rem + .5vw, 1.5rem);
  --t-xl: clamp(1.75rem, 1.4rem + 1.5vw, 2.25rem);
  --t-2xl: clamp(2.125rem, 1.5rem + 2.8vw, 3.75rem);
  --t-hero: clamp(2.25rem, 1rem + 5.5vw, 5.25rem);

  --gutter: clamp(1rem, 4vw, 3rem);
  --gap: clamp(1rem, 2.4vw, 2rem);
  --section: clamp(4.5rem, 3rem + 6vw, 9rem);
  --header-h: 4.25rem;
  --r-img: 2px;
  --r-btn: 3px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  color-scheme: light;
  -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
  scroll-padding-top: 1.5rem;
  scroll-padding-bottom: calc(var(--mbar-space, 0px) + 1rem);
}
@media (min-width: 64rem) { html { scroll-padding-top: calc(var(--header-h) + 1.5rem); } }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
html.lock { overflow: hidden; }
@media (pointer: fine) { html, body { overscroll-behavior: none; } }
html { -webkit-tap-highlight-color: rgb(90 61 43 / .12); }
a, button, input, select, textarea, label, summary { touch-action: manipulation; }
@media (max-width: 63.99rem) { html:has(.toolbar) { scroll-padding-top: 8rem; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: var(--t-base);
  line-height: 1.7;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote, fieldset { margin: 0; }
fieldset { border: 0; padding: 0; min-width: 0; }
legend { padding: 0; }
ul[class], ol[class] { list-style: none; padding: 0; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .24em; }
a:hover { text-decoration-thickness: 2px; }
address { font-style: normal; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3 { text-wrap: balance; font-weight: inherit; }
p, li, dd { text-wrap: pretty; }
::selection { background: var(--concrete); color: var(--ink); }
[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--walnut); outline-offset: 3px; border-radius: 2px; }
.on-dark :focus-visible, .mbar :focus-visible, .pv-strip :focus-visible { outline-color: var(--on-dark); }
[tabindex="-1"]:focus { outline: none; }

.skip {
  position: fixed; left: 1rem; top: 1rem; z-index: 200;
  padding: .7rem 1.1rem; background: var(--walnut); color: var(--paper); border-radius: var(--r-btn);
  transform: translateY(-180%); transition: transform .4s var(--ease);
}
.skip:focus { transform: none; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.wrap { width: min(100% - 2 * var(--gutter), 84rem); margin-inline: auto; }
.section { padding-block: var(--section); }
.section--tight { padding-block: calc(var(--section) * .6); }
.muted { color: var(--muted); }
.num, .tnum { font-variant-numeric: tabular-nums; }

/* ---------- Type roles ---------- */
h1, .h-xl, .h-md, .h-lg { font-family: var(--font-display); font-weight: 300; }
h1 { font-size: var(--t-2xl); line-height: 1.32; letter-spacing: -.005em; }
h2 { font-family: var(--font-display); font-weight: 300; font-size: var(--t-xl); line-height: 1.38; }
h3 { font-size: var(--t-md); font-weight: 600; line-height: 1.5; }
.h-md { font-size: var(--t-lg); line-height: 1.4; }
.h-sm { font-family: var(--font-ui); font-size: var(--t-md); font-weight: 600; line-height: 1.5; }
:lang(en) h1, :lang(en) h2, :lang(en) .h-md { line-height: 1.14; letter-spacing: -.012em; }
:lang(en) h2 { line-height: 1.2; }
.lede { font-size: var(--t-md); line-height: 1.7; color: var(--muted); max-width: 38rem; }
.prose p { max-width: 40rem; }
.prose p + p { margin-top: 1rem; }

/* ---------- Buttons and links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 48px; padding: .55rem 1.35rem; border-radius: var(--r-btn);
  border: 1px solid transparent; font-weight: 500; font-size: var(--t-base); line-height: 1.35;
  text-decoration: none; text-align: center;
  transition: background-color .45s var(--ease), color .45s var(--ease), border-color .45s var(--ease);
}
.btn--solid { background: var(--walnut); color: var(--paper); }
.btn--solid:hover { background: var(--walnut-deep); }
.btn--ghost { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--ink); background: rgb(42 39 36 / .04); }
.on-dark .btn--solid { background: var(--on-dark); color: var(--walnut-deep); }
.on-dark .btn--solid:hover { background: #fff; }
.on-dark .btn--ghost { color: var(--on-dark); border-color: rgb(239 234 225 / .55); }
.on-dark .btn--ghost:hover { border-color: var(--on-dark); background: rgb(239 234 225 / .06); }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 500; }
.link-btn { background: none; border: 0; padding: .4rem .2rem; min-height: 44px; text-decoration: underline; text-underline-offset: .24em; font-weight: 500; }

/* ---------- Header ---------- */
.site-header { position: relative; z-index: 40; background: var(--bg); border-bottom: 1px solid var(--line); }
@media (min-width: 64rem) { .site-header { position: sticky; top: 0; } }
.header-in { display: flex; align-items: center; gap: .5rem; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: .65rem; min-height: 44px; margin-right: auto; text-decoration: none; }
.brand__mark { width: 2.4rem; height: 1.2rem; flex: none; color: var(--walnut); }
.brand__txt { display: flex; flex-direction: column; }
.brand__name { font-family: var(--font-display); font-weight: 300; font-size: 1.5rem; line-height: 1.15; }
.brand__sub { font-size: .875rem; line-height: 1.3; color: var(--muted); }
:lang(en) .brand__name { letter-spacing: -.01em; }
.nav { display: none; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: .15rem; }
.nav a {
  position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 .8rem;
  font-size: var(--t-sm); font-weight: 500; text-decoration: none;
}
.nav a::after {
  content: ""; position: absolute; left: .8rem; right: .8rem; bottom: .55rem; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease);
}
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"]::after { background: var(--brass); height: 2px; }
.favlink {
  position: relative; display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; min-width: 44px;
  justify-content: center; padding: 0 .6rem; text-decoration: none; font-size: var(--t-sm); font-weight: 500;
}
.favlink svg { width: 1.3rem; height: 1.3rem; fill: none; stroke: currentColor; stroke-width: 1.6; }
.favlink[aria-current="page"] svg { fill: var(--brass); stroke: var(--brass-ink); }
.favlink__label { display: none; }
.badge {
  min-width: 1.35rem; height: 1.35rem; padding: 0 .3rem; border-radius: 999px;
  background: var(--brass); color: var(--walnut-night); font-size: .8125rem; font-weight: 600; line-height: 1.35rem; text-align: center;
  font-variant-numeric: tabular-nums;
}
.favlink .badge { position: absolute; top: .1rem; right: -.1rem; }
.lang { display: flex; align-items: center; font-size: var(--t-sm); }
.lang a, .lang span[aria-current] { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; text-decoration: none; }
.lang span[aria-current] { font-weight: 600; }
.lang a { color: var(--muted); }
.lang a:hover { color: var(--ink); text-decoration: underline; }
.lang__sep { color: var(--line-strong); }
.site-header .lang { display: none; }
.menu-btn {
  display: inline-flex; align-items: center; gap: .55rem; min-height: 44px; padding: 0 .4rem 0 .7rem;
  background: none; border: 0; font-weight: 500; font-size: var(--t-sm);
}
.menu-btn__icon { position: relative; width: 1.4rem; height: 10px; }
.menu-btn__icon::before, .menu-btn__icon::after { content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; }
.menu-btn__icon::before { top: 0; }
.menu-btn__icon::after { bottom: 0; }

@media (min-width: 64rem) {
  .nav { display: block; }
  .site-header .lang { display: flex; }
  .menu-btn { display: none; }
  .favlink__label { display: inline; }
  .favlink .badge { position: static; }
}

/* concept row: the badge (and the language switch on phones), plus quick contacts on desktop */
.concept-row { border-bottom: 1px solid var(--line); }
.concept-row .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 2.75rem; }
.concept {
  font-size: .875rem; line-height: 1.3; padding: .2rem .7rem; border: 1px solid var(--line-strong);
  border-radius: 999px; color: var(--muted); white-space: nowrap;
}
.concept-row__contact { display: none; gap: 1.25rem; font-size: var(--t-sm); color: var(--muted); }
.concept-row__contact a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.concept-row__contact a:hover { color: var(--ink); text-decoration: underline; }
@media (min-width: 64rem) {
  .concept-row .lang { display: none; }
  .concept-row__contact { display: flex; }
}

/* mobile menu: a full-height sheet with its own close button */
.menu {
  position: fixed; inset: 0; z-index: 90; background: var(--paper); overflow-y: auto; overscroll-behavior: contain;
  padding: 0 var(--gutter) calc(2rem + env(safe-area-inset-bottom));
  opacity: 0; visibility: hidden; transform: translateY(-1.5rem);
  transition: opacity .4s var(--ease), transform .5s var(--ease), visibility 0s linear .5s;
}
.menu.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity .4s var(--ease), transform .5s var(--ease); }
.menu__top { display: flex; justify-content: space-between; align-items: center; min-height: var(--header-h); border-bottom: 1px solid var(--line); margin-bottom: 1.5rem; }
.menu__close { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; padding: 0 .4rem; background: none; border: 0; font-weight: 500; font-size: var(--t-sm); }
.menu__list a { display: flex; align-items: center; min-height: 52px; font-family: var(--font-display); font-weight: 300; font-size: var(--t-xl); line-height: 1.3; text-decoration: none; }
.menu__list a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--brass); text-decoration-thickness: 2px; }
.menu__sub { margin: .25rem 0 1rem 0; padding-left: 1rem; border-left: 1px solid var(--line); }
.menu__sub a { font-family: var(--font-ui); font-size: var(--t-md); min-height: 44px; }
.menu__meta { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--line); display: grid; gap: .25rem; }
.menu__meta a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 500; }
@media (min-width: 64rem) { .menu { display: none; } }

/* ---------- Walk ruler: one tick per minute, filled to the walk, brass dot = the station ---------- */
.walk { display: flex; align-items: center; gap: .65rem; font-size: var(--t-sm); line-height: 1.45; color: var(--muted); }
.walk__bar {
  --m: 5;
  position: relative; flex: none; width: 6rem; height: .55rem;
  background: repeating-linear-gradient(90deg, var(--concrete-2) 0 2px, transparent 2px .4rem);
}
.walk__bar::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--m) * .4rem);
  background: repeating-linear-gradient(90deg, var(--walnut) 0 2px, transparent 2px .4rem);
}
.walk__bar::after {
  content: ""; position: absolute; top: 50%; left: calc(var(--m) * .4rem - .05rem);
  width: .55rem; height: .55rem; margin-top: -.275rem; border-radius: 50%; background: var(--brass);
  box-shadow: 0 0 0 2px var(--bg);
}
.walk--lg { font-size: var(--t-base); color: var(--ink); align-items: flex-start; }
.walk--lg .walk__bar { width: 9rem; height: .8rem; margin-top: .45rem; background: repeating-linear-gradient(90deg, var(--concrete-2) 0 2px, transparent 2px .6rem); }
.walk--lg .walk__bar::before { width: calc(var(--m) * .6rem); background: repeating-linear-gradient(90deg, var(--walnut) 0 2px, transparent 2px .6rem); }
.walk--lg .walk__bar::after { left: calc(var(--m) * .6rem - .1rem); width: .75rem; height: .75rem; margin-top: -.375rem; }
.walk--lg strong { font-weight: 600; }

/* ---------- Cards ---------- */
.cards { display: grid; gap: 2.75rem var(--gap); grid-template-columns: repeat(auto-fill, minmax(min(100%, 16.5rem), 1fr)); }
.card { position: relative; height: 100%; display: flex; flex-direction: column; }
.card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--r-img); background: var(--concrete); }
.card__media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.8) contrast(.97); transition: transform 1.2s var(--ease); }
@media (hover: hover) { .card:hover .card__media img { transform: scale(1.035); } }
.card__deal {
  position: absolute; left: .65rem; top: .65rem; padding: .1rem .6rem; border-radius: 2px;
  background: var(--paper); color: var(--ink); font-size: .875rem; font-weight: 500; line-height: 1.6;
}
.card__deal--sale { background: var(--walnut); color: var(--paper); }
.card__body { display: grid; gap: .3rem; padding-top: .95rem; }
.card__area { display: flex; justify-content: space-between; gap: 1rem; font-size: var(--t-sm); color: var(--muted); }
.card__code { font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.card__title { font-family: var(--font-display); font-weight: 300; font-size: var(--t-lg); line-height: 1.35; }
:lang(en) .card__title { line-height: 1.2; }
.card__title a { text-decoration: none; }
.card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: var(--r-img); }
.card__title a:focus-visible { outline: none; }
.card__title a:focus-visible::after { outline: 2px solid var(--walnut); outline-offset: 6px; }
.card:hover .card__title a { text-decoration: underline; text-decoration-thickness: 1px; }
.card__specs { display: flex; flex-wrap: wrap; font-size: var(--t-sm); }
.card__specs span + span::before {
  content: ""; display: inline-block; width: 1px; height: .85em; margin: 0 .6rem; background: var(--line-strong); vertical-align: -.08em;
}
.card .walk { margin-top: .2rem; }
.card__price { margin-top: .35rem; font-variant-numeric: tabular-nums; }
.card__price strong { font-size: var(--t-md); font-weight: 600; }
.card__unit { margin-left: .2rem; color: var(--muted); font-size: var(--t-sm); }
.card__flags { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .35rem; }
.card__flags li { font-size: .875rem; line-height: 1.6; padding: 0 .55rem; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); }

.fav {
  position: absolute; top: .45rem; right: .45rem; z-index: 2;
  display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: rgb(246 245 241 / .94); color: var(--ink);
}
.fav svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; transition: fill .3s var(--ease); }
.fav[aria-pressed="true"] svg { fill: var(--brass); stroke: var(--brass-ink); }
@media (hover: hover) { .fav:hover { color: var(--walnut); background: var(--paper); } }
.fav.is-pop svg { animation: pop .5s var(--ease); }
@keyframes pop { 40% { transform: scale(1.28); } }
html:not(.js) .fav { display: none; }

/* a row that scrolls sideways on phones, a grid from tablets */
.cards--row {
  grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: min(82%, 20rem);
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
  margin-inline: calc(-1 * var(--gutter)); padding: 0 var(--gutter) 1rem; scroll-padding-inline: var(--gutter);
  scrollbar-width: thin;
}
.cards--row > li { scroll-snap-align: start; }
@media (min-width: 48rem) {
  .cards--row { grid-auto-flow: row; grid-template-columns: repeat(2, 1fr); overflow: visible; margin-inline: 0; padding: 0; }
}
@media (min-width: 64rem) { .cards--row { grid-template-columns: repeat(var(--cols, 3), 1fr); } }

/* results re-render: a short rise, only after the visitor changes something */
.cards.is-fresh > li { animation: rise .7s var(--ease) both; animation-delay: calc(var(--i, 0) * 45ms); }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

/* ---------- Form controls (search, filters, forms) ---------- */
.field { display: grid; gap: .35rem; }
.field label, .ff legend, .search legend, .seg-field legend { font-size: var(--t-sm); font-weight: 500; color: var(--ink); }
.field input, .field textarea, .select select {
  width: 100%; min-height: 48px; padding: .6rem .85rem; border: 1px solid var(--line-strong); border-radius: var(--r-btn);
  background: var(--paper); color: var(--ink); line-height: 1.5;
}
.field textarea { min-height: 6rem; resize: vertical; }
.field input:focus-visible, .field textarea:focus-visible, .select select:focus-visible { outline: 2px solid var(--walnut); outline-offset: 1px; border-color: var(--walnut); }
.field [aria-invalid="true"] { border-color: var(--error); }
.field__err { color: var(--error); font-size: var(--t-sm); font-weight: 500; }
.select { position: relative; }
.select select { appearance: none; -webkit-appearance: none; padding-right: 2.5rem; cursor: pointer; }
.select select:disabled { color: var(--muted); background: var(--bg); cursor: not-allowed; border-style: dashed; }
.select::after {
  content: ""; position: absolute; right: 1rem; top: 50%; width: .5rem; height: .5rem; margin-top: -.35rem;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); pointer-events: none;
}
.seg { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--concrete); }
.seg label, .pills label { position: relative; display: block; }
.seg input, .pills input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.seg span {
  display: flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 1.1rem; border-radius: 999px;
  font-weight: 500; transition: background-color .35s var(--ease), color .35s var(--ease);
}
.seg input:checked + span { background: var(--walnut); color: var(--paper); }
.seg input:focus-visible + span, .pills input:focus-visible + span { outline: 2px solid var(--walnut); outline-offset: 2px; }
.pills { display: flex; flex-wrap: wrap; gap: .4rem; }
.pills span {
  display: flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; padding: 0 .9rem;
  border: 1px solid var(--line-strong); border-radius: 999px; background: var(--paper);
  transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
.pills input:checked + span { background: var(--walnut); border-color: var(--walnut); color: var(--paper); }
.pills label:hover span { border-color: var(--ink); }
.check { display: flex; align-items: center; gap: .7rem; min-height: 44px; cursor: pointer; }
.check input { width: 1.25rem; height: 1.25rem; margin: 0; accent-color: var(--walnut); flex: none; cursor: pointer; }
.check small { margin-left: auto; color: var(--muted); font-size: var(--t-sm); font-variant-numeric: tabular-nums; }

/* ---------- Home hero + search ---------- */
.hero { padding: clamp(2rem, 5vw, 4.5rem) 0 clamp(3rem, 6vw, 6rem); }
.hero__grid { display: grid; gap: 1.75rem; }
.hero__text { order: 1; }
.search { order: 2; }
.hero__media { order: 3; }
.hero__title { font-size: var(--t-hero); line-height: 1.28; }
:lang(en) .hero__title { line-height: 1.06; letter-spacing: -.02em; }
.hero__line { display: block; overflow: hidden; padding-bottom: .36em; margin-bottom: -.36em; padding-top: .12em; margin-top: -.12em; }
.hero__line > span { display: block; }
.hero__lede { margin-top: 1.25rem; font-size: var(--t-md); color: var(--muted); max-width: 34rem; }
.hero__media { position: relative; overflow: hidden; border-radius: var(--r-img); aspect-ratio: 4 / 3; background: var(--concrete); }
.hero__media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.78) contrast(.96); }
.hero__media figcaption {
  position: absolute; left: .75rem; bottom: .75rem; padding: .15rem .6rem; background: rgb(246 245 241 / .92);
  font-size: .875rem; border-radius: 2px;
}
.search {
  display: grid; gap: 1.1rem; padding: clamp(1.1rem, 2.6vw, 2rem); border-radius: var(--r-img);
  background: var(--concrete);
}
.search legend { margin-bottom: .35rem; }
.search .seg { background: var(--bg); }
.search__go { width: 100%; }
.search__note { font-size: var(--t-sm); color: var(--muted); }
@media (min-width: 40rem) {
  .search { grid-template-columns: 1fr 1fr; }
  .search__deal, .search__beds, .search__go, .search__note { grid-column: 1 / -1; }
}
@media (min-width: 64rem) {
  .hero__text, .search, .hero__media { order: 0; }
  .hero__grid { grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); row-gap: 0; align-items: start; }
  .hero__text { grid-column: 1 / 8; grid-row: 1; padding-top: 1.5rem; }
  .hero__media { grid-column: 8 / 13; grid-row: 1 / 3; aspect-ratio: 4 / 5; }
  .search {
    grid-column: 1 / 11; grid-row: 2; margin-top: 2.5rem; position: relative; z-index: 2;
    grid-template-columns: auto minmax(0, 1.25fr) minmax(0, 1fr); align-items: end;
    box-shadow: 0 0 0 1px rgb(42 39 36 / .06);
  }
  .search__deal { grid-column: auto; }
  .search__beds { grid-column: 1 / 3; }
  .search__go { grid-column: 3; width: auto; }
  .search__note { grid-column: 1 / -1; }
}

/* hero load: the one orchestrated moment (only with JS, never with reduced motion) */
html.js .hero__line > span { transform: translateY(108%); }
html.js .hero__lede, html.js .search { opacity: 0; transform: translateY(18px); }
html.js .hero__media::after { content: ""; position: absolute; inset: 0; z-index: 1; background: var(--concrete); transform-origin: 50% 0; }
html.js .hero__media img { transform: scale(1.08); }
html.js.loaded .hero__line > span { transform: none; transition: transform 1.15s var(--ease) calc(.1s + var(--i, 0) * .12s); }
html.js.loaded .hero__lede { opacity: 1; transform: none; transition: opacity .9s var(--ease) .45s, transform 1s var(--ease) .45s; }
html.js.loaded .search { opacity: 1; transform: none; transition: opacity .9s var(--ease) .6s, transform 1s var(--ease) .6s; }
html.js.loaded .hero__media::after { transform: scaleY(0); transition: transform 1.3s var(--ease) .15s; }
html.js.loaded .hero__media img { transform: none; transition: transform 1.8s var(--ease) .15s; }

/* ---------- Signature: the brass line map ---------- */
.on-dark { background: var(--walnut-deep); color: var(--on-dark); }
.on-dark .muted, .on-dark .lede { color: var(--on-dark-muted); }
.lm-sec { padding-block: var(--section); }
.lm-head { display: grid; gap: 1rem; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.lm-head p { max-width: 36rem; color: var(--on-dark-muted); }
@media (min-width: 64rem) { .lm-head { grid-template-columns: 1fr 1fr; align-items: end; column-gap: var(--gap); } }

.linemap { display: none; }
.linemap svg { width: 100%; height: auto; overflow: visible; }
.lm-path { fill: none; stroke: var(--brass-light); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.lm-mrt { fill: none; stroke: #8E8579; stroke-width: 2.5; stroke-dasharray: 2 7; stroke-linecap: round; }
.lm-link-line { stroke: #8E8579; stroke-width: 1.5; stroke-dasharray: 1 5; stroke-linecap: round; }
.lm-tick { stroke: #8E8579; stroke-width: 2; }
.lm-siam { fill: var(--walnut-deep); stroke: var(--on-dark-muted); stroke-width: 2; }
.lm-dot { fill: var(--brass-light); stroke: var(--walnut-deep); stroke-width: 3; transform-box: fill-box; transform-origin: center; transition: transform .5s var(--ease), fill .4s var(--ease); }
.lm-stn { fill: var(--on-dark-muted); font-family: var(--font-ui); font-size: 13px; }
.lm-stn--minor { fill: #A79C8E; font-size: 12px; }
.lm-name { fill: var(--on-dark); font-family: var(--font-display); font-weight: 300; font-size: 30px; }
.lm-meta { fill: var(--on-dark-muted); font-family: var(--font-ui); font-size: 14px; }
.lm-legend { display: flex; flex-wrap: wrap; gap: .5rem 2rem; margin-top: 1.75rem; font-size: var(--t-sm); color: var(--on-dark-muted); }
.lm-legend li { display: flex; align-items: center; gap: .6rem; }
.lm-legend i { flex: none; display: block; }
.lm-legend__bts { width: 1.75rem; height: 3px; border-radius: 2px; background: var(--brass-light); }
.lm-legend__mrt { width: 1.75rem; height: 0; border-top: 2.5px dotted #8E8579; }
.lm-legend__dot { width: .9rem; height: .9rem; border-radius: 50%; background: var(--brass-light); }
.lm-hit { fill: transparent; stroke: transparent; stroke-width: 2; rx: 4px; }
.lm-link { cursor: pointer; }
.lm-link:focus { outline: none; }
.lm-link:focus-visible .lm-hit { stroke: var(--on-dark); }
.lm-link:hover .lm-name, .lm-link:focus-visible .lm-name { fill: #fff; text-decoration: underline; }
.linemap[data-hot="ari"] .lm-dot[data-a="ari"],
.linemap[data-hot="silom"] .lm-dot[data-a="silom"],
.linemap[data-hot="sathorn"] .lm-dot[data-a="sathorn"],
.linemap[data-hot="thonglor"] .lm-dot[data-a="thonglor"] { transform: scale(1.45); fill: #E4C690; }
@media (min-width: 64rem) {
  .linemap { display: block; }
  .lm-list { display: none; }
}
/* draw-in, once, when the map scrolls into view */
html.js .linemap .lm-path { stroke-dasharray: 1; stroke-dashoffset: 0; }
html.js .linemap:not(.is-in) .lm-path { stroke-dashoffset: 1; }
html.js .linemap:not(.is-in) .lm-dot, html.js .linemap:not(.is-in) .lm-fade { opacity: 0; }
html.js .linemap:not(.is-in) .lm-dot { transform: scale(.3); }
html.js .linemap.is-in .lm-path { transition: stroke-dashoffset 1.8s var(--ease); }
html.js .linemap.is-in .lm-path--silom { transition-delay: .5s; }
html.js .linemap.is-in .lm-dot { transition: transform .6s var(--ease) calc(.8s + var(--d, 0s)), opacity .4s ease calc(.8s + var(--d, 0s)), fill .4s var(--ease); }
html.js .linemap.is-in .lm-fade { transition: opacity .8s ease 1.1s; }

/* phones and tablets: the same line, drawn vertically as a list */
.lm-list { position: relative; display: grid; gap: 0; }
.lm-list::before { content: ""; position: absolute; left: .55rem; top: 1.4rem; bottom: 1.4rem; width: 3px; background: var(--brass-light); border-radius: 2px; }
.lm-list a { position: relative; display: grid; gap: .1rem; padding: 1rem 0 1rem 2.25rem; text-decoration: none; }
.lm-list a::before {
  content: ""; position: absolute; left: 0; top: 1.45rem; width: 1.25rem; height: 1.25rem; border-radius: 50%;
  background: var(--brass-light); box-shadow: 0 0 0 4px var(--walnut-deep);
}
.lm-list__name { font-family: var(--font-display); font-weight: 300; font-size: var(--t-xl); line-height: 1.3; }
.lm-list a:hover .lm-list__name { text-decoration: underline; text-decoration-thickness: 1px; }
.lm-list__st, .lm-list__meta { font-size: var(--t-sm); color: var(--on-dark-muted); }
.lm-list__meta { color: var(--on-dark); }
.lm-list li + li { border-top: 1px solid rgb(239 234 225 / .12); }

/* ---------- Home sections ---------- */
.sec-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem 2rem; margin-bottom: clamp(1.75rem, 3vw, 2.75rem); }
.sec-head p { max-width: 34rem; color: var(--muted); }
.method { display: grid; gap: 2.5rem; }
.method h2 { font-size: var(--t-2xl); line-height: 1.32; max-width: 15ch; }
:lang(en) .method h2 { line-height: 1.12; max-width: 16ch; }
.method__list { display: grid; gap: 0; }
.method__list li { padding: 1.4rem 0; border-top: 1px solid var(--line); }
.method__list li:last-child { border-bottom: 1px solid var(--line); }
.method__list p { color: var(--muted); max-width: 34rem; margin-top: .3rem; }
@media (min-width: 64rem) { .method { grid-template-columns: 5fr 6fr; column-gap: calc(var(--gap) * 2); align-items: start; } }

.guides { display: grid; gap: 2.5rem; }
.guide { display: grid; gap: 1.1rem; position: relative; }
.guide__img { aspect-ratio: 3 / 2; overflow: hidden; border-radius: var(--r-img); background: var(--concrete); }
.guide__img img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.7) contrast(.95) sepia(.08); transition: transform 1.2s var(--ease); }
@media (hover: hover) { .guide:hover .guide__img img { transform: scale(1.03); } }
.guide h3 { font-family: var(--font-display); font-weight: 300; font-size: var(--t-xl); line-height: 1.3; }
.guide h3 a { text-decoration: none; }
.guide h3 a::after { content: ""; position: absolute; inset: 0; }
.guide h3 a:focus-visible { outline: none; }
.guide h3 a:focus-visible::after { outline: 2px solid var(--walnut); outline-offset: 6px; }
.guide p { color: var(--muted); }
.guide dl { display: flex; gap: 1.5rem; font-size: var(--t-sm); }
.guide dt { color: var(--muted); }
.guide dd { font-weight: 600; font-variant-numeric: tabular-nums; }
@media (min-width: 48rem) { .guides { grid-template-columns: repeat(3, 1fr); column-gap: var(--gap); } }

.owners-band { background: var(--concrete); }
.owners-band .wrap { display: grid; gap: 1.75rem; }
.owners-band h2 { font-size: var(--t-2xl); line-height: 1.32; }
:lang(en) .owners-band h2 { line-height: 1.12; }
.owners-band p { max-width: 36rem; }
@media (min-width: 64rem) { .owners-band .wrap { grid-template-columns: 1fr 1fr; align-items: end; column-gap: calc(var(--gap) * 2); } }

.reviews { display: grid; gap: 2rem; }
.review { display: grid; gap: 1rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.review p { font-family: var(--font-display); font-weight: 300; font-size: var(--t-lg); line-height: 1.6; }
:lang(en) .review p { line-height: 1.45; }
.review footer { font-size: var(--t-sm); color: var(--muted); }
.review cite { font-style: normal; font-weight: 600; color: var(--ink); }
@media (min-width: 64rem) { .reviews { grid-template-columns: repeat(3, 1fr); column-gap: calc(var(--gap) * 1.5); } }

.faq { display: grid; gap: 2rem; }
.faq__list details { border-top: 1px solid var(--line); }
.faq__list details:last-child { border-bottom: 1px solid var(--line); }
.faq__list summary {
  position: relative; display: flex; align-items: center; min-height: 3.75rem; padding: .85rem 2.5rem .85rem 0;
  font-weight: 500; cursor: pointer; list-style: none;
}
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::before, .faq__list summary::after {
  content: ""; position: absolute; right: .35rem; top: 50%; width: .9rem; height: 1.5px; background: currentColor; transition: transform .4s var(--ease);
}
.faq__list summary::after { transform: rotate(90deg); }
.faq__list details[open] summary::after { transform: rotate(0); }
.faq__list details > div { padding: 0 0 1.4rem; color: var(--muted); max-width: 44rem; }
@media (min-width: 64rem) { .faq { grid-template-columns: 4fr 7fr; column-gap: calc(var(--gap) * 2); } }

.cta.on-dark { background: var(--walnut); }
.cta.on-dark .btn--solid { color: var(--walnut); }
.cta .wrap { display: grid; gap: 1.5rem; }
.cta h2 { font-size: var(--t-2xl); line-height: 1.32; max-width: 18ch; }
:lang(en) .cta h2 { line-height: 1.12; }
.cta p { max-width: 36rem; color: #D8CFC2; }

/* ---------- Listings page ---------- */
.page-head { padding: clamp(2rem, 4vw, 3.5rem) 0 clamp(1.25rem, 2.5vw, 2rem); }
.page-head h1 { font-size: var(--t-2xl); }
.page-head .lede { margin-top: .75rem; }
.toolbar { position: sticky; top: 0; z-index: 30; background: var(--bg); border-bottom: 1px solid var(--line); }
.toolbar__in { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; min-height: 3.75rem; }
.toolbar__count { margin-right: auto; font-weight: 600; font-variant-numeric: tabular-nums; }
.toolbar__filters { min-height: 44px; padding: .3rem 1rem; }
.sort { display: flex; align-items: center; gap: .5rem; font-size: var(--t-sm); }
.sort .select select { min-height: 44px; padding-top: .35rem; padding-bottom: .35rem; }
.sort__label { display: none; }
@media (max-width: 39.99rem) {
  .toolbar__in { gap: .25rem .5rem; padding: .4rem 0 .6rem; }
  .toolbar__count { flex-basis: 100%; font-size: var(--t-sm); }
  .toolbar__filters, .sort { flex: 1 1 0; min-width: 0; }
  .sort .select { width: 100%; }
  .sort select { width: 100%; text-overflow: ellipsis; }
}
@media (min-width: 40rem) { .sort__label { display: inline; } .sort select { max-width: 13rem; } }
@media (min-width: 64rem) { .toolbar { position: static; } .toolbar__filters { display: none; } }

.list-layout { display: grid; gap: 2rem; padding: 1.5rem 0 var(--section); }
@media (min-width: 64rem) { .list-layout { grid-template-columns: 17.5rem minmax(0, 1fr); column-gap: 3rem; padding-top: 2rem; } }

.filters { background: var(--bg); }
.sheet__head { display: flex; align-items: center; justify-content: space-between; }
.sheet__head h2 { font-family: var(--font-ui); font-weight: 600; font-size: var(--t-md); line-height: 1.4; }
.sheet__close { display: grid; place-items: center; width: 44px; height: 44px; background: none; border: 0; border-radius: 50%; }
.sheet__close svg { width: 1.2rem; height: 1.2rem; stroke: currentColor; stroke-width: 1.6; }
.ff { padding: 1.1rem 0 1.2rem; border-top: 1px solid var(--line); }
.ff legend { float: left; width: 100%; margin-bottom: .55rem; }
.ff legend + * { clear: both; }
.ff__hint { margin-top: .5rem; font-size: var(--t-sm); color: var(--muted); }
.ff__two { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.ff__two .field label { font-weight: 400; color: var(--muted); }
.sheet__foot { display: flex; gap: .6rem; }
.sheet__foot .btn--solid { flex: 1; }
.sheet-backdrop { display: none; }
html:not(.js) .filters, html:not(.js) .toolbar__filters, html:not(.js) .sort, html:not(.js) [data-open-filters] { display: none; }
html:not(.js) form[data-simple] { display: none; }
.nojs-note { margin-bottom: 1.5rem; padding: 1rem 1.2rem; background: var(--concrete); border-radius: var(--r-img); }

@media (max-width: 63.99rem) {
  .filters {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 95;
    display: flex; flex-direction: column; max-height: min(90dvh, 46rem);
    background: var(--paper); border-radius: 14px 14px 0 0; box-shadow: 0 -1px 0 var(--line);
    transform: translateY(100%); visibility: hidden;
    transition: transform .5s var(--ease), visibility 0s linear .5s;
  }
  .filters.is-open { transform: none; visibility: visible; transition: transform .5s var(--ease); }
  .sheet__head { flex: none; padding: .6rem .6rem .4rem var(--gutter); }
  .sheet__head::before {
    content: ""; position: absolute; left: 50%; top: .45rem; width: 2.5rem; height: 4px; margin-left: -1.25rem;
    border-radius: 4px; background: var(--concrete-2);
  }
  .filters__form { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 0 var(--gutter) 1rem; }
  .filters .ff:first-child { border-top: 0; }
  .sheet__foot { flex: none; padding: .75rem var(--gutter) calc(.75rem + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--paper); }
  .sheet-backdrop {
    display: block; position: fixed; inset: 0; z-index: 94; background: rgb(38 28 21 / .5);
    opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility 0s linear .35s;
  }
  .sheet-backdrop.is-open { opacity: 1; visibility: visible; transition: opacity .35s ease; }
  .filters .pills span, .filters .seg span { background: var(--paper); }
}
@media (min-width: 64rem) {
  .filters { position: sticky; top: calc(var(--header-h) + 1rem); align-self: start; max-height: calc(100vh - var(--header-h) - 2rem); overflow-y: auto; scrollbar-width: thin; padding-right: .25rem; }
  .sheet__close, .sheet__foot { display: none; }
  .sheet__head { padding-bottom: .5rem; }
}

.chips { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: 1.5rem; }
.chip {
  display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; padding: 0 .55rem 0 .9rem;
  border: 1px solid var(--line-strong); border-radius: 999px; background: var(--paper); font-size: var(--t-sm); font-weight: 500;
}
.chip span { font-size: 1.15rem; line-height: 1; color: var(--muted); padding: 0 .2rem; }
.chip:hover { border-color: var(--ink); }
.chip--clear { background: none; border-style: dashed; padding-right: .9rem; }

.empty { display: grid; gap: 1rem; padding: clamp(1.5rem, 4vw, 3rem); border: 1px dashed var(--line-strong); border-radius: var(--r-img); }
.empty h2 { font-size: var(--t-xl); }
.empty p { color: var(--muted); max-width: 36rem; }
.empty ul { display: flex; flex-wrap: wrap; gap: .5rem; }
.empty .btn--ghost { min-height: 44px; padding: .3rem 1rem; font-size: var(--t-sm); }

/* ---------- Detail page ---------- */
.crumbs { padding: 1.25rem 0 1rem; font-size: var(--t-sm); }
.crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: .2rem .55rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: .55rem; color: var(--line-strong); }
.crumbs a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); }
.crumbs [aria-current] { color: var(--muted); }
.prop { display: grid; gap: 2.5rem; padding-bottom: var(--section); }
.prop__top { display: grid; gap: 1.75rem; min-width: 0; }
.prop__main { display: grid; gap: 2.75rem; min-width: 0; }
.prop__main > section { display: grid; gap: 1rem; }
@media (min-width: 64rem) {
  .prop { grid-template-columns: minmax(0, 1fr) 22rem; grid-template-areas: "top side" "main side"; column-gap: 3.5rem; align-items: start; }
  .prop__top { grid-area: top; }
  .prop__main { grid-area: main; }
  .prop__side { grid-area: side; position: sticky; top: calc(var(--header-h) + 1.5rem); }
}

.gal { display: grid; gap: .75rem; }
.gal__track {
  display: grid; grid-auto-flow: column; grid-auto-columns: 100%; overflow-x: auto; scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain; border-radius: var(--r-img); scrollbar-width: none; background: var(--concrete);
}
.gal__track::-webkit-scrollbar { display: none; }
.gal__track:focus-visible { outline-offset: 3px; }
.gal__slide { position: relative; scroll-snap-align: start; aspect-ratio: 3 / 2; }
.gal__slide img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.8) contrast(.97); }
.gal__slide figcaption { position: absolute; left: .75rem; bottom: .75rem; padding: .1rem .6rem; background: rgb(246 245 241 / .92); font-size: .875rem; border-radius: 2px; }
.gal__bar { display: flex; align-items: center; gap: .5rem; }
.gal__count { font-variant-numeric: tabular-nums; font-size: var(--t-sm); color: var(--muted); min-width: 3.5rem; text-align: center; }
.gal__btn { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: 50%; background: var(--paper); }
.gal__btn svg { width: 1.1rem; height: 1.1rem; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.gal__btn:hover { border-color: var(--ink); }
.gal__thumbs { display: none; }
@media (min-width: 48rem) {
  .gal__bar { position: absolute; }
  .gal { position: relative; }
  .gal__bar { right: .75rem; top: .75rem; background: rgb(246 245 241 / .94); border-radius: 999px; padding: 2px; }
  .gal__btn { border: 0; background: transparent; }
  .gal__thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: .6rem; }
  .gal__thumb { display: block; width: 100%; padding: 0; border: 0; background: var(--concrete); border-radius: var(--r-img); overflow: hidden; opacity: .62; transition: opacity .35s var(--ease); }
  .gal__thumb img { width: 100%; aspect-ratio: 10 / 7; object-fit: cover; filter: saturate(.75); }
  .gal__thumb[aria-current="true"], .gal__thumb:hover { opacity: 1; }
  .gal__thumb[aria-current="true"] { box-shadow: 0 0 0 2px var(--walnut); }
}
.prop__head { display: grid; gap: .45rem; }
.prop__area { display: flex; gap: 1rem; font-size: var(--t-sm); color: var(--muted); }
.prop__area span { font-variant-numeric: tabular-nums; }
.prop__head h1 { font-size: var(--t-2xl); }
.prop__headline { font-size: var(--t-md); color: var(--muted); }
.prop__specs { font-size: var(--t-base); margin-top: .35rem; }
.prop__walk { padding: 1.5rem; background: var(--concrete); border-radius: var(--r-img); }
.prop__walk .walk--lg .walk__bar::after { box-shadow: 0 0 0 3px var(--concrete); }
.prop__walk .walk__bar { background-image: repeating-linear-gradient(90deg, #A9A399 0 2px, transparent 2px .6rem); }
.prop__desc { max-width: 42rem; }
.specs, .terms { display: grid; border-top: 1px solid var(--line); }
.specs > div, .terms > div { display: grid; grid-template-columns: minmax(8rem, 2fr) 3fr; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.specs dt, .terms dt { color: var(--muted); }
.specs dd, .terms dd { font-variant-numeric: tabular-nums; }
@media (min-width: 48rem) { .specs { grid-template-columns: 1fr 1fr; column-gap: 2rem; } }
.facil { display: grid; grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); gap: .55rem 1.5rem; }
.facil li { display: flex; align-items: baseline; gap: .65rem; }
.facil li::before { content: ""; flex: none; width: .45rem; height: .45rem; background: var(--brass); transform: translateY(-.1em); }

.price { display: grid; gap: .8rem; padding: 1.5rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-img); }
.price__deal { font-size: var(--t-sm); color: var(--muted); }
.price__main { font-variant-numeric: tabular-nums; line-height: 1.2; }
.price__main strong { font-family: var(--font-display); font-weight: 300; font-size: var(--t-xl); }
.price__main span { margin-left: .25rem; color: var(--muted); }
.price__sub { font-size: var(--t-sm); color: var(--muted); font-variant-numeric: tabular-nums; }
.price__actions { display: grid; gap: .55rem; margin-top: .35rem; }
.price__tools { display: flex; flex-wrap: wrap; gap: .5rem; }
.price__note { font-size: var(--t-sm); color: var(--muted); }
.fav--text {
  position: static; width: auto; height: auto; min-height: 44px; display: inline-flex; gap: .45rem; padding: 0 .9rem 0 .7rem;
  border: 1px solid var(--line-strong); border-radius: 999px; background: none; font-weight: 500; font-size: var(--t-sm);
}
.fav--text svg { width: 1.2rem; height: 1.2rem; }
.fav--text[aria-pressed="true"] { border-color: var(--walnut); box-shadow: inset 0 0 0 1px var(--walnut); }
.tool { min-height: 44px; padding: 0 .9rem; border: 1px solid var(--line-strong); border-radius: 999px; background: none; font-weight: 500; font-size: var(--t-sm); }
.tool:hover, .fav--text:hover { border-color: var(--ink); }
.tool.is-done { border-color: var(--walnut); background: var(--walnut); color: var(--paper); }
html:not(.js) .prop-loading { display: none; }
.prop-loading { display: grid; gap: 1rem; padding: 1rem 0 var(--section); }
.prop-loading i { display: block; height: 1.25rem; background: var(--concrete); border-radius: 2px; }
.prop-loading i:first-child { height: auto; aspect-ratio: 3 / 2; max-height: 60vh; }
.notfound { display: grid; gap: 1rem; padding: clamp(2.5rem, 6vw, 5rem) 0 var(--section); max-width: 40rem; }

.viewing { padding: clamp(1.25rem, 3vw, 2rem); border: 1px solid var(--line); border-radius: var(--r-img); background: var(--paper); scroll-margin-top: 1.5rem; }
.form { display: grid; gap: 1.1rem; }
.form__grid { display: grid; gap: 1.1rem; }
@media (min-width: 40rem) { .form__grid { grid-template-columns: 1fr 1fr; } }
.seg-field legend { margin-bottom: .45rem; }
.viewing .seg { background: var(--concrete); }
.form .btn--solid { justify-self: start; }
.form__done { display: grid; gap: .75rem; padding: 1.25rem; background: var(--concrete); border-radius: var(--r-img); }
.form__msg { margin: 0; padding: .9rem 1rem; white-space: pre-wrap; font-family: var(--font-ui); font-size: var(--t-sm); background: var(--paper); border-radius: 2px; }
.similar { padding-bottom: var(--section); }
.similar h2 { margin-bottom: 1.75rem; }
.similar .link { margin-top: 1.25rem; }

/* ---------- Favourites ---------- */
.favs-actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin-bottom: 2rem; }
.undo { margin: -1rem 0 2rem; padding: .5rem 1rem; display: inline-flex; gap: .75rem; align-items: center; background: var(--concrete); border-radius: var(--r-img); }
.table-wrap { overflow-x: auto; border-top: 1px solid var(--line); }
.compare { width: 100%; min-width: 40rem; border-collapse: collapse; font-size: var(--t-sm); }
.compare th, .compare td { text-align: left; padding: .8rem 1rem .8rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { color: var(--muted); font-weight: 500; }
.compare tbody th { font-weight: 500; }
.compare tbody th a { font-family: var(--font-display); font-weight: 300; font-size: var(--t-md); }
.compare tbody th span { display: block; color: var(--muted); font-weight: 400; font-variant-numeric: tabular-nums; }
.compare .num { font-variant-numeric: tabular-nums; }
.favs-empty { display: grid; gap: 1rem; padding: clamp(1.5rem, 4vw, 3rem); border: 1px dashed var(--line-strong); border-radius: var(--r-img); max-width: 46rem; }
.favs-note { margin-top: 2.5rem; font-size: var(--t-sm); color: var(--muted); }

/* ---------- Area guides ---------- */
.area-hero { display: grid; gap: 1.75rem; padding: clamp(2rem, 4vw, 3.5rem) 0 clamp(2.5rem, 5vw, 4.5rem); }
.area-hero h1 { font-size: var(--t-hero); line-height: 1.25; }
:lang(en) .area-hero h1 { line-height: 1.04; letter-spacing: -.02em; }
.area-hero__img { overflow: hidden; border-radius: var(--r-img); aspect-ratio: 16 / 9; background: var(--concrete); }
.area-hero__img img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.7) contrast(.95) sepia(.1); }
@media (min-width: 64rem) {
  .area-hero { grid-template-columns: 5fr 7fr; column-gap: var(--gap); align-items: end; }
  .area-hero__img { aspect-ratio: 7 / 5; }
}
.area-tabs { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1.5rem; }
.area-tabs a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 1rem; border: 1px solid var(--line-strong); border-radius: 999px; text-decoration: none; font-size: var(--t-sm); font-weight: 500; }
.area-tabs a[aria-current="page"] { background: var(--walnut); border-color: var(--walnut); color: var(--paper); }
.area-tabs a:not([aria-current]):hover { border-color: var(--ink); }
.facts { display: grid; gap: 0; border-top: 1px solid var(--line); }
.facts > div { display: grid; gap: .15rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.facts dt { font-size: var(--t-sm); color: var(--muted); }
.facts dd { font-weight: 500; }
@media (min-width: 48rem) { .facts { grid-template-columns: repeat(2, 1fr); column-gap: 2rem; } }
@media (min-width: 80rem) { .facts { grid-template-columns: repeat(4, 1fr); } }
.area-body { display: grid; gap: 3.5rem; }
.area-body > section { display: grid; gap: 1.1rem; }
@media (min-width: 64rem) {
  .area-body { grid-template-columns: 1fr 1fr; column-gap: calc(var(--gap) * 2); row-gap: 4rem; }
  .area-body .span-2 { grid-column: 1 / -1; }
}
.dtable { width: 100%; border-collapse: collapse; }
.dtable caption { text-align: left; color: var(--muted); font-size: var(--t-sm); padding-bottom: .5rem; }
.dtable th, .dtable td { text-align: left; padding: .75rem 1rem .75rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.dtable thead th { font-size: var(--t-sm); color: var(--muted); font-weight: 500; border-top: 1px solid var(--line); }
.dtable td.num, .dtable th.num { text-align: right; padding-right: 0; white-space: nowrap; }
.notes { display: grid; gap: .8rem; }
.notes li { position: relative; padding-left: 1.4rem; }
.notes li::before { content: ""; position: absolute; left: 0; top: .75em; width: .6rem; height: 1px; background: var(--ink); }

/* ---------- Owners and about ---------- */
.steps { display: grid; gap: 0; counter-reset: step; }
.steps li { display: grid; grid-template-columns: 3rem 1fr; gap: .2rem 1rem; padding: 1.25rem 0; border-top: 1px solid var(--line); counter-increment: step; }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps li::before { content: counter(step); grid-row: span 2; font-family: var(--font-display); font-weight: 300; font-size: var(--t-xl); line-height: 1.1; color: var(--brass-ink); font-variant-numeric: tabular-nums; }
.steps p { color: var(--muted); }
.ticks { display: grid; gap: .7rem; }
.ticks li { display: flex; gap: .75rem; align-items: baseline; }
.ticks li::before { content: ""; flex: none; width: .45rem; height: .45rem; background: var(--brass); transform: translateY(-.1em); }
.two { display: grid; gap: 3rem; }
@media (min-width: 64rem) { .two { grid-template-columns: 1fr 1fr; column-gap: calc(var(--gap) * 2); } }
.formbox { padding: clamp(1.25rem, 3vw, 2.25rem); background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-img); }
.formbox h2 { margin-bottom: .5rem; }
.formbox > p { color: var(--muted); margin-bottom: 1.5rem; }
.team { display: grid; gap: 1.5rem; }
.team li { display: grid; grid-template-columns: 3.5rem 1fr; gap: 1rem; align-items: start; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.team__mono { display: grid; place-items: center; width: 3.5rem; height: 3.5rem; border-radius: 50%; border: 1px solid var(--brass); font-family: var(--font-display); font-size: 1.25rem; color: var(--brass-ink); }
.team h3 { font-size: var(--t-base); }
.team p { color: var(--muted); font-size: var(--t-sm); }
@media (min-width: 48rem) { .team { grid-template-columns: 1fr 1fr; column-gap: 2rem; } }
.hours { display: grid; gap: 0; border-top: 1px solid var(--line); }
.hours > div { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.hours dt { color: var(--muted); }
.hours dd { font-variant-numeric: tabular-nums; text-align: right; }

/* ---------- Footer, PV strip, mobile bar ---------- */
.site-footer { padding: clamp(3.5rem, 7vw, 6rem) 0 2rem; }
.foot { display: grid; gap: 2.5rem; }
.foot h2 { font-family: var(--font-ui); font-size: var(--t-sm); font-weight: 600; line-height: 1.5; color: var(--on-dark-muted); margin-bottom: .6rem; }
.foot ul { display: grid; gap: 0; }
.foot a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.foot address, .foot p { color: var(--on-dark-muted); }
.foot__brand .brand__name { font-size: 2rem; }
.foot__brand p { margin-top: .75rem; max-width: 22rem; }
.foot__fine { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgb(239 234 225 / .14); font-size: var(--t-sm); color: var(--on-dark-muted); }
@media (min-width: 48rem) { .foot { grid-template-columns: repeat(2, 1fr); column-gap: 2.5rem; } }
@media (min-width: 64rem) { .foot { grid-template-columns: 1.4fr 1fr 1fr 1.3fr; } }

.pv-strip { background: var(--walnut-night); color: var(--on-dark-muted); border-top: 1px solid rgb(201 164 106 / .25); padding: .9rem 0; font-size: var(--t-sm); line-height: 1.6; }
.pv-strip a { color: var(--on-dark); }

.mbar { display: none; }
@media (max-width: 47.99rem) {
  :root { --mbar-space: 4.4rem; }
  body { padding-bottom: calc(4.4rem + env(safe-area-inset-bottom)); }
  .mbar {
    display: grid; grid-template-columns: 1fr 1fr 1.35fr; gap: .4rem;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: .55rem .6rem calc(.55rem + env(safe-area-inset-bottom));
    background: var(--walnut-deep); color: var(--on-dark);
  }
  .mbar a, .mbar button {
    display: flex; align-items: center; justify-content: center; gap: .45rem; min-height: 48px; padding: 0 .5rem;
    border: 0; border-radius: var(--r-btn); background: none; color: inherit; text-decoration: none; font-size: var(--t-sm); font-weight: 500;
  }
  .mbar svg { width: 1.25rem; height: 1.25rem; flex: none; }
  .mbar .mbar__main { background: var(--on-dark); color: var(--walnut-deep); }
}
.announcer { position: fixed; }

/* ---------- Reduced motion: everything at rest ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  html.js .hero__line > span, html.js .hero__lede, html.js .search, html.js .hero__media img { transform: none; opacity: 1; }
  html.js .hero__media::after { display: none; }
  html.js .linemap:not(.is-in) .lm-path { stroke-dashoffset: 0; }
  html.js .linemap:not(.is-in) .lm-dot, html.js .linemap:not(.is-in) .lm-fade { opacity: 1; transform: none; }
}

@media print {
  .mbar, .menu, .site-header, .concept-row__contact, .filters, .toolbar, .fav, .pv-strip { display: none !important; }
  html.js .hero__line > span, html.js .hero__lede, html.js .search { transform: none !important; opacity: 1 !important; }
  html.js .hero__media::after { display: none !important; }
}

/* footer link lists: no default list markers or indent */
.site-footer ul { list-style: none; margin: 0; padding: 0; }
