:root {
  --bg: #030405;
  --panel: #08090b;
  --panel-light: #0d0f12;
  --card: #111316;
  --muted: #9aa7b5;
  --text: #edf2f7;
  --header-bg: #050607;
  --main-bg: #030405;
  --sidebar-bg: linear-gradient(180deg, #070809 0%, #0b0c0e 100%);
  --input-bg: rgba(255, 255, 255, 0.04);
  --card-bg: rgba(255, 255, 255, 0.025);
  --map-bg: #090b0d;
  --floor-bg: #080a0c;
  --surface-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
  --subtle-shadow: 0 16px 36px rgba(0, 0, 0, 0.42);
  --header-text: #d7e0e9;
  --icon-contrast: #fff;
  --blue-text: #b9d7ff;
  --detail-text: #dfeaf7;
  --outline-color: rgba(148, 163, 184, 0.35);
  --outline-fill: rgba(148, 163, 184, 0.08);
  --green: #22c55e;
  --red: #ef4444;
  --amber: #f59e0b;
  --blue: #60a5fa;
  --border: rgba(255, 255, 255, 0.075);
  --shadow: var(--surface-shadow);
  --header-height: 88px;
  --footer-height: 52px;
}

* {
  box-sizing: border-box;
}

* {
  scrollbar-color: #405064 var(--panel);
  scrollbar-width: thin;
}

::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}

::-webkit-scrollbar-track {
  background: var(--panel);
}

::-webkit-scrollbar-thumb {
  border: 2px solid var(--panel);
  border-radius: 8px;
  background: #292c30;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, "Segoe UI", sans-serif;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

.app-header {
  height: var(--header-height);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 20px;
  padding: 0 24px;
  background: var(--header-bg);
  border-bottom: 1px solid var(--border);
  position: relative;
  z-index: 5;
}

.brand {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-home-btn {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 12px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
}

.brand-home-btn:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.brand-mark {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  fill: none;
  stroke: #8f1d2c;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.4;
  pointer-events: none;
}

.brand-copy {
  min-width: 0;
}

.brand-title {
  display: block;
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.2;
}

.brand-title sup {
  margin-left: 2px;
  color: var(--icon-contrast);
  font-size: 0.55em;
  vertical-align: super;
}

.brand small {
  color: var(--muted);
}

.demo-status {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  color: #c2cbd2;
}

.demo-status-header {
  justify-self: center;
  max-width: 100%;
  padding: 11px 16px;
  border: 1px solid rgba(245, 158, 11, 0.16);
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.07);
  font-size: 0.78rem;
  white-space: nowrap;
}

.demo-status strong {
  color: #e0e6e9;
  font-size: 0.72rem;
  letter-spacing: 0.055em;
  white-space: nowrap;
}

.demo-status-dot {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.12);
}

.demo-status-separator {
  color: #718092;
}

.demo-status-drawer {
  display: none;
}

.header-location-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: 0;
}

.header-home-btn {
  display: none;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

html[data-view="parking-details"] .header-home-btn {
  display: grid;
  place-items: center;
}

.header-home-btn svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: #fff;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.location-indicator {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 8px;
  color: var(--header-text);
  font-size: 0.88rem;
  white-space: nowrap;
}

.location-indicator svg {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  fill: none;
  stroke: var(--icon-contrast);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.header-tools {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-self: end;
  gap: 5px;
  min-width: 0;
}

.theme-control {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  min-height: 18px;
}

.theme-icon {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: var(--muted);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.theme-toggle {
  position: relative;
  width: 34px;
  height: 18px;
  padding: 2px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--panel-light);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.theme-toggle:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.theme-toggle-thumb {
  display: block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--text);
  transition: transform 0.2s ease;
}

:root[data-theme="bright"] .theme-toggle {
  border-color: rgba(71, 85, 105, 0.35);
  background: #dce2e8;
}

:root[data-theme="bright"] .theme-toggle-thumb {
  transform: translateX(16px);
  background: #fff;
}

.sample-data-notice {
  display: none;
}

.drawer-handle {
  display: none;
}

.drawer-backdrop {
  display: none;
}

.drawer-content {
  min-height: 0;
}

.app-shell {
  height: calc(100% - var(--header-height) - var(--footer-height));
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(300px, 40%) minmax(0, 60%);
  overflow: hidden;
}

.sidebar {
  min-width: 0;
  height: 100%;
  overflow-y: auto;
  padding: 22px 20px 28px;
  background: var(--sidebar-bg);
  border-right: 1px solid var(--border);
  overscroll-behavior: contain;
}

.main-panel {
  min-width: 0;
  height: 100%;
  overflow: auto;
  padding: 22px;
  background: var(--main-bg);
  overscroll-behavior: contain;
}

html[data-view="parking-details"] .app-shell {
  grid-template-columns: minmax(0, 1fr);
}

html[data-view="parking-details"] .sidebar,
html[data-view="parking-details"] .search-section,
html[data-view="parking-details"] .destination-summary,
html[data-view="parking-details"] .street-map-panel,
html[data-view="parking-details"] .sample-data-notice {
  display: none;
}

html[data-view="parking-details"] .main-panel {
  width: 100%;
}

.guidance-back-btn,
.guidance-recenter-btn {
  display: none;
}

html[data-guidance="on"] {
  --header-height: 0px;
  --footer-height: 0px;
}

html[data-guidance="on"] .app-header,
html[data-guidance="on"] .site-footer,
html[data-guidance="on"] .search-section,
html[data-guidance="on"] .parking-details-heading,
html[data-guidance="on"] .parking-lot-section,
html[data-guidance="on"] .floor-toolbar,
html[data-guidance="on"] .route-preference-panel,
html[data-guidance="on"] .availability-panel,
html[data-guidance="on"] .fast-book-overlay,
html[data-guidance="on"] .fast-book-dropdown,
html[data-guidance="on"] .simulator-drawer,
html[data-guidance="on"] .floor-map-legend,
html[data-guidance="on"] #directionBtn {
  display: none;
}

html[data-guidance="on"] .app-shell,
html[data-guidance="on"] .main-panel,
html[data-guidance="on"] .parking-details-view,
html[data-guidance="on"] .parking-view-panel,
html[data-guidance="on"] .parking-floor-shell,
html[data-guidance="on"] .parking-wrapper,
html[data-guidance="on"] .parking-floor-stage,
html[data-guidance="on"] .parking-floor-map {
  width: 100%;
  max-width: none;
  height: 100%;
  min-height: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

html[data-guidance="on"] .app-shell {
  display: block;
}

html[data-guidance="on"] .main-panel {
  display: flex;
  flex-direction: column;
}

html[data-guidance="on"] .parking-details-view,
html[data-guidance="on"] .parking-view-panel,
html[data-guidance="on"] .parking-floor-shell,
html[data-guidance="on"] .parking-wrapper {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: var(--floor-bg);
}

html[data-guidance="on"] .parking-view-panel {
  grid-column: 1 / -1;
  grid-row: auto;
}

html[data-guidance="on"] .parking-floor-stage,
html[data-guidance="on"] .parking-floor-map {
  flex: 1 1 auto;
  height: auto;
}

html[data-guidance="on"] .floor-map-actions {
  display: flex;
  flex: 0 0 auto;
  width: 100%;
  min-height: 52px;
  justify-content: flex-start;
}

html[data-guidance="on"] .floor-map-actions .direction-button {
  flex: 1 1 0;
}

.floor-map-exit-page-btn {
  display: none;
}

html[data-guidance="on"] .floor-map-exit-page-btn {
  display: inline-flex;
  flex: 0 0 48px;
  align-items: center;
  justify-content: center;
  width: 48px;
  min-width: 48px;
  min-height: 36px;
  align-self: stretch;
  padding: 0;
  border: 1px solid #dc2626;
  border-radius: 10px;
  background: #ef4444;
  color: #fff;
  cursor: pointer;
}

html[data-guidance="on"] .floor-map-exit-page-btn:hover,
html[data-guidance="on"] .floor-map-exit-page-btn:focus-visible {
  background: #dc2626;
}

html[data-guidance="on"] .floor-map-exit-page-btn svg {
  display: block;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: #fff;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

html[data-guidance="on"] .map-top-controls {
  flex: 0 0 auto;
}

html[data-guidance="on"] .edit-sample-map-bar {
  flex: 0 0 auto;
}

@media (min-width: 761px) {
  html[data-guidance="on"] .map-top-controls {
    height: 92px;
    min-height: 92px;
    gap: 17px;
    padding: 10px 20px;
  }

  html[data-guidance="on"] .next-move-indicator {
    gap: 17px;
    font-size: 1.5rem;
  }

  html[data-guidance="on"] .next-move-distance,
  html[data-guidance="on"] .next-move-text {
    font-size: 1.46rem;
  }

  html[data-guidance="on"] .next-move-hint {
    font-size: 0.92rem;
  }

  html[data-guidance="on"] .next-move-arrow {
    width: 61px;
    height: 61px;
    flex: 0 0 61px;
    border-radius: 17px;
    font-size: 2.55rem;
    -webkit-text-stroke: 4.08px currentColor;
  }
}

html[data-guidance="on"] .guidance-back-btn,
html[data-guidance="on"] .guidance-recenter-btn {
  display: grid;
  width: 22px;
  height: 18px;
  place-items: center;
  padding: 0;
  border: 1px solid var(--outline-color);
  border-radius: 5px;
  background: var(--floor-bg);
  color: var(--detail-text);
  cursor: pointer;
}

html[data-guidance="on"] .guidance-back-btn svg,
html[data-guidance="on"] .guidance-recenter-btn svg {
  display: block;
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.parking-details-view {
  display: none;
}

html[data-view="parking-details"] .parking-details-view {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  gap: 12px;
  width: min(100%, 1100px);
  margin: 0 auto;
}

.parking-details-heading {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 50%) auto;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.parking-details-heading-copy {
  min-width: 0;
}

.destination-heading-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.destination-edit-btn {
  display: grid;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.destination-edit-btn svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.destination-edit-btn:hover,
.destination-edit-btn:focus-visible {
  color: var(--text);
}

.parking-lot-section {
  grid-column: 1 / -1;
  grid-row: 2;
  margin: 0 0 8px;
  padding: 0 0 16px;
  border-bottom: 1px solid var(--border);
}

.parking-lot-status-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 8px 0 0;
  flex-wrap: wrap;
}

.parking-lot-status {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.parking-lot-status.is-not-parked {
  color: #f0a3a3;
}

.parking-lot-status.is-parked {
  color: #86d9a4;
}

.parking-lot-location {
  margin: 0;
  color: var(--detail-text);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.2;
}

.parking-lot-location[hidden] {
  display: none;
}

.parking-lot-reservation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 8px 0 0;
  color: var(--detail-text);
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.35;
}

.parking-lot-reservation[hidden] {
  display: none;
}

.parking-lot-reservation-mark {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 5px;
}

.parking-lot-reservation-check {
  display: grid;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: #22c55e;
}

.parking-lot-reservation-check svg {
  width: 10px;
  height: 10px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.6;
}

.parking-lot-reservation-label {
  color: var(--detail-text);
  font-size: 0.72rem;
  font-weight: 700;
}

.destination-totals-block {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: flex-end;
  align-self: center;
  gap: 6px;
}

.destination-totals-label {
  margin: 0;
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1;
  text-align: right;
  text-transform: uppercase;
}

.destination-totals {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}

.destination-total {
  display: flex;
  width: 70px;
  min-height: 62px;
  box-sizing: border-box;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 5px 5px 6px;
  border: 1px solid var(--border);
  border-radius: 17px;
  background: var(--input-bg);
  box-shadow: 0 1px 2px rgba(255, 255, 255, 0.28), 0 2px 4px rgba(255, 255, 255, 0.14);
  text-align: center;
}

.destination-total > span {
  color: var(--muted);
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.1;
  text-transform: uppercase;
}

.destination-total-value {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 3px;
  margin: 0;
  line-height: 1;
}

.destination-total strong {
  font-size: 1.01rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.destination-total-of {
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 500;
}

.destination-total-available strong {
  color: #86d9a4;
}

.destination-total-occupied strong {
  color: #f0a3a3;
}

.parking-view-panel {
  grid-column: 1 / -1;
  grid-row: 3;
  overflow: visible;
}

.route-preference-panel {
  position: relative;
  z-index: 26;
  overflow: visible;
}

.availability-panel {
  grid-column: 1 / -1;
  grid-row: 4;
  margin: 0 0 2px;
  padding: 15px;
}

.simulator-drawer {
  display: contents;
}

.simulator-drawer-content {
  display: contents;
}

.parking-view-panel .route-preference-panel {
  margin: 0 0 12px;
  padding: 0;
}

.parking-wrapper .floor-map-actions {
  position: relative;
  z-index: 2;
  right: auto;
  bottom: auto;
  margin: 0;
}

.drive-panel,
.route-option-panel {
  grid-row: 5;
  margin: 0;
  padding: 15px;
}

.drive-panel {
  grid-column: 1;
}

.route-option-panel {
  grid-column: 2;
}

.route-preference-panel .section-heading {
  align-items: center;
}

.route-preference-panel .section-heading h2 {
  margin: 0;
}

.route-preference-status {
  display: none;
}

.scenario-grid {
  display: grid;
  gap: 10px;
}

.scenario-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.scenario-btn {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  height: 37px;
  min-height: 37px;
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--input-bg);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.scenario-icon {
  display: grid;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  place-items: center;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
}

.scenario-icon svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.scenario-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 0;
}

.scenario-copy strong {
  font-size: 0.62rem;
  font-weight: 700;
}

.scenario-copy small {
  color: var(--muted);
  font-size: 0.53rem;
  line-height: 1.3;
}

.scenario-check {
  display: none;
  width: 18px;
  height: 18px;
  color: #166534;
}

.scenario-check svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.4;
}

.scenario-btn.active {
  border-color: rgba(34, 197, 94, 0.38);
  background: rgba(34, 197, 94, 0.14);
}

.scenario-btn.active .scenario-icon {
  background: #14532d;
  color: #ecfdf3;
}

.scenario-btn.active .scenario-check {
  display: block;
}

.scenario-btn.is-reserved {
  cursor: default;
}

.scenario-btn:hover {
  border-color: rgba(148, 163, 184, 0.35);
}

.fast-book-wrap {
  position: relative;
  z-index: 28;
  display: grid;
  min-width: 0;
  align-items: stretch;
}

.fast-book-wrap > .scenario-btn {
  width: 100%;
  min-width: 0;
  height: 100%;
}

.fast-book-dropdown {
  position: absolute;
  z-index: 30;
  top: calc(100% + 4px);
  right: 0;
  left: 0;
  display: block;
  max-height: calc(32px * 3 + 8px);
  margin: 0;
  padding: 4px;
  overflow-y: auto;
  list-style: none;
  border: 1px solid var(--outline-color);
  border-radius: 9px;
  background: var(--panel);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}

.fast-book-dropdown[hidden] {
  display: none;
}

.fast-book-lot-option {
  display: flex;
  width: 100%;
  min-height: 32px;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--detail-text);
  font: inherit;
  font-size: 0.68rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.fast-book-lot-option:hover,
.fast-book-lot-option:focus-visible {
  background: rgba(96, 165, 250, 0.16);
}

.fast-book-lot-empty {
  margin: 0;
  padding: 8px;
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 600;
}

.fast-book-overlay {
  position: fixed;
  z-index: 80;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(2, 6, 23, 0.55);
}

.fast-book-overlay[hidden] {
  display: none;
}

.fast-book-dialog-shell {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
}

.fast-book-nav {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  place-items: center;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--panel);
  color: var(--detail-text);
  cursor: pointer;
}

.fast-book-nav svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.fast-book-nav:hover,
.fast-book-nav:focus-visible {
  border-color: rgba(96, 165, 250, 0.7);
  background: rgba(96, 165, 250, 0.16);
}

.fast-book-nav:disabled {
  opacity: 0.35;
  cursor: default;
}

.fast-book-card {
  overflow: visible;
  width: min(100%, 320px);
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--panel);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  color: var(--detail-text);
}

.fast-book-card h3 {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 700;
}

.fast-book-dialog-sub {
  margin: 6px 0 12px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
}

.fast-book-times {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: calc(34px * 6 + 8px * 5);
  overflow-y: auto;
}

.fast-book-time-option {
  min-height: 34px;
  padding: 0 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--input-bg);
  color: var(--text);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
}

.fast-book-time-option:hover,
.fast-book-time-option:focus-visible,
.fast-book-time-option.is-selected {
  border-color: rgba(96, 165, 250, 0.7);
  background: rgba(96, 165, 250, 0.16);
}

.fast-book-summary {
  display: grid;
  gap: 8px;
  margin: 12px 0 16px;
}

.fast-book-summary > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.fast-book-summary dt {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.fast-book-summary dd {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 400;
}

.fast-book-plate-edit {
  position: relative;
  display: grid;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--muted);
  cursor: not-allowed;
}

.fast-book-plate-edit-icon {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.fast-book-plate-edit-tip {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: calc(100% + 6px);
  display: none;
  flex-direction: row;
  align-items: center;
  gap: 4px;
  padding: 6px 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.96);
  color: #fecaca;
  font-size: 0.52rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.15;
  text-transform: none;
  white-space: nowrap;
  pointer-events: none;
  transform: translateX(-50%);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
}

.fast-book-plate-edit:hover .fast-book-plate-edit-tip,
.fast-book-plate-edit:focus .fast-book-plate-edit-tip,
.fast-book-plate-edit:focus-visible .fast-book-plate-edit-tip,
.fast-book-plate-edit.is-tip-open .fast-book-plate-edit-tip {
  display: flex;
}

.fast-book-dialog-actions {
  display: flex;
  gap: 8px;
}

.fast-book-dialog-actions button {
  flex: 1 1 0;
  min-height: 34px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
}

#fastBookConfirmBtn {
  border: 1px solid #16a34a;
  background: #22c55e;
  color: #fff;
}

#fastBookCancelBtn {
  border: 1px solid var(--border);
  background: var(--input-bg);
  color: var(--text);
}

.scenario-row,
.scenario-grid {
  overflow: visible;
}

.simulator-drawer-handle {
  display: none;
}

.parking-details-heading h2 {
  margin: 10px 0 0;
  font-size: 1.25rem;
}

.street-map-header .eyebrow,
.floor-toolbar .eyebrow {
  margin-bottom: 4px;
}

.street-map-header .eyebrow {
  font-size: 0.82rem;
}

.map-subtitle {
  margin: 0 0 11px;
  font-size: 0.68rem;
}

.eyebrow {
  margin: 0 0 5px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.search-section {
  position: relative;
  z-index: 6;
  margin-bottom: 18px;
}

.search-box {
  position: relative;
  display: block;
  width: 100%;
  margin-top: 10px;
}

.search-box input {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  height: 44px;
  padding: 0 44px 0 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  outline: none;
  background: var(--input-bg);
  color: var(--text);
}

.search-box input:focus {
  border-color: var(--blue);
}

.search-box button {
  position: absolute;
  top: 50%;
  right: 4px;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transform: translateY(-50%);
}

.search-box button:hover,
.search-box button:focus-visible {
  color: var(--text);
  background: transparent;
}

.search-box button svg {
  display: block;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.search-suggestions {
  position: absolute;
  z-index: 5;
  top: calc(100% + 6px);
  right: 0;
  left: 0;
  max-height: min(360px, 55vh);
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel-light);
  box-shadow: var(--subtle-shadow);
}

.search-suggestions[hidden] {
  display: none;
}

.search-suggestion {
  display: flex;
  width: 100%;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 0;
  border-bottom: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.search-suggestion:last-child {
  border-bottom: 0;
}

.search-suggestion:hover,
.search-suggestion[aria-selected="true"] {
  background: rgba(96, 165, 250, 0.12);
}

.search-suggestion > span:first-child {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.search-suggestion strong {
  overflow: hidden;
  font-size: 0.82rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-suggestion small {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.7rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.suggestion-distance {
  flex: 0 0 auto;
  color: var(--blue-text);
  font-size: 0.7rem;
  white-space: nowrap;
}

.search-suggestion-empty {
  margin: 0;
  padding: 14px 12px;
  color: var(--muted);
  font-size: 0.78rem;
}

.search-suggestion-message {
  margin: 0;
  padding: 9px 12px;
  border-bottom: 1px solid var(--border);
  color: #c4d2e2;
  font-size: 0.7rem;
}

.search-suggestion-error {
  color: #fca5a5;
}

.toolbar button,
.zoom-controls button {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--input-bg);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.toolbar button {
  min-height: 42px;
  padding: 0 13px;
}

.toolbar button:hover,
.zoom-controls button:hover {
  background: rgba(96, 165, 250, 0.14);
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 10px;
  margin-bottom: 10px;
}

.section-heading h2,
.destination-summary h2 {
  margin: 0;
  font-size: 1.1rem;
}

.result-count {
  flex: 0 0 auto;
  padding: 5px 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.72rem;
}

.results-status {
  min-height: 0;
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.results-status:not(:empty) {
  margin-bottom: 8px;
}

.building-list {
  display: grid;
  gap: 8px;
}

.nearby-loading {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px dashed var(--border);
  border-radius: 12px;
  color: var(--muted);
  font-size: 0.8rem;
}

.nearby-loading-spinner {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  border: 2px solid rgba(96, 165, 250, 0.25);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: nearby-spin 0.7s linear infinite;
}

@keyframes nearby-spin {
  to { transform: rotate(360deg); }
}

.building-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 8px;
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card-bg);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.building-card:hover {
  background: rgba(96, 165, 250, 0.08);
}

.building-card.active {
  border-color: rgba(96, 165, 250, 0.78);
  background: rgba(96, 165, 250, 0.1);
}

.result-heading {
  display: flex;
  align-items: center;
  gap: 7px;
}

.result-location-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  fill: none;
  stroke: #ef4444;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.building-card h3 {
  margin: 0 0 4px;
  font-size: 0.88rem;
  line-height: 1.3;
}

.building-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.73rem;
  line-height: 1.45;
  text-align: left;
}

.result-distance {
  padding-top: 2px;
  color: #b9d7ff;
  font-size: 0.7rem;
  white-space: nowrap;
}

.result-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 5px;
  margin-top: 7px;
  text-align: left;
}

.result-tags span {
  padding: 3px 6px;
  border-radius: 6px;
  background: rgba(34, 197, 94, 0.1);
  color: #a7f3c2;
  font-size: 0.64rem;
}

.panel-section {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.availability-panel.panel-section,
.drive-panel.panel-section,
.route-option-panel.panel-section {
  margin-top: 0;
}

.panel-section h2 {
  margin: 0 0 11px;
  font-size: 0.92rem;
}

.availability-panel h2.eyebrow,
.route-preference-panel h2.eyebrow,
.drive-panel h2.eyebrow,
.route-option-panel h2.eyebrow {
  margin: 0 0 11px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.choice-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.choice-card {
  position: relative;
  cursor: pointer;
}

.choice-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice-card span,
.option-list label {
  display: flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.025);
  font-size: 0.8rem;
}

.choice-card span {
  justify-content: center;
  gap: 8px;
}

.choice-card .vehicle-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.choice-card input:checked + span {
  border-color: rgba(96, 165, 250, 0.7);
  background: rgba(96, 165, 250, 0.1);
}

.choice-card input:focus-visible + span {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.option-list {
  display: grid;
  gap: 7px;
}

html[data-vehicle="motorcycle"] .option-list label[data-vehicle-option="car"] {
  display: none;
}

html[data-vehicle="motorcycle"] .parking-details-control,
html[data-vehicle="motorcycle"] .parking-details-btn {
  display: none;
}

.option-list label {
  gap: 9px;
  cursor: pointer;
}

.option-list input {
  width: 15px;
  height: 15px;
  margin: 0;
  accent-color: var(--blue);
}

.destination-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin: 0 0 18px;
  padding: 0 0 16px;
  border-bottom: 1px solid var(--border);
}

.selected-result {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.destination-summary .selected-result,
.parking-details-heading .selected-result {
  max-width: 100%;
  font-size: 0.62rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: end;
  gap: 8px;
}

.content-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--panel-light);
  box-shadow: var(--shadow);
}

.street-map-panel {
  margin-bottom: 16px;
  padding: 15px;
}

.street-map-header h3 {
  margin: 0 0 11px;
  font-size: 1.05rem;
}

.floor-picker {
  display: flex;
  align-items: center;
  gap: 10px;
}

.floor-toolbar h3 {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.map-info-popup p {
  margin: 5px 0 10px;
  color: var(--muted);
}

.map-info-actions {
  display: flex;
  gap: 8px;
}

.map-info-actions button {
  padding: 6px 8px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--input-bg);
  color: var(--text);
  font-size: 0.72rem;
  cursor: pointer;
}

.parking-details-control button {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 0;
  background: #080a0b;
  color: #fff;
  cursor: pointer;
}

.leaflet-top.leaflet-right {
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

.leaflet-top.leaflet-right .leaflet-control {
  float: none;
  clear: none;
  margin: 10px 10px 0 0;
}

.parking-details-control svg {
  display: block;
  width: 40px;
  height: 40px;
  margin: auto;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  overflow: visible;
  transform: translate(-0.8px, 0);
  pointer-events: none;
}

.parking-search-lens,
.parking-search-handle {
  fill: #080a0b;
  stroke: #fff;
  stroke-linecap: round;
  stroke-width: 3;
}

.parking-location-letter {
  fill: #fff;
  font-family: Arial, sans-serif;
  font-size: 11px;
  font-weight: 900;
}

.leaflet-control-zoom.leaflet-bar,
.leaflet-control-zoom.leaflet-bar a,
.leaflet-control-zoom.leaflet-bar a:hover {
  width: 26px;
}

.leaflet-control-zoom.leaflet-bar a,
.leaflet-control-zoom.leaflet-bar a:hover {
  box-sizing: border-box;
  width: 26px;
  height: 26px;
  border-color: #080a0b;
  background: #080a0b;
  color: #fff;
  font-size: 18px;
  line-height: 26px;
}

.leaflet-control-zoom a:hover {
  background: #25292c;
  color: #fff;
}

#map,
.leaflet-container {
  width: 100%;
  height: 300px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--map-bg);
}

.leaflet-container {
  overflow: hidden;
}

.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
  background: var(--panel-light);
  color: var(--text);
}

.parking-view-panel {
  margin-bottom: 2px;
  padding: 15px;
}

.floor-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 12px;
  margin-bottom: 12px;
}

.map-top-controls {
  display: flex;
  width: 100%;
  height: 54px;
  min-height: 54px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 12px;
  background: #0a1628;
  border-bottom: 1px solid rgba(96, 165, 250, 0.12);
}

.parking-floor-shell {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 300px;
}

.edit-sample-map-bar {
  display: flex;
  width: 100%;
  flex: 0 0 auto;
  justify-content: flex-end;
  align-items: center;
  padding: 0 2px;
  background: transparent;
  position: relative;
  z-index: 24;
}

.edit-sample-map-wrap {
  position: relative;
}

.edit-sample-map-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid var(--border);
  background: var(--input-bg);
  color: var(--text);
  border-radius: 999px;
  padding: 5px 10px 5px 8px;
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.edit-sample-map-btn-icon {
  width: 11px;
  height: 11px;
  flex: 0 0 11px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.edit-sample-map-btn-icon circle {
  fill: currentColor;
}

.edit-sample-map-btn:hover,
.edit-sample-map-btn[aria-expanded="true"] {
  border-color: rgba(148, 163, 184, 0.35);
  background: var(--input-bg);
  color: var(--text);
}

.edit-sample-map-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 168px;
  max-width: calc(100vw - 24px);
  padding: 8px;
  border-radius: 12px;
  border: 1px solid rgba(96, 165, 250, 0.28);
  background: #0f2138;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

.edit-sample-map-menu[hidden] {
  display: none;
}

.edit-sample-map-grid {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 160px;
  overflow-x: hidden;
  overflow-y: auto;
}

.edit-sample-preview {
  display: grid;
  gap: 4px;
  padding: 5px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: #0b1728;
  color: #cbd5e1;
  cursor: pointer;
  text-align: left;
  flex: 0 0 auto;
}

.edit-sample-preview.is-selected {
  border-color: #60a5fa;
  box-shadow: 0 0 0 1px #60a5fa;
}

.edit-sample-preview-frame {
  width: 70%;
  height: 39px;
  margin-inline: auto;
  border-radius: 6px;
  overflow: hidden;
  background: #07101c;
}

.edit-sample-preview-frame svg {
  display: block;
  width: 100%;
  height: 100%;
}

.edit-sample-preview-name {
  font-size: 0.68rem;
  font-weight: 650;
  line-height: 1.2;
}

.edit-sample-upload {
  position: relative;
  flex: 0 0 auto;
  min-height: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1px dashed rgba(148, 163, 184, 0.45);
  background: #0b1728;
  color: #94a3b8;
  font-size: 1.6rem;
  font-weight: 500;
  line-height: 1;
  cursor: not-allowed;
}

.edit-sample-upload-plus {
  transform: translateY(-1px);
}

.edit-sample-upload-tip {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0 6px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.94);
  color: #fecaca;
  font-size: 0.52rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.15;
  text-transform: none;
}

.edit-sample-upload-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.edit-sample-upload-sub {
  font-size: 0.46rem;
  font-weight: 650;
}

.edit-sample-upload:hover .edit-sample-upload-tip,
.edit-sample-upload:focus .edit-sample-upload-tip,
.edit-sample-upload:focus-visible .edit-sample-upload-tip {
  display: flex;
}

.edit-sample-disallow {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
}

.floor-map-actions {
  display: flex;
  width: 100%;
  min-height: 48px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 8px;
  padding: 6px 10px;
  background: #0a1628;
  border-top: 1px solid rgba(96, 165, 250, 0.12);
}

.parking-wrapper {
  position: relative;
}

.next-move-indicator {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: #fff;
  font-size: 0.88rem;
}

.next-move-indicator[hidden] {
  display: none;
}

.next-move-distance {
  flex: 0 0 auto;
  color: #fff;
  font-size: 0.86rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.next-move-arrow {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  place-items: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 1.5rem;
  font-weight: 900;
  -webkit-text-stroke: 2.4px currentColor;
  paint-order: stroke fill;
}

.next-move-arrow[hidden] {
  display: none;
}

.next-move-arrow[data-uturn] {
  -webkit-text-stroke: 0;
}

.next-move-arrow[data-uturn] .route-arrow {
  width: 72%;
  height: 72%;
  stroke-width: 2.2;
  transform-origin: center;
}

.next-move-arrow[data-uturn="down"] .route-arrow { transform: rotate(0deg); }
.next-move-arrow[data-uturn="left"] .route-arrow { transform: rotate(90deg); }
.next-move-arrow[data-uturn="up"] .route-arrow { transform: rotate(180deg); }
.next-move-arrow[data-uturn="right"] .route-arrow { transform: rotate(-90deg); }

.next-move-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 2px;
}

.next-move-text {
  min-width: 0;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.15;
}

.next-move-hint {
  color: rgba(248, 250, 252, 0.78);
  font-size: 0.62rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}

.next-move-hint[hidden] {
  display: none;
}

.parking-floor-map[data-swiping="true"],
.parking-floor-map[data-panning="true"] {
  cursor: grabbing;
}

.parking-floor-map .garage-outline {
  cursor: grab;
}

.direction-button {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  border: 1px solid rgba(96, 165, 250, 0.38);
  border-radius: 10px;
  background: rgba(96, 165, 250, 0.16);
  color: #d5dee8;
  font-size: 0.72rem;
  font-weight: 400;
  cursor: pointer;
}

.direction-icon {
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  place-items: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.14);
}

.direction-icon svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  stroke: none;
}

.direction-icon.direction-icon-exit svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.direction-icon-sign svg {
  width: 22px;
  height: 22px;
}

.direction-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  line-height: 1.15;
}

.direction-label {
  font-weight: 700;
  white-space: nowrap;
}

.direction-lot {
  font-size: 80%;
  opacity: 0.88;
}

.direction-button:disabled {
  opacity: 0.52;
  cursor: not-allowed;
}

.direction-button.is-selected {
  color: #1f2937;
  background: rgba(191, 219, 254, 0.92);
  border-color: rgba(96, 165, 250, 0.7);
}

.floor-map-actions .direction-button {
  color: #d5dee8;
  background: rgba(96, 165, 250, 0.16);
  border-color: rgba(96, 165, 250, 0.38);
}

.floor-map-actions .direction-button.is-selected {
  color: #1f2937;
  background: rgba(191, 219, 254, 0.92);
  border-color: rgba(96, 165, 250, 0.7);
}

.floor-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.floor-tab {
  display: inline-flex;
  height: 37px;
  min-height: 37px;
  align-items: center;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--input-bg);
  color: var(--text);
  cursor: pointer;
}

.floor-tab.active {
  border-color: rgba(96, 165, 250, 0.7);
  background: rgba(96, 165, 250, 0.12);
}

.zoom-controls {
  display: flex;
  flex: 0 0 auto;
  gap: 6px;
}

.parking-floor-stage {
  position: relative;
  display: flex;
  width: 100%;
  min-height: 340px;
  flex: 1 1 auto;
  overflow: hidden;
  touch-action: none;
}

.parking-floor-hud {
  position: relative;
  flex: 0 0 auto;
  overflow: visible;
}

.floor-map-bottom-tools {
  position: absolute;
  right: calc(24 / 760 * 100%);
  bottom: calc(22 / 348 * 100%);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  pointer-events: auto;
}

.parking-floor-stage .zoom-controls {
  position: relative;
  right: auto;
  bottom: auto;
  z-index: 2;
  margin: 0;
  gap: 4px;
  pointer-events: auto;
}

.floor-idle-cursor {
  display: flex;
  width: auto;
  height: auto;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
  overflow: visible;
  padding: 3px 7px 3px 5px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--detail-text);
  pointer-events: none;
}

.floor-idle-cursor[hidden] {
  display: none !important;
}

.floor-idle-cursor-icon {
  display: block;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  overflow: visible;
  background: transparent;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.35));
}

.floor-idle-cursor-hand {
  fill: #fff;
  stroke: #0f172a;
  stroke-width: 1.15;
  stroke-linejoin: round;
  stroke-linecap: round;
  paint-order: fill stroke;
}

.floor-idle-cursor-label {
  font-size: 0.52rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.floor-idle-cursor.is-nudging {
  animation: floor-idle-nudge 0.5s ease-in-out infinite;
}

@keyframes floor-idle-nudge {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

.floor-map-legend {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 3px 7px;
  border: 1px solid var(--outline-color);
  border-radius: 6px;
  background: var(--floor-bg);
  color: var(--detail-text);
  font-size: 0.52rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.floor-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.floor-legend-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.floor-legend-ev {
  display: grid;
  width: 11px;
  height: 11px;
  flex: 0 0 11px;
  overflow: visible;
  place-items: center;
}

.floor-legend-ev svg {
  display: block;
  width: 11px;
  height: 11px;
  overflow: visible;
}

.floor-legend-ev svg path {
  fill: #3b9eff;
  stroke: #eff6ff;
  stroke-width: 0.8;
  stroke-linejoin: round;
}

.floor-legend-dot.fast {
  background: #5b21b6;
}

.floor-legend-dot.gold {
  background: #d4a017;
}

.parking-wrapper .zoom-controls button {
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  padding: 0;
  border: 1px solid var(--outline-color);
  border-radius: 5px;
  background: var(--floor-bg);
  box-shadow: none;
  color: var(--detail-text);
  line-height: 0;
}

.parking-wrapper .zoom-controls button svg {
  display: block;
  width: 10px;
  height: 10px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
}

.parking-wrapper {
  display: flex;
  min-height: 300px;
  flex: 1 1 auto;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: var(--card-bg);
}

.parking-floor-map {
  position: relative;
  display: flex;
  width: 100%;
  min-height: 340px;
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 0;
  touch-action: none;
  user-select: none;
  background:
    linear-gradient(135deg, rgba(148, 163, 184, 0.06), rgba(96, 165, 250, 0.03)),
    var(--floor-bg);
}

.parking-floor-map svg.floor-garage-svg {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  transform-origin: center;
  transition: transform 0.2s ease;
  filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.18));
}

.parking-floor-stage.is-pinching .parking-floor-map svg.floor-garage-svg,
.parking-floor-map.is-pinching svg.floor-garage-svg,
.parking-floor-stage.is-panning .parking-floor-map svg.floor-garage-svg,
.parking-floor-map.is-panning svg.floor-garage-svg {
  transition: none;
}

.parking-floor-map .lot {
  cursor: pointer;
  transition: fill 0.15s ease, stroke 0.2s ease;
}

.parking-floor-map .lot:hover {
  stroke: rgba(255, 255, 255, 0.8);
  stroke-width: 2;
}

.lot-hover-card {
  position: absolute;
  z-index: 12;
  min-width: 81px;
  padding: 5px 7px 7px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 9px;
  background: #ffffff;
  box-shadow: 0 5px 12px rgba(15, 23, 42, 0.18);
  color: #0f172a;
  pointer-events: none;
  transform: translate(-50%, calc(-100% - 10px));
}

.lot-hover-card[hidden] {
  display: none;
}

.save-parking-prompt {
  position: absolute;
  z-index: 14;
  top: 50%;
  left: 50%;
  display: grid;
  gap: 10px;
  min-width: 168px;
  padding: 10px 12px 11px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.22);
  color: #0f172a;
  pointer-events: auto;
  transform: translate(-50%, -50%);
}

.save-parking-prompt[hidden] {
  display: none;
}

.save-parking-prompt-title {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-align: center;
}

.save-parking-prompt-actions {
  display: flex;
  gap: 8px;
}

.save-parking-prompt-actions button {
  flex: 1 1 0;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
}

.save-parking-prompt-actions #saveParkingYesBtn {
  border: 1px solid #16a34a;
  background: #22c55e;
  color: #fff;
}

.save-parking-prompt-actions #saveParkingNoBtn {
  border: 1px solid rgba(15, 23, 42, 0.14);
  background: #f1f5f9;
  color: #334155;
}

.lot-hover-card p {
  margin: 0;
}

.lot-hover-id {
  font-size: 0.53rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.lot-hover-status {
  margin-top: 1px;
  font-size: 0.48rem;
  font-weight: 700;
}

.lot-hover-status.is-available {
  color: #22c55e;
}

.lot-hover-status.is-occupied {
  color: #ef4444;
}

.lot-hover-flag {
  display: flex;
  margin-top: 1px;
  align-items: center;
  gap: 4px;
  color: #334155;
  font-size: 0.46rem;
  font-weight: 700;
}

.lot-hover-flag[hidden] {
  display: none;
}

.lot-hover-flag-mark {
  display: grid;
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
}

.lot-hover-flag.is-fast .lot-hover-flag-mark {
  background: #5b21b6;
}

.lot-hover-flag.is-gold .lot-hover-flag-mark {
  background: #d4a017;
}

.lot-hover-flag.is-ev .lot-hover-flag-mark {
  width: 8px;
  height: 8px;
  border-radius: 0;
  background: transparent;
}

.lot-hover-flag-ev {
  display: none;
  width: 8px;
  height: 8px;
  fill: #3b9eff;
  stroke: #1e3a5f;
  stroke-width: 0.8;
  stroke-linejoin: round;
}

.lot-hover-flag.is-ev .lot-hover-flag-ev {
  display: block;
}

.lot-hover-distance,
.lot-hover-eta {
  margin-top: 3px;
  color: #475569;
  font-size: 0.46rem;
  font-weight: 600;
  line-height: 1.25;
}

.parking-floor-map .lot.available {
  fill: #86d9a4;
}

.parking-floor-map .lot.occupied {
  fill: #8f1d2c;
}

.parking-floor-map .lot.selected {
  stroke: #f8fafc;
  stroke-width: 3;
}

.parking-floor-map .route-line {
  stroke: #60a5fa;
  stroke-width: 5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 4px rgba(96, 165, 250, 0.45));
  animation: route-appear 0.5s ease-out both;
}

.parking-floor-map .route-point {
  fill: #60a5fa;
  stroke: #fff;
  stroke-width: 2;
}

.parking-floor-map .garage-outline {
  fill: var(--outline-fill);
  stroke: var(--outline-color);
  stroke-width: 3;
}

.parking-floor-map .aisle-centerline {
  stroke: rgba(255, 255, 255, 0.88);
  stroke-width: 1;
}

.parking-floor-map .aisle-arrow {
  fill: var(--detail-text);
  font-size: 11px;
  font-weight: 700;
  stroke: var(--floor-bg);
  stroke-width: 2px;
  paint-order: stroke;
}

.parking-floor-map .fixed-place-box {
  fill: var(--panel);
  stroke: var(--blue);
  stroke-width: 2;
}

.parking-floor-map .exit-gate .fixed-place-box {
  fill: #15354f;
  stroke: var(--blue);
}

.parking-floor-map .car-entrance .fixed-place-box {
  fill: #174b37;
  stroke: var(--green);
}

.parking-floor-map .exit-gate {
  cursor: pointer;
}

.parking-floor-map .building-entrance .fixed-place-box {
  fill: #41454a;
  stroke: #cbd5e1;
}

.parking-floor-map .fixed-place-label {
  fill: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.3px;
}

.parking-floor-map .building-entrance .fixed-place-label {
  font-size: 10px;
  letter-spacing: 0.2px;
}

.parking-floor-map .parked-car-body {
  fill: #d5dde3;
  stroke: #536171;
  stroke-width: 1.5;
}

.parking-floor-map .parked-car-window {
  fill: #5b7185;
}

.parking-floor-map .simulator-car {
  pointer-events: none;
  transition: transform 0.12s linear;
}

.parking-floor-map .simulator-car-body {
  fill: #1684f8;
  stroke: #e9f4ff;
  stroke-width: 2;
}

.parking-floor-map .simulator-car-window {
  fill: #c7e5ff;
}

.parking-floor-map .simulator-car-wheel {
  fill: #111827;
}

.parking-floor-map .parking-label {
  fill: var(--text);
  font-size: 12px;
  font-weight: 700;
}

.trip-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.trip-details > .panel-section {
  margin: 0;
  padding: 15px;
}

.trip-details > .panel-section:last-child {
  grid-column: 1 / -1;
}

.mini-stats,
.trip-summary {
  display: grid;
  gap: 8px;
}

.mini-stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.trip-summary {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mini-stats > div,
.trip-summary > div {
  min-width: 0;
  padding: 9px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--card-bg);
}

.mini-stats > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
}

.mini-stats > .availability-available {
  border-color: rgba(34, 197, 94, 0.24);
  background: rgba(34, 197, 94, 0.12);
}

.mini-stats > .availability-occupied {
  border-color: rgba(239, 68, 68, 0.24);
  background: rgba(239, 68, 68, 0.12);
}

.mini-stats > .availability-target {
  border-color: rgba(148, 163, 184, 0.24);
  background: rgba(148, 163, 184, 0.14);
}

.mini-stats span,
.trip-summary span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.62rem;
}

.mini-stats span {
  display: inline;
  margin-bottom: 0;
}

.mini-stats strong,
.trip-summary strong {
  font-size: 0.62rem;
}

.turn-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding-left: 0;
  list-style: none;
  color: var(--detail-text);
  font-size: 0.62rem;
}

.turn-list li {
  position: relative;
  display: grid;
  grid-template-columns: 19px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 0 0 12px;
  line-height: 1.55;
}

.turn-list li.active .route-direction-icon {
  background: #dbeafe;
  color: #075985;
  box-shadow: 0 0 0 2px rgba(96, 165, 250, 0.28);
}

.route-direction-icon {
  position: relative;
  display: inline-grid;
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  place-items: center;
  border-radius: 50%;
  background: #e9f2ee;
  color: #16725d;
}

.turn-list li:not(:last-child) .route-direction-icon::after {
  position: absolute;
  top: 19px;
  left: 9px;
  width: 1px;
  height: 12px;
  background: #cbd9d2;
  content: "";
}

.route-arrow {
  width: 11.5px;
  height: 11.5px;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.turn-list .route-empty {
  display: block;
  padding-bottom: 0;
  color: var(--muted);
}

@keyframes route-flow {
  to { stroke-dashoffset: -38; }
}

@keyframes route-appear {
  from { opacity: 0; }
  to { opacity: 1; }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

:root[data-theme="bright"] {
  --bg: #f8f8f6;
  --panel: #f0f1ef;
  --panel-light: #ffffff;
  --card: #ffffff;
  --muted: #667085;
  --text: #202833;
  --header-bg: #fafaf8;
  --main-bg: #f8f8f6;
  --sidebar-bg: linear-gradient(180deg, #f3f4f2 0%, #eaedeb 100%);
  --input-bg: rgba(15, 23, 42, 0.035);
  --card-bg: rgba(255, 255, 255, 0.86);
  --map-bg: #edf1f3;
  --floor-bg: #f3f5f6;
  --surface-shadow: 0 10px 28px rgba(31, 41, 55, 0.08);
  --subtle-shadow: 0 16px 36px rgba(31, 41, 55, 0.16);
  --header-text: #344054;
  --icon-contrast: #344054;
  --blue-text: #1d4ed8;
  --detail-text: #344054;
  --outline-color: rgba(71, 85, 105, 0.35);
  --outline-fill: rgba(148, 163, 184, 0.12);
  --blue: #2563eb;
  --border: rgba(31, 41, 55, 0.13);
}

:root[data-theme="bright"] ::-webkit-scrollbar-track {
  background: #f0f1ef;
}

:root[data-theme="bright"] ::-webkit-scrollbar-thumb {
  border-color: #f0f1ef;
  background: #b8c0c8;
}

:root[data-theme="bright"] {
  scrollbar-color: #b8c0c8 #f0f1ef;
}

:root[data-theme="bright"] .brand-title sup {
  color: #344054;
}

:root[data-theme="bright"] .demo-status-header,
:root[data-theme="bright"] .demo-status-drawer {
  color: #475467;
}

:root[data-theme="bright"] .demo-status strong {
  color: #344054;
}

:root[data-theme="bright"] .search-suggestion-message {
  color: #475467;
}

:root[data-theme="bright"] .search-suggestion-error {
  color: #b42318;
}

:root[data-theme="bright"] .result-tags span {
  background: rgba(34, 197, 94, 0.14);
  color: #166534;
}

:root[data-theme="bright"] .result-distance {
  color: #166534;
}

:root[data-theme="bright"] .sample-data-notice {
  color: #92400e;
}

:root[data-theme="bright"] .parking-floor-map svg.floor-garage-svg > rect:first-of-type {
  fill: var(--outline-fill);
  stroke: var(--outline-color);
}

:root[data-theme="bright"] .parking-floor-map .lot.selected {
  stroke: #1f2937;
}

:root[data-theme="bright"] .lot-hover-card {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.12);
  box-shadow: 0 5px 12px rgba(15, 23, 42, 0.16);
  color: #0f172a;
}

:root[data-theme="bright"] .drawer-handle:active {
  background: #e2e7eb;
}

:root[data-theme="bright"] .header-home-btn svg {
  fill: none;
  stroke: var(--icon-contrast);
}

:root[data-theme="bright"] .parking-lot-status.is-not-parked,
:root[data-theme="bright"] .destination-total-occupied strong {
  color: #8f1d2c;
}

:root[data-theme="bright"] .parking-details-control button {
  background: #fff;
  color: #8f1d2c;
}

:root[data-theme="bright"] .parking-search-lens,
:root[data-theme="bright"] .parking-search-handle {
  fill: #fff;
  stroke: #475467;
}

:root[data-theme="bright"] .parking-location-letter {
  fill: #8f1d2c;
}

:root[data-theme="bright"] .leaflet-control-zoom.leaflet-bar,
:root[data-theme="bright"] .leaflet-control-zoom.leaflet-bar a,
:root[data-theme="bright"] .leaflet-control-zoom.leaflet-bar a:hover {
  border-color: #d0d5dd;
  background: #fff;
  color: #475467;
}

:root[data-theme="bright"] .leaflet-control-zoom a:hover {
  background: #f2f4f7;
  color: #344054;
}

:root[data-theme="bright"] .scenario-btn,
:root[data-theme="bright"] .destination-total {
  background: #f7f6f3;
  border-color: rgba(15, 23, 42, 0.08);
}

:root[data-theme="bright"] .destination-total {
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08), 0 3px 8px rgba(15, 23, 42, 0.06);
}

:root[data-theme="bright"] .scenario-icon {
  background: #eeece7;
  color: #6b7280;
}

:root[data-theme="bright"] .scenario-btn.active {
  background: #e4f3ea;
  border-color: rgba(22, 101, 52, 0.18);
}

:root[data-theme="bright"] .scenario-btn.active .scenario-icon {
  background: #14532d;
  color: #ecfdf3;
}

@media (min-width: 761px) and (max-width: 820px) {
  .app-header {
    gap: 12px;
    padding-inline: 16px;
  }

  .brand,
  .brand-home-btn {
    gap: 8px;
  }

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

  .brand-title {
    font-size: 1.05rem;
  }

  .demo-status-header {
    gap: 6px;
    padding-inline: 9px;
    font-size: 0.68rem;
  }

  .location-indicator {
    gap: 5px;
    font-size: 0.75rem;
  }

  .location-indicator svg {
    width: 17px;
    height: 17px;
  }
}

@media (max-width: 760px) {
  :root {
    --header-height: 118px;
    --footer-height: 56px;
  }

  html[data-view="parking-details"] {
    --footer-height: 0px;
  }

  html[data-view="parking-details"] .site-footer {
    display: none;
  }

  .app-header {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    align-content: center;
    gap: 8px;
    padding: 8px 12px 10px;
  }

  .brand,
  .brand-home-btn {
    gap: 8px;
  }

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

  .brand-title {
    font-size: 1rem;
  }

  .brand small {
    font-size: 0.68rem;
  }

  .brand {
    grid-column: 1;
    grid-row: 1;
  }

  .header-tools {
    grid-column: 2;
    grid-row: 1;
  }

  .demo-status-header {
    display: flex;
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: center;
    width: min(100%, 560px);
    max-width: 100%;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    padding: 7px 12px;
    font-size: 0.66rem;
    line-height: 1.35;
    text-align: center;
    white-space: normal;
  }

  .location-indicator {
    gap: 5px;
    font-size: 0.72rem;
  }

  .location-indicator svg {
    width: 16px;
    height: 16px;
  }

  .app-shell {
    position: relative;
    display: block;
    isolation: isolate;
    touch-action: pan-y;
  }

  .drawer-backdrop {
    position: absolute;
    z-index: 3;
    inset: 0;
    display: none;
    border: 0;
    background: rgba(2, 6, 23, 0.42);
  }

  .app-shell.is-panel-open .drawer-backdrop {
    display: block;
  }

  .sidebar {
    position: fixed;
    z-index: 4;
    top: var(--header-height);
    bottom: 0;
    left: 0;
    display: flex;
    width: min(82vw, 360px);
    height: auto;
    min-height: 0;
    flex-direction: column;
    padding: 0 0 env(safe-area-inset-bottom);
    overflow: visible;
    border: 1px solid var(--border);
    border-left: 0;
    border-radius: 0 16px 16px 0;
    box-shadow: 12px 0 36px rgba(0, 0, 0, 0.36);
    transform: translateX(-100%);
    transition: transform 0.26s ease;
    touch-action: pan-x;
  }

  .app-shell.is-panel-open .sidebar {
    transform: translateX(0);
  }

  .drawer-handle {
    display: flex;
    position: absolute;
    z-index: 1;
    top: 50%;
    right: -48px;
    width: 48px;
    height: 76px;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    border: 1px solid var(--border);
    border-left: 0;
    border-radius: 0 12px 12px 0;
    background: var(--panel);
    box-shadow: 8px 4px 18px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    touch-action: none;
    transform: translateY(-50%);
  }

  .drawer-handle:active {
    background: #121416;
  }

  .drawer-handle-bar {
    display: none;
  }

  .drawer-handle-arrow {
    width: 10px;
    height: 10px;
    border-top: 2px solid var(--text);
    border-right: 2px solid var(--text);
    transform: rotate(45deg);
    transition: transform 0.2s ease;
  }

  .app-shell.is-panel-open .drawer-handle-arrow {
    transform: rotate(225deg);
  }

  .drawer-content {
    flex: 1 1 auto;
    min-height: 0;
    padding: 18px 13px 24px;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .main-panel {
    position: relative;
    z-index: 0;
    width: 100%;
    padding: 14px 14px 24px;
    overflow-x: hidden;
  }

  .search-section {
    margin-bottom: 14px;
  }

  .destination-summary {
    display: block;
  }

  .destination-summary .toolbar {
    justify-content: start;
    margin-top: 12px;
  }

  .destination-summary .toolbar button {
    min-height: 36px;
    padding: 0 8px;
    font-size: 0.7rem;
  }

  #map,
  .leaflet-container {
    height: 230px;
  }

  .street-map-panel,
  .parking-view-panel {
    padding: 10px;
  }

  .sample-data-notice {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 10px 2px 0;
    color: #fff;
    font-size: 0.58rem;
    font-weight: 400;
    letter-spacing: 0.04em;
  }

  .sample-data-notice > span {
    font-size: 0.95rem;
    line-height: 1;
  }

  .sample-data-notice strong {
    font-weight: 400;
  }

  :root[data-theme="bright"] .sample-data-notice {
    color: #000;
  }

  .floor-toolbar {
    align-items: start;
  }

  .floor-tab {
    display: inline-flex;
    height: 32px;
    min-height: 32px;
    align-items: center;
    box-sizing: border-box;
    padding: 0 8px;
    font-size: 0.72rem;
  }

  html[data-view="parking-details"] .main-panel {
    padding: 12px 10px calc(12px + 36px + 48px + env(safe-area-inset-bottom, 0px));
  }

  html[data-guidance="on"] .main-panel {
    padding: 0;
  }

  html[data-view="parking-details"] .parking-details-view {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  html[data-view="parking-details"] .parking-details-heading {
    margin-bottom: 4px;
  }

  .destination-total {
    width: 57px;
    min-height: 52px;
    padding: 4px 3px;
    border-radius: 14px;
    gap: 2px;
  }

  .destination-total strong {
    font-size: 0.83rem;
  }

  .destination-total-of {
    font-size: 0.52rem;
  }

  html[data-view="parking-details"] .parking-lot-section {
    grid-row: auto;
    margin-bottom: 0;
    padding: 0 0 10px;
  }

  html[data-view="parking-details"] .parking-view-panel {
    grid-row: auto;
    padding: 10px;
  }

  html[data-view="parking-details"] .availability-panel {
    grid-row: auto;
  }

  .simulator-drawer {
    position: fixed;
    z-index: 50;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    height: var(--drawer-height, calc(36px + 48px + env(safe-area-inset-bottom, 0px)));
    max-height: 70vh;
    flex-direction: column;
    overflow: hidden;
    isolation: isolate;
    opacity: 1;
    border: 1px solid var(--border);
    border-bottom: 0;
    border-radius: 18px 18px 0 0;
    background: var(--panel);
    box-shadow: 0 -12px 32px rgba(0, 0, 0, 0.28);
    transition: height 0.24s ease;
    padding-bottom: env(safe-area-inset-bottom);
  }

  .simulator-drawer.is-dragging,
  .simulator-drawer.is-dragging .simulator-drawer-handle,
  .simulator-drawer.is-dragging .simulator-drawer-content {
    opacity: 1;
    background: var(--panel);
  }

  .simulator-drawer.is-dragging {
    transition: none;
  }

  .simulator-drawer-handle:active,
  .simulator-drawer.is-dragging .simulator-drawer-handle {
    cursor: grabbing;
  }

  .simulator-drawer > .floor-map-actions {
    order: 0;
    border-top: 0;
    border-bottom: 1px solid rgba(96, 165, 250, 0.12);
    flex-wrap: nowrap;
  }

  .simulator-drawer-handle {
    display: flex;
    width: 100%;
    min-height: 36px;
    flex: 0 0 36px;
    order: -1;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 0;
    border-bottom: 1px solid var(--border);
    background: var(--panel);
    color: var(--detail-text);
    font: inherit;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: grab;
    touch-action: none;
  }

  .simulator-drawer-grip {
    position: absolute;
    top: 8px;
    width: 38px;
    height: 4px;
    border-radius: 99px;
    background: var(--muted);
  }

  .simulator-drawer-content {
    display: flex;
    min-height: 0;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 10px;
    padding: 10px 12px calc(14px + env(safe-area-inset-bottom));
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--panel);
  }

  .availability-panel,
  .drive-panel,
  .route-option-panel {
    width: 100%;
    flex: 0 0 auto;
    padding: 12px;
  }

  .parking-view-panel .route-preference-panel {
    margin: 8px 0 10px;
    padding: 0;
  }

  .route-preference-panel .section-heading {
    align-items: center;
    margin-bottom: 8px;
  }

  .route-preference-panel .section-heading h2 {
    font-size: 0.68rem;
  }

  .route-preference-status {
    display: none;
  }

  .scenario-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px;
  }

  .scenario-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .scenario-copy small {
    font-size: 0.41rem;
  }

  .scenario-btn {
    height: 32px;
    min-height: 32px;
    max-height: 32px;
    padding: 2px 8px;
    gap: 6px;
    border-radius: 9px;
    white-space: normal;
  }

  .scenario-icon {
    width: 20px;
    height: 20px;
    border-radius: 6px;
  }

  .scenario-icon svg {
    width: 11px;
    height: 11px;
  }

  .scenario-check,
  .scenario-check svg {
    width: 14px;
    height: 14px;
  }

  .floor-map-actions,
  .parking-wrapper .floor-map-actions {
    min-height: 48px;
    gap: 6px;
    padding: 6px 8px;
  }

  .floor-map-actions .direction-button,
  .parking-wrapper .floor-map-actions .direction-button {
    flex: 1 1 0;
    min-width: 0;
    min-height: 36px;
    justify-content: center;
    gap: 6px;
    padding: 6px 12px;
    font-size: 0.62rem;
    white-space: nowrap;
  }

  .floor-map-actions .direction-copy {
    align-items: center;
  }

  .direction-icon {
    width: 24px;
    height: 24px;
    border-radius: 7px;
  }

  .direction-icon svg {
    width: 14px;
    height: 14px;
  }

  .direction-icon-sign svg {
    width: 20px;
    height: 20px;
  }

  .parking-wrapper {
    min-height: 220px;
    padding: 0;
    touch-action: none;
  }

  .parking-floor-stage,
  .parking-floor-map {
    min-height: 220px;
  }

  .parking-floor-map svg.floor-garage-svg {
    min-height: 0;
  }

  .floor-map-legend {
    gap: 6px;
    padding: 2px 5px;
    font-size: 0.46rem;
  }

  .floor-idle-cursor {
    gap: 5px;
    padding: 2px 5px 2px 3px;
  }

  .floor-idle-cursor-label {
    font-size: 0.46rem;
  }

  .map-top-controls {
    height: 61px;
    min-height: 61px;
    gap: 10px;
    padding: 5px 14px;
  }

  .next-move-indicator {
    max-width: none;
    gap: 10px;
    padding: 0;
    font-size: 1.12rem;
  }

  .parking-wrapper .zoom-controls button {
    width: 14px;
    height: 14px;
    border-radius: 4px;
  }

  .parking-wrapper .zoom-controls button svg {
    width: 8px;
    height: 8px;
  }

  .next-move-distance {
    font-size: 1.05rem;
  }

  .next-move-arrow {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
    border-radius: 12px;
    font-size: 1.87rem;
    -webkit-text-stroke: 3.06px currentColor;
  }

  .next-move-text {
    font-size: 1.05rem;
  }

  .next-move-hint {
    font-size: 0.68rem;
  }

  .floor-map-actions {
    position: relative;
    z-index: 1;
    min-height: 48px;
  }

  .trip-details {
    grid-template-columns: minmax(0, 1fr);
  }

  .trip-details > .panel-section:last-child {
    grid-column: auto;
  }
}

html[data-guidance="on"][data-view="parking-details"] .parking-details-view {
  display: flex;
  width: 100%;
  height: 100%;
  max-width: none;
  margin: 0;
  gap: 0;
  align-content: stretch;
}

html[data-guidance="on"] .app-shell {
  display: flex;
  flex-direction: column;
  height: 100%;
}

html[data-guidance="on"] .main-panel {
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
  height: auto;
  padding: 0;
}

html[data-guidance="on"] .parking-floor-hud {
  width: 100% !important;
  height: 100% !important;
}

html[data-guidance="on"] .parking-floor-map {
  align-items: stretch;
  justify-content: stretch;
}

html[data-guidance="on"] .parking-floor-map svg.floor-garage-svg {
  min-height: 0;
  height: 100%;
}

.site-footer {
  height: var(--footer-height);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  background: var(--header-bg);
  border-top: 1px solid var(--border);
  color: var(--muted);
}

.site-footer-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 14px;
}

.site-footer-nav a {
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.site-footer-nav a[aria-current="page"],
.site-footer-nav a:hover,
.site-footer-nav a:focus-visible {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer-nav a:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

.site-footer-sep {
  color: #718092;
  font-size: 0.78rem;
}

html.legal-page,
html.legal-page body {
  height: auto;
  min-height: 100%;
  overflow: auto;
}

html.legal-page body {
  display: flex;
  flex-direction: column;
}

html.legal-page .app-header {
  grid-template-columns: minmax(0, 1fr) auto;
}

html.legal-page .brand-home-btn {
  color: inherit;
  text-decoration: none;
}

html.legal-page .legal-main {
  flex: 1 1 auto;
  width: min(760px, 100%);
  margin: 0 auto;
  padding: 28px 24px 48px;
}

html.legal-page .legal-main h1 {
  margin: 0 0 8px;
  font-size: 1.7rem;
  line-height: 1.2;
}

html.legal-page .legal-updated {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 0.82rem;
}

html.legal-page .legal-main h2 {
  margin: 28px 0 10px;
  font-size: 1.05rem;
  line-height: 1.35;
}

html.legal-page .legal-main p,
html.legal-page .legal-main li {
  margin: 0 0 12px;
  color: var(--text);
  font-size: 0.92rem;
  line-height: 1.65;
}

html.legal-page .legal-main ul,
html.legal-page .legal-main ol {
  margin: 0 0 12px;
  padding-left: 1.3em;
}

html.legal-page .legal-main li {
  margin-bottom: 8px;
}

html.legal-page .site-footer {
  flex: 0 0 auto;
  height: auto;
  min-height: var(--footer-height);
  padding-top: 14px;
  padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px));
}

@media (max-width: 760px) {
  html.legal-page .legal-main {
    padding: 20px 16px 36px;
  }

  html.legal-page .legal-main h1 {
    font-size: 1.4rem;
  }

  .site-footer {
    padding: 0 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
