/* Components — markers, tiles, popup, filter pills, dropdown items, buttons */

/* =================================================================
   MAP MARKERS — city cluster pill
   ================================================================= */

/* Outer host — positioned by Leaflet's translate3d. No transforms or transitions here. */
.marker-city-host {
  /* intentionally empty — Leaflet owns position; visual lives on inner .marker-city */
}

.marker-city {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-lg);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  background: var(--chrome);
  color: var(--text-primary);
  box-shadow: var(--shadow-marker);
  border: 1.5px solid var(--accent);
  /* Inner element is centered on the host's anchor point */
  transform: translate(-50%, -50%);
  pointer-events: auto;
  cursor: pointer;
  transition: transform var(--duration-fast) var(--easing);
}

.marker-city--free   { border: 2.5px solid var(--status-free);   }
.marker-city--medium { border: 2.5px solid var(--status-medium); }
.marker-city--full   { border: 2.5px solid var(--status-full);   }

.marker-city--no-data {
  border: 1.5px solid var(--accent);
}

.marker-city-dot   { opacity: 0.5; font-weight: 400; }
.marker-city-count { font-family: var(--font-mono); font-size: 12px; color: var(--text-secondary); }

.marker-city:hover { transform: translate(-50%, -50%) scale(1.05); }

/* =================================================================
   MAP MARKERS — unified parking pin (teardrop with number inside)
   ================================================================= */

/* Outer host — positioned by Leaflet's translate3d. No transforms or transitions. */
.marker-pin-host {
  /* intentionally empty — Leaflet owns position; visual lives on inner .marker-pin */
}

/* Inner visual element — owns transforms, hover, transitions */
.marker-pin {
  display: block;
  cursor: pointer;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.25));
  transition: transform var(--duration-fast) var(--easing);
}

.marker-pin .marker-pin-body {
  fill: currentColor;
  stroke: rgba(255, 255, 255, 0.7);
  stroke-width: 1.5;
  stroke-linejoin: round;
}

.marker-pin .marker-pin-num {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  fill: #ffffff;
  letter-spacing: -0.02em;
  pointer-events: none;
}

.marker-pin--free   { color: var(--status-free); }
.marker-pin--medium { color: var(--status-medium); }
.marker-pin--full   { color: var(--status-full); }
.marker-pin--static { color: var(--accent); }

/* Sensor-suspect overlays the dashed border on top of the status fill */
.marker-pin--suspect .marker-pin-body {
  stroke: rgba(255, 255, 255, 0.95);
  stroke-width: 2;
  stroke-dasharray: 4 3;
}

.marker-pin:hover { transform: scale(1.08); }

/* Selected pin in city mode: indicated by the popup above it, not by the pin itself.
   In deep-dive: indicated by a separate accent-blue arrow marker (see .marker-arrow). */

/* Accent-blue downward arrow above the selected parking — deep-dive only */
.marker-arrow-host {
  pointer-events: none;
}

.marker-arrow {
  display: block;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.25));
}

.marker-arrow svg { fill: var(--accent); display: block; }

/* Faded marker — applied when filter excludes it */
.leaflet-marker-icon.is-faded {
  opacity: 0.30;
  pointer-events: none;
  transition: opacity var(--duration) var(--easing);
}

/* Selected city pill — subtle scale (lives on inner element) */
.marker-city-host.is-selected .marker-city {
  transform: translate(-50%, -50%) scale(1.08);
}

/* =================================================================
   HOME SCREEN
   ================================================================= */

.home-title {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.25;
}

.home-city-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border);
}

.home-city-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  column-gap: 8px;
  width: 100%;
  padding: 18px 4px;
  background: transparent;
  text-align: left;
  border-bottom: 1px solid var(--border);
  transition: background var(--duration-fast) var(--easing),
              padding-left var(--duration-fast) var(--easing);
}

.home-city-row:hover {
  background: var(--chrome-strong);
  padding-left: 12px;
  padding-right: 12px;
}

.home-city-name {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-primary);
}

.home-city-dot-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 14px;
}

.home-city-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--status-free);
  display: inline-block;
  animation: home-dot-pulse 2.4s ease-in-out infinite;
}

@keyframes home-dot-pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.25; }
}

.home-city-meta {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
  text-align: right;
  min-width: 28px;
}

.home-about-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  background: transparent;
  padding: 8px 18px;
  border-radius: var(--radius-lg);
  transition: color var(--duration-fast) var(--easing),
              background var(--duration-fast) var(--easing);
}
.home-about-link:hover { color: var(--text-primary); background: var(--chrome-strong); }

/* About page (full screen) */
.about-title {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.25;
}

.about-body {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0;
}

.about-body em { font-style: normal; color: var(--text-muted); }

.about-back {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  background: transparent;
  transition: color var(--duration-fast) var(--easing),
              background var(--duration-fast) var(--easing);
}
.about-back:hover { color: var(--text-primary); background: var(--chrome-strong); }
.about-back .back-arrow { font-size: 16px; line-height: 1; }

/* =================================================================
   SIDEBAR HEADER (back + filter, city mode)
   ================================================================= */

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 10px 6px;
  min-height: 40px;
}

.sidebar-back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--duration-fast) var(--easing),
              background var(--duration-fast) var(--easing);
}

.sidebar-back:hover { color: var(--text-primary); background: var(--chrome-strong); }

.sidebar-back span:first-child { font-size: 16px; line-height: 1; }

.sidebar-back[disabled] { opacity: 0.5; pointer-events: none; }

/* When back is hidden, filter-control sticks to the right edge naturally via flex */

/* =================================================================
   FILTER SECTION — collapsible at top of sidebar/drawer
   ================================================================= */

.filter-section {
  flex: 0 0 auto;
  padding: 10px 12px 8px;
  border-bottom: 1px solid var(--border);
  background: transparent;
}

.filter-section[hidden] { display: none; }

.filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  position: relative;     /* anchor for the absolutely-centered drawer-collapse */
}

.filter-bar-spacer { flex: 1 1 auto; }

.sidebar-back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  background: transparent;
  transition: color var(--duration-fast) var(--easing),
              background var(--duration-fast) var(--easing);
}
.sidebar-back:hover { color: var(--text-primary); background: var(--chrome-strong); }
.sidebar-back .back-arrow { font-size: 16px; line-height: 1; }
.sidebar-back[disabled] { opacity: 0.5; pointer-events: none; }
.sidebar-back[hidden] { display: none; }

.filter-clear {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--chrome-strong);
  color: var(--text-secondary);
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background var(--duration-fast) var(--easing),
              color var(--duration-fast) var(--easing);
}
.filter-clear:hover { background: var(--border-strong); color: var(--text-primary); }
.filter-clear[hidden] { display: none; }

/* Drawer collapse arrow (mobile only) — small chrome-strong circle, absolutely
   centred in the filter bar so it stays put regardless of which other buttons
   are visible. Uses ▾ / ▴ small-triangle glyphs in their natural orientation
   (no CSS rotation) — same vocabulary as the dropdown carets. */
.drawer-collapse {
  display: none; /* shown only on mobile in city mode via media query */
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--chrome-strong);
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1;
  align-items: center;
  justify-content: center;
  transition: color var(--duration-fast) var(--easing),
              background var(--duration-fast) var(--easing);
}
.drawer-collapse:hover { background: var(--border-strong); color: var(--text-primary); }
.drawer-collapse[hidden] { display: none !important; }
.drawer-collapse-glyph {
  display: inline-block;
  font-size: 12px;
  line-height: 1;
}

.filter-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-lg);
  background: var(--chrome-strong);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 500;
  transition: background var(--duration-fast) var(--easing),
              color var(--duration-fast) var(--easing);
}
.filter-toggle:hover { background: var(--border-strong); color: var(--text-primary); }
.filter-toggle .caret { font-size: 10px; color: var(--text-muted); transition: transform var(--duration-fast) var(--easing); }
.filter-section.is-open .filter-toggle .caret { transform: rotate(180deg); }
.filter-section.is-open .filter-toggle { color: var(--text-primary); background: var(--border-strong); }

.filter-menu {
  margin: 6px 0 0 0;
  padding: 0;
  background: transparent;
  list-style: none;
  width: 100%;
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--duration) var(--easing);
}
.filter-section.is-open .filter-menu {
  max-height: 600px;
}

.filter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  padding: 8px 10px;
  border-radius: 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  text-align: left;
  background: transparent;
  transition: color var(--duration-fast) var(--easing);
}
.filter-row:hover { color: var(--accent); }
.filter-row-label { text-align: left; flex: 1 1 auto; }

.filter-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0;
  transition: opacity var(--duration-fast) var(--easing);
  flex: 0 0 auto;
}
.filter-row.is-active .filter-dot { opacity: 1; }

/* =================================================================
   TILES — city tile (Poland mode)
   ================================================================= */

.tile {
  background: transparent;
  border-radius: var(--radius);
  padding: 12px 14px;
  cursor: pointer;
  transition: background var(--duration-fast) var(--easing);
  position: relative;
  flex: 0 0 auto;  /* don't shrink — keep natural content height so expanded tiles aren't clipped */
}

.tile:hover { background: var(--chrome-strong); }

.tile.is-selected { background: var(--chrome-strong); }

.tile-city {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 56px;
}

.tile-city-row1 {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.tile-city-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}

.tile-city-count {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}

.tile-city-row2 {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
}

.tile-city-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--status-free);
  display: inline-block;
}

/* =================================================================
   TILES — parking tile (City mode, collapsed)
   ================================================================= */

.tile-parking {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 56px;
}

.tile-parking-row1 {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.tile-parking-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.type-badge {
  flex: 0 0 auto;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
  background: var(--chrome-strong);
  padding: 2px 7px;
  border-radius: 4px;
}

.tile-parking-row2 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.tile-parking-free {
  font-family: var(--font-mono);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.tile-parking-free--free   { color: var(--status-free);   }
.tile-parking-free--medium { color: var(--status-medium); }
.tile-parking-free--full   { color: var(--status-full);   }
.tile-parking-free--suspect{ color: var(--status-amber-text); }
.tile-parking-free--no-data{ color: var(--text-muted); }

.tile-parking-cap {
  color: var(--text-muted);
  font-size: 12px;
  font-family: var(--font-mono);
}

.tile-parking-bar {
  flex: 1 1 auto;
  height: 4px;
  border-radius: 2px;
  background: var(--border);
  position: relative;
  overflow: hidden;
}

.tile-parking-bar > span {
  display: block;
  height: 100%;
  border-radius: 2px;
}

.tile-parking-bar > span.fill-free   { background: var(--status-free); }
.tile-parking-bar > span.fill-medium { background: var(--status-medium); }
.tile-parking-bar > span.fill-full   { background: var(--status-full); }
.tile-parking-bar > span.fill-suspect{ background: var(--status-amber-text); }

.tile-parking--suspect {
  border-left: 3px solid var(--status-amber-text);
  padding-left: 11px;  /* compensate the 3px border */
}

.tile-parking-stale {
  font-size: 11px;
  color: var(--status-amber-text);
  margin-top: 2px;
}

.tile-parking-spots {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
}

/* =================================================================
   TILES — parking tile expanded (selected)
   ================================================================= */

.tile-parking.is-expanded {
  background: var(--chrome-strong);
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tile-parking.is-expanded .tile-parking-name {
  font-size: 17px;
  font-weight: 600;
  white-space: normal;
}

.tile-expanded-hero {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.tile-expanded-hero-num {
  font-family: var(--font-mono);
  font-size: 36px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
}

.tile-expanded-hero-num--free   { color: var(--status-free); }
.tile-expanded-hero-num--medium { color: var(--status-medium); }
.tile-expanded-hero-num--full   { color: var(--status-full); }
.tile-expanded-hero-num--suspect{ color: var(--status-amber-text); }
.tile-expanded-hero-num--no-data{ color: var(--text-muted); }

.tile-expanded-hero-of {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
}

.tile-expanded-status {
  font-size: 12px;
  color: var(--text-muted);
}

.tile-expanded-status--suspect { color: var(--status-amber-text); }
.tile-expanded-status--stale   { color: var(--status-amber-text); }

.tile-expanded-amenities {
  font-size: 12px;
  color: var(--text-secondary);
  font-family: var(--font-mono);
}

.tile-expanded-updated {
  font-size: 12px;
  color: var(--text-muted);
}

.tile-expanded-updated--stale { color: var(--status-amber-text); }

.more-btn {
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: var(--accent-text);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-top: 4px;
  transition: filter var(--duration-fast) var(--easing);
}

.more-btn:hover { filter: brightness(1.08); }

/* =================================================================
   MAP POPUP (custom, anchored above marker)
   ================================================================= */

.map-popup-card {
  background: var(--chrome);
  border: 1.5px solid var(--accent);
  border-radius: var(--radius);
  padding: 14px 14px 12px;
  width: 240px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
}

.map-popup-card::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 14px;
  height: 14px;
  background: var(--chrome);
  border-right: 1.5px solid var(--accent);
  border-bottom: 1.5px solid var(--accent);
}

.map-popup-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.3;
}

.map-popup-hero {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 2px;
}

.map-popup-hero-num {
  font-family: var(--font-mono);
  font-size: 30px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
}

.map-popup-hero-num--free   { color: var(--status-free); }
.map-popup-hero-num--medium { color: var(--status-medium); }
.map-popup-hero-num--full   { color: var(--status-full); }
.map-popup-hero-num--suspect{ color: var(--status-amber-text); }
.map-popup-hero-num--no-data{ color: var(--text-muted); }

.map-popup-hero-label {
  font-size: 12px;
  color: var(--text-muted);
}

.map-popup-sub {
  font-size: 11px;
  color: var(--text-secondary);
}

.map-popup-sub--stale { color: var(--status-amber-text); }
.map-popup-sub--suspect { color: var(--status-amber-text); }

.map-popup-card .more-btn {
  margin-top: 6px;
}

/* Leaflet container background — match map-bg in case tiles fail */
.leaflet-container {
  background: var(--map-bg) !important;
  font-family: var(--font-sans);
}

/* Leaflet zoom controls — restyle to fit */
.leaflet-control-zoom a {
  background: var(--chrome) !important;
  color: var(--text-primary) !important;
  border-color: var(--border) !important;
}

.leaflet-control-zoom a:hover {
  background: var(--chrome-strong) !important;
}

.leaflet-control-attribution {
  background: rgba(232, 234, 237, 0.85) !important;
  color: var(--text-muted) !important;
  font-size: 10px !important;
}

[data-theme="dark"] .leaflet-control-attribution {
  background: rgba(42, 42, 42, 0.85) !important;
}

.leaflet-control-attribution a { color: var(--text-secondary) !important; }

/* =================================================================
   HAMBURGER (mobile menu)
   ================================================================= */

.hamburger-toggle {
  display: none;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-primary);
  flex: 0 0 auto;
}
.hamburger-toggle:hover { background: var(--chrome); }

.hamburger-icon {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
}
.hamburger-icon span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 1px;
  background: var(--text-primary);
}

.hamburger-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration) var(--easing);
}
.hamburger-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.hamburger-panel {
  position: fixed;
  top: 0; bottom: 0; right: 0; left: auto;
  width: min(64px, 35vw);
  background: var(--bg);
  border-left: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  z-index: 9999;
  padding: 0 8px 16px 8px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  align-items: center;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform var(--duration) var(--easing),
              visibility var(--duration) var(--easing);
}
.hamburger-panel.is-open {
  transform: translateX(0);
  visibility: visible;
}

/* Collapse arrow at the very top of the panel. Positioned with a top margin
   that mirrors the hamburger toggle's centre Y in the header, so visually it
   sits exactly where the 3-line button is in the closed state. */
.hamburger-collapse {
  margin: calc(var(--page-pad) + (var(--header-h) - 36px) / 2) auto 4px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--chrome-strong);
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  transition: background var(--duration-fast) var(--easing),
              color var(--duration-fast) var(--easing);
}
.hamburger-collapse:hover {
  background: var(--border-strong);
  color: var(--text-primary);
}
.hamburger-collapse-glyph {
  font-size: 12px;
  line-height: 1;
}

.hamburger-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  width: 100%;
}
.hamburger-label {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: center;
}

/* Language switch — vertical segmented control with a sliding accent circle. */
.lang-switch {
  position: relative;
  width: 36px;
  height: 108px;       /* 3 × 36 */
  background: var(--chrome);
  border-radius: 18px;
  overflow: hidden;
}
.lang-switch-item {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  padding: 0;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: color var(--duration-fast) var(--easing);
}
.lang-switch-item.is-active { color: var(--accent-text); }
.lang-switch-item:hover:not(.is-active) { color: var(--text-primary); }

.lang-switch-indicator {
  position: absolute;
  z-index: 1;
  top: 0;
  left: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  transition: transform var(--duration) var(--easing);
  transform: translateY(0);
}
.lang-switch[data-active="pl"] .lang-switch-indicator { transform: translateY(0); }
.lang-switch[data-active="en"] .lang-switch-indicator { transform: translateY(36px); }
.lang-switch[data-active="ua"] .lang-switch-indicator { transform: translateY(72px); }

/* =================================================================
   LANGUAGE BUTTONS
   ================================================================= */

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.lang-btn {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  background: transparent;
  padding: 4px 6px;
  border-radius: var(--radius-sm);
  transition: color var(--duration-fast) var(--easing),
              background var(--duration-fast) var(--easing);
}
.lang-btn:hover { color: var(--text-primary); background: var(--chrome); }
.lang-btn.is-active { color: var(--text-primary); font-weight: 600; }
.lang-sep { color: var(--text-muted); }

.lang-toggle--panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
/* Language buttons in the hamburger panel: identical 36×36 circles to .theme-toggle */
.lang-toggle--panel .lang-btn {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 50%;
  background: var(--chrome);
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.lang-toggle--panel .lang-btn.is-active {
  background: var(--accent);
  color: var(--accent-text);
}
.lang-toggle--panel .lang-sep { display: none; }

/* Theme toggle inside the panel: matches lang button geometry */
.theme-toggle--panel {
  align-self: center;
  width: 36px;
  height: 36px;
}

/* =================================================================
   RISK CHIP (deep-dive Today section)
   ================================================================= */

.dd-risk-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
}

.dd-risk-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  background: var(--chrome-strong);
  color: var(--text-secondary);
  width: fit-content;
}
.dd-risk-chip-icon { font-size: 11px; line-height: 1; }
.dd-risk-chip-text { letter-spacing: 0.01em; }
.dd-risk-chip--low    { color: var(--status-free);   }
.dd-risk-chip--medium { color: var(--status-medium); }
.dd-risk-chip--high   { color: var(--status-full);   }

.dd-risk-alert {
  font-size: 12px;
  color: var(--text-muted);
}

/* =================================================================
   TILE LIST SECTION HEADER — appears only when multiple cities are grouped
   in the active view; gives each city's parkings their own labeled section.
   ================================================================= */
.tile-list-section-header {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 16px 14px 6px;
  flex: 0 0 auto;
}
.tile-list-section-header:first-child { padding-top: 4px; }

/* =================================================================
   TILE SPACERS — invisible, non-clickable rows appended to the tile list
   so the user can scroll a bit past the last real tile (~2 tile heights of
   breathable space). visibility:hidden keeps them out of the a11y tree but
   preserves the layout slot.
   ================================================================= */
.tile-spacer {
  height: 56px;
  flex: 0 0 auto;
  pointer-events: none;
  visibility: hidden;
}

/* =================================================================
   SKELETON TILES (loading state)
   ================================================================= */

.tile-skeleton {
  background: var(--chrome-strong);
  border-radius: var(--radius);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 56px;
  cursor: default;
  animation: skel-pulse 1.2s ease-in-out infinite;
}
.tile-skel-row {
  height: 12px;
  background: var(--border-strong);
  border-radius: 4px;
}
.tile-skel-row--lg { width: 70%; }
.tile-skel-row--sm { width: 40%; height: 10px; }

@keyframes skel-pulse {
  0%, 100% { opacity: 0.7; }
  50%      { opacity: 1; }
}

/* =================================================================
   DEEP-DIVE MODE — hide filter section while in deep-dive
   (sidebar-inner already fades out, but the filter section sits above it)
   ================================================================= */
.sidebar.is-deep-dive .filter-section { display: none; }
