* { box-sizing: border-box; }
[hidden] { display: none !important; }
:root {
  --tint: #0a84ff;
  --glass-bg: rgba(255, 255, 255, 0.62);
  --glass-border: rgba(255, 255, 255, 0.65);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.14), 0 1px 2px rgba(0, 0, 0, 0.08);
  --text: #1c1c1e;
  --text-dim: rgba(60, 60, 67, 0.6);
  --seg-track: rgba(120, 120, 128, 0.14);
}
@media (prefers-color-scheme: dark) {
  :root {
    --glass-bg: rgba(28, 28, 30, 0.6);
    --glass-border: rgba(255, 255, 255, 0.14);
    --text: #f2f2f7;
    --text-dim: rgba(235, 235, 245, 0.6);
    --seg-track: rgba(118, 118, 128, 0.28);
  }
}

html, body {
  margin: 0; height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Helvetica Neue", sans-serif;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  /* App-like feel: no page pinch-zoom, no text selection / long-press
     callout on UI chrome, no rubber-band overscroll. The map does its
     own pinch; the search input re-enables selection below. */
  -webkit-user-select: none; user-select: none;
  -webkit-touch-callout: none;
  overscroll-behavior: none;
  touch-action: pan-x pan-y;
  background: #aad3df;
}
input { -webkit-user-select: text; user-select: text; }
@media (prefers-color-scheme: dark) {
  html, body { background: #0d1a26; }
}
#map { position: fixed; inset: 0; }

/* ---- Liquid Glass surfaces ---- */
.glass {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  backdrop-filter: blur(24px) saturate(180%);
  border: 0.5px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
}

/* ---- top bar ---- */
#topbar {
  position: fixed; top: calc(env(safe-area-inset-top) + 12px); left: 12px; right: 12px;
  display: flex; gap: 10px; z-index: 1000;
}
#searchwrap { flex: 1; position: relative; }
#search {
  width: 100%; padding: 13px 18px; border-radius: 999px;
  font-size: 16px; outline: none; color: var(--text);
}
#search::placeholder { color: var(--text-dim); }
#results {
  position: absolute; top: 54px; left: 0; right: 0;
  border-radius: 20px; overflow: hidden;
  max-height: 45vh; overflow-y: auto;
}
#results div {
  padding: 12px 18px; font-size: 14px; cursor: pointer;
  border-bottom: 0.5px solid rgba(120, 120, 128, 0.18);
}
#results div:last-child { border-bottom: none; }
#results div:active { background: rgba(120, 120, 128, 0.15); }
#locate, #langbtn, #basemap, #favbtn, #appbtn {
  width: 48px; border-radius: 999px; font-size: 19px;
  cursor: pointer; color: var(--text); flex-shrink: 0;
}
#langbtn { font-size: 14px; font-weight: 700; }
#favbtn { color: #ffcc00; font-size: 20px; }
/* The download CTA earns a tint so it reads as an action, not a filter. */
#appbtn { box-shadow: var(--glass-shadow), inset 0 0 0 1.5px var(--tint); }
#legend em { font-style: normal; }

/* ---- bottom stack: legend + duration + toggles, never overlapping ---- */
#bottomstack {
  position: fixed; left: 12px; right: 12px;
  bottom: calc(env(safe-area-inset-bottom) + 12px);
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
  z-index: 1000; pointer-events: none;
}
#bottomstack > * { pointer-events: auto; }

#legend {
  border-radius: 20px; padding: 8px 14px;
  display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center;
  font-size: 12px; color: var(--text-dim); max-width: 100%;
}
#legend span { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.d-g { background: #30d158; }
.d-a { background: #ff9f0a; }
.d-r { background: #ff453a; }
.d-dim { background: rgba(142, 142, 147, 0.55); }
.pill-demo {
  background: rgba(142, 142, 147, 0.85); color: #fff; font-style: normal;
  border-radius: 999px; padding: 1px 7px; font-size: 10px;
}

.chipgroup {
  display: flex; gap: 8px; align-items: center;
  border-radius: 999px; padding: 6px 8px;
}
.chipgroup .lbl { font-size: 12px; color: var(--text-dim); padding: 0 4px 0 8px; white-space: nowrap; }

/* iOS segmented control */
.seg {
  display: flex; background: var(--seg-track); border-radius: 999px; padding: 2px;
}
.seg button {
  border: none; background: transparent; color: var(--text);
  padding: 7px 13px; font-size: 13px; border-radius: 999px; cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
}
.seg button.on {
  background: #fff; color: #000;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
  font-weight: 600;
}
@media (prefers-color-scheme: dark) {
  .seg button.on { background: #636366; color: #fff; }
}

.toggle {
  border: none; border-radius: 999px; padding: 9px 14px; font-size: 14px;
  background: transparent; color: var(--text); cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.tg-sep {
  width: 1px; align-self: stretch; margin: 4px 0;
  background: rgba(120, 120, 128, 0.3); flex-shrink: 0;
}
.toggle.on { background: var(--tint); color: #fff; font-weight: 600; }

/* ---- markers ---- */
.cp-icon {
  border-radius: 50%; color: #fff; font-weight: 700; font-size: 12px;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}
.cp-green { background: #30d158; }
.cp-amber { background: #ff9f0a; }
.cp-red   { background: #ff453a; }
.cp-pill {
  background: rgba(142, 142, 147, 0.92); color: #fff;
  border-radius: 999px; padding: 3px 9px; font-size: 11px; font-weight: 600;
  white-space: nowrap; display: inline-flex; align-items: center; justify-content: center;
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  position: relative;
}
.cp-icon { position: relative; }
.cp-ev {
  position: absolute; top: -6px; right: -6px; width: 15px; height: 15px;
  background: #bf5af2; color: #fff; border-radius: 50%;
  font-size: 9px; font-style: normal;
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid rgba(255, 255, 255, 0.9);
}
.cp-evp { background: rgba(94, 92, 230, 0.95); }
.pill-demo.evp { background: rgba(94, 92, 230, 0.95); }
/* Filtered-out carpark: kept on the map as a faint clickable dot so a
   thin-live-coverage area (CBD) never reads as "no carparks here". */
.cp-dim {
  width: 12px; height: 12px; border-radius: 50%;
  background: rgba(142, 142, 147, 0.55);
  border: 1.5px solid rgba(255, 255, 255, 0.6);
}
.ev-icon {
  background: #bf5af2; border-radius: 12px; color: #fff; font-size: 13px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}
.ev-icon.ev-full { background: #8e8e93; }
.wash-icon {
  width: 30px; height: 30px;
  background: #30b0c7; border-radius: 12px; font-size: 15px;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}
.pp-washmeta { margin: 3px 0 5px; display: flex; align-items: center; gap: 6px; }
.wash-cat {
  color: #0e7c8c; background: rgba(48, 176, 199, 0.15);
  font-size: 11px; font-weight: 600;
  padding: 2px 8px; border-radius: 999px;
}
.wash-detail { display: block; font-size: 12.5px; margin: 5px 0 2px; }
/* Entrance-correction affordance: quiet by design — a maintenance action,
   not a call to action. */
.entfix {
  display: block; border: none; background: none; padding: 0;
  font-size: 11px; color: var(--text-dim); cursor: pointer;
  margin: 2px 0 0; text-align: left;
}
.pp-src { color: var(--text-dim); font-size: 10.5px; margin-top: 6px; }
.ev-sum {
  display: inline-block; font-size: 13px; font-weight: 700;
  padding: 4px 10px; border-radius: 999px; margin: 4px 0 6px;
  color: #0a7a2f; background: rgba(48, 209, 88, 0.15);
}
.ev-sum.full { color: #b3261e; background: rgba(255, 69, 58, 0.14); }
.ev-down { font-size: 11.5px; color: #b3261e; margin: 2px 0 0; }
.plug-down { color: #b3261e; font-size: 11px; }
.ev-oplink { cursor: pointer; }
.ev-opdl {
  color: #1668e3; background: rgba(22, 104, 227, 0.1);
  font-size: 10px; font-weight: 600;
  padding: 1px 6px; border-radius: 999px; white-space: nowrap;
}
.ev-icon.tesla { background: #e82127; }
.ev-icon.tesla.ev-full { background: #8e5a5c; }
#teslaonly.on { background: #e82127; }

.ev-cluster {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(191, 90, 242, 0.85); color: #fff;
  font-weight: 700; font-size: 12px;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
#compare-back {
  border-radius: 999px; padding: 9px 16px; font-size: 13px; font-weight: 600;
  color: var(--tint); cursor: pointer; border: none;
}
.no-res { color: var(--text-dim); cursor: default !important; }

/* cluster bubbles — neutral glass blue */
.marker-cluster, .marker-cluster div {
  background-clip: padding-box; border-radius: 50%;
}
.marker-cluster {
  background: rgba(10, 132, 255, 0.25);
}
.marker-cluster div {
  background: rgba(10, 132, 255, 0.88);
  color: #fff; font-weight: 700;
  font-family: inherit;
}

/* ---- popup (glass card) ---- */
.leaflet-popup-content-wrapper {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  backdrop-filter: blur(24px) saturate(180%);
  border: 0.5px solid var(--glass-border);
  border-radius: 20px;
  box-shadow: var(--glass-shadow);
  color: var(--text);
}
.leaflet-popup-tip {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
}
.leaflet-popup-content {
  margin: 14px 16px; font-size: 13px; line-height: 1.55; min-width: 220px;
  /* Long cards (charger lists) scroll inside; height tracks the viewport */
  max-height: min(52vh, 480px);
  overflow-y: auto;
  overflow-x: hidden; /* vertical only — no sideways wiggle */
  overscroll-behavior: contain;
  /* NOTE: -webkit-overflow-scrolling:touch is deliberately absent — it
     promotes the scroller to a compositing layer that paints over the
     custom scrollbar on iOS. */
  scrollbar-width: none;
}
.leaflet-popup-content::-webkit-scrollbar { display: none; }
.leaflet-popup-content-wrapper { position: relative; }
.scroll-thumb {
  position: absolute; right: 6px; width: 5px;
  background: rgba(100, 100, 110, 0.75); border-radius: 999px;
  pointer-events: none; z-index: 5;
  transition: top 0.05s linear;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35);
  transform: translateZ(0); /* own layer, above the iOS scroll layer */
}
.scroll-more {
  position: absolute; left: 50%; bottom: 62px; z-index: 6;
  transform: translateX(-50%) translateZ(0);
  width: 26px; height: 26px; border-radius: 50%;
  background: rgba(28, 28, 30, 0.55); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; line-height: 1; pointer-events: none;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: opacity 0.25s;
}
.pp-title { font-weight: 700; font-size: 15px; margin-bottom: 4px; letter-spacing: -0.2px; }
.pp-lots { font-size: 24px; font-weight: 800; margin: 2px 0; letter-spacing: -0.5px; }
.pp-lots small { font-size: 12px; font-weight: 500; color: var(--text-dim); }
.bar {
  height: 5px; border-radius: 999px; background: rgba(120, 120, 128, 0.2);
  overflow: hidden; margin: 5px 0 7px;
}
.bar i {
  display: block; height: 100%; border-radius: 999px;
}
.bar .cp-green { background: #30d158; }
.bar .cp-amber { background: #ff9f0a; }
.bar .cp-red { background: #ff453a; }
.chips-row { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 7px; }
.chips-row .chip {
  background: rgba(120, 120, 128, 0.14); color: var(--text);
  border-radius: 999px; padding: 3px 9px; font-size: 11.5px;
}
.pp-evhdr {
  margin-top: 9px; font-weight: 700; font-size: 13px;
  color: #a550d8;
}
.pp-cost { color: #248a3d; font-weight: 650; }
@media (prefers-color-scheme: dark) { .pp-cost { color: #30d158; } }
.pp-meta { color: var(--text-dim); font-size: 12px; margin-top: 5px; }
.pp-nav {
  display: flex; gap: 8px;
  /* stays pinned at the card's bottom while charger lists scroll */
  position: sticky; bottom: 0;
  margin-top: 10px; padding: 6px 4px;
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-radius: 14px;
}
.pp-nav a {
  flex: 1; text-align: center; background: var(--tint); color: #fff; text-decoration: none;
  padding: 9px 0; border-radius: 999px; font-size: 13px; font-weight: 600;
}
.pp-nav a.alt { background: rgba(120, 120, 128, 0.24); color: var(--text); }
.ev-cp { border-top: 0.5px solid rgba(120, 120, 128, 0.25); margin-top: 8px; padding-top: 8px; }
.ev-op { font-weight: 750; font-size: 13px; letter-spacing: -0.1px; }
.ev-opn {
  font-weight: 600; font-size: 11px; color: #a550d8;
  background: rgba(191, 90, 242, 0.14); border-radius: 999px; padding: 1px 7px;
  vertical-align: 1px;
}
.ev-point { margin: 6px 0 0 2px; }
.ev-posline { color: var(--text-dim); font-size: 12px; }
.ev-plug {
  display: flex; justify-content: space-between; gap: 4px 8px;
  font-size: 12.5px; flex-wrap: wrap; min-width: 0;
}
.ev-plug .free { color: #248a3d; font-weight: 700; }
.ev-plug .none { color: #ff453a; font-weight: 700; }
.badge {
  display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 11px;
  background: rgba(191, 90, 242, 0.16); color: #a550d8; font-weight: 600;
}
.badge.dc { background: rgba(255, 69, 58, 0.14); color: #e0362b; }

#notice {
  position: fixed; top: calc(env(safe-area-inset-top) + 64px);
  left: 12px; right: 12px; z-index: 999;
  border-radius: 14px; padding: 9px 12px;
  display: flex; align-items: center; gap: 8px;
  font-size: 12.5px; color: #7a4d00;
  background: rgba(255, 214, 10, 0.35);
  border-color: rgba(255, 214, 10, 0.5);
}
@media (prefers-color-scheme: dark) {
  #notice { color: #ffd60a; background: rgba(120, 90, 0, 0.5); }
}
#notice span { flex: 1; }
#notice button {
  border: none; background: rgba(120, 120, 128, 0.2); color: inherit;
  width: 20px; height: 20px; border-radius: 50%; font-size: 13px; line-height: 1;
  cursor: pointer; flex-shrink: 0;
}

#toast {
  position: fixed; bottom: 128px; left: 50%; transform: translateX(-50%);
  background: rgba(28, 28, 30, 0.86);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  color: #fff; padding: 12px 18px; border-radius: 18px;
  font-size: 13px; z-index: 2000; max-width: 86vw; text-align: center;
}

/* ---- destination compare list ---- */
#compare {
  border-radius: 20px; padding: 10px 12px;
  align-self: stretch; max-width: 560px;
  max-height: 38vh; overflow-y: auto;
}
#compare-head {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; margin-bottom: 4px;
}
#compare-close {
  border: none; background: rgba(120, 120, 128, 0.16); color: var(--text);
  width: 24px; height: 24px; border-radius: 50%; font-size: 15px; line-height: 1;
  cursor: pointer;
}
.cmp-row {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 2px; font-size: 13px; cursor: pointer;
  border-top: 0.5px solid rgba(120, 120, 128, 0.15);
}
.cmp-row:active { background: rgba(120, 120, 128, 0.12); }
.cmp-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmp-dist { color: var(--text-dim); font-size: 12px; flex-shrink: 0; }
.cmp-cost { font-weight: 700; flex-shrink: 0; min-width: 48px; text-align: right; }
.cmp-avail {
  flex-shrink: 0; min-width: 38px; text-align: center;
  border-radius: 8px; padding: 2px 5px; font-size: 11.5px; font-weight: 700; color: #fff;
}
.cmp-avail.ok { background: #30d158; }
.cmp-avail.bad { background: #ff453a; }
.cmp-avail.na { background: rgba(142, 142, 147, 0.9); font-weight: 500; }

#legend-x {
  border: none; background: rgba(120, 120, 128, 0.16); color: var(--text);
  width: 20px; height: 20px; border-radius: 50%; font-size: 13px; line-height: 1;
  cursor: pointer; flex-shrink: 0;
}
#legend-i {
  width: 36px; height: 36px; border-radius: 50%; font-size: 17px;
  color: var(--text-dim); cursor: pointer;
}
.recent-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 18px 6px !important; font-size: 12px !important;
  color: var(--text-dim); cursor: default !important;
}
.recent-head button {
  border: none; background: none; color: var(--tint); font-size: 12px; cursor: pointer;
}
.pp-nav a.shr {
  flex: 0 0 40px;
  display: flex; align-items: center; justify-content: center;
}

.copybtn {
  border: none; background: var(--tint); color: #fff;
  border-radius: 999px; padding: 1px 8px; font-size: 11px; cursor: pointer;
  margin-left: 2px;
}

/* ---- current-location dot ---- */
.me-wrap {
  position: relative; width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
}
.me-pulse {
  position: absolute; inset: 0; border-radius: 50%;
  background: rgba(10, 132, 255, 0.35);
  animation: mepulse 2s ease-out infinite;
}
.me-dot {
  position: relative; width: 18px; height: 18px; border-radius: 50%;
  background: #0a84ff; border: 3px solid #fff;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
}
@keyframes mepulse {
  0% { transform: scale(0.4); opacity: 0.9; }
  70% { opacity: 0; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* ---- mobile ---- */
@media (max-width: 640px) {
  /* Four round buttons plus the field: trim them so search keeps ~170px. */
  #topbar { gap: 7px; }
  #locate, #langbtn, #favbtn, #appbtn { width: 40px; font-size: 17px; }
  #langbtn { font-size: 13px; }
  #search { padding: 13px 14px; }
  #toggles { overflow-x: auto; scrollbar-width: none; }
  #toggles::-webkit-scrollbar { display: none; }
  #toggles .toggle { flex: 0 0 auto; white-space: nowrap; }
  #legend { font-size: 11px; gap: 5px 10px; align-self: stretch; padding: 8px 12px; }
  .chipgroup { align-self: stretch; }
  .chipgroup .lbl { font-size: 11px; padding-left: 6px; }
  #duration .seg { flex: 1; }
  #duration .seg button { flex: 1; padding: 8px 0; font-size: 13px; }
  /* Five chips no longer fit side by side, so the row scrolls instead of
     squeezing each one down to an unreadable stub. */
  #toggles .toggle { text-align: center; padding: 9px 10px; }
  .leaflet-control-zoom { display: none; } /* pinch zoom instead */
  #toast { bottom: calc(env(safe-area-inset-bottom) + 175px); }
  .leaflet-popup-content { max-height: 46vh; }
}

/* ---- app gate: every Pro feature funnels into this sheet ---- */
.toggle.locked { color: var(--text-dim); }
.toggle.locked::before { content: '🔒'; font-size: 11px; margin-right: 3px; }

.lockbtn {
  border: none; background: var(--tint); color: #fff;
  border-radius: 14px; padding: 8px 14px; font-size: 12.5px; font-weight: 600;
  cursor: pointer; width: 100%; margin-top: 9px; line-height: 1.35;
}
.lockbtn b { display: block; font-size: 13px; }
.lockbtn span { display: block; font-size: 11px; font-weight: 500; opacity: 0.85; }
#compare-unlock { border-radius: 999px; padding: 10px 14px; }
.cmp-locked {
  filter: blur(3.5px); opacity: 0.6;
  /* still clickable — the tap is what opens the download sheet */
}

#veh-row { display: flex; gap: 10px; margin-top: 16px; }
#veh-row button {
  flex: 1; border: none; border-radius: 16px; padding: 16px 8px;
  font-size: 15px; font-weight: 650; cursor: pointer;
  background: rgba(120, 120, 128, 0.14); color: var(--text);
}
#veh-row button:active { background: var(--tint); color: #fff; }

#appwall, #vehwall {
  position: fixed; inset: 0; z-index: 3000;
  background: rgba(0, 0, 0, 0.45);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  display: flex; align-items: flex-end; justify-content: center;
  padding: 12px calc(12px + env(safe-area-inset-left)) calc(12px + env(safe-area-inset-bottom));
}
@media (min-width: 641px) { #appwall, #vehwall { align-items: center; } }
.aw-card {
  position: relative; border-radius: 24px; padding: 22px 20px 18px;
  width: 100%; max-width: 420px; max-height: 86vh; overflow-y: auto;
  text-align: center;
}
.aw-icon { font-size: 40px; line-height: 1; }
.aw-card b { display: block; font-size: 18px; margin-top: 8px; letter-spacing: -0.3px; }
#aw-feature, #veh-sub {
  margin: 6px 0 0; font-size: 13px; color: var(--text-dim); line-height: 1.5;
}
#aw-list {
  list-style: none; margin: 14px 0 4px; padding: 0;
  text-align: left; font-size: 12.5px; line-height: 1.55; color: var(--text);
}
#aw-list li {
  padding: 7px 2px;
  border-top: 0.5px solid rgba(120, 120, 128, 0.2);
}
#aw-cta {
  display: block; margin-top: 14px; padding: 13px 0;
  background: var(--tint); color: #fff; text-decoration: none;
  border-radius: 999px; font-size: 15px; font-weight: 650;
}
#aw-later {
  border: none; background: none; color: var(--text-dim);
  font-size: 13px; padding: 12px 0 2px; cursor: pointer; width: 100%;
}
#aw-close {
  position: absolute; top: 12px; right: 12px;
  border: none; background: rgba(120, 120, 128, 0.18); color: var(--text);
  width: 26px; height: 26px; border-radius: 50%; font-size: 15px; line-height: 1;
  cursor: pointer;
}

/* leaflet zoom control skinning */
.leaflet-control-zoom a {
  background: var(--glass-bg) !important;
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  backdrop-filter: blur(24px) saturate(180%);
  color: var(--text) !important;
  border: none !important;
}

#fbbtn { position: fixed; right: 12px; bottom: 148px; z-index: 1000; }
#washbtn { position: fixed; right: 12px; bottom: 196px; z-index: 1000; }
#washbtn.on { background: rgba(48, 176, 199, 0.9); }
#washbtn.locked { opacity: 0.75; }
#fbwall { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 1200;
  display: flex; align-items: center; justify-content: center; }
#fb-card { background: var(--panel, #fff); color: inherit; border-radius: 16px;
  padding: 18px; width: min(92vw, 380px); display: flex; flex-direction: column; gap: 10px; }
#fb-card h3 { margin: 0; font-size: 1.05em; }
#fb-card select, #fb-card textarea, #fb-card input {
  width: 100%; box-sizing: border-box; padding: 9px; border-radius: 10px;
  border: 1px solid rgba(128,128,128,.4); font: inherit; background: transparent; color: inherit; }
#fb-row { display: flex; gap: 8px; }
#fb-row button { flex: 1; padding: 10px; border: 0; border-radius: 10px; font: inherit; }
#fb-send { background: #1668e3; color: #fff; font-weight: 600; }
#fb-close { background: rgba(128,128,128,.18); color: inherit; }
#fb-done { text-align: center; padding: 6px; }
.favstar { cursor: pointer; color: #ffcc00; font-size: 15px; }
#favwall { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 1200;
  display: flex; align-items: center; justify-content: center; }
#fav-card { background: var(--glass-bg); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
  border-radius: 16px; padding: 16px; width: min(92vw, 360px); max-height: 70vh; overflow-y: auto; }
#fav-card h3 { margin: 0 0 10px; font-size: 1.05em; }
.fav-row { display: flex; align-items: center; justify-content: space-between;
  padding: 9px 4px; border-bottom: 0.5px solid rgba(120,120,128,.2); cursor: pointer; }
.fav-row .fav-del { border: 0; background: transparent; color: var(--text-dim); cursor: pointer; }
.busy-hdr { font-size: 12px; font-weight: 600; margin-top: 6px; }
.busy-hdr small { font-weight: 400; color: var(--text-dim); }
.busy-bars { display: flex; align-items: flex-end; gap: 1.5px; height: 44px; margin-top: 4px; }
.busy-bars i { flex: 1; border-radius: 2px 2px 0 0; min-height: 3px; }
.busy-bars .bh-green { background: #30d158; }
.busy-bars .bh-amber { background: #ff9f0a; }
.busy-bars .bh-red { background: #ff453a; }
.busy-bars .bh-none { background: rgba(120,120,128,.25); height: 3px; }
.busy-bars .bh-cur { outline: 1.5px solid var(--tint); outline-offset: 1px; }
.busy-x { display: flex; justify-content: space-between; font-size: 9px; color: var(--text-dim); }
.busy-cmp { font-size: 11.5px; margin-top: 5px; }
.busy-ok { color: #1f9d55; }
.busy-mid { color: var(--text-dim); }
.busy-bad { color: #e0443e; }

/* ---------------- find my car (friends) ---------------- */
.car-icon {
  width: 40px; height: 40px; border-radius: 50%;
  background: #0f766e; display: flex; align-items: center; justify-content: center;
  font-size: 20px; border: 2.5px solid #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .35);
}
#parked-note {
  width: 100%; margin: 6px 0; padding: 7px 9px; box-sizing: border-box;
  border-radius: 9px; border: 1px solid rgba(125, 125, 125, .35);
  background: transparent; color: inherit; font-size: 13px;
}
.pp-eta { margin: 4px 0 2px; font-size: 12.5px; font-weight: 600; color: #0f766e; }
@media (prefers-color-scheme: dark) {
  .pp-eta { color: #2dd4bf; }
}
