:root {
  --ink: #2b1d14;
  --muted: #7a5b45;
  --glass: rgba(255, 247, 236, 0.72);
  --edge: rgba(120, 72, 30, 0.14);
  --accent: #e0703a;
  --shadow: 0 8px 30px rgba(90, 45, 10, 0.18);
}
body[data-theme="night"] {
  --ink: #e9ecff;
  --muted: #9aa3d6;
  --glass: rgba(14, 18, 40, 0.62);
  --edge: rgba(140, 160, 255, 0.16);
  --accent: #ff4fd8;
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; overflow: hidden; }
body {
  font: 14px/1.4 Inter, system-ui, sans-serif;
  color: var(--ink);
  background: #0b1020;
  -webkit-font-smoothing: antialiased;
}
body[data-theme="golden"] { background: #f3dcc0; }
#map { position: fixed; inset: 0; }

.panel {
  background: var(--glass);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border: 1px solid var(--edge);
  box-shadow: var(--shadow);
  transition: background .6s, color .6s, border-color .6s;
}

.brand {
  position: fixed; top: calc(16px + env(safe-area-inset-top)); left: calc(16px + env(safe-area-inset-left));
  padding: 12px 18px; border-radius: 16px;
  pointer-events: none;
}
.eyebrow { display: block; margin-bottom: 2px; font: 600 10px/1 Inter, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.brand h1 {
  margin: 0; font: 600 22px/1.1 Fraunces, Georgia, serif; letter-spacing: -.01em;
}
.brand h1 em { font-style: italic; font-weight: 500; color: var(--accent); transition: color .6s; }
.brand p { margin: 4px 0 0; font-size: 12px; color: var(--muted); }

.controls {
  position: fixed; top: calc(16px + env(safe-area-inset-top)); right: calc(16px + env(safe-area-inset-right));
  display: flex; gap: 8px;
}
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 16px; border-radius: 999px;
  font: 500 13px Inter, sans-serif; color: var(--ink);
  cursor: pointer;
}
.pill:hover { border-color: var(--accent); }
.pill:focus-visible, .chip:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.pill[aria-pressed="true"] { background: var(--accent); color: #fff; border-color: transparent; }
.ico {
  width: 16px; height: 16px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ffe2a8, #ff9a4a);
  box-shadow: 0 0 10px #ffb36b;
}
body[data-theme="golden"] .ico {
  background: radial-gradient(circle at 65% 35%, transparent 38%, #39407a 40%);
  box-shadow: none;
}

.places {
  position: fixed; left: 50%; bottom: calc(34px + env(safe-area-inset-bottom)); transform: translateX(-50%);
  max-width: calc(100vw - 32px);
  padding: 6px; border-radius: 999px;
}
.places-track {
  display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none;
  scroll-snap-type: x proximity;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 14px, #000 calc(100% - 14px), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 14px, #000 calc(100% - 14px), transparent);
  padding: 0 6px;
}
.places-track::-webkit-scrollbar { display: none; }
.chip {
  flex: none; scroll-snap-align: start;
  border: 0; background: transparent; color: var(--ink);
  font: 500 13px Inter, sans-serif; padding: 9px 14px; border-radius: 999px;
  cursor: pointer; white-space: nowrap; transition: background .2s, color .2s;
}
.chip:hover { background: var(--edge); }
.chip.active { background: var(--accent); color: #fff; }

.me { width: 18px; height: 18px; border-radius: 50%; background: #2f7bff; border: 3px solid #fff; box-shadow: 0 0 0 0 rgba(47,123,255,.6); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 16px rgba(47,123,255,0); } 100% { box-shadow: 0 0 0 0 rgba(47,123,255,0); } }
.pill:disabled { opacity: .55; cursor: progress; }

.toast {
  position: fixed; left: 50%; top: 84px; transform: translateX(-50%); z-index: 6;
  max-width: calc(100vw - 32px); padding: 10px 16px; border-radius: 12px; font-size: 13px; text-align: center;
}

.tip {
  position: fixed; pointer-events: none; z-index: 5;
  padding: 8px 12px; border-radius: 10px; font-size: 12px;
  transform: translate(12px, 12px);
}
.tip b { display: block; font-size: 13px; font-weight: 600; }
.tip span { color: var(--muted); }

.loader {
  position: fixed; inset: 0; display: grid; place-items: center;
  background: inherit; transition: opacity .8s; z-index: 10;
}
.loader span {
  width: 44px; height: 44px; border-radius: 50%;
  border: 2px solid var(--edge); border-top-color: var(--accent);
  animation: spin 1s linear infinite;
}
.loader.done { opacity: 0; pointer-events: none; }
@keyframes spin { to { transform: rotate(360deg); } }

.maplibregl-ctrl-group { background: var(--glass) !important; border: 1px solid var(--edge); box-shadow: var(--shadow) !important; border-radius: 12px !important; }
body[data-theme="night"] .maplibregl-ctrl-group button .maplibregl-ctrl-icon { filter: invert(1); }
.maplibregl-ctrl-attrib { background: var(--glass) !important; color: var(--muted); font-size: 10px; }
.maplibregl-ctrl-attrib a { color: var(--muted); }
body[data-theme="night"] .maplibregl-ctrl-attrib-button { filter: invert(1); }

.maplibregl-ctrl-top-right { top: calc(60px + env(safe-area-inset-top)); }
button { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }

@media (max-width: 640px) {
  .brand { padding: 10px 14px; }
  .brand h1 { font-size: 18px; }
  .controls { top: auto; bottom: 76px; right: 16px; flex-direction: column; }
  .places { left: 16px; right: 60px; bottom: calc(16px + env(safe-area-inset-bottom)); transform: none; max-width: none; }
  .controls { bottom: calc(80px + env(safe-area-inset-bottom)); }
  .pill .lbl { display: none; }
  .pill { width: 44px; height: 44px; padding: 0; justify-content: center; }
  .maplibregl-ctrl-top-right { top: env(safe-area-inset-top); }
  .brand { max-width: calc(100vw - 90px); }
  .tip { max-width: 220px; }
}
@media (prefers-reduced-motion: reduce) {
  .loader span { animation-duration: 3s; }
}

/* Short screens (phones in landscape): compact chrome so the map stays visible */
@media (max-height: 500px) {
  .brand { padding: 8px 12px; border-radius: 12px; }
  .brand h1 { font-size: 16px; }
  .brand p, .eyebrow { display: none; }
  .pill { height: 34px; padding: 0 12px; font-size: 12px; }
  .places { padding: 4px; bottom: calc(26px + env(safe-area-inset-bottom)); }
  .chip { padding: 6px 11px; font-size: 12px; }
  .maplibregl-ctrl-top-right { top: calc(52px + env(safe-area-inset-top)); }
}

/* ---------- Rents ---------- */
:root { --cta: #4f46e5; --cta-ink: #fff; --field: rgba(255, 255, 255, .55); --ok: #0d9488; --err: #b42318; }
body[data-theme="night"] { --cta: #22d3a6; --cta-ink: #04201a; --field: rgba(255, 255, 255, .06); --ok: #22d3a6; --err: #ff8a8a; }

.brand { pointer-events: auto; max-width: 330px; }
.brand h1 em { color: var(--cta); }
.tagline { margin: 3px 0 0; font-size: 12px; color: var(--muted); }
.eyebrow { display: flex; align-items: center; gap: 8px; }
.link { background: none; border: 0; padding: 0; font: inherit; color: var(--ink); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; text-transform: none; letter-spacing: 0; font-weight: 500; }
.kpis { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-top: 8px; font-size: 12px; color: var(--muted); min-height: 18px; }
.kpi b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.live { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 var(--ok); animation: live 2s infinite; }
@keyframes live { 70% { box-shadow: 0 0 0 6px transparent; } }

.cta { background: var(--cta); color: var(--cta-ink); border: 0; font-weight: 600; box-shadow: var(--shadow); }
.cta:hover { filter: brightness(1.07); }

.legend {
  position: fixed; left: calc(16px + env(safe-area-inset-left)); bottom: calc(96px + env(safe-area-inset-bottom));
  width: 300px; padding: 12px 14px; border-radius: 14px; font-size: 12px;
}
.legend-head { display: grid; gap: 6px; margin-bottom: 8px; }
.legend-head .seg { flex-wrap: nowrap; }
.ramp { height: 8px; border-radius: 4px; }
.ramp-labels { display: flex; justify-content: space-between; margin-top: 4px; color: var(--muted); font-size: 10.5px; font-variant-numeric: tabular-nums; }
.view-stat { margin: 8px 0 0; color: var(--ink); }

.seg { display: flex; flex-wrap: wrap; gap: 4px; }
.seg label, .seg button {
  position: relative; display: inline-flex; border: 1px solid var(--edge); border-radius: 999px; overflow: hidden;
  background: var(--field); color: var(--ink); font: 500 13px Inter, sans-serif; cursor: pointer;
}
.seg label span, .seg button { padding: 7px 12px; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg input:checked + span, .seg button[aria-checked="true"] { background: var(--cta); color: var(--cta-ink); }
.seg input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: -2px; }
.seg-sm button { padding: 3px 8px; font-size: 11px; }

.pickbar {
  position: fixed; top: calc(72px + env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); z-index: 7;
  display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 16px; border-radius: 999px; font-weight: 600; white-space: nowrap;
}
.pill-sm { border: 0; border-radius: 999px; padding: 7px 12px; font: 600 12px Inter, sans-serif; background: var(--cta); color: var(--cta-ink); cursor: pointer; }
.pill-sm.ghost { background: transparent; color: var(--ink); border: 1px solid var(--edge); }
body.picking #map canvas { cursor: crosshair !important; }
body.picking .legend, body.picking .places { display: none; }

.sheet {
  position: fixed; top: calc(72px + env(safe-area-inset-top)); right: calc(16px + env(safe-area-inset-right)); bottom: 16px; z-index: 6;
  width: 390px; border-radius: 18px; overflow-y: auto; overscroll-behavior: contain;
}
body.sheet-open .maplibregl-ctrl-top-right { display: none; }
.sheet-head {
  position: sticky; top: 0; z-index: 1; display: flex; align-items: flex-start; gap: 8px; padding: 16px 16px 12px;
  background: inherit; backdrop-filter: blur(14px); border-bottom: 1px solid var(--edge);
}
.sheet-title { flex: 1; min-width: 0; }
.sheet-title h2 { margin: 0; font: 600 19px/1.2 Fraunces, Georgia, serif; overflow-wrap: anywhere; }
.sheet-title p { margin: 3px 0 0; font-size: 12px; }
.icon-btn { flex: none; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--edge); background: var(--field); color: var(--ink); font-size: 14px; cursor: pointer; }
.pad { padding: 14px 16px 18px; }
.muted { color: var(--muted); }
.small { font-size: 11.5px; }
.big-q { font: 600 17px Fraunces, Georgia, serif; margin: 4px 0 6px; }

.rent-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.rent-table th { text-align: left; font-weight: 500; padding: 8px 0; color: var(--muted); }
.rent-table td { padding: 8px 0 8px 10px; }
.rent-table tr + tr { border-top: 1px solid var(--edge); }
.rent-table .big { font: 600 17px Inter, sans-serif; font-variant-numeric: tabular-nums; }
.rent-table .num { text-align: right; white-space: nowrap; }
.facts { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 6px; font-size: 13px; }
.facts li { display: flex; gap: 8px; }
.society { margin-top: 14px; font-size: 13px; }
.society summary { cursor: pointer; font-weight: 600; }
.btn { display: block; width: 100%; margin-top: 16px; padding: 13px 16px; border: 0; border-radius: 12px; font: 600 14px Inter, sans-serif; cursor: pointer; }
.btn.primary { background: var(--cta); color: var(--cta-ink); }
.btn:disabled { opacity: .6; cursor: progress; }
.sheet h3 { margin: 22px 0 6px; font-size: 13px; }
.entries { list-style: none; margin: 0; padding: 0; }
.entry { padding: 10px 0; border-top: 1px solid var(--edge); font-size: 13px; }
.entry q { display: block; margin-top: 4px; color: var(--muted); font-style: italic; }
.entry-meta { display: flex; justify-content: space-between; margin-top: 4px; font-size: 11.5px; color: var(--muted); }
.entry-meta .link { color: var(--muted); font-size: 11.5px; }

.form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field-label { font-size: 12.5px; font-weight: 600; }
.field-label em { font-style: normal; font-weight: 400; color: var(--muted); }
.form input:not([type=radio]), .form textarea {
  width: 100%; padding: 11px 12px; border-radius: 10px; border: 1px solid var(--edge); background: var(--field);
  color: var(--ink); font: 16px Inter, sans-serif; /* 16px stops iOS zooming into the field */
}
.form input:focus, .form textarea:focus { outline: 2px solid var(--cta); outline-offset: 0; }
.form textarea { resize: vertical; }
.with-out { display: grid; gap: 4px; }
.with-out output { font-size: 12px; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.error { margin: 0; color: var(--err); font-size: 13px; min-height: 0; }
.error:empty { display: none; }
.form .btn { margin-top: 2px; }

.about {
  width: min(560px, calc(100vw - 32px)); max-height: calc(100dvh - 48px); overflow-y: auto; padding: 24px; border-radius: 18px;
  color: var(--ink); font-size: 14px; line-height: 1.55;
}
.about::backdrop { background: rgba(0, 0, 0, .45); backdrop-filter: blur(2px); }
.about h2 { margin: 0 0 8px; font: 600 22px Fraunces, Georgia, serif; }
.about h3 { margin: 18px 0 4px; font-size: 14px; }
.about ul { margin: 0; padding-left: 18px; }
.about .close { position: absolute; top: 16px; right: 16px; }
.kpi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 14px 0 4px; }
.kpi-grid div { padding: 10px; border-radius: 12px; background: var(--field); border: 1px solid var(--edge); }
.kpi-grid b { display: block; font: 600 20px Inter, sans-serif; font-variant-numeric: tabular-nums; }
.kpi-grid span { font-size: 11.5px; color: var(--muted); }

@media (max-width: 1100px) and (min-width: 641px) {
  .controls .pill:not(.cta) .lbl { display: none; }
  .controls .pill:not(.cta) { width: 40px; padding: 0; justify-content: center; }
}

@media (max-width: 640px) {
  .brand { max-width: calc(100vw - 32px); right: 16px; }
  .tagline { display: none; }
  .kpis { margin-top: 6px; }
  .controls .cta {
    position: fixed; left: 16px; right: 76px; bottom: calc(76px + env(safe-area-inset-bottom));
    width: auto; height: 46px; justify-content: center; font-size: 14px;
  }
  .legend { top: calc(132px + env(safe-area-inset-top)); bottom: auto; left: 16px; width: auto; max-width: 250px; padding: 8px 10px; }
  .legend .view-stat { display: none; }
  .maplibregl-ctrl-top-right { display: none; }
  .sheet { top: auto; left: 0; right: 0; bottom: 0; width: auto; max-height: 72dvh; border-radius: 20px 20px 0 0; padding-bottom: env(safe-area-inset-bottom); }
  .sheet-head::before { content: ''; position: absolute; top: 6px; left: 50%; width: 36px; height: 4px; margin-left: -18px; border-radius: 2px; background: var(--edge); }
  body.sheet-open .places, body.sheet-open .controls, body.sheet-open .legend { display: none; }
  .pickbar { top: auto; bottom: calc(16px + env(safe-area-inset-bottom)); left: 16px; right: 16px; transform: none; white-space: normal; flex-wrap: wrap; border-radius: 16px; padding: 12px; }
  .pickbar span { flex: 1 0 100%; }
  body.picking .controls { display: none; }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-height: 500px) {
  .legend { display: none; }
  .tagline, .kpis { display: none; }
}

/* ---------- Top-left stack: brand, search, (legend on phones) ---------- */
.topleft {
  position: fixed; z-index: 5; top: calc(16px + env(safe-area-inset-top)); left: calc(16px + env(safe-area-inset-left));
  width: 340px; display: flex; flex-direction: column; gap: 8px;
}
.topleft .brand { position: static; max-width: none; }

.search { position: relative; display: flex; align-items: center; gap: 8px; padding: 0 12px; height: 44px; border-radius: 14px; color: var(--muted); }
.search:focus-within { border-color: var(--cta); }
.search input {
  flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; color: var(--ink);
  font: 500 15px Inter, sans-serif; outline: none;
}
.search input::placeholder { color: var(--muted); font-weight: 400; }
.search input::-webkit-search-cancel-button { filter: grayscale(1); }
.search kbd { font: 500 11px Inter, sans-serif; padding: 2px 6px; border-radius: 6px; border: 1px solid var(--edge); color: var(--muted); }
.search:focus-within kbd { display: none; }
.results {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 8; margin: 0; padding: 6px; list-style: none;
  border-radius: 14px; background: var(--glass); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid var(--edge); box-shadow: var(--shadow); max-height: min(60vh, 420px); overflow-y: auto;
}
.results li[role=option] { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 10px; border-radius: 10px; cursor: pointer; color: var(--ink); }
.results li[role=option]:hover, .results li[aria-selected="true"] { background: var(--edge); }
.r-name { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.r-meta { flex: none; display: flex; gap: 8px; align-items: center; font-size: 11.5px; color: var(--cta); font-weight: 600; }
.r-meta em { font-style: normal; font-weight: 500; color: var(--muted); }
.empty-row { padding: 10px; font-size: 13px; color: var(--muted); }

.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--edge); margin-top: 10px; }
.entry.clickable { padding: 0; }
.row-btn { display: flex; justify-content: space-between; gap: 10px; width: 100%; padding: 11px 0; border: 0; background: none; color: var(--ink); font: 500 13px Inter, sans-serif; text-align: left; cursor: pointer; }
.row-btn:hover span:first-child { text-decoration: underline; }

@media (max-width: 640px) {
  .topleft { left: 12px; right: 12px; width: auto; top: calc(12px + env(safe-area-inset-top)); gap: 6px; }
  .topleft .legend { position: static; width: auto; max-width: none; }
  .search { height: 46px; }
  .search kbd { display: none; }
  body.sheet-open .topleft .search, body.sheet-open .topleft .legend { display: none; }
}

.pin { width: 26px; height: 34px; pointer-events: none; filter: drop-shadow(0 3px 6px rgba(0,0,0,.35));
  background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 34'%3E%3Cpath d='M13 1C6.4 1 1 6.3 1 12.8 1 21.6 13 33 13 33s12-11.4 12-20.2C25 6.3 19.6 1 13 1Z' fill='%23f43f5e' stroke='white' stroke-width='2'/%3E%3Ccircle cx='13' cy='13' r='4.5' fill='white'/%3E%3C/svg%3E");
  animation: drop .5s cubic-bezier(.3,1.5,.6,1); }
@keyframes drop { from { transform: translateY(-24px); opacity: 0; } }
.topleft .search { z-index: 3; } /* results dropdown must sit above the legend below it */
@media (max-width: 640px) { .topleft:has(.search:focus-within) .legend { visibility: hidden; } }

/* ---------- Place-the-pin mode ---------- */
.center-pin { position: fixed; left: 50%; top: 50%; z-index: 4; pointer-events: none; }
.center-pin .pin { position: absolute; left: -13px; top: -34px; animation: none; transition: transform .15s; }
.center-pin .pin-dot { position: absolute; left: -5px; top: -2px; width: 10px; height: 4px; border-radius: 50%; background: rgba(0,0,0,.35); }
body.picking .controls, body.picking .places, body.picking .topleft .legend, body.picking .brand .tagline { display: none; }
.pickbar {
  top: auto; bottom: calc(24px + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%);
  display: grid; gap: 8px; width: min(440px, calc(100vw - 24px)); padding: 16px; border-radius: 18px; white-space: normal; font-weight: 400;
}
.pick-title { margin: 0; font: 600 16px Fraunces, Georgia, serif; }
.pick-info { margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--field); border: 1px solid var(--edge); font-weight: 600; font-size: 14px; min-height: 40px; }
.pick-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.pick-actions #pickConfirm { margin-left: auto; padding: 9px 16px; font-size: 13px; }
.pill-sm:disabled { opacity: .45; cursor: not-allowed; }
.pick-hint { margin: 0; font-size: 12px; }
@media (max-width: 640px) {
  .pickbar { left: 0; right: 0; bottom: 0; width: auto; transform: none; border-radius: 20px 20px 0 0; padding: 16px 16px calc(16px + env(safe-area-inset-bottom)); }
  .pick-actions #pickConfirm { flex: 1 0 100%; margin: 4px 0 0; padding: 13px; font-size: 14px; }
}
.pick-sub { margin: -4px 0 0; font-size: 12.5px; color: var(--muted); }

/* Rent price tags (individual properties) */
.tag {
  position: relative; padding: 4px 9px; border: 2px solid #fff; border-radius: 999px;
  background: var(--c); color: #0b1020; font: 700 12px/1.2 Inter, sans-serif; font-variant-numeric: tabular-nums; white-space: nowrap;
  box-shadow: 0 3px 10px rgba(0, 0, 0, .3); cursor: pointer; transition: transform .12s;
}
.tag:hover, .tag:focus-visible { transform: scale(1.08); z-index: 2; }
body[data-theme="golden"] .tag { color: #fff; }
body.picking .tag { opacity: .45; pointer-events: none; }

/* Turnstile human check (usually invisible; only appears if Cloudflare needs an interaction) */
.human:empty { display: none; }

/* Grouped properties: a small stack of cards with the count and rent range */
.group {
  position: relative; display: inline-flex; align-items: center; gap: 8px; margin-bottom: 8px;
  padding: 5px 12px 5px 5px; border: 1px solid var(--edge); border-radius: 14px;
  background: var(--glass); backdrop-filter: blur(12px) saturate(1.4); -webkit-backdrop-filter: blur(12px) saturate(1.4);
  color: var(--ink); font: 500 12px/1.15 Inter, sans-serif; text-align: left; white-space: nowrap; cursor: pointer;
  box-shadow: 0 1px 0 var(--edge), 0 4px 0 -1px rgba(255, 255, 255, .55), 0 4px 0 0 var(--edge), 0 8px 0 -2px rgba(255, 255, 255, .35), 0 8px 0 -1px var(--edge), 0 12px 24px rgba(0, 0, 0, .28);
  transition: transform .12s;
}
body[data-theme="night"] .group { box-shadow: 0 1px 0 var(--edge), 0 4px 0 -1px rgba(30, 36, 80, .9), 0 4px 0 0 var(--edge), 0 8px 0 -2px rgba(30, 36, 80, .7), 0 8px 0 -1px var(--edge), 0 12px 24px rgba(0, 0, 0, .45); }
.group-n {
  display: grid; place-items: center; min-width: 30px; height: 30px; padding: 0 6px; border-radius: 10px;
  background: var(--c); color: #0b1020; font: 700 14px Inter, sans-serif; font-variant-numeric: tabular-nums;
}
body[data-theme="golden"] .group-n { color: #fff; }
.group-txt { display: grid; }
.group-txt b { font-weight: 600; font-size: 12px; }
.group-txt small { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.group:hover, .group:focus-visible { transform: translateY(-2px); z-index: 2; }
body.picking .group { opacity: .45; pointer-events: none; }

/* Approximate locations (houses, villas, pinned spots): dashed, so they don't look like an exact address */
.tag.approx { border-style: dashed; }
.approx-note { margin: 0 0 10px; }

/* Marker pin: label + stem + dot. The dot's centre is the exact stored location. */
.pin-marker { --c: #22d3a6; display: flex; flex-direction: column; align-items: center; pointer-events: none; }
.pin-marker > button { pointer-events: auto; }
.pin-marker .stem { width: 2px; height: 10px; background: #fff; box-shadow: 0 0 2px rgba(0, 0, 0, .45); }
.pin-marker .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c); border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .45); }
body.picking .pin-marker .stem, body.picking .pin-marker .dot { opacity: .45; }
