:root {
  color-scheme: light;
  --ink: #202522;
  --muted: #66716b;
  --line: rgba(32, 37, 34, .09);
  --glass: rgba(255, 255, 255, .92);
  --green: #168451;
  --orange: #b85b24;
  --red: #bd4141;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
html, body { width: 100%; height: 100%; overflow: hidden; }
body { margin: 0; color: var(--ink); background: #e8eee8; }
button, input, select { font: inherit; }
a { color: inherit; }
.topbar {
  position: fixed; z-index: 800; top: 16px; left: 20px; right: 20px; height: 58px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 16px; border: 1px solid rgba(255,255,255,.75); border-radius: 19px;
  background: var(--glass); box-shadow: 0 8px 28px rgba(28,40,31,.10);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-size: 17px; font-weight: 750; letter-spacing: -.04em; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 12px; background: #202522; color: white; font-weight: 800; }
.plus { color: #e66b35; }
.header-actions { display: flex; align-items: center; gap: 13px; }
.language-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
#language { min-height: 44px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); }
.app-link { font-size: 14px; font-weight: 650; text-decoration: none; }
.app-link:hover, footer a:hover, .card-actions a:hover { text-decoration: underline; }
.intro {
  position: fixed; z-index: 700; top: 94px; left: 28px; width: min(360px, calc(100vw - 56px));
  display: block; padding: 17px 19px 18px; border: 1px solid rgba(255,255,255,.75);
  border-radius: 20px; background: var(--glass); box-shadow: 0 10px 32px rgba(28,40,31,.11);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
}
.eyebrow { margin: 0 0 7px; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
h1 { margin: 0; font-size: 26px; line-height: 1.1; letter-spacing: -.055em; }
.subtitle { margin: 7px 0 14px; color: var(--muted); font-size: 13px; line-height: 1.4; }
.search-wrap { position: relative; width: 100%; }
.search-icon { position: absolute; top: 7px; left: 13px; color: var(--muted); font-size: 25px; line-height: 28px; transform: rotate(-20deg); }
input[type=search] {
  width: 100%; height: 44px; padding: 0 13px 0 42px; border: 1px solid rgba(32,37,34,.12);
  border-radius: 13px; outline: none; background: rgba(255,255,255,.92); color: var(--ink);
  box-shadow: 0 2px 7px rgba(25,40,29,.04);
}
input[type=search]:focus-visible, select:focus-visible, button:focus-visible, a:focus-visible { outline: 3px solid #438fbe; outline-offset: 2px; }
.workspace { position: fixed; z-index: 1; inset: 0; }
.map-panel { position: absolute; inset: 0; overflow: hidden; background: #e8eee8; }
.map-panel #map { width: 100%; height: 100%; background: #e8eee8; }
.results-panel {
  position: absolute; z-index: 600; top: 326px; bottom: 22px; left: 22px; width: 382px;
  display: flex; flex-direction: column; min-height: 0; overflow: hidden;
  border: 1px solid rgba(255,255,255,.78); border-radius: 22px; background: var(--glass);
  box-shadow: 0 15px 46px rgba(28,40,31,.16); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
}
.results-heading { display: flex; align-items: center; justify-content: space-between; flex: none; padding: 18px 19px 12px; }
h2 { margin: 0; font-size: 16px; letter-spacing: -.025em; }
.count { display: grid; min-width: 28px; height: 25px; padding: 0 8px; place-items: center; border-radius: 20px; background: #eef2ee; color: var(--muted); font-size: 12px; font-weight: 650; }
.load-state { margin: 0; padding: 0 19px 12px; color: var(--muted); font-size: 13px; }
.filters { display: flex; flex: none; gap: 6px; padding: 0 16px 12px; }
.filter { min-height: 44px; padding: 7px 13px; border: 1px solid var(--line); border-radius: 99px; background: rgba(255,255,255,.7); color: var(--muted); font-size: 12px; font-weight: 700; cursor: pointer; }
.filter.active { background: #202522; border-color: #202522; color: #fff; }
.filter:focus-visible { outline: 3px solid #438fbe; outline-offset: 2px; }
 .results-list { flex: 1; min-height: 0; overflow: auto; padding: 0 10px 12px; scrollbar-color: #c5cec7 transparent; }
.parking-card { margin: 0 0 8px; padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.76); transition: border-color .15s, background .15s, transform .15s; }
.parking-card:hover, .parking-card.selected { border-color: rgba(32,37,34,.24); background: #fff; transform: translateY(-1px); }
.card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.parking-name { flex: 1; min-width: 0; min-height: 44px; margin: 0; padding: 0; border: 0; background: transparent; color: inherit; font: inherit; font-size: 15px; font-weight: 700; letter-spacing: -.025em; text-align: left; cursor: pointer; }
.status { flex: none; max-width: 57%; padding: 4px 8px; border-radius: 99px; background: #f1f3f1; font-size: 11px; line-height: 1.35; font-weight: 700; text-align: center; }
.status.green { color: #12663e; background: #e8f5ed; }
.status.orange { color: #8e471c; background: #fff1e5; }
.status.red { color: #a83737; background: #fbeaea; }
.status.neutral { color: #58625c; background: #eef1ee; }
.facts { margin-top: 8px; color: var(--muted); font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.facts p { margin: 2px 0; }
.card-actions { display: flex; gap: 14px; margin-top: 10px; font-size: 12px; font-weight: 650; }
.card-actions a { color: #315c48; text-decoration: none; }
.leaflet-top.leaflet-left { right: 18px; left: auto; top: 88px; }
.leaflet-control-zoom { overflow: hidden; border: 1px solid rgba(32,37,34,.12)!important; border-radius: 13px!important; box-shadow: 0 5px 20px rgba(28,40,31,.12)!important; }
.leaflet-control-zoom a { color: var(--ink)!important; }
.parking-marker { display: grid; width: 36px; height: 36px; place-items: center; border: 3px solid white; border-radius: 50%; color: white; font-size: 12px; font-weight: 750; box-shadow: 0 3px 12px rgba(20,35,25,.34); }
.parking-marker.static { width: 15px; height: 15px; border-width: 2px; background: #647068; }
.parking-marker.green { background: #168451; }
.parking-marker.orange { background: #d87932; }
.parking-marker.red { background: #c84c4c; }
.marker-cluster { background: rgba(31,72,50,.18); }
.marker-cluster div { background: #285c42; color: white; font-weight: 700; }
.leaflet-popup-content-wrapper { border-radius: 13px; }
.leaflet-popup-content { font: 14px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.mobile-tabs { display: none; }
footer { display: none; }
.visually-hidden { position: absolute!important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (max-width: 760px) {
  .topbar { top: 10px; left: 10px; right: 10px; height: 52px; padding: 0 11px; border-radius: 16px; }
  .brand { gap: 8px; font-size: 15px; }
  .brand-mark { width: 30px; height: 30px; border-radius: 10px; }
  .header-actions { gap: 8px; }
  #language { padding: 7px 8px; }
  .app-link { font-size: 12px; }
  .intro { top: 72px; left: 10px; width: min(390px, calc(100vw - 20px)); padding: 13px 14px 14px; border-radius: 17px; }
  h1 { font-size: 22px; }
  .eyebrow { margin-bottom: 5px; font-size: 9px; }
  .subtitle { margin: 5px 0 10px; font-size: 12px; }
  input[type=search] { height: 42px; }
  .results-panel { top: auto; right: 10px; bottom: calc(66px + env(safe-area-inset-bottom)); left: 10px; width: auto; height: min(43dvh, 390px); border-radius: 20px; }
  .results-heading { padding: 14px 16px 10px; }
  .results-list { padding: 0 8px 8px; }
  .mobile-tabs {
    position: fixed; z-index: 750; right: 0; bottom: 11px; left: 0; display: flex;
    justify-content: center; gap: 4px; width: max-content; margin: 0 auto; padding: 4px;
    border: 1px solid rgba(255,255,255,.8); border-radius: 15px; background: var(--glass);
    box-shadow: 0 5px 20px rgba(28,40,31,.15); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  }
  .tab { min-width: 94px; min-height: 44px; padding: 9px 13px; border: 0; border-radius: 11px; background: transparent; color: var(--muted); font-size: 13px; font-weight: 700; }
  .tab.active { background: #202522; color: white; }
  .workspace[data-view=map] .results-panel { display: none; }
  .leaflet-top.leaflet-left { top: 278px; right: 12px; }
}
@media (max-width: 380px) {
  .results-panel { height: 39dvh; }
  .app-link { max-width: 88px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto!important; transition: none!important; }
}
