:root {
  --ink: #10221d;
  --ink-2: #4a5f58;
  --paper: #f5f7f4;
  --glass: rgba(250, 252, 249, 0.92);
  --line: rgba(16, 34, 29, 0.12);
  --pine: #0e4a3c;
  --pine-2: #15634f;
  --saffron: #e39b2d;
  --avail: #2fbf71;
  --booked: #f2b134;
  --sold: #9aa5a1;
  --shadow: 0 10px 30px rgba(10, 30, 24, 0.18);
  --r: 12px;
  --bar-h: 58px;
  font-family: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: #0b1714; overflow: hidden; }
button { font: inherit; color: inherit; cursor: pointer; }
button:focus-visible, input:focus-visible, a:focus-visible { outline: 2px solid var(--saffron); outline-offset: 2px; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

#map { position: fixed; inset: var(--bar-h) 0 0 0; }

/* Header */
.bar {
  position: fixed; inset: 0 0 auto 0; height: var(--bar-h); z-index: 20;
  display: flex; align-items: center; gap: 12px;
  padding: 0 max(12px, env(safe-area-inset-right)) 0 max(12px, env(safe-area-inset-left));
  background: var(--pine); color: #fff;
}
.icon-btn { background: none; border: 0; padding: 6px; border-radius: 8px; display: grid; place-items: center; }
.icon-btn:hover { background: rgba(255,255,255,.12); }
.brand { font-family: "Sora", sans-serif; font-weight: 700; font-size: 17px; color: #fff; text-decoration: none; white-space: nowrap; }
.brand img { height: 34px; display: block; }
.title { font-size: 14px; opacity: .85; padding-left: 12px; border-left: 1px solid rgba(255,255,255,.25); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.search { margin-left: auto; position: relative; width: min(320px, 40vw); }
.search input {
  width: 100%; height: 38px; border-radius: 19px; border: 0; padding: 0 16px;
  font: inherit; font-size: 14px; background: rgba(255,255,255,.14); color: #fff;
}
.search input::placeholder { color: rgba(255,255,255,.82); }
.search input:focus { background: #fff; color: var(--ink); }
.results {
  position: absolute; top: 44px; right: 0; width: 100%; max-height: 50vh; overflow: auto;
  list-style: none; margin: 0; padding: 6px; background: #fff; color: var(--ink);
  border-radius: var(--r); box-shadow: var(--shadow);
}
.results li { padding: 9px 10px; border-radius: 8px; cursor: pointer; font-size: 14px; display: flex; justify-content: space-between; gap: 8px; }
.results li:hover, .results li[aria-selected="true"] { background: #eef3f0; }
.results small { color: var(--ink-2); }

/* Sidebar */
.sidebar {
  position: fixed; top: 0; bottom: 0; left: 0; width: min(320px, 86vw); z-index: 40;
  background: var(--paper); transform: translateX(-102%); transition: transform .25s ease;
  display: flex; flex-direction: column; box-shadow: var(--shadow);
  padding-left: env(safe-area-inset-left);
}
.sidebar.open { transform: none; }
.side-head { display: flex; justify-content: space-between; align-items: center; height: var(--bar-h); padding: 0 12px 0 20px; background: var(--pine); color: #fff; font-family: "Sora", sans-serif; font-weight: 600; }
#mapList { overflow: auto; padding: 10px 12px 24px; }
#mapList h3 { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); margin: 16px 8px 6px; }
#mapList a { display: block; padding: 9px 10px; border-radius: 8px; color: var(--ink); text-decoration: none; font-size: 15px; }
#mapList a:hover { background: #e6eeea; }
#mapList a[aria-current="page"] { background: var(--pine); color: #fff; }
.scrim { position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 30; }

/* Control panel */
.panel {
  position: fixed; right: max(14px, env(safe-area-inset-right)); top: calc(var(--bar-h) + 14px); z-index: 10;
  width: 250px; max-height: calc(100% - var(--bar-h) - 28px); overflow: auto;
  background: var(--glass); backdrop-filter: blur(10px); border-radius: var(--r); box-shadow: var(--shadow);
  padding: 12px; display: flex; flex-direction: column; gap: 10px; font-size: 14px;
}
.seg, .basemaps { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: #e7ece9; border-radius: 9px; padding: 3px; gap: 3px; }
.seg button, .basemaps button { border: 0; background: none; padding: 7px 4px; border-radius: 7px; font-weight: 600; font-size: 13px; color: var(--ink-2); }
.seg button[aria-pressed="true"], .basemaps button[aria-pressed="true"] { background: #fff; color: var(--pine); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.row { display: flex; align-items: center; gap: 8px; }
.row input[type="checkbox"] { accent-color: var(--pine); width: 16px; height: 16px; }
.slider { flex-direction: column; align-items: stretch; gap: 4px; color: var(--ink-2); font-size: 13px; }
.slider input { accent-color: var(--pine); }
.chips { display: flex; flex-wrap: wrap; gap: 5px; }
.chips button { border: 1px solid var(--line); background: #fff; border-radius: 14px; padding: 4px 9px; font-size: 12px; }
.chips button[aria-pressed="true"] { background: var(--pine); border-color: var(--pine); color: #fff; }
.primary { border: 0; border-radius: 9px; padding: 10px; background: var(--saffron); color: #2a1a00; font-weight: 700; }
.primary { display: flex; align-items: center; justify-content: center; gap: 8px; }
.primary svg { width: 18px; height: 18px; }
.primary:hover { filter: brightness(1.05); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 12px; color: var(--ink-2); }
.legend span { display: inline-flex; align-items: center; gap: 5px; }
.legend i { width: 11px; height: 11px; border-radius: 3px; display: inline-block; }
.fab-panel { display: none; }

/* Price pins and block pills (HTML markers) */
.pill {
  background: var(--pine); color: #fff; font-weight: 600; font-size: 12px; padding: 5px 10px;
  border-radius: 14px; border: 2px solid rgba(255,255,255,.85); white-space: nowrap; text-decoration: none;
  box-shadow: 0 3px 10px rgba(0,0,0,.3); font-family: "Sora", sans-serif;
}
.pill:hover { background: var(--pine-2); }
.price {
  background: #fff; color: var(--ink); border-radius: 10px; padding: 6px 10px; font-size: 12px; font-weight: 600;
  box-shadow: 0 4px 14px rgba(0,0,0,.3); border: 0; white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.price b { color: var(--pine); }
.price::after { content: ""; position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%); border: 6px solid transparent; border-bottom: 0; border-top-color: #fff; }

/* Popup card */
.maplibregl-popup-content { border-radius: var(--r); padding: 0; box-shadow: var(--shadow); overflow: hidden; font-family: inherit; }
.maplibregl-popup-close-button { font-size: 20px; padding: 2px 8px; color: #fff; }
.card { width: 272px; font-size: 14px; }
.card dl { padding-top: 8px; padding-bottom: 8px; gap: 4px 12px; }
.card-head { background: var(--pine); color: #fff; padding: 12px 14px; }
.card-head h4 { margin: 0; font-family: "Sora", sans-serif; font-size: 16px; }
.card-head p { margin: 2px 0 0; opacity: .8; font-size: 13px; }
.card dl { margin: 0; padding: 10px 14px; display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; }
.card dt { color: var(--ink-2); }
.card dd { margin: 0; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 12px; font-weight: 700; text-transform: capitalize; }
.badge.available { background: #d9f5e5; color: #13703f; }
.badge.booked { background: #fdefd0; color: #8a5a00; }
.badge.sold { background: #e8ecea; color: #56615d; }
.badge.unlisted { background: #eef1f4; color: #44525c; text-transform: none; white-space: nowrap; }
.card .note { margin: -4px 14px 10px; font-size: 12px; color: var(--ink-2); }
.card .cta { display: block; margin: 0 14px 14px; text-align: center; padding: 10px; border-radius: 9px; background: #1faa59; color: #fff; text-decoration: none; font-weight: 700; }

.notice {
  position: fixed; left: 50%; transform: translateX(-50%); top: calc(var(--bar-h) + 12px); z-index: 10;
  background: rgba(16,34,29,.85); color: #fff; font-size: 12px; padding: 7px 14px; border-radius: 16px; max-width: calc(100% - 140px); text-align: center;
}
.wa {
  position: fixed; left: max(16px, env(safe-area-inset-left)); bottom: max(18px, env(safe-area-inset-bottom)); z-index: 10;
  width: 54px; height: 54px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: var(--shadow);
}
.wa svg { fill: #fff; stroke: none; width: 30px; height: 30px; }
.maplibregl-ctrl-bottom-right { bottom: 8px; }

/* Secondary actions */
.secondary { display: flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--pine); border-radius: 9px; padding: 9px; background: #fff; color: var(--pine); font-weight: 700; }
.secondary svg { width: 18px; height: 18px; }
.secondary:hover { background: #eef3f0; }
.card .ghost { display: block; width: calc(100% - 28px); margin: 0 14px 10px; padding: 9px; border-radius: 9px; border: 1px solid var(--pine); background: #fff; color: var(--pine); font-weight: 700; font-size: 13px; }
.card .ghost:hover { background: #eef3f0; }

/* Hover tooltip (positioned in map-canvas pixels) */
.tip {
  position: fixed; left: 0; top: var(--bar-h); z-index: 12; pointer-events: none;
  background: rgba(16,34,29,.92); color: #fff; border-radius: 9px; padding: 7px 10px; max-width: 260px;
  box-shadow: 0 6px 18px rgba(0,0,0,.25); font-size: 13px; line-height: 1.3;
}
.tip b { display: block; font-weight: 600; }
.tip small { display: block; opacity: .8; font-size: 12px; margin-top: 2px; }

/* Controls hint chip */
.hint {
  position: fixed; left: 50%; bottom: max(22px, env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 11;
  display: flex; align-items: center; gap: 8px; max-width: min(720px, calc(100% - 170px));
  border: 0; border-radius: 20px; padding: 8px 14px; background: rgba(16,34,29,.86); color: #fff; font-size: 13px;
  backdrop-filter: blur(6px); box-shadow: var(--shadow); text-align: left;
}
.hint svg { flex: none; width: 18px; height: 18px; color: var(--saffron); }
.hint.min { padding: 8px; }
.hint[hidden], .floor-rail[hidden], .look-hud[hidden], .tags [hidden] { display: none; }
.hint.min span { display: none; }

/* Floating 3D labels */
.tags { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 1; }
.tags button {
  position: absolute; left: 0; top: 0; pointer-events: auto; white-space: nowrap; will-change: transform;
}
.tag {
  border: 0; border-radius: 9px; padding: 5px 9px; background: rgba(255,255,255,.95); color: var(--ink);
  font-size: 12px; line-height: 1.25; text-align: left; box-shadow: 0 4px 14px rgba(0,0,0,.28);
  translate: -50% calc(-100% - 8px);
}
.tag::after { content: ""; position: absolute; left: 50%; bottom: -5px; transform: translateX(-50%); border: 5px solid transparent; border-bottom: 0; border-top-color: rgba(255,255,255,.95); }
.tag b { display: block; font-family: "Sora", sans-serif; font-weight: 600; font-size: 12px; color: var(--pine); }
.tag small { display: block; color: var(--ink-2); font-size: 11px; }
.tag:hover { background: #fff; }
.tag.roof { background: var(--pine); color: #fff; padding: 7px 12px; }
.tag.roof::after { border-top-color: var(--pine); }
.tag.roof b { color: #fff; font-size: 14px; }
.tag.roof small { color: rgba(255,255,255,.8); font-size: 12px; }
.ftag {
  border: 0; min-width: 26px; height: 22px; padding: 0 6px; border-radius: 6px; translate: calc(-100% - 6px) -50%;
  background: rgba(16,34,29,.78); color: #fff; font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums;
}
.ftag:hover { background: var(--pine-2); }
.ftag.now { background: var(--saffron); color: #2a1a00; transform-origin: right center; }

/* Building / street-level view */
.look-mode .maplibregl-marker, .look-mode .panel, .look-mode .fab-panel { display: none; }
.look-hud { position: fixed; inset: var(--bar-h) 0 0 0; z-index: 9; pointer-events: none; }
.look-hud > * { pointer-events: auto; }
.look-card {
  position: absolute; left: max(16px, env(safe-area-inset-left)); top: 14px; max-width: min(420px, calc(100% - 32px));
  display: flex; align-items: flex-start; gap: 14px; padding: 12px 12px 12px 16px;
  background: var(--glass); backdrop-filter: blur(10px); border-radius: var(--r); box-shadow: var(--shadow);
}
.look-card h2 { margin: 0; font-family: "Sora", sans-serif; font-size: 17px; }
.look-card p { margin: 2px 0 0; font-size: 13px; color: var(--ink-2); }
.look-card .look-alt { color: var(--pine); font-weight: 600; font-variant-numeric: tabular-nums; margin-top: 6px; }
.look-actions { display: flex; gap: 6px; margin-left: auto; }
.look-actions .icon-btn { color: var(--pine); }
.look-actions .icon-btn:hover { background: #e6eeea; }
.look-actions svg { width: 20px; height: 20px; }
.look-exit { display: flex; align-items: center; gap: 6px; border: 0; border-radius: 9px; padding: 7px 11px; background: var(--pine); color: #fff; font-weight: 600; font-size: 13px; white-space: nowrap; }
.look-exit svg { width: 16px; height: 16px; }
.look-exit:hover { background: var(--pine-2); }
.floor-rail {
  position: absolute; right: max(16px, env(safe-area-inset-right)); top: 14px;
  list-style: none; margin: 0; padding: 6px; max-height: calc(100% - 14px - 200px); overflow: auto; scrollbar-width: none;
  display: flex; flex-direction: column; gap: 3px;
  background: var(--glass); backdrop-filter: blur(10px); border-radius: var(--r); box-shadow: var(--shadow);
}
.floor-rail button { width: 46px; height: 30px; border: 0; border-radius: 7px; background: none; font-weight: 600; font-size: 13px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.floor-rail button:hover { background: #e6eeea; color: var(--ink); }
.floor-rail button[aria-current="true"] { background: var(--saffron); color: #2a1a00; }
.look-pad {
  position: absolute; right: max(16px, env(safe-area-inset-right)); bottom: max(22px, env(safe-area-inset-bottom));
  display: grid; grid-template: repeat(3, 44px) / repeat(3, 44px); gap: 4px; padding: 6px;
  background: var(--glass); backdrop-filter: blur(10px); border-radius: 14px; box-shadow: var(--shadow);
}
.look-pad button { border: 0; border-radius: 10px; background: #fff; color: var(--pine); display: grid; place-items: center; touch-action: none; user-select: none; -webkit-user-select: none; }
.look-pad button:hover { background: #eef3f0; }
.look-pad button:active { background: var(--pine); color: #fff; }
.look-pad .up { grid-area: 1 / 2; } .look-pad .left { grid-area: 2 / 1; } .look-pad .right { grid-area: 2 / 3; }
.look-pad .down { grid-area: 3 / 2; } .look-pad .zin { grid-area: 1 / 3; } .look-pad .zout { grid-area: 3 / 3; }
.look-pad[hidden] { display: none; }
.look-mode .hint { max-width: min(620px, calc(100% - 360px)); }

/* Street View: arrows painted on the road, one per street out of the junction ahead */
.sv-arrow {
  width: 46px; height: 46px; border-radius: 50%; padding: 0; display: grid; place-items: center; translate: -50% -50%;
  border: 2px solid rgba(255,255,255,.95); background: rgba(16,34,29,.55); color: #fff; cursor: pointer;
  box-shadow: 0 3px 12px rgba(0,0,0,.35); backdrop-filter: blur(3px); transition: background .15s;
}
.sv-arrow svg { width: 26px; height: 26px; stroke-width: 3; stroke-linejoin: round; }
.sv-arrow:hover, .sv-arrow:focus-visible { background: var(--saffron); color: #2a1a00; outline: none; }

@media (max-width: 720px) {
  :root { --bar-h: 54px; }
  .title { display: none; }
  .search { width: auto; flex: 1; }
  .panel { top: auto; bottom: 84px; width: calc(100% - 28px); max-height: 60%; display: none; }
  .panel.open { display: flex; }
  .fab-panel {
    display: grid; place-items: center; position: fixed; z-index: 11; right: max(16px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom));
    width: 54px; height: 54px; border-radius: 50%; border: 0; background: var(--pine); color: #fff; box-shadow: var(--shadow);
  }
  .maplibregl-ctrl-bottom-right { bottom: 80px; }
  .notice { max-width: calc(100% - 32px); }
  .pill { font-size: 11px; padding: 4px 8px; }
  .hint { bottom: 86px; max-width: calc(100% - 32px); font-size: 12px; }
  .look-mode .hint { bottom: 186px; max-width: calc(100% - 32px); }
  .look-card { right: 16px; padding: 10px 10px 10px 12px; }
  .look-card h2 { font-size: 15px; }
  .look-exit span { display: none; }
  .floor-rail { top: 120px; max-height: calc(100% - 330px); }
  .floor-rail button { width: 40px; height: 28px; }
  .look-pad { grid-template: repeat(3, 48px) / repeat(3, 48px); }
  .look-mode .wa { display: none; }
}
@media (prefers-reduced-motion: reduce) { .sidebar { transition: none; } }

::selection { background: var(--saffron); color: #2a1a00; }
.panel, #mapList, .results { scrollbar-width: thin; scrollbar-color: rgba(14,74,60,.35) transparent; }

/* Loading state */
.loader {
  position: fixed; left: 50%; top: calc(var(--bar-h) + 18px); transform: translateX(-50%); z-index: 25;
  display: flex; align-items: center; gap: 10px; padding: 9px 16px 9px 12px; border-radius: 22px;
  background: rgba(16,34,29,.9); color: #fff; font-size: 14px; box-shadow: var(--shadow); backdrop-filter: blur(6px);
}
.loader[hidden] { display: none; }
.loader i { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255,255,255,.3); border-top-color: var(--saffron); animation: spin .8s linear infinite; }
.loader.error i { display: none; }
.loader button { border: 0; border-radius: 14px; padding: 4px 12px; background: var(--saffron); color: #2a1a00; font-weight: 700; font-size: 13px; }
.loader button[hidden] { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.toast {
  position: fixed; left: 50%; bottom: max(90px, calc(env(safe-area-inset-bottom) + 90px)); transform: translateX(-50%); z-index: 45;
  padding: 9px 16px; border-radius: 20px; background: rgba(16,34,29,.92); color: #fff; font-size: 14px; box-shadow: var(--shadow);
}
.toast[hidden] { display: none; }

/* Shortlist */
.list-btn { position: relative; color: #fff; }
.list-btn .count {
  position: absolute; top: 0; right: -2px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px;
  background: #e0245e; color: #fff; font-size: 11px; font-weight: 700; line-height: 17px; text-align: center; font-variant-numeric: tabular-nums;
}
.list-btn .count[hidden] { display: none; }
.shortlist {
  position: fixed; top: 0; bottom: 0; right: 0; width: min(340px, 92vw); z-index: 40;
  background: var(--paper); transform: translateX(102%); transition: transform .25s ease;
  display: flex; flex-direction: column; box-shadow: var(--shadow); padding-right: env(safe-area-inset-right);
}
.shortlist.open { transform: none; }
#shortItems { list-style: none; margin: 0; padding: 10px 10px 0; overflow: auto; flex: 1; }
#shortItems li { display: flex; align-items: center; gap: 4px; border-radius: 10px; }
#shortItems li:hover { background: #e6eeea; }
#shortItems .go { flex: 1; text-align: left; border: 0; background: none; padding: 9px 8px; border-radius: 10px; min-width: 0; }
#shortItems .go b { display: block; font-weight: 600; font-size: 14px; }
#shortItems .go small { display: block; color: var(--ink-2); font-size: 12px; margin-top: 1px; }
#shortItems .icon-btn { color: var(--ink-2); }
#shortItems .icon-btn svg { width: 18px; height: 18px; }
#shortItems .empty { display: block; padding: 18px 12px; color: var(--ink-2); font-size: 14px; line-height: 1.5; }
#shortItems .empty:hover { background: none; }
.short-actions { display: grid; gap: 8px; padding: 12px 14px max(16px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.short-actions .cta { display: block; text-align: center; padding: 11px; border-radius: 9px; background: #1faa59; color: #fff; text-decoration: none; font-weight: 700; }
.short-actions [hidden] { display: none; }
.legend i.ring { background: none; border: 2px solid #e0245e; }

/* Plot card extras */
.card-head .tags-row { display: flex; gap: 5px; margin-top: 7px; }
.card-head .tags-row span { padding: 2px 8px; border-radius: 10px; background: var(--saffron); color: #2a1a00; font-size: 11px; font-weight: 700; }
.card .near { list-style: none; margin: 0 14px 10px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; border-radius: 9px; overflow: hidden; background: var(--line); }
.card .near li { background: #f3f6f4; padding: 5px 9px; display: flex; flex-direction: column; }
.card .near li span { color: var(--ink-2); font-size: 11px; }
.card .near b { font-weight: 600; font-size: 13px; font-variant-numeric: tabular-nums; }
.card .near small { font-weight: 400; color: var(--ink-2); font-size: 11px; }
.card-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 14px 10px; }
.card .card-actions .ghost { width: auto; margin: 0; display: flex; align-items: center; justify-content: center; gap: 6px; }
.card .card-actions svg { width: 16px; height: 16px; }
.card .save.on { background: #fde7ee; border-color: #e0245e; color: #b0123f; }
.card .save.on svg { fill: #e0245e; stroke: #e0245e; }

/* Link-preview screenshots (?og=1): map only */
.og .bar, .og .panel, .og .fab-panel, .og .wa, .og .loader, .og .toast, .og .hint, .og .notice,
.og .maplibregl-ctrl-bottom-right, .og .maplibregl-ctrl-bottom-left, .og .maplibregl-ctrl-attrib { display: none !important; }
.og #map { inset: 0; }
@media (prefers-reduced-motion: reduce) { .shortlist { transition: none; } .loader i { animation-duration: 2.4s; } }
@media (max-width: 720px) {
  .list-btn { padding: 4px; }
  .card { width: min(260px, 78vw); }
}
.card-open .hint { display: none; }
/* Long cards scroll inside; the WhatsApp button stays pinned at the bottom. */
.maplibregl-popup-content .card { max-height: min(600px, calc(100dvh - var(--bar-h) - 170px)); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.card > .cta:last-child { position: sticky; bottom: 0; margin: 4px 0 0; border-radius: 0; padding: 13px; }
@media (max-width: 720px) { .maplibregl-popup-content .card { max-height: calc(100dvh - var(--bar-h) - 250px); } }
@media (max-width: 720px) {
  .maplibregl-popup.sheet { transform: none !important; position: fixed; inset: auto 0 0 0; max-width: none !important; z-index: 15; }
  .maplibregl-popup.sheet .maplibregl-popup-tip { display: none; }
  .maplibregl-popup.sheet .maplibregl-popup-content { border-radius: 16px 16px 0 0; padding-bottom: env(safe-area-inset-bottom); }
  .maplibregl-popup.sheet .card { width: 100%; max-height: 62dvh; }
  .card-open .wa, .card-open .fab-panel { display: none; }
}
.og .tags, .og .look-hud { display: none !important; }
.og .price { display: none !important; }

/* Instalment calculator (plot card) */
.calc { margin: 0 14px 10px; padding: 10px 12px; border-radius: 9px; background: #f3f6f4; }
.calc label { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 2px 8px; font-size: 13px; color: var(--ink-2); }
.calc output { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.calc input { grid-column: 1 / -1; width: 100%; margin: 6px 0 2px; accent-color: var(--pine); }
.calc-out { margin: 2px 0 0; font-size: 13px; color: var(--ink-2); }
.calc-out b { font-size: 17px; color: var(--pine); font-variant-numeric: tabular-nums; }
.calc-note { margin: 4px 0 0; font-size: 11.5px; line-height: 1.4; color: var(--ink-2); }

/* Compare shortlisted plots */
.compare { width: min(760px, calc(100vw - 32px)); max-height: calc(100dvh - 48px); padding: 0; border: 0; border-radius: var(--r);
  background: var(--paper); color: var(--ink); box-shadow: var(--shadow); overflow: hidden; }
.compare[open] { display: flex; flex-direction: column; }
.compare::backdrop { background: rgba(8, 20, 16, 0.55); }
.compare-scroll { overflow: auto; flex: 1; padding: 6px 14px 0; }
.compare table { width: 100%; border-collapse: collapse; font-size: 14px; }
.compare th, .compare td { padding: 8px 10px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.compare thead th { font-weight: 400; min-width: 150px; }
.compare thead b { display: block; font-family: "Sora", sans-serif; font-size: 15px; }
.compare small { display: block; color: var(--ink-2); font-size: 12px; font-weight: 400; }
.compare tbody th { color: var(--ink-2); font-weight: 500; white-space: nowrap; position: sticky; left: 0; background: var(--paper); }
.compare td.best { background: #e3f4ea; font-weight: 700; color: #13703f; }
.compare .na { color: var(--sold); }
.compare .link { border: 0; background: none; padding: 4px 0 0; color: var(--pine-2); font-size: 13px; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.compare-note { margin: 8px 14px 0; font-size: 12px; color: var(--ink-2); }
@media (max-width: 720px) {
  .compare { width: 100vw; max-width: 100vw; max-height: 100dvh; height: 100dvh; border-radius: 0; margin: 0; }
  .compare-scroll { padding: 4px 8px 0; }
  .compare table { table-layout: fixed; }
  .compare th, .compare td { padding: 7px 5px; font-size: 12.5px; overflow-wrap: anywhere; }
  .compare thead th { min-width: 0; }
  .compare thead b { font-size: 14px; }
  .compare tbody th { white-space: normal; width: 25%; }
  .compare small { font-size: 11px; }
}

/* Credit */
.credit { margin: auto 0 0; padding: 12px 20px max(14px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); font-size: 12px; color: var(--ink-2); }
.credit a { color: var(--pine); font-weight: 700; text-decoration: none; }
.credit a:hover { text-decoration: underline; }
