/* vagou.la — application styles, built on the design-system tokens.
   Tokens live in css/tokens.css (+ tokens/*). Reference semantic aliases. */

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: var(--font-sans);
  color: var(--text-body);
  background: var(--bg-app);
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
}
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--text-strong); margin: 0; }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--text-muted); }
.subtle { color: var(--text-subtle); }

/* ---------- Layout ---------- */
.app { display: flex; flex-direction: column; height: 100vh; }
.app-body { flex: 1; display: flex; min-height: 0; }

/* ---------- App bar ---------- */
.appbar {
  display: flex; align-items: center; gap: var(--space-4);
  height: 60px; padding: 0 var(--space-5);
  background: var(--surface); border-bottom: 1px solid var(--border);
  position: relative; z-index: var(--z-header);
}
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.brand img { width: 26px; height: 32px; display: block; }
.brand .wordmark {
  font-family: var(--font-display); font-weight: 800; font-size: 20px;
  color: var(--ink-900); letter-spacing: var(--ls-tight);
}
.appbar .spacer { flex: 1; }
.appbar .user { display: flex; align-items: center; gap: 10px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 16px; border-radius: var(--r-md);
  font-family: var(--font-sans); font-weight: 700; font-size: var(--fs-sm);
  border: 1px solid transparent; cursor: pointer; text-decoration: none;
  transition: background var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out),
              transform var(--dur-fast) var(--ease-out);
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--brand); color: var(--text-on-brand); }
.btn-primary:hover { background: var(--brand-hover); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-secondary { background: var(--surface); color: var(--text-body); border-color: var(--border-strong); }
.btn-secondary:hover { background: var(--bg-well); }
.btn-ghost { background: transparent; color: var(--text-body); }
.btn-ghost:hover { background: var(--bg-well); }
.btn-sm { height: 34px; padding: 0 12px; font-size: var(--fs-xs); }
.btn-lg { height: 50px; padding: 0 22px; font-size: var(--fs-base); }
.btn-full { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn .ic { width: 18px; height: 18px; }

.icon-btn {
  width: 40px; height: 40px; border-radius: var(--r-md);
  border: 1px solid var(--border); background: var(--surface);
  box-shadow: var(--shadow-md); cursor: pointer;
  display: grid; place-items: center; color: var(--text-body);
}
.icon-btn:hover { background: var(--bg-well); }

/* ---------- Google button ---------- */
.btn-google {
  background: var(--surface); color: var(--text-body); border-color: var(--border-strong);
  font-weight: 600;
}
.btn-google:hover { background: var(--bg-well); }

/* ---------- Segmented toggle ---------- */
.segmented {
  display: inline-flex; padding: 3px; gap: 3px;
  background: var(--bg-well); border-radius: var(--r-pill);
}
.segmented button {
  border: none; background: transparent; cursor: pointer;
  font-family: var(--font-sans); font-weight: 700; font-size: var(--fs-sm);
  color: var(--text-muted); padding: 7px 16px; border-radius: var(--r-pill);
  transition: background var(--dur-fast), color var(--dur-fast);
}
.segmented button.on { background: var(--surface); color: var(--text-strong); box-shadow: var(--shadow-sm); }
.segmented.tinted button.on[data-v="rent"] { background: var(--rent); color: #fff; }
.segmented.tinted button.on[data-v="sale"] { background: var(--sale); color: #fff; }

/* ---------- Chips ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  height: 34px; padding: 0 14px; border-radius: var(--r-pill);
  border: 1px solid var(--border-strong); background: var(--surface);
  font-size: var(--fs-sm); font-weight: 600; color: var(--text-body);
  cursor: pointer; white-space: nowrap;
  transition: background var(--dur-fast), border-color var(--dur-fast);
}
.chip:hover { background: var(--bg-well); }
.chip.selected { background: var(--brand-soft); border-color: var(--jade-200); color: var(--brand-text); }
.chip .x { display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 999px; }
.chip .x:hover { background: rgba(0,0,0,.08); }

/* ---------- Badges ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  height: 22px; padding: 0 9px; border-radius: var(--r-pill);
  font-size: var(--fs-2xs); font-weight: 700; letter-spacing: var(--ls-wide);
  text-transform: uppercase;
}
.badge-rent { background: var(--rent-soft); color: var(--rent-text); }
.badge-sale { background: var(--sale-soft); color: var(--sale-text); }
.badge-brand { background: var(--brand-soft); color: var(--brand-text); }
.badge-neutral { background: var(--bg-well); color: var(--text-muted); }

/* ---------- Status pill ---------- */
.status { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-xs); font-weight: 600; color: var(--text-muted); }
.status .dot { width: 8px; height: 8px; border-radius: 999px; background: var(--text-subtle); }
.status.active .dot { background: var(--status-active); }
.status.active { color: var(--brand-text); }
.status.inactive .dot { background: var(--status-inactive); }
.status.closed .dot { background: var(--status-closed); }
.status.closed { color: var(--sale-text); }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: var(--space-4); }
.field > label { font-size: var(--fs-xs); font-weight: 600; color: var(--text-muted); }
.input, .select, .textarea {
  width: 100%; height: 44px; padding: 0 12px; border-radius: var(--r-md);
  border: 1px solid var(--border); background: var(--surface);
  font-family: var(--font-sans); font-size: var(--fs-sm); color: var(--text-strong);
}
.textarea { height: auto; padding: 10px 12px; resize: vertical; line-height: var(--lh-normal); }
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--border-focus);
  box-shadow: 0 0 0 var(--ring-width) var(--ring);
}
.field .err { color: var(--danger-500); font-size: var(--fs-xs); }
.input-prefixed { position: relative; }
.input-prefixed .prefix { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--text-subtle); font-family: var(--font-mono); font-size: var(--fs-sm); }
.input-prefixed .input { padding-left: 36px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }

/* ---------- Cards / panels ---------- */
.panel { background: var(--surface); border-radius: var(--r-lg); border: 1px solid var(--border); box-shadow: var(--shadow-md); }

/* ---------- Listing card (row) ---------- */
.lcard {
  display: flex; gap: 12px; padding: 10px; border-radius: var(--r-lg);
  border: 1px solid var(--border); background: var(--surface);
  cursor: pointer; text-decoration: none; color: inherit;
  transition: box-shadow var(--dur-fast), transform var(--dur-fast), border-color var(--dur-fast);
}
.lcard:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.lcard.active { border-color: var(--jade-300); box-shadow: var(--shadow-md), 0 0 0 2px var(--ring); }
.lcard .thumb { width: 124px; height: 104px; flex: none; border-radius: var(--r-md); overflow: hidden; background: var(--bg-well); position: relative; }
.lcard .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lcard .body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.lcard .title { font-family: var(--font-sans); font-weight: 600; font-size: var(--fs-sm); color: var(--text-strong); line-height: var(--lh-snug); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.lcard .loc { font-size: var(--fs-xs); color: var(--text-muted); }
.lcard .price { font-family: var(--font-mono); font-weight: 600; font-size: var(--fs-lg); color: var(--text-strong); margin-top: auto; }
.lcard .price .per { font-size: 0.55em; color: var(--text-muted); }
.attrs { display: flex; gap: 12px; font-size: var(--fs-xs); color: var(--text-muted); }
.attrs span { display: inline-flex; align-items: center; gap: 4px; }
.attrs .ic { width: 14px; height: 14px; }

/* No-photo placeholder */
.photoph {
  width: 100%; height: 100%; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--jade-50), var(--surface-3));
  color: var(--jade-300);
}
.photoph .lbl { font-size: var(--fs-2xs); color: var(--text-subtle); margin-top: 4px; }
.photoph-inner { display: flex; flex-direction: column; align-items: center; }

/* ---------- Home split view ---------- */
.results-panel { width: 430px; flex: none; display: flex; flex-direction: column; border-right: 1px solid var(--border); background: var(--surface); }
.filter-bar { padding: 14px 18px; border-bottom: 1px solid var(--border); display: flex; flex-direction: column; gap: 12px; }
.filter-row { display: flex; align-items: center; gap: 10px; }
.chip-scroll { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; }
.active-chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.link-btn { border: none; background: none; color: var(--brand-text); font-family: var(--font-sans); font-weight: 700; font-size: var(--fs-xs); cursor: pointer; padding: 4px 6px; }
.result-head { padding: 12px 18px 6px; display: flex; align-items: baseline; justify-content: space-between; }
.result-head .count { font-family: var(--font-display); font-weight: 800; font-size: 17px; color: var(--ink-900); }
.results-list { flex: 1; overflow-y: auto; padding: 6px 18px 18px; display: flex; flex-direction: column; gap: 12px; }
.map-col { flex: 1; min-width: 0; position: relative; }
#map { position: absolute; inset: 0; background: #e9eef0; }

.empty { text-align: center; padding: 48px 20px; color: var(--text-muted); }
.empty .circle { width: 56px; height: 56px; border-radius: 999px; background: var(--surface-3); display: grid; place-items: center; margin: 0 auto 14px; color: var(--text-subtle); }
.empty h3 { font-size: 18px; margin-bottom: 6px; }

/* ---------- Map controls / pins / cluster (from design kit) ---------- */
.leaflet-container { font-family: var(--font-sans); background: #e9eef0; }
.map-controls { position: absolute; right: 14px; bottom: 22px; display: flex; flex-direction: column; gap: 8px; z-index: 500; }
.vg-pin-wrap { width: 0 !important; height: 0 !important; background: none; border: none; overflow: visible; }
.vg-pricepin {
  position: absolute; left: 0; bottom: 6px; transform: translateX(-50%); white-space: nowrap;
  background: var(--surface); border: 1.5px solid var(--border); border-radius: 999px; padding: 4px 10px;
  font-family: var(--font-mono); font-weight: 600; font-size: 12.5px; color: var(--text-strong);
  box-shadow: var(--shadow-pin); cursor: pointer;
}
.vg-pricepin .vg-tail { position: absolute; left: 50%; bottom: -5px; width: 9px; height: 9px; background: inherit; border-right: 1.5px solid var(--border); border-bottom: 1.5px solid var(--border); transform: translateX(-50%) rotate(45deg); }
.vg-pricepin.rent { background: var(--rent-500); border-color: var(--rent-600); color: #fff; }
.vg-pricepin.rent .vg-tail { border-color: var(--rent-600); }
.vg-pricepin.sale { background: var(--sale-500); border-color: var(--sale-600); color: #fff; }
.vg-pricepin.sale .vg-tail { border-color: var(--sale-600); }
.vg-pricepin.sel { transform: translateX(-50%) scale(1.08); z-index: 1000; box-shadow: var(--shadow-pin), 0 0 0 3px var(--ring); }
.vg-cluster-wrap { background: none !important; border: none !important; }
.vg-cluster {
  width: 52px; height: 52px; border-radius: 999px; display: grid; place-items: center; color: #fff;
  background: var(--jade-500); font-family: var(--font-display); font-weight: 800; font-size: 17px;
  box-shadow: var(--shadow-pin), 0 0 0 6px rgba(12,168,107,.22); cursor: pointer;
}

/* Strip Leaflet's default popup chrome so our card isn't double-wrapped */
.leaflet-popup.vg-popup .leaflet-popup-content-wrapper { background: transparent; box-shadow: none; padding: 0; border-radius: 0; }
.leaflet-popup.vg-popup .leaflet-popup-content { margin: 0; width: auto !important; }
.leaflet-popup.vg-popup .leaflet-popup-tip-container { display: none; }
/* Leaflet sets a global link color on .leaflet-container a — keep our button text white */
.leaflet-container a.btn-primary, .popup-card a.btn-primary { color: var(--text-on-brand); }

/* Map popup card */
.popup-card { width: 248px; background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-popup); overflow: hidden; }
.popup-card .ph { height: 124px; background: var(--bg-well); position: relative; }
.popup-card .ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.popup-card .ph .badge { position: absolute; top: 8px; left: 8px; }
.popup-card .ph .close { position: absolute; top: 8px; right: 8px; width: 26px; height: 26px; border-radius: 999px; border: none; background: rgba(255,255,255,.92); cursor: pointer; display: grid; place-items: center; }
.popup-card .pc-body { padding: 10px 12px 12px; }
.popup-card .pc-price { font-family: var(--font-mono); font-weight: 600; font-size: var(--fs-h4); color: var(--text-strong); }
.popup-card .pc-price .per { font-size: .55em; color: var(--text-muted); }
.popup-card .pc-title { font-size: var(--fs-sm); font-weight: 600; color: var(--text-strong); margin: 2px 0 8px; line-height: var(--lh-snug); }

/* ---------- Detail page ---------- */
.detail-wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 24px 20px 64px; display: grid; grid-template-columns: 1fr 360px; gap: 28px; }
.gallery { border-radius: var(--r-lg); overflow: hidden; background: var(--bg-well); aspect-ratio: 16/10; }
.gallery img { width: 100%; height: 100%; object-fit: cover; display: block; }
.detail-badges { display: flex; gap: 8px; margin: 16px 0 8px; }
.detail-price { font-family: var(--font-mono); font-weight: 600; font-size: var(--fs-h2); color: var(--text-strong); }
.detail-price .per { font-size: .5em; color: var(--text-muted); }
.detail-title { font-size: var(--fs-h3); margin: 6px 0 16px; }
.attr-card { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding: 16px; }
.attr-card .a { display: flex; flex-direction: column; gap: 2px; }
.attr-card .a .v { font-family: var(--font-mono); font-weight: 600; font-size: var(--fs-lg); color: var(--text-strong); }
.attr-card .a .k { font-size: var(--fs-xs); color: var(--text-muted); }
.desc { margin: 20px 0; line-height: var(--lh-relaxed); color: var(--text-body); }
.detail-map { height: 280px; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--border); }
.contact-rail { position: sticky; top: 20px; align-self: start; padding: 18px; }
.contact-rail h3 { font-size: var(--fs-h4); margin-bottom: 4px; }

.thin-link { display: inline-flex; align-items: center; gap: 6px; color: var(--text-muted); text-decoration: none; font-size: var(--fs-sm); font-weight: 600; margin-bottom: 12px; }
.thin-link:hover { color: var(--brand-text); }

/* ---------- Generic page container ---------- */
.page { width: 100%; max-width: 920px; margin: 0 auto; padding: 28px 20px 64px; }
.page-narrow { max-width: 720px; }
.page h1 { font-size: var(--fs-h2); margin-bottom: 6px; }
.section { margin-bottom: 28px; }
.section-num { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-text); font-weight: 800; font-size: var(--fs-xs); margin-right: 8px; }
.section-title { display: flex; align-items: center; font-family: var(--font-display); font-weight: 700; font-size: var(--fs-h4); color: var(--text-strong); margin-bottom: 14px; }

/* draw-on-map */
.draw-map { height: 360px; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--border); position: relative; }
.draw-toolbar { display: flex; gap: 8px; margin: 10px 0; flex-wrap: wrap; }
.draw-hint { background: var(--map-panel); border: 1px solid var(--border); border-radius: var(--r-md); padding: 8px 12px; font-size: var(--fs-xs); color: var(--text-muted); margin-top: 8px; }
.loc-confirm { display: none; align-items: center; gap: 6px; color: var(--brand-text); font-weight: 700; font-size: var(--fs-sm); margin-top: 8px; }
.loc-confirm.show { display: inline-flex; }

/* sticky form footer */
.form-footer { position: sticky; bottom: 0; background: var(--surface); border-top: 1px solid var(--border); padding: 14px 0; display: flex; gap: 10px; justify-content: flex-end; }

/* photos upload preview */
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }
.photo-grid .thumb { aspect-ratio: 1; border-radius: var(--r-md); overflow: hidden; background: var(--bg-well); }
.photo-grid .thumb img { width: 100%; height: 100%; object-fit: cover; }

/* dashboard */
.dash-list { display: flex; flex-direction: column; gap: 12px; }
.dash-row { display: flex; align-items: center; gap: 14px; padding: 12px; }
.dash-row .thumb { width: 88px; height: 64px; border-radius: var(--r-md); overflow: hidden; background: var(--bg-well); flex: none; }
.dash-row .thumb img { width: 100%; height: 100%; object-fit: cover; }
.dash-row .grow { flex: 1; min-width: 0; }

/* messages */
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: var(--z-toast); background: var(--ink-900); color: #fff; padding: 12px 18px; border-radius: var(--r-pill); box-shadow: var(--shadow-lg); font-size: var(--fs-sm); font-weight: 600; }

/* auth modal / card */
.auth-card { max-width: 420px; margin: 64px auto; padding: 32px; text-align: center; }
.auth-card .logo { width: 40px; height: 50px; margin: 0 auto 16px; }
.auth-card h1 { font-size: var(--fs-h3); margin-bottom: 8px; }
.auth-card p { color: var(--text-muted); margin-bottom: 24px; }

/* ---------- Filter sheet / modal ---------- */
.sheet-overlay { position: fixed; inset: 0; background: var(--overlay); z-index: var(--z-modal); display: none; align-items: center; justify-content: center; }
.sheet-overlay.open { display: flex; }
.sheet-panel { width: min(520px, 92vw); padding: 24px; max-height: 88vh; overflow: auto; }

/* ---------- Staff dashboard ---------- */
.dash { width: 100%; max-width: 1100px; margin: 0 auto; padding: 28px 20px 64px; }
.dash-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.dash-head h1 { font-size: var(--fs-h2); margin-bottom: 4px; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; margin: 22px 0 28px; }
.stat-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 16px; box-shadow: var(--shadow-sm); }
.ic-chip { width: 34px; height: 34px; border-radius: var(--r-md); background: var(--brand-soft); color: var(--brand-text); display: grid; place-items: center; }
.ic-chip.sm { width: 28px; height: 28px; border-radius: var(--r-sm); }
.ic-chip .ic { width: 18px; height: 18px; }
.stat-card .ic-chip { margin-bottom: 10px; }
.stat-card .val { font-family: var(--font-display); font-weight: 800; font-size: 28px; color: var(--ink-900); line-height: 1; }
.stat-card .lbl { font-size: var(--fs-xs); color: var(--text-muted); margin-top: 5px; }
.stat-card .sub { font-size: var(--fs-2xs); color: var(--text-subtle); margin-top: 2px; }
.dash-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.dash-panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 18px; box-shadow: var(--shadow-sm); }
.dash-panel h2 { font-size: var(--fs-h4); margin-bottom: 14px; }
.bar-row { display: grid; grid-template-columns: 116px 1fr 42px; align-items: center; gap: 10px; margin-bottom: 11px; font-size: var(--fs-xs); }
.bar-row .bl { color: var(--text-body); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-track { height: 8px; background: var(--surface-3); border-radius: 999px; overflow: hidden; }
.bar-fill { height: 100%; background: var(--brand); border-radius: 999px; min-width: 2px; }
.bar-row .bn { font-family: var(--font-mono); font-weight: 600; text-align: right; color: var(--text-strong); }
.lead-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.lead-row:last-child { border-bottom: none; }
.lead-row .grow { min-width: 0; }
.lead-name { font-size: var(--fs-sm); font-weight: 600; color: var(--text-strong); }
.lead-meta { font-size: var(--fs-xs); color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Geolocation banner ---------- */
.geo-banner {
  position: absolute; top: 14px; left: 14px; z-index: 500; display: inline-flex; align-items: center; gap: 6px;
  max-width: 70%; background: var(--map-panel); backdrop-filter: blur(6px); border: 1px solid var(--border);
  border-radius: var(--r-pill); padding: 7px 12px; font-size: var(--fs-xs); font-weight: 600;
  color: var(--text-strong); box-shadow: var(--shadow-sm);
}
.geo-banner .ic { width: 15px; height: 15px; color: var(--brand); flex: none; }
.geo-banner .txt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Responsive helpers ---------- */
.lbl-short { display: none; }
.mobile-only { display: none; }
.chip-wrap { display: flex; flex-wrap: wrap; gap: 8px; }
.fab-filters { display: none; }
/* Map view fills the viewport and never scrolls the page */
.app--fixed { height: 100dvh; overflow: hidden; }

@media (max-width: 880px) {
  .detail-wrap { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .dash-cols { grid-template-columns: 1fr; }

  /* The desktop left panel is hidden; filters move into the bottom sheet */
  .results-panel { display: none; }
  .mobile-only { display: block; }

  /* Compact app bar so it never wraps */
  .appbar { gap: 8px; padding: 0 12px; }
  .appbar .brand .wordmark { font-size: 18px; }
  .lbl-full { display: none; }
  .lbl-short { display: inline; }
  .btn-text { display: none; }

  /* Floating "search & filter" button */
  .fab-filters {
    display: inline-flex; align-items: center; gap: 8px; position: absolute; left: 50%; bottom: 20px;
    transform: translateX(-50%); z-index: 600; height: 46px; padding: 0 20px; border: none; cursor: pointer;
    border-radius: var(--r-pill); background: var(--brand); color: #fff;
    font-family: var(--font-sans); font-weight: 700; font-size: var(--fs-sm); box-shadow: var(--shadow-lg);
  }
  .fab-filters .ic { width: 18px; height: 18px; }

  /* Filter modal becomes a bottom sheet */
  .sheet-overlay.open { align-items: flex-end; }
  .sheet-panel { width: 100%; max-width: 100%; border-radius: var(--r-2xl) var(--r-2xl) 0 0; max-height: 86vh; padding: 20px 18px 24px; }

  /* Lift the zoom/locate controls above the FAB */
  .map-controls { bottom: 78px; }
}
