:root {
  --font: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, system-ui, sans-serif;
  --bg: #f4f5f2;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-solid: #ffffff;
  --sticky-bg: rgba(250, 251, 250, 0.97);
  --surface-2: rgba(20, 30, 25, 0.045);
  --surface-3: rgba(20, 30, 25, 0.08);
  --ink: #151a17;
  --ink-2: #4a524d;
  --ink-3: #737b76;
  --line: rgba(20, 30, 25, 0.09);
  --accent: #3f7a5c;
  --accent-ink: #ffffff;
  --accent-soft: rgba(63, 122, 92, 0.12);
  --accent-text: #2f6249;
  --star: #e0a43a;
  --danger: #b4452f;
  --shadow-sm: 0 1px 2px rgba(16, 24, 20, 0.06), 0 1px 1px rgba(16, 24, 20, 0.04);
  --shadow: 0 10px 30px -10px rgba(16, 24, 20, 0.22), 0 2px 6px rgba(16, 24, 20, 0.06);
  --shadow-lg: 0 24px 60px -18px rgba(16, 24, 20, 0.35), 0 4px 12px rgba(16, 24, 20, 0.08);
  --blur: saturate(180%) blur(22px);
  --r-lg: 22px;
  --r: 14px;
  --r-sm: 10px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --dur: 280ms;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  color-scheme: light;
}
[data-theme="dark"] {
  --bg: #121413;
  --surface: rgba(28, 31, 29, 0.84);
  --surface-solid: #1c1f1d;
  --sticky-bg: rgba(30, 33, 31, 0.97);
  --surface-2: rgba(255, 255, 255, 0.055);
  --surface-3: rgba(255, 255, 255, 0.1);
  --ink: #eef1ee;
  --ink-2: #b7beb9;
  --ink-3: #8b938e;
  --line: rgba(255, 255, 255, 0.09);
  --accent: #7fc19e;
  --accent-ink: #0d1a13;
  --accent-soft: rgba(127, 193, 158, 0.14);
  --accent-text: #93cfae;
  --star: #f0b955;
  --danger: #f08a73;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.7), 0 2px 6px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 24px 60px -18px rgba(0, 0, 0, 0.8), 0 4px 12px rgba(0, 0, 0, 0.4);
  color-scheme: dark;
}
@media (prefers-reduced-motion: reduce) {
  :root { --dur: 1ms; }
  *, *::before, *::after { animation-duration: 1ms !important; transition-duration: 1ms !important; scroll-behavior: auto !important; }
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "cv11", "ss01", "ss03";
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior: none;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--accent-text); }
svg { width: 20px; height: 20px; flex: none; }
:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--surface-solid); padding: 8px 12px; border-radius: 8px; }
.skip:focus { left: 8px; }
[hidden] { display: none !important; }

.glass {
  background: var(--surface);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

/* ---------- Map ---------- */
#map { position: fixed; inset: 0; background: var(--bg); }
.maplibregl-ctrl-attrib { font-size: 11px; }
.maplibregl-ctrl-bottom-right { bottom: var(--attrib-b, 0px); }
[data-theme="dark"] .maplibregl-ctrl-attrib { background: rgba(20, 22, 21, 0.7); color: #aab; }
[data-theme="dark"] .maplibregl-ctrl-attrib a { color: #cdd; }
[data-theme="dark"] .maplibregl-ctrl-attrib-button { filter: invert(1); }

.pin-wrap { width: 38px; height: 38px; }
.pin {
  position: relative;
  display: grid; place-items: center;
  width: 38px; height: 38px;
  padding: 0; border: 0; border-radius: 50%;
  background: var(--surface-solid);
  color: var(--accent-text);
  box-shadow: 0 0 0 2.5px var(--surface-solid), 0 0 0 3.5px var(--line), var(--shadow);
  transition: transform var(--dur) var(--ease), background var(--dur), color var(--dur);
}
.pin svg { width: 19px; height: 19px; }
.pin:hover { transform: scale(1.06); }
.pin.is-active { background: var(--accent); color: var(--accent-ink); transform: scale(1.16); z-index: 3; }
.pin-badge {
  position: absolute; top: -5px; right: -6px;
  min-width: 19px; height: 19px; padding: 0 5px;
  border-radius: 10px; background: var(--ink); color: var(--bg);
  font-size: 11px; font-weight: 700; line-height: 19px; text-align: center;
  font-variant-numeric: tabular-nums;
}
.me-dot {
  width: 18px; height: 18px; border-radius: 50%;
  background: #3b82f6; border: 3px solid #fff;
  box-shadow: 0 0 0 6px rgba(59, 130, 246, 0.2), var(--shadow-sm);
}

/* ---------- Top bar ---------- */
.topbar {
  position: fixed; z-index: 20;
  top: calc(var(--safe-t) + 10px); left: 10px; right: 10px;
  display: flex; flex-direction: column; gap: 8px;
  pointer-events: none;
}
.topbar > * { pointer-events: auto; }
.searchbar {
  display: flex; align-items: center; gap: 4px;
  height: 52px; padding: 0 6px 0 8px;
  border-radius: 18px;
}
.mark { display: grid; place-items: center; width: 36px; height: 36px; color: var(--accent); flex: none; }
.mark svg { width: 30px; height: 30px; }
#q {
  flex: 1; min-width: 0; height: 100%;
  border: 0; background: transparent; outline: none;
  font-size: 17px; padding: 0 6px;
}
#q::placeholder { color: var(--ink-3); }
#q::-webkit-search-cancel-button { display: none; }
.icon-btn {
  display: grid; place-items: center;
  width: 40px; height: 40px; flex: none;
  border: 0; border-radius: 12px; background: transparent; color: var(--ink-2);
}
.icon-btn:hover { background: var(--surface-2); }
.chips {
  display: flex; gap: 8px;
  overflow-x: auto; scrollbar-width: none;
  padding: 2px 2px 6px; margin: 0 -10px; padding-left: 10px; padding-right: 10px;
  scroll-padding: 10px;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; flex: none;
  height: 38px; padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  box-shadow: var(--shadow-sm);
  font-size: 15px; font-weight: 550; color: var(--ink);
  white-space: nowrap;
  transition: background var(--dur), color var(--dur), border-color var(--dur);
}
.chip svg { width: 17px; height: 17px; color: var(--accent-text); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: transparent; }
.chip[aria-pressed="true"] svg { color: currentColor; }
.chip-sep { flex: none; width: 1px; margin: 8px 2px; background: var(--line); }

.map-ctrls {
  position: fixed; z-index: 15; right: 12px;
  bottom: calc(var(--sheet-h, 150px) + 12px);
  transition: bottom var(--dur) var(--ease), opacity var(--dur);
}
.fab {
  display: inline-flex; align-items: center; gap: 8px;
  height: 46px; padding: 0 16px 0 14px;
  border-radius: 999px;
  font-size: 15px; font-weight: 600; color: var(--ink);
}
.fab svg { color: var(--accent-text); width: 19px; height: 19px; }
.fab.is-on svg { fill: var(--accent-text); }
body.sheet-full .map-ctrls { opacity: 0; pointer-events: none; }

/* ---------- Panel / bottom sheet ---------- */
.panel {
  position: fixed; z-index: 30;
  left: 0; right: 0; bottom: 0;
  height: var(--sheet-h, 150px);
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  border-bottom: 0;
  box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column;
  transition: height var(--dur) var(--ease);
  will-change: height;
  overflow: hidden;
}
.panel.dragging { transition: none; }
.grab {
  flex: none; height: 22px;
  display: flex; justify-content: center; align-items: flex-start;
  touch-action: none; cursor: grab;
}
.handle {
  width: 100%; height: 22px; padding: 0; border: 0; background: transparent;
  display: flex; justify-content: center; align-items: center; touch-action: none;
}
.handle span { width: 40px; height: 5px; border-radius: 3px; background: var(--ink-3); opacity: 0.45; }
.panel-body {
  flex: 1; min-height: 0;
  overflow-y: auto; overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 0 16px calc(var(--safe-b) + 20px);
}

.list-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  padding: 2px 4px 10px;
  touch-action: none;
}
.list-title { margin: 0; font-size: 22px; line-height: 1.2; font-weight: 700; letter-spacing: -0.02em; }
.list-sub { margin: 2px 0 0; color: var(--ink-3); font-size: 15px; }
.ghost-btn {
  display: inline-flex; align-items: center; gap: 6px; flex: none;
  height: 40px; padding: 0 14px 0 10px;
  border: 0; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent-text);
  font-size: 15px; font-weight: 600;
}
.ghost-btn svg { width: 18px; height: 18px; }
.venue-back { padding: 0 0 6px; }
.link-btn {
  display: inline-flex; align-items: center; gap: 4px;
  min-height: 44px; padding: 0 6px 0 0;
  border: 0; background: none; color: var(--accent-text);
  font-size: 16px; font-weight: 600;
}
.link-btn.inline { min-height: 0; padding: 0; display: inline; font-size: inherit; }

.list { list-style: none; margin: 0; padding: 0; }
.item {
  display: flex; align-items: center; gap: 14px;
  width: 100%; padding: 12px 8px;
  border: 0; border-radius: var(--r);
  background: transparent; text-align: left;
  transition: background var(--dur);
}
.item:hover { background: var(--surface-2); }
.list li + li .item { box-shadow: 0 -1px 0 var(--line); border-radius: 0; }
.list li + li .item:hover { border-radius: var(--r); box-shadow: none; }
.tile {
  display: grid; place-items: center; flex: none;
  width: 46px; height: 46px; border-radius: 14px;
  background: var(--accent-soft); color: var(--accent-text);
}
.tile svg { width: 22px; height: 22px; }
.item-main { flex: 1; min-width: 0; }
.item-name { font-size: 17px; font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; }
.item-venue { font-size: 15px; color: var(--ink-2); line-height: 1.35; margin-top: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 5px; font-size: 14px; color: var(--ink-3); }
.item-meta .rt { color: var(--ink-2); font-weight: 600; display: inline-flex; align-items: center; gap: 3px; }
.item-meta .rt svg { width: 14px; height: 14px; color: var(--star); }
.item-chev { color: var(--ink-3); width: 18px; height: 18px; }
.empty { padding: 28px 8px; text-align: center; color: var(--ink-2); }
.empty strong { display: block; color: var(--ink); font-size: 17px; margin-bottom: 4px; }

.foot { padding: 18px 4px 8px; color: var(--ink-3); font-size: 14px; border-top: 1px solid var(--line); margin-top: 8px; }
.foot p { margin: 0 0 8px; }
.foot .fine { font-size: 12.5px; }

/* ---------- Detail ---------- */
.d-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: -2px -16px 6px; padding: 4px 12px 8px; position: sticky; top: 0; z-index: 2; background: var(--sticky-bg); }
.d-top .round {
  display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 50%;
  border: 0; background: var(--surface-3); color: var(--ink);
}
.d-top .round svg { width: 20px; height: 20px; }
.d-top .grp { display: flex; gap: 8px; }
.eyebrow { display: inline-flex; align-items: center; gap: 6px; color: var(--accent-text); font-size: 14px; font-weight: 650; letter-spacing: 0.01em; text-transform: uppercase; }
.eyebrow svg { width: 16px; height: 16px; }
.d-name { margin: 6px 0 4px; font-size: 27px; line-height: 1.15; font-weight: 700; letter-spacing: -0.025em; }
.d-venue { margin: 0; font-size: 17px; color: var(--ink-2); line-height: 1.4; }
.d-rating { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-top: 10px; font-size: 15px; color: var(--ink-2); }
.d-rating .big { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; color: var(--ink); font-size: 16px; }
.d-rating .big svg { color: var(--star); width: 18px; height: 18px; }
.d-rating a, .d-rating button { color: var(--accent-text); font-weight: 600; background: none; border: 0; padding: 0; font-size: 15px; }

.actions { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 8px; margin: 16px 0 6px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 16px;
  border: 0; border-radius: var(--r);
  background: var(--surface-3); color: var(--ink);
  font-size: 16px; font-weight: 600; text-decoration: none;
  transition: filter var(--dur), background var(--dur);
}
.btn:hover { filter: brightness(0.97); }
.btn svg { width: 19px; height: 19px; }
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.wide { width: 100%; }
.btn[disabled] { opacity: 0.6; cursor: default; }
.alt-dir { font-size: 14px; color: var(--ink-3); margin: 2px 2px 14px; }
.alt-dir a { font-weight: 600; }

.card { background: var(--surface-2); border-radius: var(--r); padding: 4px 16px; margin: 12px 0; }
.row { display: flex; gap: 14px; padding: 14px 0; }
.row + .row { border-top: 1px solid var(--line); }
.row > svg { color: var(--accent-text); margin-top: 2px; }
.row-label { font-size: 13px; font-weight: 650; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 2px; }
.row-val { font-size: 17px; line-height: 1.45; }
.row-val.muted { color: var(--ink-3); }
.sec-title { font-size: 19px; font-weight: 700; letter-spacing: -0.015em; margin: 22px 2px 10px; }
.amen { display: flex; flex-wrap: wrap; gap: 8px; }
.amen span { display: inline-flex; align-items: center; min-height: 36px; padding: 6px 13px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-text); font-size: 15px; font-weight: 550; line-height: 1.3; }
.prose { font-size: 17px; line-height: 1.6; margin: 0 2px; color: var(--ink); }
.verified { display: flex; gap: 10px; align-items: flex-start; margin: 18px 2px 4px; padding: 12px 14px; border-radius: var(--r); border: 1px solid var(--line); font-size: 14.5px; color: var(--ink-2); line-height: 1.5; }
.verified svg { color: var(--accent-text); margin-top: 1px; }

/* Reviews */
.rv-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 26px 2px 10px; }
.rv-head .sec-title { margin: 0; }
.rv-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 10px; }
.stat { background: var(--surface-2); border-radius: var(--r); padding: 12px; }
.stat b { display: block; font-size: 22px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
.stat span { font-size: 13px; color: var(--ink-3); font-weight: 550; }
.reviews { list-style: none; margin: 0; padding: 0; }
.review { padding: 14px 2px; border-top: 1px solid var(--line); }
.review-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.review-who { font-weight: 650; font-size: 16px; }
.review-date { font-size: 14px; color: var(--ink-3); }
.review-stars { display: inline-flex; gap: 1px; margin-top: 4px; }
.review-stars svg { width: 16px; height: 16px; color: var(--star); }
.review-stars svg.off { color: var(--surface-3); }
.review-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.review-tags span { font-size: 13.5px; padding: 3px 10px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); }
.review-text { margin: 8px 0 0; font-size: 16.5px; line-height: 1.55; white-space: pre-line; overflow-wrap: anywhere; }
.report { margin-top: 6px; border: 0; background: none; padding: 6px 0; color: var(--ink-3); font-size: 13.5px; display: inline-flex; align-items: center; gap: 5px; }
.report svg { width: 14px; height: 14px; }
.rv-empty { padding: 22px 16px; text-align: center; border: 1px dashed var(--line); border-radius: var(--r); color: var(--ink-2); font-size: 16px; }
.rv-empty strong { display: block; color: var(--ink); margin-bottom: 2px; font-size: 17px; }
.rv-empty .btn { margin-top: 12px; }

/* ---------- Modals ---------- */
.modal {
  padding: 0; border: 0; background: transparent; color: var(--ink);
  max-width: none; max-height: none; width: 100%; height: 100%;
  margin: 0;
}
.modal::backdrop { background: rgba(10, 14, 12, 0.38); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.modal[open] { display: flex; align-items: flex-end; justify-content: center; }
.modal-card {
  width: 100%; max-height: calc(100% - var(--safe-t) - 24px);
  display: flex; flex-direction: column;
  background: var(--surface-solid);
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  box-shadow: var(--shadow-lg);
  animation: rise var(--dur) var(--ease);
}
@keyframes rise { from { transform: translateY(16px); opacity: 0.6; } to { transform: none; opacity: 1; } }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 18px 16px 6px 20px; }
.modal-head h2 { margin: 0; font-size: 22px; letter-spacing: -0.02em; }
.modal-sub { margin: 2px 0 0; color: var(--ink-2); font-size: 15px; }
.modal-body { overflow-y: auto; padding: 4px 20px 8px; overscroll-behavior: contain; }
.modal-foot { padding: 10px 20px calc(var(--safe-b) + 16px); border-top: 1px solid var(--line); }
.lede { margin: 0 0 14px; color: var(--ink-2); font-size: 16px; }
.field { display: block; margin: 0 0 14px; border: 0; padding: 0; min-width: 0; }
.field label, .field legend { display: block; font-size: 15px; font-weight: 600; margin-bottom: 6px; padding: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.req, .opt { font-weight: 500; font-size: 13px; color: var(--ink-3); margin-left: 4px; }
.field input:not([type="radio"]), .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 11px 14px;
  border: 1px solid var(--line); border-radius: 12px;
  background: var(--surface-2); font-size: 16px; outline: none;
  -webkit-appearance: none; appearance: none;
}
.field select { background-image: linear-gradient(45deg, transparent 50%, var(--ink-3) 50%), linear-gradient(135deg, var(--ink-3) 50%, transparent 50%); background-position: calc(100% - 20px) 21px, calc(100% - 15px) 21px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.field textarea { resize: vertical; min-height: 90px; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.counter { text-align: right; font-size: 13px; color: var(--ink-3); margin-top: 4px; font-variant-numeric: tabular-nums; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.note { font-size: 14px; color: var(--ink-2); background: var(--surface-2); padding: 10px 12px; border-radius: 12px; margin: 4px 0 10px; line-height: 1.5; }
.form-error { color: var(--danger); font-weight: 600; font-size: 15px; margin: 6px 0; }

.stars { display: flex; gap: 4px; flex-direction: row; }
.stars input, .seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.stars label { display: grid; place-items: center; width: 50px; height: 50px; margin: 0; border-radius: 12px; color: var(--surface-3); cursor: pointer; }
.stars label svg { width: 36px; height: 36px; transition: color 120ms; }
.stars label.lit { color: var(--star); }
.stars input:focus-visible + label { outline: 2.5px solid var(--accent); }
.seg { display: grid; gap: 6px; }
.seg5 { grid-template-columns: repeat(5, 1fr); }
.seg3 { grid-template-columns: 1fr 1.5fr 1fr; }
.seg label {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 50px; margin: 0; padding: 4px 6px;
  border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2);
  font-size: 16px; font-weight: 600; text-align: center; line-height: 1.2; cursor: pointer;
}
.seg label small { font-size: 11.5px; font-weight: 550; color: var(--ink-3); margin-top: 2px; }
.seg input:checked + label { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.seg input:checked + label small { color: inherit; opacity: 0.85; }
.seg input:focus-visible + label { outline: 2.5px solid var(--accent); outline-offset: 2px; }

.thanks { align-items: center; text-align: center; padding: 34px 24px calc(var(--safe-b) + 22px); }
.thanks h2 { margin: 14px 0 6px; font-size: 24px; }
.thanks p { color: var(--ink-2); margin: 0 0 22px; font-size: 16.5px; max-width: 34ch; }
.thanks-mark { display: grid; place-items: center; width: 62px; height: 62px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-text); }
.thanks-mark svg { width: 30px; height: 30px; }

.toast {
  position: fixed; z-index: 60; left: 50%; top: calc(var(--safe-t) + 16px); transform: translateX(-50%);
  max-width: calc(100% - 32px);
  background: var(--ink); color: var(--bg);
  padding: 12px 18px; border-radius: 14px; font-size: 15px; font-weight: 600;
  box-shadow: var(--shadow-lg);
}

/* ---------- Desktop ---------- */
@media (min-width: 900px) {
  .topbar { left: 16px; right: auto; top: 16px; width: 404px; }
  .chips { margin: 0; padding: 2px 0 6px; -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); }
  .chip { height: 34px; font-size: 14px; padding: 0 12px; }
  .panel {
    left: 16px; right: auto; bottom: 16px;
    top: var(--panel-top, 150px);
    width: 404px; height: auto !important;
    border-radius: var(--r-lg); border-bottom: 1px solid var(--line);
  }
  .grab { display: none; }
  .panel-body { padding-top: 14px; }
  .map-ctrls { bottom: 34px !important; right: 16px; }
  body.sheet-full .map-ctrls { opacity: 1; pointer-events: auto; }
  .list-head { touch-action: auto; }
  .modal[open] { align-items: center; }
  .modal-card { width: 520px; max-height: min(86vh, 860px); border-radius: var(--r-lg); }
  .modal-foot { padding-bottom: 18px; }
  .maplibregl-ctrl-bottom-right { bottom: 0 !important; }
}
[tabindex="-1"]:focus { outline: none; }
