/* DealHash Deals — "warm ledger". Colours only from tokens.css (--dh-*); derived app tokens below use them or brand rgba values. */
:root {
  --dh-input-bg: rgba(204, 206, 208, 0.45);
  --dh-overlay: rgba(11, 13, 18, 0.5);
  --dh-photo-scrim: linear-gradient(to top, rgba(11, 13, 18, 0.62) 0%, rgba(11, 13, 18, 0.12) 42%, transparent 70%);
  --dh-line-strong: rgba(29, 26, 23, 0.15);
  --dh-white-12: rgba(255, 255, 255, 0.12);
  --dh-white-72: rgba(255, 255, 255, 0.72);
  --dh-white-60: rgba(255, 255, 255, 0.6);
  --dh-tap: rgba(122, 63, 0, 0.12);
  --bar-h: 64px;
  --rail-w: 304px;
  --gutter: 24px;
  color-scheme: light;
  accent-color: var(--dh-amber);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--bar-h) + 16px); -webkit-tap-highlight-color: var(--dh-tap); }
::selection { background: var(--dh-champagne); color: var(--dh-text-primary); }
a, button, label, input, select, textarea, summary { touch-action: manipulation; }
input:-webkit-autofill { -webkit-box-shadow: 0 0 0 100px var(--dh-shell) inset; -webkit-text-fill-color: var(--dh-text-primary); }
body {
  margin: 0; min-height: 100dvh;
  background: var(--dh-sand); color: var(--dh-text-primary);
  font: 400 16px/1.5 var(--dh-font);
  -webkit-font-smoothing: antialiased;
}
body.has-modal, body.has-drawer, body.sheet-open { overflow: hidden; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--dh-amber); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
.num, .money, input.num, td.num, dd.num { font-variant-numeric: tabular-nums; }
h1, h2, h3, h4 { margin: 0; color: var(--dh-text-primary); }
h1 { font-size: 32px; line-height: 34px; font-weight: 800; letter-spacing: -0.01em; }
h2 { font-size: 26px; line-height: 29px; font-weight: 800; letter-spacing: -0.005em; }
h3 { font-size: 20px; line-height: 26px; font-weight: 700; }
h4 { font-size: 17px; line-height: 22px; font-weight: 700; }
p { margin: 0; }
/* focus: brand gold is 2.2:1 on cream (below WCAG 3:1), so amber (7.2:1) on light, gold on dark surfaces */
:focus-visible { outline: 2px solid var(--focus, var(--dh-amber)); outline-offset: 3px; }
:focus:not(:focus-visible) { outline: none; }
.sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.muted { color: var(--dh-text-secondary); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--dh-white); color: var(--dh-ink); padding: 12px 16px; border-radius: var(--dh-radius-md); font-weight: 700; }
.skip:focus { top: 12px; }
.eyebrow { font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--dh-text-secondary); margin-bottom: 8px; }
.eyebrow--bronze { color: var(--dh-bronze); }

/* ---------- money ---------- */
.money { white-space: nowrap; font-weight: 700; }
.money .cur { font-size: 0.62em; font-weight: 700; letter-spacing: 0.02em; margin-left: 1px; }
.money--xl { font-size: 32px; line-height: 34px; font-weight: 800; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 44px; max-width: 100%; padding: 8px 18px; border: 0; border-radius: var(--dh-radius-md);
  font-size: 16px; line-height: 20px; font-weight: 700; text-decoration: none; text-align: center; overflow-wrap: anywhere;
  transition: transform 200ms var(--dh-ease);
}
.btn:hover { filter: brightness(1.08); text-decoration: none; }
.btn:active { transform: scale(0.98); }
.btn:disabled { background: var(--dh-field); color: var(--dh-text-faint); cursor: not-allowed; filter: none; }
.btn--primary { background: var(--dh-amber); color: var(--dh-white); min-height: 56px; padding: 8px 24px; box-shadow: var(--dh-shadow-button); }
.btn--dark { background: var(--dh-black); color: var(--dh-white); min-height: 56px; padding: 8px 24px; }
.btn--ghost { background: var(--dh-white); color: var(--dh-text-primary); box-shadow: inset 0 0 0 1px var(--dh-line); }
.btn--ghost:hover { filter: none; box-shadow: inset 0 0 0 1px var(--dh-text-muted); }
.btn--bar { background: var(--dh-white); color: var(--dh-ink); border-radius: 12px; font-weight: 700; white-space: nowrap; }
.btn--wa { background: var(--dh-whatsapp); color: var(--dh-ink); min-height: 56px; border-radius: var(--dh-radius-xl); padding: 8px 24px; }
.btn--block { width: 100%; }
.btn--s { min-height: 44px; font-size: 15px; padding: 8px 14px; }
.btn.is-loading { opacity: 0.7; }
.wa-glyph { flex: none; }
.linkbtn {
  background: none; border: 0; padding: 0; min-height: 44px; color: var(--dh-amber); font-weight: 700; font-size: 15px;
  text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; display: inline-flex; align-items: center;
}
.linkbtn:hover { text-decoration-thickness: 2px; }
.iconbtn {
  width: 44px; height: 44px; flex: none; border: 0; border-radius: 12px; background: transparent; color: inherit;
  display: inline-grid; place-items: center;
}
.iconbtn:hover { background: var(--dh-sand); }

/* ---------- top bar ---------- */
.bar { position: sticky; top: 0; z-index: 60; background: var(--dh-ink); color: var(--dh-white); --focus: var(--dh-gold-light); }
.bar__in { height: var(--bar-h); display: flex; align-items: center; gap: 28px; padding: 0 max(var(--gutter), env(safe-area-inset-right)) 0 max(var(--gutter), env(safe-area-inset-left)); min-width: 0; }
.bar__logo { display: flex; align-items: center; min-height: 44px; flex: none; }
.bar__logo img { width: 122px; height: auto; }
.bar__nav { display: flex; gap: 4px; min-width: 0; }
.bar__nav a {
  color: var(--dh-white-72); text-decoration: none; font-weight: 500; font-size: 15px;
  min-height: 44px; display: inline-flex; align-items: center; padding: 0 12px; border-radius: 10px; position: relative;
}
.bar__nav a:hover { color: var(--dh-white); }
.bar__nav a[aria-current="page"] { color: var(--dh-white); }
.bar__nav a[aria-current="page"]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 6px; height: 2px; border-radius: 2px; background: var(--dh-gold); }
.bar__user { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.bar__pill {
  font-size: 13px; font-weight: 500; color: var(--dh-champagne); padding: 6px 12px; border-radius: var(--dh-radius-pill);
  background: var(--dh-white-12); white-space: nowrap; display: inline-block; max-width: 240px; overflow: hidden; text-overflow: ellipsis;
}
.bar__pill.is-out { color: var(--dh-gold-light); }
.acct { position: relative; }
.acct__btn { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--dh-white-12); color: var(--dh-white); display: grid; place-items: center; }
.acct__ini { font-weight: 700; }
.acct__menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 240px; background: var(--dh-white); color: var(--dh-text-primary);
  border-radius: var(--dh-radius-lg); box-shadow: var(--dh-shadow-deep); padding: 12px; z-index: 70;
}
.acct__name { font-weight: 700; padding: 4px 8px 0; overflow-wrap: anywhere; }
.acct__mail { font-size: 14px; color: var(--dh-text-secondary); padding: 0 8px 8px; border-bottom: 1px solid var(--dh-line); margin-bottom: 6px; overflow-wrap: anywhere; }
.acct__item { display: flex; width: 100%; min-height: 44px; align-items: center; padding: 0 8px; border: 0; background: none; border-radius: 10px; color: var(--dh-text-primary); text-decoration: none; font-weight: 500; text-align: left; }
.acct__item:hover { background: var(--dh-sand); }
.acct__plan { font-size: 14px; font-weight: 500; color: var(--dh-text-secondary); padding: 0 8px 8px; margin-top: -2px; }
.is-mock .bar__logo::after { content: "mock data"; font-size: 11px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--dh-gold-soft); margin-left: 10px; }

/* ---------- catalog layout ---------- */
.catalog { display: grid; grid-template-columns: var(--rail-w) minmax(0, 1fr); align-items: start; }
.rail {
  position: sticky; top: var(--bar-h); height: calc(100dvh - var(--bar-h)); overflow-y: auto; overscroll-behavior: contain;
  background: var(--dh-cream); border-right: 1px solid var(--dh-line);
}
.rail__form { padding: 20px 20px 40px; display: flex; flex-direction: column; gap: 22px; }
.rail__sheethead, .rail__sheetfoot { display: none; }
/* desktop rail header: "Filters (n) · Reset all", stays on top while the filters scroll */
.rail__head {
  position: sticky; top: 0; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 20px 12px; background: var(--dh-cream); border-bottom: 1px solid var(--dh-line);
}
.rail__h { margin: 0; display: inline-flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 700; color: var(--dh-ink); }
.rail__head .linkbtn { min-height: 32px; white-space: nowrap; }
.rail__head .linkbtn:disabled { opacity: 0.45; cursor: default; text-decoration: none; }
.results {
  min-width: 0; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  grid-template-areas: "tool map" "list map"; grid-template-rows: auto 1fr; align-items: start;
}
.split { display: contents; }
.toolbar { grid-area: tool; padding: 20px var(--gutter) 12px; min-width: 0; }
.list { grid-area: list; padding: 4px var(--gutter) 48px; min-width: 0; }
.mapwrap {
  grid-area: map; position: sticky; top: var(--bar-h); height: calc(100dvh - var(--bar-h)); min-width: 0;
  border-left: 1px solid var(--dh-line); background: var(--dh-sand-deep); isolation: isolate; z-index: 0;
}
.map { position: absolute; inset: 0; }
.map__note {
  position: absolute; left: 12px; top: 12px; z-index: 500; font-size: 12px; font-weight: 500; color: var(--dh-text-secondary);
  background: var(--dh-white); border-radius: var(--dh-radius-pill); padding: 5px 12px; box-shadow: var(--dh-shadow-button); pointer-events: none;
}
.map--off { display: grid; place-items: center; }
.map__off { color: var(--dh-text-secondary); padding: 24px; text-align: center; }

/* toolbar */
.toolbar__row { display: flex; align-items: center; gap: 16px; justify-content: space-between; flex-wrap: wrap; }
.toolbar__count { min-width: 0; overflow-wrap: anywhere; }
.toolbar__of { font-size: 16px; font-weight: 500; color: var(--dh-text-secondary); letter-spacing: 0; white-space: nowrap; }
.toolbar__right { display: flex; align-items: center; gap: 10px; min-width: 0; max-width: 100%; }
.btn--filters { display: none; white-space: nowrap; flex: none; background: var(--dh-white); color: var(--dh-text-primary); box-shadow: inset 0 0 0 1px var(--dh-line); border-radius: var(--dh-radius-pill); }
.badge-n { min-width: 22px; min-height: 22px; border-radius: 11px; background: var(--dh-ink); color: var(--dh-white); font-size: 12px; display: inline-grid; place-items: center; padding: 0 6px; }
.active { display: flex; align-items: center; gap: 4px 12px; flex-wrap: wrap; margin-top: 12px; }
.active__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- form controls ---------- */
.f { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.f__label { font-size: 14px; line-height: 20px; font-weight: 700; color: var(--dh-text-primary); padding: 0; }
.f__opt { font-weight: 400; color: var(--dh-text-secondary); font-size: 13px; }
.f__row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.f__value { font-size: 14px; font-weight: 700; color: var(--dh-amber); }
.f__help { font-size: 13px; line-height: 18px; color: var(--dh-text-secondary); }
.f__err { font-size: 13px; line-height: 18px; color: var(--dh-error); font-weight: 500; }
.form__err { font-size: 14px; color: var(--dh-error); font-weight: 500; background: var(--dh-shell); border-radius: 12px; padding: 10px 14px; }
.input, .select {
  height: 52px; width: 100%; border: 0; border-radius: var(--dh-radius-md); background: var(--dh-input-bg);
  padding: 0 18px; font-size: 16px; color: var(--dh-text-primary); min-width: 0;
}
.input::placeholder { color: var(--dh-text-muted); opacity: 1; }
.input:focus-visible, .select:focus-visible { outline: 2px solid var(--focus, var(--dh-amber)); outline-offset: 3px; }
.input[aria-invalid="true"] { box-shadow: inset 0 0 0 2px var(--dh-error); }
.input--area { height: auto; min-height: 96px; padding: 14px 18px; resize: vertical; line-height: 1.45; }
.input--search { padding-left: 44px; background-image: radial-gradient(circle at 21px 25px, transparent 5.5px, var(--dh-text-muted) 6px, var(--dh-text-muted) 7.6px, transparent 8px), linear-gradient(45deg, transparent 47%, var(--dh-text-muted) 47%, var(--dh-text-muted) 60%, transparent 60%); background-repeat: no-repeat; background-size: 52px 52px, 7px 7px; background-position: 0 0, 26px 30px; }
.select {
  appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer; font-weight: 500;
  background-image: linear-gradient(45deg, transparent 50%, var(--dh-text-secondary) 50%), linear-gradient(135deg, var(--dh-text-secondary) 50%, transparent 50%);
  background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat;
}
.toolbar .select { height: 44px; border-radius: var(--dh-radius-pill); background-color: var(--dh-white); box-shadow: inset 0 0 0 1px var(--dh-line); width: auto; }
.select--s { height: 44px; font-size: 14px; padding: 0 34px 0 12px; width: auto; border-radius: 12px; background-color: var(--dh-sand); }
.select--input { font-weight: 400; }
.select option { background: var(--dh-white); color: var(--dh-text-primary); }
.pair { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 8px; }
.pair .input { padding: 0 14px; }
.pair__dash { color: var(--dh-text-muted); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chips__lead { font-size: 13px; color: var(--dh-text-secondary); margin-right: 2px; }
.chip {
  position: relative; display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 14px;
  border-radius: var(--dh-radius-pill); border: 0; box-shadow: inset 0 0 0 1px var(--dh-line); background: var(--dh-white);
  color: var(--dh-text-primary); font-size: 14px; line-height: 1; white-space: nowrap; font-variant-numeric: tabular-nums;
  transition: transform 200ms var(--dh-ease);
}
.chip::before { content: ""; position: absolute; inset: -6px 0; } /* 44 px hit area */
.chip:hover { box-shadow: inset 0 0 0 1px var(--dh-text-muted); }
.chip:active { transform: scale(0.98); }
.chip[aria-pressed="true"], .chip--radio:has(input:checked), .chip--check:has(input:checked) { background: var(--dh-ink); color: var(--dh-white); box-shadow: none; }
.chip--radio, .chip--check { cursor: pointer; }
.chip--radio input, .chip--check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip--radio:has(input:focus-visible), .chip--check:has(input:focus-visible) { outline: 2px solid var(--focus, var(--dh-amber)); outline-offset: 3px; }
.chip--on { background: var(--dh-ink); color: var(--dh-white); box-shadow: none; max-width: 100%; }
.chip--on .chip__t { overflow: hidden; text-overflow: ellipsis; max-width: 240px; min-width: 0; }
.chip__x { font-size: 18px; line-height: 1; opacity: 0.8; }
.chips--wrap { gap: 8px; }

.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--dh-input-bg); border-radius: var(--dh-radius-pill); padding: 4px; }
.seg__opt { position: relative; cursor: pointer; }
.seg__opt input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.seg__opt span { display: flex; align-items: center; justify-content: center; min-height: 40px; border-radius: var(--dh-radius-pill); font-size: 14px; font-weight: 500; color: var(--dh-text-secondary); padding: 0 8px; text-align: center; }
.seg__opt input:checked + span { background: var(--dh-white); color: var(--dh-text-primary); font-weight: 700; box-shadow: var(--dh-shadow-button); }
.seg__opt input:focus-visible + span { outline: 2px solid var(--focus, var(--dh-amber)); outline-offset: 2px; }

.f--toggles { gap: 4px; background: var(--dh-white); border-radius: var(--dh-radius-lg); padding: 14px 16px 8px; box-shadow: var(--dh-shadow-warm-soft); }
.f--toggles legend { float: left; width: 100%; margin-bottom: 4px; }
.toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; clear: both; }
.toggle + .toggle { border-top: 1px solid var(--dh-line); }
.toggle__text { font-size: 15px; font-weight: 500; line-height: 20px; cursor: pointer; min-width: 0; }
.toggle__sub { display: block; font-size: 13px; font-weight: 400; color: var(--dh-text-secondary); }
.switch { position: relative; flex: none; width: 48px; height: 28px; border-radius: 14px; border: 0; background: var(--dh-line); padding: 0; }
.switch::before { content: ""; position: absolute; inset: -8px -2px; }
.switch__knob { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--dh-white); box-shadow: var(--dh-shadow-button); transition: transform 240ms var(--dh-ease); }
.switch[aria-checked="true"] { background: var(--dh-amber); }
.switch[aria-checked="true"] .switch__knob { transform: translateX(20px); }

.range { -webkit-appearance: none; appearance: none; width: 100%; height: 44px; background: transparent; margin: -10px 0 -8px; --fill: 0%; }
.range::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(to right, var(--dh-gold) var(--fill), var(--dh-line) var(--fill)); }
.range::-moz-range-track { height: 6px; border-radius: 3px; background: var(--dh-line); }
.range::-moz-range-progress { height: 6px; border-radius: 3px; background: var(--dh-gold); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: var(--dh-white); border: 2px solid var(--dh-gold); margin-top: -9px; box-shadow: var(--dh-shadow-button); }
.range::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--dh-white); border: 2px solid var(--dh-gold); }
.range:focus-visible { outline: none; }
.range:focus-visible::-webkit-slider-thumb { outline: 2px solid var(--focus, var(--dh-amber)); outline-offset: 3px; }
.range:focus-visible::-moz-range-thumb { outline: 2px solid var(--focus, var(--dh-amber)); outline-offset: 3px; }

/* multi-select */
.ms { display: flex; flex-direction: column; gap: 6px; }
.ms__sel { font-size: 13px; color: var(--dh-amber); font-weight: 700; min-height: 0; }
.ms__sel:empty { display: none; }
.ms__list { display: flex; flex-direction: column; max-height: 296px; overflow-y: auto; overscroll-behavior: contain; margin: 0 -6px; padding: 0 6px; }
.ms__opt { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; border-radius: 10px; padding: 0 6px; position: relative; }
.ms__opt:hover { background: var(--dh-shell); }
.ms__opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ms__box { width: 18px; height: 18px; border-radius: var(--dh-radius-xs); box-shadow: inset 0 0 0 1px var(--dh-text-muted); background: var(--dh-white); display: grid; place-items: center; }
.ms__opt input:checked ~ .ms__box { background: var(--dh-ink); box-shadow: none; }
.ms__opt input:checked ~ .ms__box::after { content: ""; width: 9px; height: 5px; border-left: 2px solid var(--dh-white); border-bottom: 2px solid var(--dh-white); transform: translateY(-1px) rotate(-45deg); }
.ms__opt input:focus-visible ~ .ms__box { outline: 2px solid var(--focus, var(--dh-amber)); outline-offset: 3px; }
.ms__name { font-size: 15px; line-height: 20px; padding: 4px 0; overflow-wrap: anywhere; }
.ms__n { font-size: 13px; color: var(--dh-text-secondary); }
.ms__empty { font-size: 14px; color: var(--dh-text-secondary); padding: 8px 0; }
.ms__more { align-self: flex-start; }

/* ---------- cards ---------- */
.cards { display: flex; flex-direction: column; gap: 14px; }
.card {
  position: relative; display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 0;
  background: var(--dh-white); border-radius: var(--dh-radius-lg); overflow: hidden;
  box-shadow: var(--dh-shadow-warm-soft); outline: 1px solid transparent; outline-offset: -1px;
  animation: rise 640ms var(--dh-ease) both; animation-delay: calc(var(--i, 0) * 80ms);
  content-visibility: auto; contain-intrinsic-size: auto 220px;
}
.card:hover, .card.is-hot { outline-color: var(--dh-text-muted); }
.card--excl { outline: 1px solid var(--dh-gold); }
.card--excl:hover, .card--excl.is-hot { outline: 2px solid var(--focus, var(--dh-amber)); }
.card__link { position: absolute; inset: 0; z-index: 2; border-radius: inherit; }
.card__link:focus-visible { outline: none; } /* the card draws the ring: .card has overflow:hidden and clipped it */
.card:has(> .card__link:focus-visible), .card--excl:has(> .card__link:focus-visible) { outline: 2px solid var(--focus, var(--dh-amber)); outline-offset: 3px; }
.card__body { padding: 14px 18px 14px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.card__chips { display: flex; flex-wrap: wrap; gap: 6px; min-height: 0; margin-bottom: 2px; }
.card__chips:empty { display: none; }
.card__title { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; }
.card__place { font-size: 14px; line-height: 20px; color: var(--dh-text-secondary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card__price { font-size: 22px; line-height: 28px; margin-top: 4px; }
.card__facts { display: flex; flex-wrap: wrap; gap: 2px 14px; font-size: 14px; line-height: 20px; color: var(--dh-text-secondary); }
.card__dld { margin-top: 6px; }
.card__meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; font-size: 13px; line-height: 18px; color: var(--dh-text-secondary); margin-top: 6px; }
.dev { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; display: inline-block; vertical-align: bottom; }
.facts .dev { white-space: normal; display: inline; }   /* key facts: wrap inside the cell, it ran 28 px into the next column */
.upd { white-space: nowrap; }

.ph { position: relative; aspect-ratio: 4 / 3; background: var(--dh-sand-deep); overflow: hidden; align-self: start; }
.ph img { width: 100%; height: 100%; object-fit: cover; }
.ph::after { content: ""; position: absolute; inset: 0; background: var(--dh-photo-scrim); pointer-events: none; }
.ph__n { position: absolute; left: 10px; bottom: 8px; z-index: 1; color: var(--dh-white); font-size: 12px; font-weight: 500; }
.ph--none { display: grid; place-items: center; background: var(--dh-sand-deep); }
.ph--none::after { display: none; }
/* exclusive without photos: our mark, never a broker's picture */
.ph--excl { display: grid; place-items: center; align-content: center; gap: 8px; background: var(--dh-ink); color: var(--dh-gold); }
.card .ph--excl { align-self: stretch; aspect-ratio: auto; min-height: 160px; }
.ph--excl .ph__cap { font-size: 13px; font-weight: 600; letter-spacing: 0.02em; color: var(--dh-gold-light); }
.money--ask { font-size: 0.72em; font-weight: 700; color: var(--dh-amber); }
.ph__ini { font-size: 40px; line-height: 1; font-weight: 800; color: var(--dh-gold); letter-spacing: 0.02em; }

.chip-excl {
  display: inline-flex; align-items: center; gap: 5px; min-height: 24px; padding: 0 10px; border-radius: var(--dh-radius-pill);
  background: var(--dh-champagne); color: var(--dh-bronze); font-size: 12px; font-weight: 700; white-space: nowrap;
}
.chip-s, .chip-drop {
  display: inline-flex; align-items: center; gap: 4px; min-height: 24px; padding: 0 10px; border-radius: var(--dh-radius-pill);
  background: var(--dh-sand); color: var(--dh-text-secondary); font-size: 12px; font-weight: 500; white-space: nowrap;
}
.chip-drop { color: var(--dh-amber); font-weight: 700; background: var(--dh-shell); }

/* DLD badge */
.dld {
  display: inline-flex; align-items: center; gap: 4px; min-height: 28px; padding: 3px 11px; border-radius: var(--dh-radius-pill);
  font-size: 13px; line-height: 18px; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums;
}
.dld b { font-weight: 800; }
.dld--distress { background: var(--dh-amber); color: var(--dh-white); }
.dld--below { background: var(--dh-gold); color: var(--dh-text-primary); }
.dld--market { background: var(--dh-sand); color: var(--dh-text-secondary); font-weight: 500; }
.dld--above { background: transparent; color: var(--dh-text-secondary); box-shadow: inset 0 0 0 1px var(--dh-line); font-weight: 500; }
.dld--none { background: transparent; color: var(--dh-text-secondary); box-shadow: inset 0 0 0 1px var(--dh-line); font-weight: 400; }

/* skeleton */
.sk { position: relative; overflow: hidden; background: var(--dh-sand-deep); }
.sk::after {
  content: ""; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, var(--dh-white-60), transparent);
  animation: shimmer 1.4s var(--dh-ease) infinite;
}
.sk--line { display: block; height: 14px; border-radius: 7px; margin: 6px 0; }
.sk--line.tall { height: 24px; }
.w40 { width: 40%; } .w50 { width: 50%; } .w60 { width: 60%; } .w70 { width: 70%; } .w80 { width: 80%; }
.card--skel { animation: none; }
@keyframes shimmer { to { transform: translateX(100%); } }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

.more { display: flex; justify-content: center; padding: 20px 0 0; }
.sentinel { height: 1px; }

/* empty */
.empty { background: var(--dh-white); border-radius: var(--dh-radius-lg); padding: 32px 28px; text-align: left; box-shadow: var(--dh-shadow-warm-soft); display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.empty__text { color: var(--dh-text-secondary); max-width: 52ch; }
.empty__acts { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; margin-top: 6px; }
.empty--s { padding: 20px; box-shadow: none; background: var(--dh-shell); }

/* ---------- map pins ---------- */
.leaflet-container { font-family: var(--dh-font); background: var(--dh-sand-deep); }
.leaflet-tile-pane { filter: sepia(0.38) saturate(0.45) hue-rotate(-10deg) brightness(1.04) contrast(0.92); }  /* OSM is colourful: calm it to the warm palette */
.leaflet-container a { color: var(--dh-amber); }
.leaflet-control-attribution { background: color-mix(in srgb, var(--dh-cream) 88%, transparent) !important; color: var(--dh-text-secondary); font-size: 11px; }
.leaflet-bar a { color: var(--dh-text-primary); width: 44px !important; height: 44px !important; line-height: 44px !important; font-size: 20px !important; }
.leaflet-bar { border: 0 !important; box-shadow: var(--dh-shadow-button) !important; border-radius: 12px !important; overflow: hidden; }
.leaflet-marker-icon:focus-visible { outline: none; }
.leaflet-marker-icon:focus-visible .pin, .leaflet-marker-icon:focus-visible .cluster { outline: 2px solid var(--focus, var(--dh-amber)); outline-offset: 3px; }
.pinwrap { background: none; border: 0; }
.pin {
  position: absolute; left: 0; top: 0; transform: translate(-50%, calc(-100% - 6px));
  display: inline-flex; align-items: center; min-height: 26px; padding: 0 9px; border-radius: var(--dh-radius-pill);
  background: var(--dh-white); color: var(--dh-text-primary); font-size: 12px; font-weight: 700; white-space: nowrap;
  box-shadow: 0 0 0 1px var(--dh-line-strong), var(--dh-shadow-button); cursor: pointer;
  transition: transform 200ms var(--dh-ease);
}
.pin::after { content: ""; position: absolute; left: 50%; bottom: -5px; width: 8px; height: 8px; background: inherit; transform: translateX(-50%) rotate(45deg); border-radius: 0 0 2px 0; }
.pin--dist { box-shadow: 0 0 0 2px var(--dh-amber), var(--dh-shadow-button); }
.pin--excl { background: var(--dh-gold); color: var(--dh-ink); box-shadow: 0 0 0 1px var(--dh-bronze), var(--dh-shadow-button); }
.pin.is-active { background: var(--dh-ink); color: var(--dh-white); transform: translate(-50%, calc(-100% - 6px)) scale(1.12); }
.cluster {
  position: absolute; left: 0; top: 0; transform: translate(-50%, -50%);
  display: inline-flex; align-items: baseline; gap: 6px; min-height: 32px; padding: 0 12px; border-radius: var(--dh-radius-pill);
  background: var(--dh-ink); color: var(--dh-white); white-space: nowrap; cursor: pointer; align-items: center;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--dh-ink) 18%, transparent), var(--dh-shadow-button);
}
.cluster b { font-size: 14px; }
.cluster small { font-size: 11px; color: var(--dh-champagne); font-weight: 500; }
.cluster--excl { box-shadow: 0 0 0 2px var(--dh-gold), var(--dh-shadow-button); }
.cluster.is-active { background: var(--dh-espresso); transform: translate(-50%, -50%) scale(1.08); }

.maptoggle {
  display: none; position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 40;
  align-items: center; gap: 8px; min-height: 48px; padding: 0 22px; border: 0; border-radius: var(--dh-radius-pill);
  background: var(--dh-ink); color: var(--dh-white); font-weight: 700; box-shadow: var(--dh-shadow-deep);
}
.maptoggle:active { transform: translateX(-50%) scale(0.98); }

/* map-only mode (#/map) */
.map-only .list { display: none; }
.map-only .results { display: flex; flex-direction: column; align-items: stretch; height: calc(100dvh - var(--bar-h)); }
.map-only .toolbar { flex: none; }
.map-only .mapwrap { position: relative; top: auto; flex: 1; height: auto; min-height: 320px; border-left: 0; margin: 0 var(--gutter) var(--gutter); border-radius: var(--dh-radius-lg); overflow: hidden; }

/* ---------- drawer ---------- */
.scrim { position: fixed; inset: 0; z-index: 80; background: var(--dh-overlay); opacity: 0; transition: opacity 320ms var(--dh-ease); }
.scrim.is-open { opacity: 1; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 90; width: min(760px, 100vw); background: var(--dh-white);
  box-shadow: var(--dh-shadow-deep); display: flex; flex-direction: column; transform: translateX(100%);
  transition: transform 420ms var(--dh-ease); outline: none; padding-top: env(safe-area-inset-top);
}
.drawer.is-open { transform: none; }
.drawer.no-motion { transition: opacity 200ms var(--dh-ease); transform: none; opacity: 0; }
.drawer.no-motion.is-open { opacity: 1; }
.d__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px 10px 24px; border-bottom: 1px solid var(--dh-line); flex: none; }
.d__headtitle { font-size: 15px; font-weight: 500; color: var(--dh-text-secondary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; flex: 1; }
.d__body { overflow-y: auto; overscroll-behavior: contain; flex: 1; padding-bottom: 40px; }
.d__sec { padding: 22px 28px; border-bottom: 1px solid var(--dh-line); display: flex; flex-direction: column; gap: 10px; }
.d__sec:last-child { border-bottom: 0; }
.d__top { gap: 6px; }
.d__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.d__chips:empty { display: none; }
.d__title { overflow-wrap: anywhere; }
.d__place { color: var(--dh-text-secondary); font-size: 15px; }
.d__approx { color: var(--dh-text-secondary); font-size: 13px; }
.d__price { margin-top: 10px; }
.d__sub { color: var(--dh-text-secondary); font-size: 15px; }
.d__badge { margin-top: 8px; }
.d__h { margin-bottom: 2px; }
.d__note { font-size: 13px; line-height: 18px; color: var(--dh-text-secondary); }

.gal { background: var(--dh-sand-deep); }
.gal__main { position: relative; aspect-ratio: 4 / 3; max-height: 440px; width: 100%; overflow: hidden; background: var(--dh-sand-deep); }
.gal__main img { width: 100%; height: 100%; object-fit: cover; }
.gal__main--none { display: grid; place-items: center; aspect-ratio: 16 / 7; }
.gal__nav {
  position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0;
  background: var(--dh-white); color: var(--dh-ink); display: grid; place-items: center; box-shadow: var(--dh-shadow-button);
}
.gal__nav:active { transform: translateY(-50%) scale(0.96); }
.gal__nav--prev { left: 14px; } .gal__nav--next { right: 14px; }
.gal__count { position: absolute; right: 14px; bottom: 12px; background: var(--dh-overlay); color: var(--dh-white); font-size: 12px; font-weight: 500; border-radius: var(--dh-radius-pill); padding: 4px 10px; }
.gal__thumbs { display: flex; gap: 8px; padding: 10px 28px; overflow-x: auto; background: var(--dh-white); }
.gal__t { flex: none; width: 72px; height: 54px; padding: 0; border: 0; border-radius: 10px; overflow: hidden; opacity: 0.7; }
.gal__t:hover { opacity: 1; }
.gal__t img { width: 100%; height: 100%; object-fit: cover; }
.gal__t.is-on { opacity: 1; outline: 2px solid var(--dh-ink); outline-offset: 2px; }

.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 20px; margin: 0; }
.facts--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.facts__i { min-width: 0; }
.facts dt { font-size: 13px; line-height: 18px; color: var(--dh-text-secondary); }
.facts dd { margin: 2px 0 0; font-size: 16px; font-weight: 500; overflow-wrap: anywhere; }

.evid { background: var(--dh-cream); }
.evid__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-radius: var(--dh-radius-lg); background: var(--dh-white); }
.stat { padding: 14px 16px; display: flex; flex-direction: column; min-width: 0; }
.stat + .stat { border-left: 1px solid var(--dh-line-strong); }
.stat__l { font-size: 13px; color: var(--dh-text-secondary); }
.stat__v { font-size: 26px; line-height: 32px; font-weight: 700; overflow-wrap: anywhere; }
.stat__v--s { font-size: 20px; }
.stat__u { font-size: 12px; color: var(--dh-text-secondary); }
.evid__none { color: var(--dh-text-secondary); }
.sc { margin: 4px 0 0; }
.sc svg { width: 100%; height: auto; display: block; overflow: visible; }
.sc__axis { stroke: var(--dh-line-strong); stroke-width: 1; }
.sc__band { fill: var(--dh-champagne); }
.sc__med { stroke: var(--dh-text-secondary); stroke-width: 2; stroke-dasharray: 3 3; }
.sc__dot { fill: var(--dh-text-muted); fill-opacity: 0.55; stroke: var(--dh-white); stroke-width: 1; }
.sc__ask line { stroke: var(--dh-amber); stroke-width: 3; }
.sc__ask path { fill: var(--dh-amber); }
.sc__ask text { fill: var(--dh-amber); font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.sc__tick { fill: var(--dh-text-secondary); font-size: 12px; font-variant-numeric: tabular-nums; }
.sc__legend { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 12px; color: var(--dh-text-secondary); margin-top: 4px; }
.lg { display: inline-block; width: 10px; height: 10px; margin-right: 6px; vertical-align: -1px; border-radius: 2px; }
.lg--dot { border-radius: 50%; background: var(--dh-text-muted); }
.lg--band { background: var(--dh-champagne); }
.lg--med { width: 2px; background: var(--dh-text-secondary); }
.lg--ask { width: 3px; background: var(--dh-amber); }

.tablewrap { overflow-x: auto; border-radius: var(--dh-radius-lg); background: var(--dh-white); }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-size: 12px; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; color: var(--dh-text-secondary); padding: 10px 14px; border-bottom: 1px solid var(--dh-line); white-space: nowrap; }
.tbl td { padding: 10px 14px; border-bottom: 1px solid var(--dh-line); vertical-align: top; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .r { text-align: right; }
.tbl td.num, .tbl td.r { white-space: nowrap; }

.hist { list-style: none; margin: 0; padding: 0; }
.hist__i { display: grid; grid-template-columns: 130px minmax(0, 1fr) auto; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--dh-line); align-items: baseline; }
.hist__i:last-child { border-bottom: 0; }
.hist__d { color: var(--dh-text-secondary); font-size: 14px; }
.hist__c { font-size: 14px; font-weight: 700; color: var(--dh-text-secondary); }
.hist__c.is-down { color: var(--dh-amber); }
.post { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 15px; line-height: 22px; color: var(--dh-text-secondary); background: var(--dh-shell); border-radius: var(--dh-radius-md); padding: 14px 16px; }

.contact { background: var(--dh-white); }
.contact__text { color: var(--dh-text-secondary); font-size: 15px; }
.contact__alt { font-size: 14px; color: var(--dh-text-secondary); }
.contact__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.contact__a { display: inline-flex; align-items: center; min-height: 44px; font-size: 20px; font-weight: 700; }
.contact__excl { display: flex; flex-direction: column; gap: 8px; padding: 18px; border-radius: var(--dh-radius-lg); box-shadow: inset 0 0 0 1px var(--dh-gold); background: var(--dh-cream); }

/* ---------- modal ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; }
.modal__scrim { position: absolute; inset: 0; background: var(--dh-overlay); }
.modal__box {
  position: relative; width: min(460px, 100%); max-height: calc(100dvh - 32px); overflow-y: auto; background: var(--dh-white);
  border-radius: var(--dh-radius-2xl); padding: 28px; box-shadow: var(--dh-shadow-deep); outline: none; overscroll-behavior: contain;
  animation: pop 360ms var(--dh-ease) both;
}
.modal__box--wide { width: min(640px, 100%); }
@keyframes pop { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.modal__x { position: absolute; right: 12px; top: 12px; }
.modal__title { padding-right: 40px; }
.modal__lead { color: var(--dh-text-secondary); margin: 8px 0 20px; }
.modal__switch { margin-top: 12px; font-size: 14px; color: var(--dh-text-secondary); display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.form { display: flex; flex-direction: column; gap: 14px; }
.phone { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 8px; }
.phone__cc { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 0 10px; color: var(--dh-text-primary); font-weight: 500; font-variant-numeric: tabular-nums;
  background: transparent; box-shadow: inset 0 0 0 1px var(--dh-line); cursor: default; user-select: none; } /* fixed prefix, not a picker: must not look like an input */
.phone__flag { width: 18px; height: 12px; border-radius: 2px; background: linear-gradient(to right, var(--dh-error) 0 28%, transparent 28%), linear-gradient(var(--dh-whatsapp) 0 33%, var(--dh-white) 33% 66%, var(--dh-ink) 66%); box-shadow: 0 0 0 1px var(--dh-line); }
.plancard { background: var(--dh-espresso); color: var(--dh-white); border-radius: var(--dh-radius-lg); padding: 22px 24px; margin-bottom: 16px; }
.plancard__price { font-size: 32px; line-height: 36px; font-weight: 700; color: var(--dh-white); margin-bottom: 12px; }
.plancard__price small { font-size: 15px; font-weight: 700; color: var(--dh-gold-soft); }
.ticks { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; color: var(--dh-white-72); font-size: 15px; }
.ticks li { display: flex; gap: 10px; align-items: baseline; }
.ticks li::before { content: ""; flex: none; width: 12px; height: 7px; border-left: 2px solid var(--dh-check-gold); border-bottom: 2px solid var(--dh-check-gold); transform: rotate(-45deg) translateY(-3px); }
.modal__box .btn--ghost { margin-top: 10px; }

/* ---------- toasts ---------- */
.toasts { position: fixed; left: 50%; bottom: 84px; transform: translateX(-50%); z-index: 120; display: flex; flex-direction: column; gap: 8px; width: min(480px, calc(100vw - 32px)); pointer-events: none; }
.toast {
  pointer-events: auto; display: flex; align-items: center; gap: 12px; padding: 10px 8px 10px 16px; border-radius: var(--dh-radius-md);
  background: var(--dh-ink); color: var(--dh-white); box-shadow: var(--dh-shadow-deep); font-size: 15px;
  border-left: 4px solid var(--dh-error); opacity: 0; transform: translateY(10px); transition: opacity 240ms var(--dh-ease), transform 240ms var(--dh-ease);
}
.toast--ok { border-left-color: var(--dh-gold); }
.toast.is-in { opacity: 1; transform: none; }
.toast__msg { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.toast__x { width: 44px; height: 44px; flex: none; border: 0; background: none; color: var(--dh-white); font-size: 22px; border-radius: 10px; }
.toast__x:hover { background: var(--dh-white-12); }

/* ---------- desk ---------- */
.desk { padding: 28px var(--gutter) 64px; max-width: 1600px; margin: 0 auto; }
.desk__head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 20px; }
.desk__note { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 14px; color: var(--dh-bronze); background: var(--dh-champagne); border-radius: var(--dh-radius-pill); padding: 6px 14px; font-weight: 500; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--dh-amber); flex: none; }
.desk__err { color: var(--dh-error); font-weight: 500; padding: 12px 0; }
.page__title { overflow-wrap: anywhere; }
.page__text { color: var(--dh-text-secondary); max-width: 56ch; margin: 10px 0 20px; }
.page403 { max-width: 640px; margin: 48px auto; background: var(--dh-white); border-radius: var(--dh-radius-lg); padding: 36px; box-shadow: var(--dh-shadow-warm-soft); }
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 22px; }
.tile { background: var(--dh-white); border-radius: var(--dh-radius-lg); padding: 18px 20px; box-shadow: var(--dh-shadow-warm-soft); min-height: 0; display: flex; flex-direction: column; gap: 2px; position: relative; overflow: hidden; }
.tile.sk { min-height: 116px; box-shadow: none; }
.tile__l { font-size: 14px; color: var(--dh-text-secondary); font-weight: 500; }
.tile__v { font-size: 32px; line-height: 38px; font-weight: 800; }
.tile__s { font-size: 13px; color: var(--dh-text-secondary); overflow-wrap: anywhere; }
.tile--gold { box-shadow: inset 0 0 0 1px var(--dh-gold), var(--dh-shadow-warm-soft); }
.tile--gold::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--dh-gold); }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--dh-line); margin-bottom: 22px; overflow-x: auto; overflow-y: hidden; }
.tabs__a { display: inline-flex; align-items: center; min-height: 48px; padding: 0 14px; color: var(--dh-text-secondary); text-decoration: none; font-weight: 500; white-space: nowrap; position: relative; }
.tabs__a:hover { color: var(--dh-text-primary); }
.tabs__a.is-on { color: var(--dh-text-primary); font-weight: 700; }
.tabs__a:focus-visible { outline-offset: -3px; } /* .tabs scrolls horizontally and clipped an outer ring */
.tabs__a.is-on::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 3px; border-radius: 2px; background: var(--dh-amber); }
.section__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.section__title { margin-bottom: 4px; }
.section__lead { color: var(--dh-text-secondary); margin-bottom: 18px; }

.board { position: relative; /* contains the absolutely positioned .sr stage labels; without it they widened the whole page */ display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 12px; align-items: start; }
.col { background: var(--dh-cream); border-radius: var(--dh-radius-lg); padding: 12px; display: flex; flex-direction: column; gap: 10px; min-width: 0; outline: 2px dashed transparent; outline-offset: -2px; }
.col--gold { box-shadow: inset 0 0 0 1px var(--dh-gold); }
.col.is-over { outline-color: var(--dh-gold); }
.col__h { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 4px 4px 0; }
.col__n { font-size: 14px; font-weight: 700; color: var(--dh-text-secondary); background: var(--dh-white); border-radius: var(--dh-radius-pill); padding: 2px 10px; }
.col__cards { display: flex; flex-direction: column; gap: 10px; }
.col__empty { font-size: 14px; color: var(--dh-text-secondary); padding: 8px 4px; }
.dcard { background: var(--dh-white); border-radius: 14px; padding: 12px 14px; box-shadow: var(--dh-shadow-button); display: flex; flex-direction: column; gap: 4px; cursor: grab; min-width: 0; }
.dcard.sk { min-height: 96px; box-shadow: none; }
.dcard.is-drag { opacity: 0.5; -webkit-user-select: none; user-select: none; }
.dcard__kind { font-size: 12px; color: var(--dh-text-secondary); text-transform: capitalize; }
.dcard__t { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; }
.dcard__v { font-size: 17px; }
.dcard__next { font-size: 13px; color: var(--dh-text-secondary); }
.dcard__foot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.dcard__upd { font-size: 12px; color: var(--dh-text-secondary); margin-left: auto; }

.intake { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 20px; align-items: start; }
.card-form { background: var(--dh-white); border-radius: var(--dh-radius-lg); padding: 24px 28px; box-shadow: var(--dh-shadow-warm-soft); display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid2__full { grid-column: 1 / -1; }
.form__acts { display: flex; gap: 10px; flex-wrap: wrap; }
.intake__val { position: sticky; top: calc(var(--bar-h) + 16px); transition: opacity 200ms var(--dh-ease); }
.intake__val.is-loading { opacity: 0.6; }
.vcard { background: var(--dh-white); border-radius: var(--dh-radius-lg); padding: 22px 24px; box-shadow: inset 0 0 0 1px var(--dh-gold), var(--dh-shadow-warm-soft); display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.vcard--idle { box-shadow: inset 0 0 0 1px var(--dh-line); background: var(--dh-cream); }
.vcard__idle { color: var(--dh-text-secondary); }
.vcard__facts { width: 100%; }

.inv { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 20px; align-items: start; }
.ilist, .mlist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.irow { width: 100%; text-align: left; border: 0; background: var(--dh-white); border-radius: 14px; padding: 12px 16px; display: flex; flex-direction: column; gap: 2px; box-shadow: var(--dh-shadow-button); min-height: 44px; }
.irow.is-on { box-shadow: inset 0 0 0 2px var(--dh-ink); }
.irow__n { font-weight: 700; overflow-wrap: anywhere; }
.irow__c { font-size: 13px; color: var(--dh-text-secondary); overflow-wrap: anywhere; }
.inv__side { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.mrow { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; background: var(--dh-white); border-radius: 14px; padding: 12px 16px; box-shadow: var(--dh-shadow-button); }
.mrow--excl { box-shadow: inset 0 0 0 1px var(--dh-gold); }
.mrow__a { display: flex; flex-direction: column; min-width: 0; text-decoration: none; color: var(--dh-text-primary); min-height: 44px; justify-content: center; }
.mrow__t { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mrow__a:hover .mrow__t { text-decoration: underline; color: var(--dh-amber); }
.mrow__s { font-size: 13px; color: var(--dh-text-secondary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mrow__p { font-size: 16px; text-align: right; }
.mrow__b { grid-column: 1 / -1; }

.tbl--desk td { font-size: 14px; }
.tbl__obj { min-width: 200px; }
.tbl__t { display: block; max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tbl__t .linkbtn { min-height: 28px; font-size: 14px; text-align: left; position: relative; }
.tbl__t .linkbtn::after, .cc a::after { content: ""; position: absolute; inset: -8px 0; } /* 44 px hit area without taller rows */
.tbl__s { display: block; font-size: 13px; color: var(--dh-text-secondary); }
.tbl__reason { min-width: 200px; color: var(--dh-text-secondary); }
.bk { display: inline-flex; min-height: 24px; align-items: center; padding: 0 10px; border-radius: var(--dh-radius-pill); font-size: 12px; font-weight: 700; text-transform: capitalize; white-space: nowrap; }
.bk--1 { background: var(--dh-amber); color: var(--dh-white); }
.bk--2 { background: var(--dh-gold); color: var(--dh-text-primary); }
.bk--3 { background: var(--dh-sand); color: var(--dh-text-secondary); }
.lvl { display: inline-grid; place-items: center; min-width: 26px; min-height: 26px; border-radius: 8px; background: var(--dh-ink); color: var(--dh-white); font-weight: 700; font-size: 13px; }
.newtag { font-size: 11px; font-weight: 700; text-transform: uppercase; color: var(--dh-bronze); background: var(--dh-champagne); border-radius: var(--dh-radius-pill); padding: 2px 8px; letter-spacing: 0.04em; }

.sheet-scrim { position: fixed; inset: 0; z-index: 70; background: var(--dh-overlay); }

/* ---------- responsive ---------- */
@media (max-width: 1279px) { :root { --rail-w: 288px; } }
@media (max-width: 1279px) {
  .card { grid-template-columns: 200px minmax(0, 1fr); }
}
@media (max-width: 1179px) {
  .results { grid-template-columns: minmax(0, 1fr); grid-template-areas: "tool" "list"; }
  .mapwrap { display: none; }
  .maptoggle { display: inline-flex; }
  .map-only .mapwrap { display: block; }
  .map-only .maptoggle { display: inline-flex; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .intake, .inv { grid-template-columns: minmax(0, 1fr); }
  .intake__val { position: static; }
}
@media (max-width: 899px) {
  :root { --gutter: 16px; --bar-h: 60px; }
  .catalog { grid-template-columns: minmax(0, 1fr); }
  .btn--filters { display: inline-flex; }
  .rail {
    position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 75; height: auto; max-height: min(88dvh, 860px);
    border-right: 0; border-radius: var(--dh-radius-2xl) var(--dh-radius-2xl) 0 0; box-shadow: var(--dh-shadow-deep);
    display: flex; flex-direction: column; overflow: hidden; transform: translateY(105%); visibility: hidden;
    transition: transform 380ms var(--dh-ease), visibility 0s var(--dh-ease) 380ms;
  }
  .sheet-open .rail { transform: none; visibility: visible; transition: transform 380ms var(--dh-ease), visibility 0s; }
  .rail__sheethead { display: flex; align-items: center; justify-content: space-between; padding: 12px 12px 8px 20px; border-bottom: 1px solid var(--dh-line); flex: none; }
  .rail__head { display: none; }
  .rail__form { overflow-y: auto; overscroll-behavior: contain; flex: 1; padding-bottom: 24px; }
  .rail__sheetfoot { display: grid; grid-template-columns: auto 1fr; gap: 10px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--dh-line); background: var(--dh-cream); flex: none; }
  .rail__sheetfoot .btn { min-height: 52px; }
  .sheet-open .maptoggle, .has-drawer .maptoggle { display: none; }
  .toolbar { padding-top: 16px; }
  .toolbar__count { font-size: 26px; }
  .bar__in { gap: 12px; }
  .bar__nav a[data-nav="map"] { display: none; }
  .bar__logo img { width: 104px; }
  .map-only .mapwrap { margin: 0; border-radius: 0; }
  .drawer { width: 100vw; }
  .d__sec { padding: 20px 16px; }
  .gal__thumbs { padding: 10px 16px; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .evid__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--dh-line-strong); }
  .grid2 { grid-template-columns: minmax(0, 1fr); }
  .card-form { padding: 20px; }
  .desk { padding-top: 20px; }
  .modal { place-items: end center; padding: 0; }
  .modal__box { width: 100%; border-radius: var(--dh-radius-2xl) var(--dh-radius-2xl) 0 0; max-height: 92dvh; padding: 24px 20px calc(24px + env(safe-area-inset-bottom)); }
  .modal__box--wide { width: 100%; }
  .toasts { bottom: 88px; }
  .bar__in { gap: 8px; }
}
@media (max-width: 1179px) {
  /* the floating List/Map toggle sits over the bottom of the map: lift the OSM attribution above it */
  .map-only .leaflet-bottom { bottom: calc(76px + env(safe-area-inset-bottom)); }
}
@media (max-width: 599px) {
  .card { grid-template-columns: minmax(0, 1fr); }
  .ph { align-self: stretch; }
  .ph--none { aspect-ratio: 21 / 8; }
  .card__body { padding: 14px 16px 16px; }
  .bar__pill { display: none; } /* plan / contacts left is in the account menu (.acct__plan) */
  .is-mock .bar__logo::after { display: none; }
  .bar__logo img { width: 96px; }
  .bar__nav a { padding: 0 8px; }
  .toolbar__right { width: 100%; }
  .toolbar__right .select { flex: 1 1 auto; min-width: 0; max-width: none; }
  .hist__i { grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; }
  .hist__d { grid-column: 1 / -1; }
  .tiles { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
  .tile { padding: 14px 16px; }
  .money--xl { font-size: clamp(24px, 8.5vw, 32px); line-height: 1.1; }
}

@media (prefers-reduced-motion: reduce) {
  .card, .modal__box { animation: none; }
  .sk::after { animation: none; } /* decorative loop */
  .drawer { transition: opacity 200ms var(--dh-ease); }
  .rail, .sheet-open .rail { transition: visibility 0s; }
  .toast { transform: none; }
  .btn:active, .chip:active { transform: none; }
}
.cc { display: flex; flex-direction: column; gap: 2px; }
.cc__n { font-size: 13px; color: var(--dh-text-secondary); }
.cc a { min-height: 24px; display: inline-flex; align-items: center; position: relative; }
.tbl tr.is-stale td { color: var(--dh-text-secondary); }

/* ======================================================================================================
   map layer "Price per sq ft" (js/areas.js) - communities coloured by median DLD price per sq ft.
   Warm sequential scale from brand tokens: champagne -> gold -> amber -> brown. No blue.
   ====================================================================================================== */
:root {
  --area-1: var(--dh-champagne);
  --area-2: var(--dh-gold-soft);
  --area-3: var(--dh-gold);
  --area-4: color-mix(in srgb, var(--dh-gold) 50%, var(--dh-amber));
  --area-5: var(--dh-amber);
  --area-6: color-mix(in srgb, var(--dh-amber) 50%, var(--dh-espresso));
}
.leaflet-areas-pane path.area { stroke: var(--dh-bronze); stroke-opacity: 0.45; stroke-width: 1px; fill-opacity: 0.5; cursor: help; transition: fill-opacity 150ms var(--dh-ease); }
.area--c1 { fill: var(--area-1); background: var(--area-1); }
.area--c2 { fill: var(--area-2); background: var(--area-2); }
.area--c3 { fill: var(--area-3); background: var(--area-3); }
.area--c4 { fill: var(--area-4); background: var(--area-4); }
.area--c5 { fill: var(--area-5); background: var(--area-5); }
.area--c6 { fill: var(--area-6); background: var(--area-6); }
.leaflet-areas-pane path.area--none { fill: var(--dh-white); fill-opacity: 0.18; stroke: var(--dh-text-muted); stroke-dasharray: 4 3; }
.leaflet-areas-pane path.area.is-hover { stroke: var(--dh-espresso); stroke-opacity: 1; stroke-width: 2.5px; fill-opacity: 0.66; }

.leaflet-top.leaflet-left .areas-ctl { margin-top: 52px; margin-left: 12px; } /* under the "Approximate location" note */
.areas-toggle {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px 0 12px; border: 0;
  border-radius: var(--dh-radius-pill); background: var(--dh-white); color: var(--dh-text-primary);
  font: 700 13px/1.2 var(--dh-font); box-shadow: var(--dh-shadow-button); cursor: pointer; white-space: nowrap;
}
.areas-toggle:hover { background: var(--dh-sand); }
.areas-toggle[aria-pressed="true"] { background: var(--dh-champagne); color: var(--dh-bronze); box-shadow: 0 0 0 1px var(--dh-bronze), var(--dh-shadow-button); }
.areas-toggle:focus-visible { outline: 2px solid var(--dh-amber); outline-offset: 3px; }
.areas-toggle[aria-busy="true"] { cursor: progress; opacity: 0.8; }
.areas-toggle__sw { display: inline-flex; border-radius: 3px; overflow: hidden; box-shadow: 0 0 0 1px var(--dh-line); }
.areas-toggle__sw i { width: 6px; height: 14px; }
.areas-toggle__sw i:nth-child(1) { background: var(--area-1); }
.areas-toggle__sw i:nth-child(2) { background: var(--area-3); }
.areas-toggle__sw i:nth-child(3) { background: var(--area-5); }

.areas-legend {
  max-width: min(248px, calc(100vw - 48px)); padding: 10px 12px 12px; border-radius: var(--dh-radius-md);
  background: var(--dh-white); color: var(--dh-text-primary); box-shadow: var(--dh-shadow-button); font-size: 12px; line-height: 1.35;
}
.leaflet-bottom.leaflet-left .areas-legend { margin-left: 12px; margin-bottom: 12px; }
.areas-legend p { margin: 0; overflow-wrap: anywhere; }
.areas-legend__t { font-size: 13px; font-weight: 700; cursor: pointer; list-style: none; display: flex; align-items: center; gap: 6px; min-height: 24px; }
.areas-legend__t::-webkit-details-marker { display: none; }
.areas-legend__t::after { content: ""; width: 7px; height: 7px; margin-left: auto; border: solid var(--dh-text-secondary); border-width: 0 2px 2px 0; transform: translateY(-2px) rotate(45deg); }
.areas-legend details:not([open]) .areas-legend__t::after { transform: translateY(1px) rotate(-135deg); }
.areas-legend__t:focus-visible { outline: 2px solid var(--dh-amber); outline-offset: 3px; border-radius: 4px; }
.areas-legend__s { margin-top: 2px !important; color: var(--dh-text-secondary); }
.areas-legend__l { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; }
.areas-legend__l li { display: grid; grid-template-columns: 16px minmax(0, 1fr); align-items: center; gap: 8px; }
.areas-legend__sw { width: 16px; height: 12px; border-radius: 3px; opacity: 0.8; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--dh-bronze) 35%, transparent); }
.areas-legend__sw.area--none { background: transparent; opacity: 1; box-shadow: none; border: 1px dashed var(--dh-text-muted); }
.areas-legend .cur, .area-tip .cur { font-size: 10px; font-weight: 700; color: var(--dh-text-secondary); }

.leaflet-tooltip.area-tip {
  display: grid; gap: 2px; width: max-content; max-width: min(260px, calc(100vw - 48px)); padding: 8px 12px; white-space: normal;
  border: 0; border-radius: var(--dh-radius-sm); background: var(--dh-white); color: var(--dh-text-primary);
  box-shadow: var(--dh-shadow-raised); font: 400 12px/1.35 var(--dh-font);
}
.leaflet-tooltip.area-tip::before { display: none; }
.leaflet-popup.area-pop .leaflet-popup-content-wrapper { border-radius: var(--dh-radius-sm); box-shadow: var(--dh-shadow-raised); }
.leaflet-popup.area-pop .leaflet-popup-content { display: grid; gap: 2px; margin: 8px 12px; min-width: 0; font: 400 12px/1.35 var(--dh-font); color: var(--dh-text-primary); }
.area-pop .cur { font-size: 10px; font-weight: 700; color: var(--dh-text-secondary); }
.area-tip__name { font-size: 13px; font-weight: 700; overflow-wrap: anywhere; }
.area-tip__v .num { font-size: 14px; font-weight: 700; color: var(--dh-amber); }
.area-tip__n { color: var(--dh-text-secondary); }
@media (max-width: 599px) {
  .areas-legend { padding: 8px 10px 10px; font-size: 11px; }
  .areas-legend__l { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3px 10px; }
  .areas-legend__na { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  .leaflet-areas-pane path.area { transition: none; }
}

/* ---------- seller: who posted (distress/seller.py) ---------- */
.chip-seller--agent, .chip-seller--agency { background: var(--dh-sand-deep); color: var(--dh-ink); }
.chip-seller--owner_claim { background: transparent; color: var(--dh-amber); box-shadow: inset 0 0 0 1px currentColor; }
.d__seller { margin: 10px 0 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; font-size: 15px; color: var(--dh-ink); }
.d__seller-k { color: var(--dh-text-muted); }
.d__seller-h { flex-basis: 100%; font-size: 13px; color: var(--dh-text-muted); }
.sel { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap;
  background: var(--dh-sand-deep); color: var(--dh-ink); }
.sel--owner_claim { background: transparent; color: var(--dh-amber); box-shadow: inset 0 0 0 1px currentColor; }
.sel--unknown { background: transparent; color: var(--dh-text-muted); box-shadow: inset 0 0 0 1px var(--dh-line); }

/* listing code (DH-1BR-0085): what a user quotes on WhatsApp and the desk looks up */
.code { font-variant-numeric: tabular-nums; letter-spacing: 0.02em; white-space: nowrap; }
.card__meta .code { color: var(--dh-text-muted); }
.d__code { font-size: 13px; color: var(--dh-text-secondary); margin-top: 2px; }
.d__code .code { color: var(--dh-text-primary); font-weight: 500; user-select: all; }
.contact__text .code { user-select: all; }

/* desk: find by listing code */
.codefind { display: flex; flex-direction: column; gap: 4px; min-width: min(100%, 320px); }
.codefind__row { display: flex; gap: 8px; }
.codefind__row .input { flex: 1; min-width: 0; text-transform: uppercase; }
.codefind__res:empty { display: none; }
.codefind__res { margin-bottom: 20px; }
.codefind__msg { color: var(--dh-text-secondary); font-size: 14px; }
.codefind__msg.is-err { color: var(--dh-error); }
.codecard { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: 16px 24px;
  background: var(--dh-white); border: 1px solid var(--dh-line); border-radius: var(--dh-radius-md); padding: 16px 20px; }
.codecard__t { font-size: 18px; line-height: 24px; font-weight: 700; margin: 0 0 4px; overflow-wrap: anywhere; }
.codecard__s { font-size: 14px; color: var(--dh-text-secondary); margin: 0 0 4px; }
@media (max-width: 760px) { .codecard { grid-template-columns: minmax(0, 1fr); } }

/* desk: Locations (staff pins a project's building) */
.chip-s--ok { background: var(--dh-champagne); color: var(--dh-bronze); font-weight: 700; }
.chip-s--muted { background: transparent; box-shadow: inset 0 0 0 1px var(--dh-line); }
.loc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; margin-top: 12px; }
.loc__tools { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 10px; }
.loc__tools .input { flex: 1; min-width: 200px; padding: 0 14px; }
.loc__chk { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 15px; cursor: pointer; }
.loc__chk input { width: 18px; height: 18px; accent-color: var(--dh-amber); }
.loc__side { position: sticky; top: 72px; }
.loc__hint { margin: 0 0 8px; color: var(--dh-text-secondary); font-size: 15px; min-height: 22px; }
.loc__map { height: 560px; border-radius: 12px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--dh-line); background: var(--dh-sand); }
.loc__map:focus-visible { outline: 2px solid var(--dh-amber); outline-offset: 2px; }
.loc__map .leaflet-container { cursor: crosshair; }
.loc__bar { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.loc .tbl tr.is-sel td { background: var(--dh-shell); }
@media (max-width: 900px) {
  .loc { grid-template-columns: minmax(0, 1fr); }
  .loc__side { position: relative; top: auto; order: -1; }
  .loc__map { height: 340px; }
  /* status is also on the button (Set on map / Adjust): keep the action in view without sideways scrolling */
  .loc .tbl th:nth-child(3), .loc .tbl td:nth-child(3) { display: none; }
  .loc .tbl td, .loc .tbl th { padding-left: 10px; padding-right: 10px; }
  .loc .tbl .tbl__obj { min-width: 0; }
  .loc .tbl .tbl__t { white-space: normal; max-width: none; }
}

/* ======================================================================================================
   Public access (owner rule 18.11.2026): anonymous visitors see exclusives + numbers; broker listings after
   a free sign-up. Gate = espresso "ledger" card with redacted rows (never real data), gold numbers, amber action.
   ====================================================================================================== */
:root { --dh-gold-18: rgba(201, 156, 84, 0.18); --dh-white-18: rgba(255, 255, 255, 0.18); --mg-h: 64px; }
.gate {
  position: relative; display: grid; grid-template-columns: 236px minmax(0, 1fr); overflow: hidden;
  background: var(--dh-espresso); color: var(--dh-white); border-radius: var(--dh-radius-lg); box-shadow: var(--dh-shadow-dark-card);
  animation: rise 640ms var(--dh-ease) both; animation-delay: calc(var(--i, 0) * 80ms); --focus: var(--dh-gold);
}
.gate__ledger { position: relative; display: flex; flex-direction: column; justify-content: center; gap: 14px; padding: 22px 18px; background: var(--dh-ink); }
.gate__row { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 10px; }
.gate__row:nth-child(2) { opacity: 0.72; }
.gate__row:nth-child(3) { opacity: 0.48; }
.gate__row:nth-child(4) { opacity: 0.26; }
.gate__ph { width: 34px; height: 26px; border-radius: var(--dh-radius-sm); background: var(--dh-white-12); }
.gate__lines { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.gate__bar { display: block; height: 8px; border-radius: 4px; background: var(--dh-white-18); }
.gate__bar--s { width: 42%; height: 6px; background: var(--dh-white-12); }
.gate__pill { font-style: normal; font-size: 11px; line-height: 16px; font-weight: 800; letter-spacing: 0.06em; padding: 2px 8px;
  border-radius: var(--dh-radius-pill); background: var(--dh-gold); color: var(--dh-ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.gate__lock { position: absolute; right: 14px; bottom: 14px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--dh-champagne); color: var(--dh-bronze); box-shadow: 0 0 0 6px var(--dh-gold-18); }
.gate__body { display: flex; flex-direction: column; gap: 10px; padding: 22px 24px; min-width: 0; }
.gate__eyebrow { font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--dh-gold-soft); }
.gate__h { color: var(--dh-white); overflow-wrap: anywhere; }
.gate__n { color: var(--dh-gold-light); font-weight: 800; }
.gate__text { color: var(--dh-white-72); font-size: 15px; line-height: 22px; max-width: 60ch; }
.gate__text b { color: var(--dh-white); }
.gate__ticks { font-size: 14px; gap: 6px; }
.gate__acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; margin-top: 6px; }
.gate__cta { box-shadow: inset 0 0 0 1px var(--dh-gold), var(--dh-shadow-button); }
.gate__alt { color: var(--dh-gold-light); }
.gate__fine { font-size: 13px; color: var(--dh-white-60); }

/* map: a strip above the map (the map shrinks under it), so Leaflet controls and the List/Map toggle stay free */
.map-gate { position: absolute; left: 0; right: 0; top: 0; height: var(--mg-h); z-index: 1; display: flex; align-items: center; gap: 12px;
  padding: 0 12px 0 16px; background: var(--dh-espresso); color: var(--dh-white-72); --focus: var(--dh-gold); }
.mapwrap.is-gated .map { top: var(--mg-h); }
.mapwrap.is-gated .map__note { top: calc(var(--mg-h) + 12px); }
.map-gate__ic { flex: none; display: grid; color: var(--dh-gold); }
.map-gate__t { flex: 1; min-width: 0; font-size: 13px; line-height: 18px; }
.map-gate__t b { color: var(--dh-white); }
.map-gate__btn { flex: none; background: var(--dh-amber); color: var(--dh-white); box-shadow: inset 0 0 0 1px var(--dh-gold); white-space: nowrap; }

/* drawer: broker listing opened without an account */
.dgate { display: flex; flex-direction: column; gap: 12px; max-width: 440px; margin: 0 auto; padding: 48px 28px; }
.dgate__ic { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--dh-espresso); color: var(--dh-gold);
  box-shadow: 0 0 0 6px var(--dh-gold-18); margin-bottom: 6px; }
.dgate__h { overflow-wrap: anywhere; }
.dgate__text { color: var(--dh-text-secondary); margin-bottom: 8px; }
.dgate__fine { font-size: 13px; color: var(--dh-text-secondary); }

/* drawer: take this listing down */
.d__tdlink .linkbtn { font-size: 14px; }
.td:focus { outline: none; }
.td__btn { align-self: flex-start; gap: 8px; }
.td__form { display: flex; flex-direction: column; gap: 16px; }
.td__set { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.td__set .f__label { margin-bottom: 4px; }
.td__opt { position: relative; display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 8px 14px; border-radius: var(--dh-radius-md);
  box-shadow: inset 0 0 0 1px var(--dh-line); background: var(--dh-white); font-size: 15px; line-height: 20px; cursor: pointer; }
.td__opt:hover { box-shadow: inset 0 0 0 1px var(--dh-text-muted); }
.td__opt input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.td__dot { flex: none; width: 18px; height: 18px; border-radius: 50%; background: var(--dh-white); box-shadow: inset 0 0 0 1.5px var(--dh-text-muted);
  transition: box-shadow 160ms var(--dh-ease); }
.td__opt:has(input:checked) { box-shadow: inset 0 0 0 2px var(--dh-ink); background: var(--dh-shell); }
.td__opt:has(input:checked) .td__dot { box-shadow: inset 0 0 0 5px var(--dh-ink); }
.td__opt:has(input:focus-visible) { outline: 2px solid var(--focus, var(--dh-amber)); outline-offset: 3px; }
.td__acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; }
.td__done { display: flex; gap: 12px; align-items: flex-start; color: var(--dh-text-secondary); font-size: 15px; }
.td__tick { position: relative; flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--dh-champagne); margin-top: 1px; }
.td__tick::after { content: ""; position: absolute; left: 6px; top: 6px; width: 10px; height: 5px; border-left: 2px solid var(--dh-bronze);
  border-bottom: 2px solid var(--dh-bronze); transform: rotate(-45deg); }

/* desk: takedowns */
.tabs__n { display: inline-grid; place-items: center; min-width: 20px; height: 20px; margin-left: 6px; padding: 0 6px; border-radius: var(--dh-radius-pill);
  background: var(--dh-amber); color: var(--dh-white); font-size: 12px; font-weight: 700; }
.seg--inline { max-width: 100%; overflow-x: auto; }
.seg--inline .seg__opt span { padding: 0 12px; white-space: nowrap; gap: 6px; }
.tdst { display: inline-block; padding: 2px 10px; border-radius: var(--dh-radius-pill); font-size: 12px; font-weight: 700; white-space: nowrap; }
.tdst--new { background: var(--dh-champagne); color: var(--dh-bronze); }
.tdst--done { background: var(--dh-ink); color: var(--dh-white); }
.tdst--rejected { background: transparent; color: var(--dh-text-secondary); box-shadow: inset 0 0 0 1px var(--dh-line); }
.td__reason { display: block; font-weight: 700; color: var(--dh-text-primary); }
.td__note { max-width: 320px; overflow-wrap: anywhere; }
.tdq__acts { white-space: nowrap; }
.tdq__acts .btn + .btn { margin-left: 6px; }

@media (max-width: 1279px) { .gate { grid-template-columns: 200px minmax(0, 1fr); } }
@media (max-width: 599px) {
  .gate { grid-template-columns: minmax(0, 1fr); }
  .gate__ledger { padding: 18px 16px 16px; gap: 10px; }
  .gate__row:nth-child(n+4) { display: none; }
  .gate__body { padding: 18px 16px 20px; }
  .gate__acts .btn { width: 100%; }
  .dgate { padding: 32px 16px; }
  .map-gate__t { font-size: 12px; line-height: 16px; }
  .seg--inline { width: 100%; }
  .seg--inline .seg__opt span { padding: 0 4px; font-size: 13px; gap: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  .gate { animation: none; }
  .td__dot { transition: none; }
}

/* building photo borrowed from another listing of the same project (photos.py kind="building") */
.ph__kind { position: absolute; left: 10px; bottom: 10px; padding: 4px 10px; border-radius: var(--dh-radius-pill); background: rgba(11, 13, 18, 0.72); color: #fff; font-size: 12px; font-weight: 500; }
/* desk: questions to the listing broker (agent_script.py) and check priority */
.codecard__script { grid-column: 1 / -1; }
.ascript { margin: 0; padding-left: 20px; display: grid; gap: 10px; }
.ascript li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: start; }
.ascript li .tbl__s { grid-column: 1 / -1; }
.ascript__t { margin: 0; font-size: 15px; }
.prio { font-weight: 700; }
.keyarea { display: inline-flex; margin-left: 6px; padding: 0 8px; min-height: 20px; align-items: center; border-radius: var(--dh-radius-pill); background: var(--dh-champagne); color: var(--dh-bronze); font-size: 11px; font-weight: 700; }

/* desk: exclusives (Kommo Contract A vs our channel @dealhashdistress) */
.xcount { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.xcount__b { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; min-height: 76px; padding: 12px 14px; border: 0; border-radius: var(--dh-radius-lg); background: var(--dh-white); box-shadow: var(--dh-shadow-warm-soft); text-align: left; cursor: pointer; font: inherit; color: var(--dh-text-primary); min-width: 0; }
.xcount__b:hover { box-shadow: inset 0 0 0 1px var(--dh-line), var(--dh-shadow-warm-soft); }
.xcount__b:focus-visible { outline: 2px solid var(--dh-gold); outline-offset: 3px; }
.xcount__b.is-on { box-shadow: inset 0 0 0 2px var(--dh-ink), var(--dh-shadow-warm-soft); }
.xcount__v { font-size: 26px; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.xcount__l { font-size: 13px; line-height: 1.25; color: var(--dh-text-secondary); }
.xcount__b--in_channel .xcount__v { color: var(--dh-bronze); }
.xcount__b--probable .xcount__v { color: var(--dh-amber); }
.xs__seg { margin-bottom: 14px; }
.xst { display: inline-block; padding: 2px 10px; border-radius: var(--dh-radius-pill); font-size: 12px; font-weight: 700; white-space: nowrap; }
.xst--in_channel { background: var(--dh-champagne); color: var(--dh-bronze); }
.xst--probable { background: transparent; color: var(--dh-amber); box-shadow: inset 0 0 0 1px currentColor; }
.xst--not_in_channel { background: var(--dh-sand); color: var(--dh-text-primary); }
.xst--no_building { background: transparent; color: var(--dh-text-secondary); box-shadow: inset 0 0 0 1px var(--dh-line); }
.xst--sold_in_channel { background: var(--dh-ink); color: var(--dh-white); }
.xst--no_channel_on_purpose { background: var(--dh-sand-deep); color: var(--dh-ink); }
.xsold { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 0.04em; color: var(--dh-white); background: var(--dh-ink); border-radius: var(--dh-radius-pill); padding: 1px 8px; }
.xov { margin-top: 6px; }
.xov__note { display: block; font-style: italic; }
.xtbl .tbl__t { white-space: normal; max-width: 260px; overflow-wrap: anywhere; }
.xwhy { min-width: 220px; max-width: 340px; }
.xwhy__l { margin: 0; padding: 0; list-style: none; font-size: 13px; line-height: 1.4; color: var(--dh-text-secondary); }
.xwhy__l li { margin: 0 0 2px; overflow-wrap: anywhere; }
.xwhy__miss { margin-top: 6px; }
.xwhy__miss li { color: var(--dh-text-primary); font-weight: 500; }
.xwhy__miss li::before { content: "• "; color: var(--dh-amber); }
.xacts { min-width: 190px; }
.xacts .btn { margin: 0 6px 6px 0; }
.xrow--probable td:first-child { box-shadow: inset 3px 0 0 var(--dh-amber); }
.xrow--in_channel td:first-child { box-shadow: inset 3px 0 0 var(--dh-gold); }
.xpanel td { background: var(--dh-shell); }
.xform { display: grid; gap: 12px; max-width: 760px; }
.xform__fs { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; min-width: 0; }
.xform__lg { font-weight: 700; font-size: 15px; padding: 0; margin-bottom: 4px; }
.xform__in { padding: 0 14px; width: 100%; }
.xform__bar { display: flex; flex-wrap: wrap; gap: 8px; }
.xcand { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.xcand li { display: flex; align-items: flex-start; gap: 8px; background: var(--dh-white); border-radius: var(--dh-radius-md); padding: 6px 6px 6px 10px; }
.xcand__l { display: flex; align-items: flex-start; gap: 10px; flex: 1; min-width: 0; min-height: 44px; cursor: pointer; font-size: 14px; }
.xcand__l input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--dh-amber); flex: none; }
.xcand__l > span { min-width: 0; overflow-wrap: anywhere; }
.xcand__a { flex: none; min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
@media (max-width: 1179px) { .xcount { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .xcount { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .xcount__b { min-height: 64px; padding: 10px 12px; }
  .xcount__v { font-size: 22px; }
  .xwrap { overflow: visible; background: transparent; border-radius: 0; }
  .xtbl, .xtbl tbody { display: block; }
  .xtbl thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .xtbl tr { display: block; background: var(--dh-white); border-radius: var(--dh-radius-lg); margin-bottom: 10px; padding: 8px 0; }
  .xtbl td { display: block; border: 0; padding: 4px 14px; min-width: 0; max-width: none; }
  .xtbl td.num, .xtbl td.r { white-space: normal; }
  .xtbl td[data-l]::before { content: attr(data-l); display: block; font-size: 11px; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; color: var(--dh-text-secondary); }
  .xtbl td.tbl__obj::before { display: none; }
  .xtbl .tbl__t { max-width: none; }
  .xtbl .tbl__obj { min-width: 0; }
  .xrow--probable td:first-child, .xrow--in_channel td:first-child { box-shadow: none; }
  .xrow--probable { box-shadow: inset 3px 0 0 var(--dh-amber); }
  .xrow--in_channel { box-shadow: inset 3px 0 0 var(--dh-gold); }
  .xtbl tr.xpanel { margin-top: -10px; border-radius: 0 0 var(--dh-radius-lg) var(--dh-radius-lg); background: var(--dh-shell); }
  .xacts { min-width: 0; }
}

/* no picture at all: base-map block with the building pin (listing.js mapThumb) */
.ph--map, .gal__main--map { position: relative; overflow: hidden; background: var(--dh-sand-deep); }
.ph--map { aspect-ratio: 4 / 3; align-self: start; }
.gal__main--map { aspect-ratio: 4 / 3; max-height: 440px; width: 100%; }
.mt__grid { position: absolute; left: 50%; top: 50%; }
.mt__grid img { position: absolute; width: 256px; height: 256px; max-width: none; filter: saturate(0.85); }
.mt__pin { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -100%); line-height: 0; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.35)); }
.ph__excl { position: absolute; right: 10px; top: 10px; padding: 4px 10px; border-radius: var(--dh-radius-pill); background: var(--dh-champagne); color: var(--dh-bronze); font-size: 12px; font-weight: 700; }
@media (max-width: 900px) { .ph--map { align-self: stretch; } }

/* desk -> Renders: developer renders for listings with no picture (desk.js renderRenders) */
.rcount { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.rcount__s { font-size: 12px; line-height: 1.25; color: var(--dh-text-muted); overflow-wrap: anywhere; }
.rnd__tools { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 12px; }
.rnd__tools .seg { flex: 0 1 auto; }
.rnd__q { flex: 1 1 220px; min-width: 0; padding: 0 14px; }
.rnd__total { font-size: 13px; color: var(--dh-text-secondary); margin-bottom: 10px; }
.rnd__list { display: grid; gap: 14px; }
.rnd { background: var(--dh-white); border-radius: var(--dh-radius-lg); box-shadow: var(--dh-shadow-warm-soft); padding: 16px 18px; min-width: 0; }
.rnd__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.rnd__name { min-width: 0; }
.rnd__t { font-size: 18px; line-height: 24px; font-weight: 700; margin: 0; overflow-wrap: anywhere; }
.rnd__s { font-size: 13px; color: var(--dh-text-secondary); margin-top: 2px; overflow-wrap: anywhere; }
.rnd__s a { color: var(--dh-amber); }
.rnd__meta { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: 0 0 auto; }
.rnd__n { font-size: 14px; font-weight: 700; white-space: nowrap; }
.rnd__imgs { list-style: none; margin: 0 0 12px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.rnd__img { display: flex; flex-direction: column; gap: 8px; min-width: 0; border-radius: var(--dh-radius-md); background: var(--dh-shell); padding: 8px; }
.rnd__img.is-ok { box-shadow: inset 0 0 0 2px var(--dh-gold); }
.rnd__ph { display: block; border-radius: var(--dh-radius-sm); overflow: hidden; background: var(--dh-sand-deep); aspect-ratio: 3 / 2; }
.rnd__ph img { display: block; width: 100%; height: 100%; object-fit: cover; }
.rnd__ph:focus-visible { outline: 2px solid var(--dh-gold); outline-offset: 3px; }
.rnd__cap { display: flex; flex-direction: column; gap: 2px; font-size: 12px; min-width: 0; }
.rnd__src { font-weight: 700; color: var(--dh-text-primary); overflow-wrap: anywhere; }
.rnd__note { color: var(--dh-text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rnd__acts { display: flex; flex-wrap: wrap; gap: 8px; }
.rnd__acts .btn { flex: 1 1 auto; }
.rnd__none { font-size: 14px; color: var(--dh-text-secondary); margin-bottom: 12px; }
.rnd__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; border-top: 1px solid var(--dh-line); padding-top: 12px; }
.rnd__url { display: flex; flex: 1 1 320px; gap: 8px; min-width: 0; }
.rnd__url .input { flex: 1 1 auto; min-width: 0; padding: 0 14px; }
.rnd__no { flex: 0 0 auto; }
.rnd__url .btn, .rnd__no { white-space: nowrap; }
@media (max-width: 1179px) { .rcount { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .rnd { padding: 14px; }
  .rnd__head { flex-direction: column; gap: 8px; }
  .rnd__meta { flex-direction: row; align-items: center; }
  .rnd__imgs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .rnd__img { padding: 6px; }
  .rnd__acts .btn { padding: 8px 10px; }
  .rnd__url { flex-basis: 100%; flex-wrap: wrap; }
  .rnd__url .input { flex-basis: 100%; }
  .rnd__url .btn, .rnd__no { flex: 1 1 auto; }
}
