/* Swiss survey sheet: white ground, one sans family, hairline rules, numerals as structure,
   International Orange for the selected lot only. Status colors are data, kept muted. */
:root {
  --bg: #FFFFFF;
  --bg-2: #F7F7F8;
  --ink: #111111;
  --ink-2: #5B5B60;
  --ink-3: #8C8C92;
  --rule: #DCDCE0;
  --accent: #FF4F00;
  --accent-ink: #FFFFFF;
  --land: #ECECEE;
  --highway: #C9C9CE;
  --ease-line: #9DB7C9;
  --avail: #CFE6D2;  --avail-ink: #1F6B3A;
  --resv: #F6DFA8;   --resv-ink: #8A5A00;
  --sold: #E4E4E7;   --sold-line: #A5A5AC;
  --lot-edge: #FFFFFF;
  --font: "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111113; --bg-2: #18181B; --ink: #F2F2F3; --ink-2: #B4B4BA; --ink-3: #85858C; --rule: #2C2C31;
    --land: #222226; --highway: #34343A; --ease-line: #3E5A6D;
    --avail: #1E4A2D; --avail-ink: #8FD4A4; --resv: #5A4512; --resv-ink: #F2C565; --sold: #26262A; --sold-line: #4A4A52;
    --lot-edge: #111113; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #111113; --bg-2: #18181B; --ink: #F2F2F3; --ink-2: #B4B4BA; --ink-3: #85858C; --rule: #2C2C31;
  --land: #222226; --highway: #34343A; --ease-line: #3E5A6D;
  --avail: #1E4A2D; --avail-ink: #8FD4A4; --resv: #5A4512; --resv-ink: #F2C565; --sold: #26262A; --sold-line: #4A4A52;
  --lot-edge: #111113; color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.5 var(--font); }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-underline-offset: 3px; }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 860px) { .wrap { padding: 0 32px; } }

/* header */
.top { border-bottom: 1px solid var(--ink); }
.top-in { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; padding-top: 28px; padding-bottom: 20px; }
h1 { margin: 0; font-size: clamp(28px, 6vw, 56px); line-height: 1; font-weight: 700; letter-spacing: -0.02em; }
.tagline { margin: 10px 0 0; max-width: 56ch; color: var(--ink-2); }
.top-actions { display: flex; gap: 8px; flex: none; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 18px; border: 1px solid var(--ink); background: var(--bg); color: var(--ink); text-decoration: none; cursor: pointer; font-weight: 500; }
.btn:hover { background: var(--ink); color: var(--bg); }
.btn.primary { background: var(--ink); color: var(--bg); }
.btn.primary:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn:disabled { opacity: .5; cursor: default; }

/* numerals as composition */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--rule); }
.stat { padding: 16px 12px 14px 0; border-right: 1px solid var(--rule); }
.stat + .stat { padding-left: 12px; }
.stat:last-child { border-right: 0; }
.stat b { display: block; font-size: clamp(30px, 7vw, 64px); line-height: 1; font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.stat.avail b { color: var(--avail-ink); }
.stat span { display: block; margin-top: 6px; font-size: 12px; color: var(--ink-2); }

.bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap; }
.seg { display: inline-flex; border: 1px solid var(--ink); }
.seg button { min-height: 40px; padding: 0 20px; border: 0; background: none; cursor: pointer; }
.seg button[aria-selected="true"] { background: var(--ink); color: var(--bg); }
.legend { display: flex; gap: 16px; margin: 0; padding: 0; list-style: none; font-size: 13px; color: var(--ink-2); }
.legend li { display: flex; align-items: center; gap: 6px; }
.sw { width: 14px; height: 14px; display: inline-block; border: 1px solid var(--rule); }
.sw.available { background: var(--avail); }
.sw.reserved { background: var(--resv); }
.sw.sold { background: repeating-linear-gradient(45deg, var(--sold) 0 3px, var(--sold-line) 3px 4px); }

/* layout: map + side panel on desktop, bottom sheet on phones */
.main { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; padding-bottom: 32px; }
@media (min-width: 1000px) { .main.has-panel { grid-template-columns: minmax(0, 1fr) 380px; } }

.mapbox { position: relative; margin: 0; border: 1px solid var(--rule); background: var(--bg-2); }
#map { display: block; width: 100%; height: min(72vh, 820px); touch-action: none; user-select: none; -webkit-user-select: none; cursor: grab; }
@media (max-width: 859px) { #map { height: auto; aspect-ratio: 1170 / 1110; max-height: 72vh; } }
.zoom { position: absolute; top: 10px; right: 10px; display: flex; flex-direction: column; border: 1px solid var(--ink); background: var(--bg); }
.zoom button { width: 44px; height: 40px; border: 0; background: none; cursor: pointer; font-size: 18px; }
.zoom button + button { border-top: 1px solid var(--rule); }
.zoom #z-fit { font-size: 12px; }
.hint { padding: 8px 12px; font-size: 12px; color: var(--ink-2); border-top: 1px solid var(--rule); background: var(--bg); }

/* SVG */
.m-highway { fill: var(--highway); }
.m-land { fill: var(--land); stroke: var(--ink-3); stroke-width: 1.5; }
.m-ease { fill: url(#hatch-ease); stroke: var(--ease-line); stroke-width: 1; }
.ease-line { stroke: var(--ease-line); stroke-width: 2; }
.hatch-bg { fill: var(--sold); }
.hatch-line { stroke: var(--sold-line); stroke-width: 2; }
.m-hwlabel { font: 700 26px var(--font); fill: var(--ink-2); letter-spacing: .12em; }
.m-easelabel { font: 500 22px var(--font); fill: var(--ink-2); }
.m-roadlabel { font: 500 11px var(--font); fill: var(--ink-3); }
.m-blocklabel { font: 700 22px var(--font); fill: var(--ink); paint-order: stroke; stroke: var(--bg); stroke-width: 5px; stroke-linejoin: round; pointer-events: none; letter-spacing: .04em; }
.lot { fill: var(--avail); stroke: var(--lot-edge); stroke-width: 2; cursor: pointer; transition: fill .15s; }
.lot[data-status="reserved"] { fill: var(--resv); }
.lot[data-status="sold"] { fill: url(#hatch-sold); }
.lot:hover { filter: brightness(.94); }
.lot:focus-visible { outline: none; stroke: var(--ink); stroke-width: 3; }
.lot.sel { stroke: var(--accent); stroke-width: 4; paint-order: stroke; }
.lotnum { font: 600 11px var(--font); fill: var(--ink); pointer-events: none; opacity: 0; transition: opacity .15s; font-variant-numeric: tabular-nums; }
.show-nums .lotnum { opacity: .8; }
.deep .m-blocklabel { opacity: .25; }

/* lot panel: a drawing title block */
.panel { border: 1px solid var(--ink); background: var(--bg); align-self: start; }
@media (min-width: 1000px) { .panel { position: sticky; top: 16px; } .site-top ~ * .panel { top: 76px; } }
@media (max-width: 999px) {
  .panel { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; max-height: 82vh; overflow-y: auto; border-width: 1px 0 0; box-shadow: 0 -8px 24px rgba(0, 0, 0, .12); padding-bottom: env(safe-area-inset-bottom); }
}
.tb-head { display: grid; grid-template-columns: 1fr auto; border-bottom: 1px solid var(--ink); }
.tb-id { padding: 14px 16px 12px; }
.tb-id .k { font-size: 12px; color: var(--ink-2); }
.tb-id .v { font-size: 44px; line-height: 1; font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.tb-id .v em { font-style: normal; color: var(--accent); }
.tb-close { width: 52px; border: 0; border-left: 1px solid var(--rule); background: none; cursor: pointer; font-size: 22px; }
.tb-cells { display: grid; grid-template-columns: 1fr 1.4fr 1fr; border-bottom: 1px solid var(--rule); }
.tb-cells > div { padding: 10px 16px; border-right: 1px solid var(--rule); min-width: 0; }
.tb-cells > div:last-child { border-right: 0; }
.tb-cells .k { display: block; font-size: 11px; color: var(--ink-2); }
.tb-cells .v { display: block; font-weight: 700; font-size: 17px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.chip { display: inline-block; padding: 1px 8px; font-size: 13px; font-weight: 600; }
.chip.available { background: var(--avail); color: var(--avail-ink); }
.chip.reserved { background: var(--resv); color: var(--resv-ink); }
.chip.sold { background: var(--sold); color: var(--ink-2); }
.tb-note { padding: 10px 16px; border-bottom: 1px solid var(--rule); color: var(--ink-2); font-size: 14px; }
.tb-body { padding: 16px; }
.tb-body h2 { margin: 0 0 4px; font-size: 17px; }
.tb-body p { margin: 0 0 12px; color: var(--ink-2); font-size: 14px; }
.form { display: grid; gap: 10px; }
.ask > summary { list-style: none; }
.ask > summary::-webkit-details-marker { display: none; }
.ask[open] > summary { display: none; }
.ask > summary .btn { width: 100%; }
.form label { display: grid; gap: 4px; font-size: 13px; color: var(--ink-2); }
.form input, .form textarea { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--rule); background: var(--bg); font-size: 16px; color: var(--ink); border-radius: 0; }
.form input:focus, .form textarea:focus { outline: 2px solid var(--ink); outline-offset: -1px; }
.form textarea { min-height: 88px; resize: vertical; }
.form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 420px) { .form .row2 { grid-template-columns: 1fr; } }
.msg { margin: 0; padding: 10px 12px; font-size: 14px; border-left: 3px solid var(--ink); background: var(--bg-2); }
.msg.err { border-color: var(--accent); }

/* list */
.filters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 700px) { .filters { grid-template-columns: 1fr 1fr; } }
.filters label { display: grid; gap: 4px; font-size: 12px; color: var(--ink-2); }
.filters select { min-height: 44px; padding: 0 10px; border: 1px solid var(--rule); background: var(--bg); color: var(--ink); font-size: 15px; border-radius: 0; }
.count { margin: 14px 0 6px; font-size: 13px; color: var(--ink-2); }
.lotlist { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.lotlist li { display: grid; grid-template-columns: 88px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--rule); cursor: pointer; }
.lotlist li:hover { background: var(--bg-2); }
.lotlist .no { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.lotlist .meta { font-size: 14px; color: var(--ink-2); }
.lotlist .meta b { color: var(--ink); font-weight: 600; }

.foot { padding-top: 16px; padding-bottom: 40px; border-top: 1px solid var(--rule); font-size: 13px; color: var(--ink-2); }
[hidden] { display: none !important; }

/* admin */
.btn.sm { min-height: 36px; padding: 0 12px; font-size: 13px; }
.badge { display: inline-block; min-width: 20px; padding: 0 6px; margin-left: 4px; background: var(--accent); color: var(--accent-ink); font-size: 12px; font-weight: 700; }
.muted { color: var(--ink-3); }
.k { font-size: 12px; color: var(--ink-2); }
.adm-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; padding-bottom: 40px; }
@media (min-width: 1000px) { .adm-grid { grid-template-columns: minmax(0, 1fr) 380px; } .adm-table-wrap { grid-column: 1 / -1; } }
.admin .panel { position: static; box-shadow: none; max-height: none; border-width: 1px; }
.adm-status { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.adm-check { display: flex !important; grid-template-columns: none; gap: 8px; align-items: flex-start; font-size: 14px; color: var(--ink); }
.adm-check input { width: 20px; height: 20px; min-height: 0; margin: 0; flex: none; }
.adm-pick { display: grid; gap: 6px; padding-top: 12px; margin-top: 4px; border-top: 1px solid var(--rule); }
.adm-blocks { display: flex; flex-wrap: wrap; gap: 6px; }
.adm-table-wrap { overflow-x: auto; border-top: 1px solid var(--ink); }
.adm-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.adm-table th { text-align: left; font-size: 12px; font-weight: 500; color: var(--ink-2); padding: 8px 10px; border-bottom: 1px solid var(--rule); white-space: nowrap; }
.adm-table td { padding: 8px 10px; border-bottom: 1px solid var(--rule); white-space: nowrap; }
.adm-table td.note { white-space: normal; min-width: 160px; color: var(--ink-2); }
.adm-table td.no { font-weight: 700; font-variant-numeric: tabular-nums; }
.adm-table tr { cursor: pointer; }
.adm-table tr:hover td { background: var(--bg-2); }
.adm-table tr.on td { background: color-mix(in srgb, var(--accent) 10%, var(--bg)); }
.inq-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.inq-list li { display: grid; gap: 6px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.inq-list li.done { opacity: .6; }
.inq-h { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.inq-c { display: flex; gap: 16px; flex-wrap: wrap; }
.inq-m { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.inq-a { display: flex; gap: 10px; align-items: center; }
.link { border: 0; background: none; padding: 0; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 20; padding: 10px 16px; background: var(--ink); color: var(--bg); font-size: 14px; max-width: calc(100vw - 32px); }
.seg.sm button { min-height: 34px; padding: 0 14px; font-size: 13px; }

/* ---- UI pass 2 */
.bar-r { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 12px; border: 1px solid var(--rule); cursor: pointer; font-size: 14px; user-select: none; }
.toggle input { width: 18px; height: 18px; margin: 0; accent-color: var(--ink); }
.toggle:has(input:checked) { border-color: var(--ink); }
.only-avail .lot:not([data-status="available"]) { opacity: .25; }
.lotnum { font-size: 12px; font-weight: 700; }
.lotarea { font: 500 9px var(--font); fill: var(--ink-2); pointer-events: none; opacity: 0; transition: opacity .15s; }
.show-area .lotarea { opacity: .9; }
.hovercard { position: absolute; z-index: 5; pointer-events: none; display: grid; gap: 2px; min-width: 150px; padding: 10px 12px; background: var(--bg); border: 1px solid var(--ink); font-size: 13px; box-shadow: 0 4px 16px rgba(0, 0, 0, .12); }
.hovercard b { font-size: 20px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.hovercard .chip { justify-self: start; margin-top: 4px; }
@media (hover: none) { .hovercard { display: none !important; } }

/* block overview: desktop panel, and below the map on phones */
.ov { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.ov li { border-bottom: 1px solid var(--rule); }
.ov-row { display: grid; grid-template-columns: 84px 1fr; gap: 2px 12px; width: 100%; padding: 12px 0; border: 0; background: none; text-align: left; cursor: pointer; }
.ov-row:hover { background: var(--bg-2); }
.ov-b { grid-row: span 2; font-weight: 700; font-size: 15px; }
.ov-n { font-size: 14px; }
.ov-n b { font-size: 18px; color: var(--avail-ink); font-variant-numeric: tabular-nums; }
.ov-s { font-size: 13px; color: var(--ink-2); }
.overview-m { margin-top: 20px; }
.overview-m .tb-body { padding: 0; }
@media (min-width: 1000px) { .overview-m { display: none; } }
@media (max-width: 999px) { .panel.overview { display: none; } }

/* phones: tighter header, sheet with a grab handle */
@media (max-width: 859px) {
  .top-in { padding-top: 18px; padding-bottom: 14px; }
  h1 { font-size: 30px; }
  .tagline { font-size: 14px; margin-top: 6px; }
  .stat { padding-top: 12px; padding-bottom: 10px; }
  .stat b { font-size: 34px; }
  .stat span { font-size: 11px; }
  .bar-r { width: 100%; justify-content: space-between; gap: 10px; }
  .legend { gap: 10px; font-size: 12px; }
}
.grab { display: none; }
@media (max-width: 999px) {
  .panel { transition: transform .2s ease-out; }
  .tb-head { position: relative; touch-action: none; }
  .grab { display: block; position: absolute; top: 6px; left: 50%; width: 40px; height: 4px; margin-left: -20px; background: var(--rule); }
  .tb-id { padding-top: 18px; }
}
@media (max-width: 859px) {
  .zoom { top: auto; bottom: 52px; right: 8px; flex-direction: row; }
  .zoom button { width: 40px; height: 36px; font-size: 16px; }
  .zoom button + button { border-top: 0; border-left: 1px solid var(--rule); }
}

/* ---- selling page */
.hero { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; padding-top: 28px; padding-bottom: 28px; border-bottom: 1px solid var(--rule); }
@media (min-width: 1000px) { .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: center; gap: 48px; } }
.eyebrow { margin: 0 0 10px; font-size: 13px; font-weight: 600; color: var(--accent); }
.hero-h { margin: 0; font-size: clamp(32px, 5.4vw, 64px); line-height: 1.02; font-weight: 700; letter-spacing: -0.03em; max-width: 14ch; }
.hero-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 24px 0; border-top: 1px solid var(--ink); }
.hero-facts > div { padding: 12px 12px 0 0; }
.hero-facts > div + div { padding-left: 12px; border-left: 1px solid var(--rule); }
.hero-facts b { display: block; font-size: clamp(20px, 3vw, 30px); line-height: 1.05; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.hero-facts span { font-size: 12px; color: var(--ink-2); }
.hero-cta, .band-cta, .loc-links { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-fig { margin: 0; border: 1px solid var(--rule); }
.hero-fig img { display: block; width: 100%; height: auto; }
.sec-h { margin: 0; padding-top: 28px; padding-bottom: 4px; font-size: clamp(22px, 3.2vw, 34px); letter-spacing: -0.02em; }
.sec { padding-bottom: 32px; border-top: 1px solid var(--rule); }
.sec .sec-h { padding-left: 0; padding-right: 0; margin-bottom: 16px; }
.facts { display: grid; grid-template-columns: minmax(0, 1fr); margin: 0; border-top: 1px solid var(--ink); }
@media (min-width: 860px) { .facts { grid-template-columns: 1fr 1fr; column-gap: 32px; } }
.facts > div { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.facts dt { font-size: 13px; color: var(--ink-2); }
.facts dd { margin: 0; font-size: 15px; }
.loc { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
@media (min-width: 1000px) { .loc { grid-template-columns: minmax(0, 1fr) 340px; } }
.loc-map { min-height: 360px; height: 56vh; max-height: 560px; border: 1px solid var(--rule); background: var(--bg-2); }
.loc-map iframe { display: block; width: 100%; height: 100%; border: 0; }
.loc-place { margin: 0 0 8px; font-size: 20px; font-weight: 700; }
.note { color: var(--ink-2); font-size: 14px; }
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 0; border-top: 1px solid var(--ink); }
.cards li { display: grid; gap: 4px; padding: 14px 16px 14px 0; border-bottom: 1px solid var(--rule); }
.cards span { color: var(--ink-2); font-size: 14px; }
.nearby { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.nearby li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--rule); }
.photos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; }
.photos img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.band { background: var(--ink); color: var(--bg); }
.band-in { padding-top: 40px; padding-bottom: 40px; }
.band h2 { margin: 0 0 8px; font-size: clamp(26px, 4vw, 44px); letter-spacing: -0.02em; }
.band p { margin: 0 0 20px; max-width: 56ch; opacity: .8; }
.band .btn { border-color: var(--bg); background: transparent; color: var(--bg); }
.band .btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.mbar { display: none; }
@media (max-width: 859px) {
  .mbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 9; display: grid; grid-template-columns: repeat(var(--n, 1), 1fr); background: var(--ink); padding-bottom: env(safe-area-inset-bottom); }
  .mbar a { display: flex; align-items: center; justify-content: center; min-height: 52px; color: var(--bg); text-decoration: none; font-weight: 600; font-size: 15px; }
  .mbar a + a { border-left: 1px solid rgba(255, 255, 255, .2); }
  .mbar a:first-child { background: var(--accent); color: var(--accent-ink); }
  body { padding-bottom: 60px; }
  .panel { z-index: 12; }
  .hero-facts b { font-size: 20px; }
}

/* ---- location view toggle + satellite overlay */
.loc-view { margin-bottom: 12px; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.loc-map { position: relative; }
.loc-pane { position: absolute; inset: 0; }
.loc-pane[hidden] { display: none; }
.loc-loading { margin: 0; padding: 16px; }
.loc-map .leaflet-container { font: inherit; background: var(--bg-2); }
.loc-map .leaflet-tooltip { border-radius: 0; border: 1px solid var(--ink); box-shadow: none; font-weight: 600; }

/* ---- satellite tools: full screen, shading, adjust */
.sat-canvas { position: absolute; inset: 0; }
.sat-tools { position: absolute; top: 10px; right: 10px; z-index: 1000; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; max-width: calc(100% - 70px); }
.sat-tools button, .sat-adjust button { min-height: 36px; padding: 0 12px; border: 1px solid var(--ink); background: var(--bg); color: var(--ink); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.sat-tools button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.sat-adjust button.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.sat-shade { display: flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 10px; border: 1px solid var(--ink); background: var(--bg); font-size: 13px; font-weight: 600; }
.sat-shade input { width: 90px; accent-color: var(--accent); }
.sat-adjust { position: absolute; left: 10px; bottom: 28px; z-index: 1000; width: min(330px, calc(100% - 20px)); padding: 10px 10px 4px; background: var(--bg); border: 1px solid var(--ink); color: var(--ink); }
.sat-adjust[hidden] { display: none; }
.sat-h { margin: 0 0 8px; font-weight: 700; }
.sat-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 6px; }
.sat-adjust .sat-row button { min-height: 32px; padding: 0 10px; }
.sat-row span { min-width: 64px; font-size: 13px; color: var(--ink-2); }
.sat-out { margin: 2px 0 6px; font-size: 12px; font-variant-numeric: tabular-nums; word-break: break-all; }
.sat-tip { margin: 0 0 6px; font-size: 12px; color: var(--ink-2); }
.adjusting .leaflet-interactive { cursor: move; }
.loc-map.full { position: fixed; inset: 0; z-index: 50; height: auto; max-height: none; min-height: 0; border: 0; }
body.map-full { overflow: hidden; }
body.map-full .mbar { display: none; }

.sat-fullscreen { position: fixed !important; inset: 0; z-index: 50; background: var(--bg-2); }
.sat-handle { border-radius: 50%; border: 3px solid #FFFFFF; box-shadow: 0 0 0 2px #111111; cursor: grab; }
.sat-handle.move { background: #FF4F00; }
.sat-handle.turn { background: #2F6FED; }
.sat-handle .sr, .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- admin: map position */
.adm-place { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; padding-bottom: 32px; }
@media (min-width: 1000px) { .adm-place { grid-template-columns: minmax(0, 1fr) 320px; } }
.adm-sat { position: relative; height: 70vh; min-height: 420px; border: 1px solid var(--rule); background: var(--bg-2); }
.adm-place-side h2 { margin: 0 0 8px; font-size: 22px; letter-spacing: -0.01em; }
.adm-steps { margin: 0 0 12px; padding-left: 20px; font-size: 14px; }
.adm-steps li { margin-bottom: 6px; }

/* ---- what's nearby */
.near-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0 32px; border-top: 1px solid var(--ink); }
.near-col h3 { display: flex; align-items: center; gap: 8px; margin: 16px 0 6px; font-size: 15px; }
.near-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--c); flex: none; }
.near-col ul { list-style: none; margin: 0; padding: 0; }
.near-col li { display: grid; gap: 2px; padding: 8px 0; border-bottom: 1px solid var(--rule); }
.near-item { padding: 0; border: 0; background: none; color: var(--ink); font: inherit; font-weight: 600; text-align: left; cursor: pointer; }
.near-item:hover, .near-item:focus-visible { color: var(--accent); text-decoration: underline; }
.near-col li span { font-size: 13px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.near-src { margin-top: 12px; }
.sat-tools button[data-act="near"][aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.sat-land { width: auto !important; height: auto !important; }
.sat-land span { position: absolute; left: 0; bottom: 6px; transform: translateX(-50%); padding: 4px 8px; background: #FF4F00; color: #FFFFFF; font-size: 12px; font-weight: 700; white-space: nowrap; box-shadow: 0 0 0 2px #FFFFFF; }

/* ---- page header: slim, sticky, section links */
html { scroll-padding-top: 72px; }
.site-top { position: sticky; top: 0; z-index: 20; background: var(--bg); }
.site-top .top-in { align-items: center; gap: 24px; min-height: 60px; padding-top: 0; padding-bottom: 0; }
.brand { margin: 0; font-size: 20px; line-height: 1.1; letter-spacing: -0.01em; }
.brand a { color: inherit; text-decoration: none; }
.top-nav { display: flex; gap: 22px; margin-left: auto; }
.top-nav a { color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 600; }
.top-nav a:hover, .top-nav a:focus-visible { color: var(--accent); }
.top-cta { min-height: 40px; }
@media (max-width: 859px) { .top-nav, .top-cta { display: none; } .site-top .top-in { min-height: 52px; } html { scroll-padding-top: 60px; } }

/* ---- section heads: numbered; the lots counts sit under their heading */
.sec-h.wrap, .sec-head.wrap { margin-left: auto; margin-right: auto; }
.num { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 700; letter-spacing: 0.04em; color: var(--accent); font-variant-numeric: tabular-nums; }
.sec-head { padding-top: 36px; }
.sec-head .sec-h { padding-top: 0; }
.counts { margin: 6px 0 0; font-size: 15px; color: var(--ink-2); }
.counts b { color: var(--ink); font-variant-numeric: tabular-nums; }
.counts #n-available { color: var(--avail-ink); }

/* ---- phone: lots by block as a compact two-column grid */
@media (max-width: 999px) {
  .overview-m .ov { display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; }
  .overview-m .ov-row { grid-template-columns: 1fr; padding: 10px 0; }
  .overview-m .ov-b { grid-row: auto; }
}
.hero-facts span { display: block; line-height: 1.3; margin-top: 2px; }
@media (max-width: 599px) { .facts > div { grid-template-columns: 1fr; gap: 2px; } }

/* ---- admin: activity (audit trail) */
.audit-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.audit-bar .note { margin: 0; }
.audit-tools { display: flex; align-items: center; gap: 10px; }
.audit-tools label { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.audit-tools select { min-height: 40px; padding: 0 8px; border: 1px solid var(--ink); background: var(--bg); color: var(--ink); font: inherit; }
.audit-table td { vertical-align: top; }
.audit-table td:first-child { white-space: nowrap; }
.hist { list-style: none; margin: 6px 0 0; padding: 0; border-top: 1px solid var(--rule); }
.hist li { display: grid; gap: 2px; padding: 8px 0; border-bottom: 1px solid var(--rule); font-size: 14px; }
.hist li .muted { font-size: 12px; }
.site-top .top-actions .btn { min-height: 40px; }
@media (max-width: 859px) { .site-top .top-actions { display: none; } }   /* phones: Call sits in the bottom bar */

/* ---- admin: private sale record */
.sale { grid-column: 1 / -1; margin-top: 8px; padding: 20px; border: 1px solid var(--ink); background: var(--bg); }
.sale-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--ink); }
.sale-head h2 { margin: 0; font-size: 24px; letter-spacing: -0.01em; }
.sale-head .note { margin: 4px 0 0; }
.sale-totals { display: grid; grid-template-columns: repeat(3, auto); gap: 0; margin: 0; }
.sale-totals > div { padding: 0 20px; border-left: 1px solid var(--rule); }
.sale-totals dt { font-size: 12px; color: var(--ink-2); }
.sale-totals dd { margin: 2px 0 0; font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.sale-totals .done dd { color: var(--avail-ink); }
.sale-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; padding-top: 16px; }
@media (min-width: 1100px) { .sale-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.sale-col h3 { margin: 0 0 10px; font-size: 16px; }
.sale-col h4 { margin: 14px 0 6px; font-size: 14px; }
.sale .form { display: grid; gap: 10px; }
.sale .form label { display: grid; gap: 4px; font-size: 13px; color: var(--ink-2); }
.sale .form input, .sale .form select, .sale .form textarea { min-height: 38px; padding: 6px 8px; border: 1px solid var(--rule); background: var(--bg); color: var(--ink); font: inherit; font-size: 15px; }
.sale .form textarea { min-height: 72px; resize: vertical; }
.sale .form input[type=file] { border: 1px dashed var(--rule); padding: 8px; }
.sale .two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pay-list, .doc-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.pay-list li, .doc-list li { display: grid; gap: 3px; padding: 10px 0; border-bottom: 1px solid var(--rule); font-size: 14px; }
.pay-top { display: flex; justify-content: space-between; gap: 8px; }
.pay-top b { font-variant-numeric: tabular-nums; }
.pay-files { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.pay-files a, .doc-list a { color: var(--ink); font-weight: 600; word-break: break-all; }
.pay-list li.void, .doc-list li.void { opacity: .55; }
.pay-list li.void b, .doc-list li.void a { text-decoration: line-through; }
.void-note { font-size: 12px; color: var(--ink-2); }
.void-box { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.void-reason { flex: 1; min-width: 140px; min-height: 32px; padding: 4px 8px; border: 1px solid var(--ink); font: inherit; font-size: 13px; }
.link { padding: 0; border: 0; background: none; color: var(--ink-2); font: inherit; font-size: 13px; text-decoration: underline; cursor: pointer; justify-self: start; }
