:root {
  color-scheme: only light;
  --bg: #f5f7fa;
  --bg-alt: #fafafa;
  --ink: #1a1b1f;
  --muted: #5d6c7b;
  --accent: #00b67a;
  --accent-dark: #009a67;
  --accent-red: #ff2c55;
  --accent-red-dark: #ea384c;
  --accent-blue: #0082f3;
  --card: #ffffff;
  --stroke: #e4ebf3;
  --shadow: 0 16px 28px rgba(26, 27, 31, 0.08);
  --radius: 16px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Open Sans", "Helvetica Neue", Arial, "Segoe UI", Ubuntu, sans-serif;
  background: linear-gradient(160deg, var(--bg) 0%, var(--bg-alt) 100%);
  color: var(--ink);
  min-height: 100vh;
}

h1,
h2,
h3 {
  font-family: "Open Sans", "Helvetica Neue", Arial, "Segoe UI", Ubuntu, sans-serif;
  font-weight: 800;
  margin: 0;
}

a {
  color: inherit;
}

.app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10000;
  padding: 18px 18px 12px;
  background: #f7f9fb;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--stroke);
  box-shadow: 0 12px 24px rgba(44, 38, 32, 0.06);
  overflow: visible;
  isolation: isolate;
}

.topbar__title {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.title-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 6px;
}

.subtitle-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-row {
  margin-top: 10px;
  position: relative;
  z-index: 5;
}

.search-field {
  width: 100%;
}

.search-field input {
  width: 100%;
}

.search-suggestions {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: white;
  border: 1px solid var(--stroke);
  border-radius: 12px;
  box-shadow: 0 18px 24px rgba(31, 28, 26, 0.12);
  max-height: 260px;
  overflow-y: auto;
  display: none;
  z-index: 50;
}

.search-suggestions.is-open {
  display: block;
}

.suggestion-item {
  width: 100%;
  border: none;
  background: transparent;
  text-align: left;
  padding: 10px 12px;
  font-size: 0.9rem;
  color: var(--ink);
  cursor: pointer;
  font-family: "Open Sans", "Helvetica Neue", Arial, "Segoe UI", Ubuntu, sans-serif;
}

.suggestion-item:hover,
.suggestion-item:focus {
  background: rgba(26, 27, 31, 0.06);
  outline: none;
}

.suggestion-status {
  padding: 10px 12px;
  font-size: 0.85rem;
  color: var(--muted);
}

.subtitle-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.35;
  flex: 1;
}

.subtitle__kicker {
  font-weight: 700;
  color: var(--ink);
  position: relative;
  padding-left: 12px;
}

.subtitle__kicker::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 3px;
  height: 12px;
  background: var(--accent-red);
  transform: translateY(-50%);
  border-radius: 2px;
}

.subtitle__detail {
  display: none;
}

.cta {
  border: none;
  background: var(--accent);
  color: white;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.01em;
  box-shadow: 0 10px 18px rgba(0, 182, 122, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta--inline {
  height: 34px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.cta__icon {
  font-size: 1rem;
  line-height: 1;
}

.cta__label {
  display: none;
  font-size: 0.85rem;
}

.icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  background: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--ink);
}

.cta:active {
  transform: translateY(1px) scale(0.99);
  box-shadow: 0 6px 12px rgba(0, 182, 122, 0.2);
}

.cta:disabled {
  cursor: not-allowed;
  opacity: 0.6;
  box-shadow: none;
}

#debugPanel {
  position: fixed;
  left: 12px;
  bottom: 12px;
  z-index: 9999;
  background: rgba(20, 18, 16, 0.9);
  color: #fff;
  font-size: 0.7rem;
  line-height: 1.4;
  padding: 8px 10px;
  border-radius: 10px;
  max-width: 85vw;
  white-space: pre;
  pointer-events: none;
}

.filters {
  margin-top: 10px;
  border-radius: 16px;
  border: 1px solid var(--stroke);
  background: white;
  padding: 6px 10px;
}

.filters__summary {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.filters__grid {
  margin-top: 12px;
  display: grid;
  gap: 12px;
}

.filters:not([open]) {
  border: none;
  background: transparent;
  padding: 0;
  margin-top: 0;
}

.filters:not([open]) .filters__grid {
  display: none;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--muted);
}

.field input,
.field select {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  background: white;
  font-size: 0.95rem;
  font-family: "Open Sans", "Helvetica Neue", Arial, "Segoe UI", Ubuntu, sans-serif;
}

.field input:focus,
.field select:focus {
  outline: 2px solid rgba(255, 44, 85, 0.25);
  border-color: var(--accent-red);
}

.switch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--muted);
}

.switch input {
  accent-color: var(--accent);
  width: 18px;
  height: 18px;
}

.content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 14px 18px 30px;
  animation: fadeIn 0.6s ease;
}


.map-column {
  display: grid;
  gap: 16px;
}

.best-card:empty {
  display: none;
}

.street-card:empty {
  display: none;
}

.card--street {
  border: 1px dashed rgba(255, 44, 85, 0.3);
  background: #fff7f9;
}

.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--stroke);
  position: relative;
  background: #f7f9fb;
}

#map {
  height: var(--map-height, 46vh);
  min-height: 320px;
}

.map-overlay {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 12px;
  font-size: 0.85rem;
  color: var(--muted);
  display: none;
}

.panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.status {
  font-size: 0.9rem;
  color: var(--muted);
}

.list {
  display: grid;
  gap: 12px;
}

.card {
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: 16px;
  padding: 12px 14px;
  display: grid;
  gap: 8px;
  box-shadow: 0 10px 20px rgba(26, 27, 31, 0.06);
  animation: fadeUp 0.45s ease;
}

.card h3 {
  font-size: 1.05rem;
}

.card--best {
  border: 2px solid rgba(255, 44, 85, 0.3);
  background: #ffffff;
  box-shadow: 0 18px 26px rgba(255, 44, 85, 0.12);
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  font-size: 0.85rem;
  color: var(--muted);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge--best {
  background: rgba(255, 44, 85, 0.12);
  color: var(--accent-red-dark);
}

.badge--open {
  background: rgba(0, 182, 122, 0.12);
  color: var(--accent);
}

.badge--closed {
  background: rgba(255, 44, 85, 0.12);
  color: var(--accent-red-dark);
}

.badge--warning {
  background: rgba(255, 44, 85, 0.2);
  color: var(--accent-red-dark);
}

.badge--info {
  background: rgba(93, 108, 123, 0.12);
  color: var(--ink);
}

.capacity {
  display: grid;
  gap: 6px;
}

.capacity__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
}

.capacity__note {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.capacity__bar {
  height: 10px;
  border-radius: 999px;
  background: rgba(93, 108, 123, 0.16);
  overflow: hidden;
}

.capacity__fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.3s ease;
}

.capacity__fill--high {
  background: var(--accent);
}

.capacity__fill--mid {
  background: #758696;
}

.capacity__fill--low {
  background: var(--accent-red);
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.button-link {
  border: none;
  border-radius: 10px;
  padding: 8px 12px;
  font-weight: 600;
  font-family: "Open Sans", "Helvetica Neue", Arial, "Segoe UI", Ubuntu, sans-serif;
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.button-link.primary {
  background: var(--accent);
  color: white;
}

.button-link.secondary {
  background: white;
  color: var(--accent);
  border: 1px solid rgba(0, 182, 122, 0.35);
}

.footer {
  padding: 20px 18px 28px;
  font-size: 0.8rem;
  color: var(--muted);
}

.footer-links {
  display: inline-flex;
  gap: 10px;
  margin-left: 10px;
  font-size: 0.75rem;
}

.footer-links a {
  color: var(--accent-red-dark);
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

.build-info {
  display: inline-block;
  margin-left: 10px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 44, 85, 0.12);
  color: var(--accent-red-dark);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 9998;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid var(--stroke);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cookie-banner.is-hidden {
  display: none;
}

.cookie-banner__content {
  font-size: 0.85rem;
  color: var(--muted);
}

.cookie-banner__content strong {
  display: block;
  color: var(--ink);
  margin-bottom: 6px;
  font-size: 0.9rem;
}

.cookie-banner__content a {
  color: var(--accent-red-dark);
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cookie-toast {
  position: fixed;
  left: 16px;
  bottom: 20px;
  z-index: 9999;
  background: rgba(0, 182, 122, 0.95);
  color: white;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}

.cookie-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
}

.modal.is-open {
  display: flex;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 18, 16, 0.45);
}

.modal__dialog {
  position: relative;
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
  max-width: 720px;
  width: min(92vw, 720px);
  max-height: 82vh;
  overflow: auto;
  padding: 18px 20px 20px;
}

.modal__dialog h2 {
  margin: 0 0 10px;
  font-size: 1.35rem;
}

.modal__dialog h3 {
  margin-top: 16px;
  margin-bottom: 8px;
  font-size: 1rem;
}

.modal__content p,
.modal__content li {
  color: var(--muted);
  line-height: 1.6;
}

.modal__content ul {
  padding-left: 18px;
}

.modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  border: none;
  background: rgba(31, 28, 26, 0.08);
  color: var(--ink);
  border-radius: 999px;
  width: 32px;
  height: 32px;
  cursor: pointer;
  font-size: 1rem;
}

body.modal-open {
  overflow: hidden;
}

.legal-page {
  max-width: 860px;
  margin: 0 auto;
  padding: 28px 18px 40px;
}

.legal-page h1 {
  margin-bottom: 10px;
}

.legal-page h2 {
  margin-top: 22px;
  margin-bottom: 10px;
  font-size: 1.05rem;
  position: relative;
  padding-left: 12px;
}

.legal-page h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 3px;
  height: 12px;
  background: var(--accent-red);
  transform: translateY(-50%);
  border-radius: 2px;
}

.legal-page p,
.legal-page li {
  color: var(--muted);
  line-height: 1.6;
}

.legal-page ul {
  padding-left: 18px;
}

.parking-marker {
  background: white;
  border: 2px solid var(--muted);
  border-radius: 999px;
  padding: 6px 8px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ink);
  box-shadow: 0 12px 18px rgba(26, 27, 31, 0.12);
}

.parking-marker.best {
  background: var(--accent-red);
  border-color: var(--accent-red);
  color: white;
  box-shadow: 0 12px 18px rgba(255, 44, 85, 0.3);
}

.machine-marker {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: white;
  border: 2px solid var(--accent-blue);
  color: var(--accent-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.75rem;
  box-shadow: 0 8px 16px rgba(0, 130, 243, 0.25);
}

.user-marker {
  background: var(--accent-blue);
  color: white;
  border-radius: 999px;
  padding: 6px 8px;
  font-weight: 600;
  font-size: 0.7rem;
  box-shadow: 0 10px 16px rgba(0, 130, 243, 0.35);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 820px) {
  .content {
    flex-direction: row;
    align-items: flex-start;
  }

  .map-column {
    flex: 1.1;
  }

  .map-wrap {
    position: sticky;
    top: 160px;
    height: fit-content;
  }

  #map {
    height: var(--map-height, 70vh);
  }

  .panel {
    flex: 0.9;
  }

  .topbar__title {
    align-items: flex-start;
  }

  .filters {
    border: none;
    background: transparent;
    padding: 0;
    margin-top: 12px;
  }

  .filters__grid {
    margin-top: 0;
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .subtitle__detail {
    display: inline;
  }

  .cta__label {
    display: inline;
  }

  .icon-btn {
    display: none;
  }

  .cta--inline {
    height: auto;
    padding: 8px 14px;
  }
}

@media (max-width: 819px) {
  .content,
  .card {
    animation: none;
  }
}

/* Reference-led Park in Ghent redesign, using the Lucido palette. */
:root {
  --bg: #f5f7fa;
  --bg-alt: #eef2f6;
  --ink: #1c1f24;
  --muted: #657180;
  --accent: #ff2c55;
  --accent-dark: #e02248;
  --accent-soft: rgba(255, 44, 85, 0.09);
  --accent-red: #ff2c55;
  --accent-red-dark: #e02248;
  --accent-blue: #2d7ff9;
  --card: #ffffff;
  --stroke: #dbe3ec;
  --shadow: 0 16px 38px rgba(28, 31, 36, 0.1);
  --radius: 18px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

body {
  background: var(--bg);
}

.parking-app {
  min-height: 100dvh;
  background:
    radial-gradient(circle at 88% -10%, rgba(255, 44, 85, 0.06), transparent 28%),
    var(--bg);
}

.parking-app .topbar {
  position: sticky;
  top: 0;
  z-index: 10000;
  display: grid;
  gap: 18px;
  padding: 22px clamp(20px, 2.2vw, 34px) 20px;
  background: rgba(245, 247, 250, 0.96);
  border-bottom: 1px solid rgba(196, 207, 219, 0.86);
  box-shadow: 0 10px 32px rgba(28, 31, 36, 0.05);
  backdrop-filter: blur(18px);
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 15px;
}

.brand-row h1 {
  color: var(--ink);
  font-size: clamp(1.75rem, 2.6vw, 2.35rem);
  line-height: 1;
  letter-spacing: -0.035em;
}

.brand-mark {
  position: relative;
  display: grid;
  flex: 0 0 auto;
  width: 50px;
  height: 50px;
  place-items: center;
  color: #ffffff;
  text-decoration: none;
  isolation: isolate;
}

.brand-mark::before {
  position: absolute;
  inset: 3px;
  z-index: -1;
  border-radius: 50% 50% 50% 13px;
  background: linear-gradient(135deg, #ff4770 0%, #ea384c 100%);
  box-shadow: 0 10px 22px rgba(255, 44, 85, 0.24);
  content: "";
  transform: rotate(-45deg);
}

.brand-mark span {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border-radius: 50%;
  background: #ffffff;
  color: var(--accent-dark);
  font-size: 0.95rem;
  font-weight: 800;
}

.about-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-left: auto;
  color: #4d5967;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

.about-link:hover,
.about-link:focus-visible {
  color: var(--accent-dark);
}

.about-link__icon {
  display: grid;
  width: 23px;
  height: 23px;
  place-items: center;
  border: 2px solid currentColor;
  border-radius: 50%;
  font-family: Georgia, serif;
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1;
}

.search-location-row {
  display: flex;
  align-items: stretch;
  gap: 12px;
}

.parking-app .search-row {
  position: relative;
  z-index: 10;
  flex: 1 1 auto;
  margin: 0;
}

.parking-app .search-row::before {
  position: absolute;
  left: 20px;
  top: 50%;
  z-index: 2;
  color: #748293;
  content: "⌖";
  font-size: 1.65rem;
  line-height: 1;
  pointer-events: none;
  transform: translateY(-50%);
}

.parking-app .search-field input {
  width: 100%;
  height: 58px;
  padding: 0 22px 0 58px;
  border: 1px solid #cfd9e4;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  box-shadow: 0 5px 16px rgba(28, 31, 36, 0.025);
  font-size: 1rem;
}

.parking-app .search-field input::placeholder {
  color: #758294;
  opacity: 1;
}

.parking-app .search-field input:focus {
  border-color: var(--accent);
  outline: 3px solid rgba(255, 44, 85, 0.13);
}

.parking-app .search-suggestions {
  top: calc(100% + 8px);
  border-color: #d7e0e9;
  border-radius: 14px;
  box-shadow: 0 22px 50px rgba(28, 31, 36, 0.16);
}

.parking-app .cta {
  background: linear-gradient(135deg, #ff2c55 0%, #e02248 100%);
  box-shadow: 0 10px 22px rgba(255, 44, 85, 0.24);
}

.parking-app .cta--inline {
  min-width: 154px;
  height: 58px;
  padding: 0 20px;
  border-radius: 12px;
  justify-content: center;
  gap: 9px;
  cursor: pointer;
}

.parking-app .cta__icon {
  font-size: 1.15rem;
  transform: rotate(-38deg);
}

.parking-app .cta__label {
  display: inline;
  font-size: 0.95rem;
}

.parking-app .filters {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.parking-app .filters__grid {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}

.parking-app .filters .field {
  flex: 0 0 min(240px, 22vw);
}

.parking-app .filters select {
  width: 100%;
  height: 48px;
  padding: 0 42px 0 15px;
  border: 1px solid #ced8e3;
  border-radius: 11px;
  background: #ffffff;
  color: var(--ink);
  font-size: 0.95rem;
}

.parking-app .switch {
  position: relative;
  flex: 0 0 auto;
  gap: 0;
}

.parking-app .switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.parking-app .switch span {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid #ced8e3;
  border-radius: 11px;
  background: #ffffff;
  color: #566273;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.parking-app .switch span::before {
  display: grid;
  width: 22px;
  height: 22px;
  margin-right: 9px;
  place-items: center;
  border: 2px solid currentColor;
  border-radius: 50%;
  content: "P";
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1;
}

.parking-app #openNow + span::before {
  content: "◷";
  font-size: 0.9rem;
}

.parking-app #machineToggle + span::before {
  border-radius: 7px;
  content: "€";
}

.parking-app .switch input:checked + span {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.parking-app .switch input:focus-visible + span {
  outline: 3px solid rgba(255, 44, 85, 0.15);
  outline-offset: 2px;
}

.parking-app .icon-btn {
  display: none;
}

.parking-app .content {
  display: grid;
  grid-template-columns: minmax(320px, 36%) minmax(0, 1fr);
  gap: 16px;
  width: 100%;
  max-width: 1800px;
  margin: 0 auto;
  padding: 16px clamp(20px, 2.2vw, 34px) 28px;
  animation: fadeIn 0.35s ease;
}

.parking-app .panel {
  position: relative;
  display: flex;
  min-height: 0;
  max-height: var(--map-height, 68vh);
  flex-direction: column;
  gap: 11px;
  overflow-y: auto;
  padding: 14px;
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 30px rgba(28, 31, 36, 0.04);
  scrollbar-color: #c9d2dc transparent;
  scrollbar-width: thin;
}

.panel-toolbar {
  position: sticky;
  top: -14px;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  margin: -14px -14px 0;
  padding: 12px 14px 10px;
  border-bottom: 1px solid rgba(219, 227, 236, 0.86);
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
}

.parking-app .status {
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 700;
}

.sort-control {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid #d2dbe5;
  border-radius: 9px;
  background: #ffffff;
  color: #384350;
  font-size: 0.8rem;
  font-weight: 600;
}

.parking-app .map-column {
  min-width: 0;
}

.parking-app .map-wrap {
  position: sticky;
  top: 236px;
  overflow: hidden;
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  background: #eaf0f5;
  box-shadow: 0 12px 34px rgba(28, 31, 36, 0.08);
}

.parking-app #map {
  width: 100%;
  height: var(--map-height, 68vh);
  min-height: 520px;
}

.parking-app .map-overlay {
  left: 50%;
  right: auto;
  bottom: 18px;
  max-width: min(540px, calc(100% - 36px));
  border: 1px solid rgba(207, 217, 228, 0.95);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 10px 28px rgba(28, 31, 36, 0.12);
  color: #4d5967;
  transform: translateX(-50%);
}

.map-legend {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 600;
  display: grid;
  gap: 9px;
  min-width: 162px;
  padding: 13px 14px;
  border: 1px solid rgba(206, 216, 226, 0.95);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 26px rgba(28, 31, 36, 0.12);
  color: #344050;
  font-size: 0.72rem;
  backdrop-filter: blur(8px);
}

.map-legend span {
  display: flex;
  align-items: center;
  gap: 9px;
}

.legend-line {
  display: inline-block;
  width: 26px;
  border-top: 3px dashed currentColor;
}

.legend-line--blue {
  color: #2b7bbb;
}

.legend-line--green {
  color: #3da35a;
}

.legend-line--orange {
  color: #f08a24;
}

.legend-machine {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border: 2px solid #344050;
  border-radius: 6px;
  font-size: 0.65rem;
  font-style: normal;
  font-weight: 800;
}

.view-switch {
  display: none;
}

.parking-app .best-card,
.parking-app .street-card {
  display: block;
}

.parking-app .best-card:empty,
.parking-app .street-card:empty {
  display: none;
}

.parking-app .list {
  display: grid;
  gap: 11px;
}

.parking-app .card {
  display: grid;
  gap: 10px;
  padding: 15px 16px;
  border: 1px solid #d7e0e9;
  border-radius: 13px;
  background: #ffffff;
  box-shadow: 0 4px 15px rgba(28, 31, 36, 0.035);
  animation: fadeUp 0.3s ease;
}

.parking-app .card--best {
  border-color: var(--accent);
  background:
    linear-gradient(135deg, rgba(255, 44, 85, 0.055), rgba(255, 255, 255, 0.96) 65%),
    #ffffff;
  box-shadow: 0 12px 28px rgba(255, 44, 85, 0.1);
}

.parking-app .card--street {
  border-style: dashed;
  border-color: rgba(255, 44, 85, 0.35);
  background: #fffafb;
}

.parking-app .meta {
  gap: 7px;
  color: #526071;
  font-size: 0.8rem;
}

.parking-app .badge {
  min-height: 25px;
  padding: 4px 10px;
  letter-spacing: 0.02em;
}

.parking-app .badge--best {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.parking-app .badge--best::before {
  content: "★";
}

.parking-app .badge--open {
  background: rgba(20, 157, 105, 0.1);
  color: #087a50;
}

.parking-app .badge--info {
  background: #eef1f5;
  color: #3f4956;
}

.card-content-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.card-summary {
  min-width: 0;
  flex: 1 1 auto;
}

.parking-app .card h3 {
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1.25;
}

.parking-app .capacity {
  gap: 5px;
}

.parking-app .capacity__row {
  gap: 12px;
  justify-content: flex-start;
  color: #29333f;
  font-size: 0.85rem;
  font-weight: 500;
}

.parking-app .capacity__row span:last-child:not(:first-child) {
  margin-left: auto;
  font-size: 0.75rem;
  font-weight: 700;
}

.parking-app .capacity__bar {
  max-width: 250px;
  height: 6px;
  background: #e8edf2;
}

.parking-app .capacity__fill--high {
  background: #149d69;
}

.parking-app .capacity__fill--mid {
  background: #f2a23a;
}

.parking-app .capacity__fill--low {
  background: var(--accent);
}

.parking-app .card-actions {
  flex: 0 0 auto;
}

.parking-app .button-link {
  border-radius: 9px;
  font-size: 0.82rem;
}

.parking-app .button-link.primary {
  min-height: 41px;
  padding: 9px 14px;
  background: linear-gradient(135deg, #ff2c55, #e02248);
  box-shadow: 0 8px 18px rgba(255, 44, 85, 0.18);
}

.parking-app .button-link.primary span {
  transform: rotate(-38deg);
}

.parking-app .button-link.secondary {
  min-height: 0;
  padding: 4px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--accent-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.card-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 2px;
}

.card-distance {
  align-items: center;
}

.card-distance span + span::before {
  margin-right: 7px;
  color: #c9d2dc;
  content: "|";
}

.card-distance b {
  color: var(--ink);
  font-size: 1rem;
}

.parking-marker {
  position: relative;
  display: grid;
  width: 38px !important;
  height: 46px !important;
  place-items: center;
  border: 0;
  background: transparent;
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 800;
}

.parking-marker::before {
  position: absolute;
  top: 2px;
  left: 1px;
  width: 36px;
  height: 36px;
  border: 3px solid #ffffff;
  border-radius: 50% 50% 50% 10px;
  background: #2d7ff9;
  box-shadow: 0 10px 18px rgba(45, 127, 249, 0.32);
  content: "";
  transform: rotate(-45deg);
}

.parking-marker::after {
  position: absolute;
  left: 14px;
  bottom: 0;
  width: 10px;
  height: 5px;
  border-radius: 50%;
  background: rgba(28, 31, 36, 0.24);
  content: "";
  filter: blur(2px);
}

.parking-marker.best::before {
  background: linear-gradient(135deg, #ff4770, #e02248);
  box-shadow: 0 11px 22px rgba(255, 44, 85, 0.34);
}

.parking-marker > span {
  position: relative;
  z-index: 1;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
}

.leaflet-tooltip.parking-tooltip {
  display: grid;
  gap: 1px;
  padding: 7px 10px;
  border: 1px solid #d0d9e3;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 20px rgba(28, 31, 36, 0.13);
  color: var(--ink);
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 0.72rem;
}

.leaflet-tooltip.parking-tooltip strong {
  font-size: 0.74rem;
}

.leaflet-tooltip.parking-tooltip span {
  color: #4f5b69;
}

.leaflet-tooltip.parking-tooltip::before {
  border-top-color: #ffffff;
}

.parking-app .footer {
  padding: 10px clamp(20px, 2.2vw, 34px) 26px;
  text-align: center;
}

@media (max-width: 819px) {
  .parking-app .topbar {
    position: relative;
    gap: 16px;
    padding: calc(18px + env(safe-area-inset-top)) 16px 16px;
    box-shadow: none;
  }

  .brand-row {
    gap: 12px;
  }

  .brand-mark {
    width: 45px;
    height: 45px;
  }

  .brand-row h1 {
    font-size: clamp(1.4rem, 6vw, 1.75rem);
  }

  .about-link {
    gap: 0;
  }

  .about-link__icon {
    width: 28px;
    height: 28px;
  }

  .about-link__label {
    display: none;
  }

  .search-location-row {
    gap: 9px;
  }

  .parking-app .search-field input,
  .parking-app .cta--inline {
    height: 56px;
  }

  .parking-app .search-field input {
    padding-left: 48px;
    font-size: 1rem;
  }

  .parking-app .search-row::before {
    left: 16px;
    font-size: 1.35rem;
  }

  .parking-app .cta--inline {
    min-width: 56px;
    width: 56px;
    padding: 0;
  }

  .parking-app .cta__label {
    display: none;
  }

  .parking-app .filters {
    width: calc(100vw - 16px);
    margin-right: -16px;
    overflow-x: auto;
    padding-right: 16px;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
  }

  .parking-app .filters::-webkit-scrollbar {
    display: none;
  }

  .parking-app .filters__grid {
    width: max-content;
    gap: 8px;
  }

  .parking-app .filters .field {
    flex-basis: 135px;
  }

  .parking-app .filters select,
  .parking-app .switch span,
  .parking-app .icon-btn {
    min-height: 48px;
    height: 48px;
  }

  .parking-app .switch span {
    padding: 0 13px;
    font-size: 0.84rem;
  }

  .parking-app .switch span::before {
    width: 20px;
    height: 20px;
    margin-right: 7px;
  }

  .parking-app .optional-filter {
    display: none;
  }

  .parking-app .filters.is-expanded .optional-filter {
    display: inline-flex;
  }

  .parking-app .icon-btn {
    display: inline-grid;
    flex: 0 0 48px;
    place-items: center;
    border-radius: 11px;
    color: var(--ink);
    font-size: 1.35rem;
    cursor: pointer;
  }

  .parking-app .content {
    display: flex;
    width: 100%;
    max-width: none;
    flex-direction: column;
    gap: 0;
    padding: 0 0 30px;
  }

  .parking-app .map-column {
    order: 1;
  }

  .parking-app .panel {
    order: 2;
    z-index: 700;
    max-height: none;
    gap: 14px;
    margin-top: -24px;
    padding: 38px 16px 34px;
    overflow: visible;
    border: 0;
    border-radius: 30px 30px 0 0;
    background: #ffffff;
    box-shadow: 0 -12px 30px rgba(28, 31, 36, 0.09);
  }

  .parking-app .panel::before {
    position: absolute;
    top: 13px;
    left: 50%;
    width: 48px;
    height: 5px;
    border-radius: 999px;
    background: #cbd4dd;
    content: "";
    transform: translateX(-50%);
  }

  .panel-toolbar {
    position: static;
    min-height: 50px;
    margin: 0;
    padding: 0 0 2px;
    border-bottom: 0;
    background: transparent;
  }

  .parking-app .status {
    font-size: 1.05rem;
  }

  .sort-control {
    min-height: 43px;
    padding: 0 12px;
    font-size: 0.8rem;
  }

  .parking-app .map-wrap {
    position: relative;
    top: auto;
    overflow: hidden;
    border-width: 1px 0 0;
    border-radius: 0;
    box-shadow: none;
  }

  .parking-app #map {
    height: var(--map-height, 58vh);
    min-height: 440px;
  }

  .map-legend {
    right: auto;
    left: 14px;
    bottom: 72px;
    min-width: 145px;
    padding: 11px 12px;
    font-size: 0.66rem;
  }

  .view-switch {
    position: absolute;
    left: 50%;
    bottom: 14px;
    z-index: 650;
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 176px;
    padding: 3px;
    border: 1px solid rgba(204, 214, 224, 0.95);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 10px 24px rgba(28, 31, 36, 0.14);
    transform: translateX(-50%);
    backdrop-filter: blur(10px);
  }

  .view-switch button {
    min-height: 38px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #5a6675;
    font: 700 0.82rem/1 "Open Sans", Arial, sans-serif;
    cursor: pointer;
  }

  .view-switch button.is-active {
    background: var(--accent-soft);
    color: var(--accent-dark);
  }

  .parking-app .map-overlay {
    bottom: 126px;
  }

  .parking-app .card {
    display: flex;
    gap: 12px;
    flex-direction: column;
    padding: 18px;
    border-radius: 14px;
  }

  .parking-app .card .meta:first-child {
    order: 1;
  }

  .parking-app .card-content-row,
  .parking-app .card-footer-row {
    display: contents;
  }

  .parking-app .card-summary {
    order: 2;
  }

  .parking-app .card-distance {
    order: 3;
    margin-top: 1px;
    font-size: 0.88rem;
  }

  .parking-app .card-actions {
    order: 4;
    width: 100%;
    margin-top: 3px;
  }

  .parking-app .card-footer-row > .button-link.secondary {
    order: 5;
    align-self: center;
  }

  .parking-app .card h3 {
    font-size: 1.28rem;
  }

  .parking-app .capacity__row {
    font-size: 0.95rem;
  }

  .parking-app .capacity__bar {
    max-width: 100%;
  }

  .parking-app .button-link.primary {
    width: 100%;
    min-height: 48px;
    font-size: 0.95rem;
  }

  .parking-app .button-link.secondary {
    font-size: 0.9rem;
  }

  .leaflet-tooltip.parking-tooltip {
    padding: 6px 8px;
    font-size: 0.62rem;
  }

  .leaflet-tooltip.parking-tooltip strong {
    font-size: 0.65rem;
  }

  .parking-app .footer {
    background: #ffffff;
    padding-bottom: calc(26px + env(safe-area-inset-bottom));
  }
}

@media (max-width: 420px) {
  .parking-app .topbar {
    padding-right: 14px;
    padding-left: 14px;
  }

  .brand-row h1 {
    font-size: 1.35rem;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
  }

  .parking-app .search-field input {
    font-size: 0.92rem;
  }

  .parking-app .filters {
    width: calc(100vw - 14px);
    margin-right: -14px;
    padding-right: 14px;
  }

  .parking-app .filters .field {
    flex-basis: 126px;
  }

  .parking-app .switch span {
    padding: 0 11px;
  }

  .map-legend {
    max-width: 142px;
  }

  .parking-app .panel {
    padding-right: 12px;
    padding-left: 12px;
  }

  .parking-app .card {
    padding: 16px;
  }
}
