:root {
  --adi-blue: #0754b8;
  --adi-blue-dark: #083b79;
  --adi-blue-soft: #eaf3ff;
  --adi-orange: #ef8200;
  --adi-ink: #172033;
  --adi-muted: #657087;
  --adi-line: #dce3ec;
  --adi-surface: #ffffff;
  --adi-page: #f4f7fb;
  --adi-success: #16784a;
  --adi-danger: #c53b38;
  --header-height: 68px;
  --panel-width: 400px;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body.adi-navigation-page {
  margin: 0;
  overflow: hidden;
  color: var(--adi-ink);
  background: var(--adi-page);
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: 0;
}

button,
input {
  font: inherit;
  letter-spacing: 0;
}
button {
  cursor: pointer;
}

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

.nav-header {
  height: var(--header-height);
  flex: 0 0 var(--header-height);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 28px;
  background: #fff;
  border-bottom: 1px solid var(--adi-line);
  position: relative;
  z-index: 1100;
}

.nav-brand {
  justify-self: start;
  display: inline-flex;
  align-items: center;
}
.nav-brand img {
  width: 136px;
  max-height: 42px;
  object-fit: contain;
}
.nav-header-title {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--adi-blue-dark);
  font-size: 18px;
  font-weight: 700;
}
.nav-header-title i {
  color: var(--adi-orange);
}
.nav-profile {
  justify-self: end;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 2px solid var(--adi-blue);
  border-radius: 50%;
  color: var(--adi-blue-dark);
  background: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
}

.nav-workspace {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: var(--panel-width) 1fr;
}

.route-panel {
  min-width: 0;
  overflow-y: auto;
  padding: 24px;
  background: #fff;
  border-right: 1px solid var(--adi-line);
  position: relative;
  z-index: 700;
}

.panel-grabber,
.mobile-panel-close {
  display: none;
}
.route-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}
.eyebrow {
  margin: 0 0 5px;
  color: var(--adi-orange);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}
.route-panel h1 {
  margin: 0;
  color: var(--adi-blue-dark);
  font-size: 25px;
  line-height: 1.2;
}

.location-stack {
  position: relative;
  display: grid;
  gap: 12px;
}
.route-rail {
  position: absolute;
  left: 7px;
  top: 30px;
  height: 73px;
  border-left: 2px dotted #aeb9c9;
}
.location-row {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr) 40px;
  align-items: center;
  gap: 9px;
  position: relative;
}
.location-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px var(--adi-blue);
  z-index: 1;
}
.end-dot {
  border-radius: 3px;
  box-shadow: 0 0 0 2px var(--adi-orange);
}
.location-control {
  position: relative;
  border: 1px solid var(--adi-line);
  background: #f9fbfd;
  padding: 7px 70px 7px 12px;
  min-height: 58px;
  border-radius: 6px;
}
.location-control:focus-within {
  border-color: var(--adi-blue);
  box-shadow: 0 0 0 3px rgba(7, 84, 184, 0.1);
  background: #fff;
}
.location-control label {
  display: block;
  color: var(--adi-muted);
  font-size: 11px;
  font-weight: 700;
}
.location-control input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 3px 0 0;
  background: transparent;
  color: var(--adi-ink);
  font-size: 15px;
}
.field-clear {
  position: absolute;
  right: 36px;
  top: 18px;
  width: 25px;
  height: 25px;
  display: none;
  border: 0;
  background: transparent;
  color: var(--adi-muted);
}
.location-control.has-value .field-clear {
  display: grid;
  place-items: center;
}
.voice-input-button {
  position: absolute;
  right: 7px;
  top: 17px;
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--adi-blue);
}
.voice-input-button:hover,
.voice-input-button:focus-visible {
  background: var(--adi-blue-soft);
  outline: 2px solid var(--adi-blue);
}
.voice-input-button.listening {
  color: #b91c1c;
  background: #fee2e2;
  animation: voice-pulse 1.2s ease-in-out infinite;
}
.voice-input-button.processing {
  color: var(--adi-blue);
  background: var(--adi-blue-soft);
}
@keyframes voice-pulse {
  50% {
    box-shadow: 0 0 0 5px rgba(185, 28, 28, 0.12);
  }
}

.search-results {
  display: none;
  position: absolute;
  top: calc(100% + 7px);
  left: -1px;
  right: -41px;
  max-height: 245px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid var(--adi-line);
  box-shadow: 0 12px 28px rgba(23, 32, 51, 0.16);
  z-index: 1200;
  border-radius: 6px;
}
.search-results.open {
  display: block;
}
.search-result {
  width: 100%;
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 8px;
  padding: 11px 12px;
  border: 0;
  border-bottom: 1px solid #edf0f4;
  background: #fff;
  text-align: left;
  color: var(--adi-ink);
}
.search-result:last-child {
  border-bottom: 0;
}
.search-result:hover,
.search-result:focus {
  background: var(--adi-blue-soft);
  outline: 0;
}
.search-result i {
  color: var(--adi-blue);
  padding-top: 3px;
}
.search-result strong {
  display: block;
  font-size: 14px;
  line-height: 1.3;
}
.search-result small {
  display: block;
  margin-top: 3px;
  color: var(--adi-muted);
  font-size: 11px;
}
.search-message {
  padding: 14px;
  color: var(--adi-muted);
  font-size: 13px;
}
.google-attribution {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  background: #fff;
}
.google-attribution img {
  display: block;
  width: 120px;
  height: auto;
}

.icon-button,
.map-button {
  border: 1px solid var(--adi-line);
  background: #fff;
  color: var(--adi-blue-dark);
  display: grid;
  place-items: center;
}
.icon-button:hover,
.map-button:hover {
  color: var(--adi-blue);
  border-color: var(--adi-blue);
  background: var(--adi-blue-soft);
}
.location-action {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.mode-control {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
  margin: 18px 0 12px;
  padding: 4px;
  background: #edf2f7;
  border-radius: 7px;
}
.mode-button {
  min-height: 52px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--adi-muted);
  display: grid;
  place-items: center;
  gap: 2px;
  font-size: 12px;
}
.mode-button i {
  font-size: 17px;
}
.mode-button.active {
  color: var(--adi-blue-dark);
  background: #fff;
  box-shadow: 0 2px 8px rgba(23, 32, 51, 0.1);
  font-weight: 700;
}

.primary-button,
.secondary-button {
  min-height: 46px;
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
}
.primary-button {
  border: 1px solid var(--adi-blue);
  background: var(--adi-blue);
  color: #fff;
}
.primary-button:hover {
  background: var(--adi-blue-dark);
  border-color: var(--adi-blue-dark);
}
.primary-button:disabled {
  cursor: wait;
  opacity: 0.65;
}
.secondary-button {
  border: 1px solid var(--adi-blue);
  background: #fff;
  color: var(--adi-blue);
}
.secondary-button:hover {
  background: var(--adi-blue-soft);
}
.route-button {
  width: 100%;
}

.route-content {
  margin-top: 23px;
}
.route-content-collapse {
  display: none;
}
.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.section-heading h2 {
  margin: 0;
  font-size: 17px;
  color: var(--adi-blue-dark);
}
.section-heading span {
  color: var(--adi-muted);
  font-size: 11px;
}
.route-options {
  display: grid;
  gap: 8px;
}
.route-option {
  width: 100%;
  border: 1px solid var(--adi-line);
  border-left: 4px solid transparent;
  background: #fff;
  padding: 5px 10px;
  text-align: left;
  border-radius: 5px;
  color: var(--adi-ink);
}
.route-option:hover {
  border-color: #a9bdd8;
}
.route-option.active {
  border-color: var(--adi-blue);
  border-left-color: var(--adi-orange);
  background: var(--adi-blue-soft);
}
.route-option-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.route-option strong {
  color: var(--adi-blue-dark);
  font-size: 16px;
}
.route-option small {
  display: block;
  margin-top: 4px;
  color: var(--adi-muted);
  font-size: 12px;
}
.route-badge {
  padding: 3px 7px;
  background: #dff4e9;
  color: var(--adi-success);
  font-size: 10px;
  font-weight: 700;
  border-radius: 3px;
}
.route-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 5px;
}
.directions-section {
  margin-top: 24px;
}
.directions-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--adi-line);
}
.direction-step {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  gap: 9px;
  align-items: center;
  padding: 12px 2px;
  border-bottom: 1px solid var(--adi-line);
}
.direction-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  color: var(--adi-blue);
  background: var(--adi-blue-soft);
  border-radius: 50%;
}
.direction-step strong {
  display: block;
  font-size: 13px;
  line-height: 1.35;
}
.direction-step small {
  color: var(--adi-muted);
  font-size: 11px;
  white-space: nowrap;
}
.direction-step.active {
  background: var(--adi-blue-soft);
}

.empty-state {
  min-height: 190px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 7px;
  color: var(--adi-muted);
  text-align: center;
}
.empty-state i {
  font-size: 33px;
  color: #9db4d2;
}
.empty-state strong {
  color: var(--adi-blue-dark);
}
.empty-state span {
  max-width: 250px;
  font-size: 13px;
  line-height: 1.4;
}

.map-stage {
  min-width: 0;
  min-height: 0;
  position: relative;
  background: #dce8ee;
}
#map {
  width: 100%;
  height: 100%;
  z-index: 1;
}
.maplibregl-ctrl-group button {
  color: var(--adi-blue-dark);
}
.maplibregl-ctrl-attrib {
  font-family: Arial, sans-serif;
}
.map-toolbar {
  position: absolute;
  z-index: 500;
  right: 16px;
  top: 16px;
  display: grid;
  gap: 8px;
}
.map-button {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  box-shadow: 0 4px 14px rgba(23, 32, 51, 0.18);
  font-size: 17px;
}
.map-button.active {
  color: #fff;
  background: var(--adi-blue);
  border-color: var(--adi-blue);
}
.map-style-control {
  position: absolute;
  z-index: 560;
  left: 16px;
  bottom: 20px;
  font-family: inherit;
}
.map-style-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 13px;
  border: 1px solid #cbd8e5;
  border-radius: 6px;
  background: #fff;
  color: var(--adi-blue-dark);
  box-shadow: 0 4px 14px rgba(23, 32, 51, 0.18);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.map-style-panel {
  position: absolute;
  left: 0;
  bottom: calc(100% + 10px);
  width: min(310px, calc(100vw - 32px));
  max-height: min(400px, 60dvh);
  overflow: auto;
  padding: 14px;
  border: 1px solid #d8e2ea;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(23, 32, 51, 0.25);
}
.map-style-panel[hidden] {
  display: none;
}
.map-style-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  color: var(--adi-blue-dark);
}
.map-style-heading button {
  width: 30px;
  height: 30px;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
.map-style-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.map-style-option {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  padding: 8px 10px;
  border: 1px solid #d4dfeb;
  border-radius: 6px;
  background: #f7fafc;
  color: var(--adi-blue-dark);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.map-style-option i {
  width: 19px;
  text-align: center;
  font-size: 17px;
}
.map-style-option.active {
  border-color: var(--adi-blue);
  background: #e8f2ff;
  color: var(--adi-blue);
}
.map-style-option:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.map-style-note {
  margin: 10px 0 0;
  color: var(--adi-muted);
  font-size: 12px;
}
.mobile-route-toggle {
  display: none;
}

.map-pick-banner {
  position: absolute;
  z-index: 550;
  left: 50%;
  top: 16px;
  transform: translateX(-50%);
  background: var(--adi-blue-dark);
  color: #fff;
  padding: 10px 12px 10px 16px;
  border-radius: 5px;
  box-shadow: 0 5px 18px rgba(23, 32, 51, 0.25);
  align-items: center;
  gap: 18px;
  font-size: 13px;
}
.map-pick-banner:not([hidden]) {
  display: flex;
}
.map-pick-banner button {
  border: 0;
  background: #fff;
  color: var(--adi-blue-dark);
  padding: 6px 9px;
  border-radius: 4px;
  font-weight: 700;
}

.navigation-banner {
  position: absolute;
  z-index: 600;
  left: 50%;
  top: 16px;
  transform: translateX(-50%);
  width: min(580px, calc(100% - 145px));
  min-height: 78px;
  display: grid;
  grid-template-columns: 52px 1fr 38px;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--adi-blue-dark);
  color: #fff;
  border-top: 4px solid var(--adi-orange);
  border-radius: 6px;
  box-shadow: 0 8px 28px rgba(23, 32, 51, 0.28);
}
.navigation-banner[hidden] {
  display: none;
}
.navigation-active .navigation-banner {
  cursor: pointer;
}
.maneuver-symbol {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  font-size: 25px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 5px;
}
.navigation-copy {
  min-width: 0;
}
.navigation-copy strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 17px;
}
.navigation-copy span {
  display: block;
  margin-top: 4px;
  color: #dceaff;
  font-size: 12px;
}
.stop-navigation {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: transparent;
  color: #fff;
  border-radius: 50%;
}

.map-loading {
  position: absolute;
  z-index: 650;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--adi-blue-dark);
  font-weight: 700;
}
.map-loading[hidden] {
  display: none;
}
.spinner {
  width: 28px;
  height: 28px;
  border: 3px solid #c8d8ec;
  border-top-color: var(--adi-blue);
  border-radius: 50%;
  animation: nav-spin 0.75s linear infinite;
}
@keyframes nav-spin {
  to {
    transform: rotate(360deg);
  }
}

.nav-toast {
  position: fixed;
  z-index: 2000;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 20px);
  max-width: min(460px, calc(100% - 32px));
  padding: 12px 16px;
  background: var(--adi-blue-dark);
  color: #fff;
  border-radius: 5px;
  box-shadow: 0 8px 24px rgba(23, 32, 51, 0.25);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.2s,
    transform 0.2s;
  font-family: Arial, sans-serif;
  font-size: 13px;
}
.nav-toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
.nav-toast.error {
  background: var(--adi-danger);
}
.current-location-marker {
  width: 20px;
  height: 20px;
  border: 4px solid #fff;
  background: #1677ff;
  border-radius: 50%;
  box-shadow:
    0 0 0 2px rgba(22, 119, 255, 0.45),
    0 2px 8px rgba(0, 0, 0, 0.25);
}
.navigation-arrow-marker {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  transition: transform 0.22s linear;
  transform-origin: 50% 50%;
}
.navigation-arrow-marker i {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--adi-blue);
  border: 3px solid #fff;
  border-radius: 50% 50% 50% 8px;
  box-shadow: 0 2px 10px rgba(23, 32, 51, 0.38);
  transform: rotate(45deg);
  font-size: 13px;
}
.route-marker {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 3px solid #fff;
  color: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(23, 32, 51, 0.3);
  font:
    700 12px Arial,
    sans-serif;
}
.route-marker.start {
  background: var(--adi-blue);
}
.route-marker.end {
  background: var(--adi-orange);
}

@media (max-width: 820px) {
  :root {
    --header-height: 58px;
  }
  body.adi-navigation-page {
    min-height: 100dvh;
  }
  .nav-app {
    height: 100dvh;
    min-height: 100dvh;
  }
  .nav-header {
    padding: 0 16px;
    grid-template-columns: 1fr auto;
  }
  .nav-brand img {
    width: 112px;
  }
  .nav-header-title {
    display: none;
  }
  .nav-profile {
    width: 36px;
    height: 36px;
  }
  .nav-workspace {
    display: block;
    position: relative;
    height: calc(100dvh - var(--header-height));
    overflow: hidden;
  }
  .map-stage {
    width: 100%;
    height: 100%;
  }
  .route-panel {
    position: absolute;
    z-index: 900;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-height: min(82dvh, 720px);
    padding: 12px 18px calc(18px + env(safe-area-inset-bottom));
    border: 0;
    border-radius: 8px 8px 0 0;
    box-shadow: 0 -8px 28px rgba(23, 32, 51, 0.18);
    transform: translateY(calc(100% + 20px));
    transition: transform 0.25s ease;
    overscroll-behavior: contain;
  }
  .route-panel.open {
    transform: translateY(0);
  }
  .panel-grabber {
    display: block;
    width: 42px;
    height: 4px;
    margin: 0 auto 13px;
    background: #c6ccd5;
    border-radius: 2px;
  }
  .mobile-panel-close {
    display: grid;
    width: 36px;
    height: 36px;
    border-radius: 50%;
  }
  .route-panel h1 {
    font-size: 21px;
  }
  .mobile-route-toggle {
    position: absolute;
    z-index: 850;
    left: 14px;
    right: 14px;
    bottom: calc(14px + env(safe-area-inset-bottom));
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 0 18px;
    border: 0;
    border-radius: 6px;
    background: var(--adi-blue);
    color: #fff;
    box-shadow: 0 6px 20px rgba(23, 32, 51, 0.3);
    font-weight: 700;
  }
  .route-panel.open + .map-stage .mobile-route-toggle {
    display: none;
  }
  .location-row:has(.search-results.open) {
    align-items: start;
  }
  .location-row:has(.search-results.open) .location-dot {
    margin-top: 22px;
  }
  .location-row:has(.search-results.open) .location-action {
    margin-top: 9px;
  }
  .search-results {
    position: static;
    top: auto;
    left: auto;
    right: auto;
    width: calc(100% + 36px);
    margin: 8px -36px -1px 0;
    max-height: 230px;
    border-radius: 5px;
    box-shadow: 0 6px 18px rgba(23, 32, 51, 0.14);
  }
  .search-result {
    min-height: 56px;
    padding: 10px 11px;
  }
  .search-result strong {
    font-size: 13px;
  }
  .search-result small {
    white-space: normal;
    line-height: 1.3;
  }
  .route-actions {
    grid-template-columns: 1fr;
  }
  .route-actions .primary-button {
    grid-column: 1 / -1;
  }
  .navigation-banner {
    left: 12px;
    right: 12px;
    top: 12px;
    width: auto;
    transform: none;
    grid-template-columns: 44px 1fr 34px;
  }
  .maneuver-symbol {
    width: 42px;
    height: 42px;
  }
  .navigation-copy strong {
    font-size: 15px;
  }
  .map-toolbar {
    right: 12px;
    top: 12px;
  }
  .map-pick-banner {
    top: 68px;
    width: calc(100% - 24px);
    justify-content: space-between;
  }
}

@media (max-width: 430px) {
  .route-panel {
    padding-left: 14px;
    padding-right: 14px;
  }
  .location-row {
    grid-template-columns: 14px minmax(0, 1fr) 38px;
    gap: 7px;
  }
  .location-action {
    width: 38px;
    height: 38px;
  }
  .route-actions {
    grid-template-columns: 1fr;
  }
  .route-actions .primary-button {
    grid-column: auto;
  }
  .route-panel {
    max-height: 86dvh;
  }
  .mode-button {
    min-height: 48px;
  }
  .navigation-copy strong {
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }
}

/* Map-first route planning and guidance surfaces. */
body.adi-navigation-page {
  font-family: Arial, Helvetica, sans-serif;
}

.route-panel {
  padding: 18px;
}

.route-planner-card {
  position: relative;
}

.route-panel h1 {
  font-size: 24px;
  letter-spacing: 0;
}

.location-control {
  border-radius: 10px;
  background: #f7f9fc;
}

.mode-control,
.route-option,
.primary-button,
.secondary-button {
  border-radius: 10px;
}

.route-option {
  padding: 10px;
}

.route-option.active {
  box-shadow: 0 5px 18px rgba(7, 84, 184, 0.1);
}

.map-route-label-wrap {
  background: transparent;
  border: 0;
}

.map-route-label {
  min-width: 92px;
  padding: 7px 10px;
  border: 1px solid #bcc7d5;
  border-radius: 8px;
  background: #fff;
  color: #4c5667;
  box-shadow: 0 3px 10px rgba(23, 32, 51, 0.2);
  font:
    700 13px/1.15 Arial,
    sans-serif;
  text-align: center;
  white-space: nowrap;
}

.map-route-label small {
  display: block;
  margin-top: 2px;
  color: #727d8d;
  font-size: 10px;
  font-weight: 400;
}

.map-route-label.active {
  border-color: var(--adi-blue);
  background: var(--adi-blue);
  color: #fff;
}

.map-route-label.active small {
  color: #dceaff;
}

.navigation-steps-sheet {
  position: absolute;
  z-index: 615;
  left: 50%;
  bottom: 116px;
  width: min(520px, calc(100% - 40px));
  max-height: min(52vh, 520px);
  transform: translateX(-50%);
  overflow: hidden;
  border: 1px solid var(--adi-line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.26);
}
.navigation-steps-sheet[hidden] {
  display: none;
}
.navigation-steps-grabber {
  display: none;
}
.navigation-steps-header {
  min-height: 67px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--adi-line);
}
.navigation-steps-header span {
  display: block;
  color: var(--adi-orange);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}
.navigation-steps-header h2 {
  margin: 2px 0 0;
  color: var(--adi-blue-dark);
  font-size: 18px;
}
.navigation-steps-actions {
  display: flex;
  gap: 7px;
}
.navigation-steps-actions button {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--adi-line);
  border-radius: 50%;
  background: #fff;
  color: var(--adi-blue-dark);
}
.navigation-directions-list {
  max-height: calc(min(52vh, 520px) - 67px);
  margin: 0;
  padding: 0 14px 14px;
  overflow-y: auto;
  list-style: none;
  overscroll-behavior: contain;
}
.navigation-directions-list .direction-step {
  padding: 13px 8px;
  border-radius: 8px;
}

.navigation-status {
  position: absolute;
  z-index: 610;
  left: 50%;
  bottom: 20px;
  width: min(520px, calc(100% - 40px));
  min-height: 82px;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 58px 52px;
  align-items: center;
  gap: 14px;
  padding: 13px 18px;
  border-radius: 18px;
  background: rgba(10, 17, 28, 0.94);
  color: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.navigation-status[hidden] {
  display: none;
}

.navigation-status-button {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  background: transparent;
  color: #fff;
  font-size: 18px;
}

.navigation-status-button[aria-pressed="true"] {
  background: #fff;
  color: var(--adi-blue-dark);
}

.navigation-steps-toggle {
  width: 54px;
  height: 54px;
  grid-template-rows: auto auto;
  align-content: center;
  gap: 2px;
  border-radius: 12px;
}
.navigation-steps-toggle span {
  font-size: 9px;
  font-weight: 700;
}
.navigation-steps-toggle[aria-expanded="true"] {
  background: #fff;
  color: var(--adi-blue-dark);
}

.navigation-trip-summary {
  min-width: 0;
  text-align: center;
}

.navigation-trip-summary strong {
  display: block;
  color: #ffc547;
  font-size: 23px;
  line-height: 1.1;
}

.navigation-trip-summary span {
  display: block;
  margin-top: 5px;
  overflow: hidden;
  color: #c7ccd4;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (min-width: 821px) {
  :root {
    --panel-width: 430px;
  }
  .route-panel {
    box-shadow: 5px 0 22px rgba(23, 32, 51, 0.08);
  }
  .route-panel-header {
    margin-bottom: 16px;
  }
  .empty-state {
    min-height: 150px;
  }
}

@media (max-width: 820px) {
  :root {
    --header-height: 54px;
  }

  .nav-header {
    padding: 0 14px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 2px 12px rgba(23, 32, 51, 0.12);
  }

  .nav-brand img {
    width: 106px;
  }
  .nav-profile {
    width: 34px;
    height: 34px;
  }

  .route-panel {
    inset: 0;
    width: 100%;
    max-height: none;
    padding: 0;
    overflow: visible;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    opacity: 0;
    visibility: hidden;
    transform: none;
    transition:
      opacity 0.18s ease,
      visibility 0.18s ease;
    pointer-events: none;
  }

  .route-panel.open {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .route-planner-card {
    position: absolute;
    z-index: 3;
    top: 10px;
    left: 10px;
    right: 10px;
    max-height: calc(100dvh - var(--header-height) - 30px);
    padding: 12px;
    overflow: visible;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 6px 24px rgba(23, 32, 51, 0.2);
    pointer-events: auto;
  }

  .panel-grabber {
    display: none;
  }
  .route-panel-header {
    align-items: center;
    margin-bottom: 9px;
  }
  .route-panel-header .eyebrow {
    margin: 0;
    font-size: 11px;
  }
  .route-panel-header h1 {
    display: none;
  }
  .mobile-panel-close {
    width: 32px;
    height: 32px;
  }

  .location-stack {
    gap: 7px;
  }
  .route-rail {
    left: 7px;
    top: 25px;
    height: 57px;
  }
  .location-row {
    grid-template-columns: 15px minmax(0, 1fr) 36px;
    gap: 7px;
  }
  .location-control {
    min-height: 49px;
    padding: 5px 65px 5px 11px;
    border-radius: 10px;
  }
  .location-control label {
    font-size: 10px;
  }
  .location-control input {
    font-size: 14px;
  }
  .field-clear {
    top: 12px;
  }
  .voice-input-button {
    top: 11px;
  }
  .location-action {
    width: 36px;
    height: 36px;
  }

  .search-results {
    position: absolute;
    top: calc(100% + 7px);
    left: -24px;
    right: -43px;
    width: auto;
    max-height: min(43dvh, 330px);
    margin: 0;
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(23, 32, 51, 0.22);
  }

  .location-row:has(.search-results.open) {
    align-items: center;
  }
  .location-row:has(.search-results.open) .location-dot,
  .location-row:has(.search-results.open) .location-action {
    margin-top: 0;
  }
  .search-result {
    min-height: 54px;
  }

  .mode-control {
    margin: 9px 0 8px;
    padding: 3px;
    border-radius: 12px;
  }
  .mode-button {
    min-height: 43px;
    border-radius: 9px;
    font-size: 10px;
  }
  .mode-button i {
    font-size: 16px;
  }
  .route-button {
    min-height: 44px;
    border-radius: 12px;
  }

  .route-content {
    position: absolute;
    z-index: 2;
    left: 0;
    right: 0;
    bottom: 0;
    max-height: 44dvh;
    margin: 0;
    padding: 24px 16px calc(18px + env(safe-area-inset-bottom));
    overflow-y: auto;
    border-radius: 24px 24px 0 0;
    background: #fff;
    box-shadow: 0 -8px 30px rgba(23, 32, 51, 0.2);
    overscroll-behavior: contain;
    pointer-events: auto;
  }

  .route-content-collapse {
    position: absolute;
    z-index: 2;
    top: 7px;
    right: 14px;
    width: 34px;
    height: 28px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid var(--adi-line);
    border-radius: 15px;
    background: #fff;
    color: var(--adi-blue-dark);
    box-shadow: 0 2px 8px rgba(23, 32, 51, 0.12);
  }
  .route-content-collapse:active {
    transform: translateY(1px);
  }

  .route-content::before {
    content: "";
    position: absolute;
    top: 8px;
    left: 50%;
    width: 42px;
    height: 4px;
    transform: translateX(-50%);
    border-radius: 2px;
    background: #c3c8cf;
  }

  .route-content[hidden] {
    display: none;
  }
  .route-panel.has-routes .route-panel-header {
    display: none;
  }
  .route-panel.has-routes .mode-control {
    margin-top: 0;
  }
  .route-content > .section-heading:first-child {
    margin-bottom: 8px;
  }
  .route-options {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 3px;
    scroll-snap-type: x mandatory;
  }
  .route-option {
    min-width: min(78vw, 300px);
    scroll-snap-align: start;
  }
  .route-actions {
    grid-template-columns: 1fr;
  }
  .route-actions .primary-button {
    grid-column: auto;
  }
  .route-actions .primary-button {
    padding: 0 16px;
  }
  .directions-section {
    margin-top: 18px;
  }
  .empty-state {
    display: none;
  }

  .mobile-route-toggle {
    left: 50%;
    right: auto;
    bottom: calc(18px + env(safe-area-inset-bottom));
    width: auto;
    min-width: 132px;
    min-height: 48px;
    transform: translateX(-50%);
    padding: 0 20px;
    border-radius: 24px;
  }

  .map-toolbar {
    top: 14px;
    right: 12px;
  }
  .route-panel.open + .map-stage .map-toolbar {
    top: 268px;
  }
  .route-panel.open.has-routes + .map-stage .map-toolbar {
    top: 218px;
  }
  .map-button {
    width: 46px;
    height: 46px;
    border-radius: 50%;
  }
  .map-style-control {
    left: 12px;
    bottom: calc(78px + env(safe-area-inset-bottom));
  }
  .navigation-active .map-style-control {
    bottom: calc(116px + env(safe-area-inset-bottom));
  }

  .navigation-banner {
    left: 10px;
    right: 10px;
    top: 10px;
    width: auto;
    min-height: 112px;
    grid-template-columns: 64px minmax(0, 1fr) 36px;
    align-items: center;
    gap: 11px;
    padding: 14px;
    border: 0;
    border-radius: 18px;
    /* background: #006b63; */
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
    background: var(--adi-blue-dark);
    color: #fff;
    border-top: 4px solid var(--adi-orange);
  }

  .maneuver-symbol {
    width: 60px;
    height: 72px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.12);
    font-size: 34px;
  }

  .navigation-copy {
    display: flex;
    flex-direction: column;
  }
  .navigation-copy strong {
    order: 2;
    margin-top: 5px;
    font-size: 22px;
    line-height: 1.15;
    white-space: normal;
  }
  .navigation-copy span {
    order: 1;
    margin: 0;
    color: #fff;
    font-size: 16px;
  }

  .navigation-status {
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    min-height: 104px;
    transform: none;
    padding: 14px 18px calc(14px + env(safe-area-inset-bottom));
    border-radius: 24px 24px 0 0;
    background: #090b0f;
  }
  .navigation-steps-sheet {
    left: 0;
    right: 0;
    bottom: calc(104px + env(safe-area-inset-bottom));
    width: 100%;
    max-height: 48dvh;
    transform: none;
    border: 0;
    border-radius: 24px 24px 0 0;
  }
  .navigation-steps-grabber {
    display: block;
    width: 42px;
    height: 4px;
    margin: 8px auto 0;
    border-radius: 2px;
    background: #c3c8cf;
  }
  .navigation-steps-header {
    padding-top: 7px;
  }
  .navigation-directions-list {
    max-height: calc(48dvh - 70px);
  }
  .navigation-trip-summary strong {
    font-size: 27px;
  }
  .navigation-trip-summary span {
    font-size: 13px;
  }
  .navigation-active .map-toolbar {
    top: 138px;
  }
  .navigation-active .mobile-route-toggle {
    display: none;
  }
  .navigation-active .maplibregl-ctrl-bottom-right {
    bottom: 104px;
  }
  .navigation-active .map-route-label-wrap {
    display: none;
  }
}

@media (max-width: 430px) {
  .route-planner-card {
    left: 8px;
    right: 8px;
    padding: 10px;
  }
  .route-content {
    max-height: 42dvh;
    padding-left: 12px;
    padding-right: 12px;
  }
  .mode-button span {
    display: none;
  }
  .mode-button {
    min-height: 38px;
  }
  .route-actions {
    grid-template-columns: 1fr;
  }
  .route-actions .primary-button span {
    display: inline;
  }
  .navigation-banner {
    grid-template-columns: 58px minmax(0, 1fr) 32px;
    min-height: 105px;
    padding: 12px;
  }
  .maneuver-symbol {
    width: 54px;
    height: 66px;
  }
  .navigation-copy strong {
    font-size: 20px;
  }
  .navigation-status {
    grid-template-columns: 46px minmax(0, 1fr) 52px 46px;
    gap: 7px;
    padding-left: 10px;
    padding-right: 10px;
  }
  .navigation-status-button {
    width: 44px;
    height: 44px;
  }
  .navigation-steps-toggle {
    width: 50px;
    height: 50px;
  }
}

@media (min-width: 360px) and (max-width: 767px) {
  body {
    padding-top: 0px;
  }
}

/* Full-screen map, intermediate stops, rotation and navigation avatars. */
.nav-app,
.nav-workspace {
  height: 100vh;
  height: 100dvh;
}

.nav-workspace {
  flex: 1 1 auto;
}

.route-rail {
  top: 30px;
  bottom: 30px;
  height: auto;
}
.route-stops {
  display: grid;
  gap: 9px;
}
.stop-dot {
  width: 18px;
  height: 18px;
  margin-left: -2px;
  display: grid;
  place-items: center;
  border: 0;
  background: var(--adi-orange);
  color: #fff;
  box-shadow:
    0 0 0 2px #fff,
    0 0 0 4px var(--adi-orange);
  font:
    700 9px/1 Arial,
    sans-serif;
}
.add-stop-button {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 9px 0 0 24px;
  padding: 0 9px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--adi-blue);
  font-weight: 700;
}
.add-stop-button:hover {
  background: var(--adi-blue-soft);
}
.add-stop-button:disabled {
  opacity: 0.45;
  cursor: default;
}
.route-marker.stop {
  background: var(--adi-orange);
}

.map-compass-button i {
  transition: transform 0.18s ease;
  transform: rotate(45deg);
}

.navigation-avatar-marker {
  --avatar-colour: #1769e8;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  transform-origin: 50% 50%;
  transition: none;
  border: 0;
  background: transparent;
}

.navigation-avatar-overlay {
  position: absolute;
  z-index: 1200;
  left: -26px;
  top: -26px;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  pointer-events: auto;
  transform-origin: 26px 26px;
  will-change: transform;
}

.navigation-avatar-overlay .navigation-avatar-marker {
  transition: none;
  will-change: transform;
}
.avatar-art {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
  filter: drop-shadow(0 3px 2px rgba(8, 29, 48, 0.48));
}

.avatar-modal {
  position: fixed;
  z-index: 3000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
}
.avatar-modal[hidden] {
  display: none;
}
.avatar-modal-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: rgba(10, 17, 28, 0.55);
}
.avatar-dialog {
  position: relative;
  width: min(600px, 100%);
  max-height: min(760px, calc(100dvh - 40px));
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 24px;
  overflow-y: auto;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.3);
}
.avatar-dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.avatar-dialog-header h2 {
  margin: 0;
  color: var(--adi-ink);
  font-size: 24px;
}
.avatar-dialog-header button {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  border: 0;
  border-radius: 50%;
  background: #f1f3f5;
  color: var(--adi-ink);
  font-size: 20px;
}
.avatar-options {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}
.avatar-option {
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 9px;
  padding: 14px 7px;
  border: 2px solid transparent;
  border-radius: 12px;
  background: #f6f8fb;
  color: var(--adi-ink);
}
.avatar-option.active {
  border-color: var(--adi-blue);
  background: var(--adi-blue-soft);
}
.avatar-preview {
  --avatar-colour: #1769e8;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  background: transparent;
}
.avatar-option strong {
  font-size: 12px;
}
.avatar-colour-section h3 {
  margin: 0 0 12px;
  color: var(--adi-blue-dark);
  font-size: 16px;
}
.avatar-colours {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.avatar-colours button {
  width: 42px;
  height: 42px;
  padding: 0;
  border: 4px solid #fff;
  border-radius: 50%;
  background: var(--swatch);
  box-shadow: 0 0 0 1px #b7c0cc;
}
.avatar-colours button.active {
  box-shadow: 0 0 0 3px var(--adi-blue-dark);
}
.avatar-done-button {
  width: 100%;
}

@media (max-width: 820px) {
  .nav-workspace {
    height: 100dvh;
  }
  .route-planner-card {
    max-height: calc(100dvh - 20px);
  }
  .stop-results {
    left: -24px;
    right: -45px;
  }
  .avatar-modal {
    align-items: end;
    padding: 0;
  }
  .avatar-dialog {
    width: 100%;
    max-height: 82dvh;
    gap: 18px;
    padding: 20px 18px calc(18px + env(safe-area-inset-bottom));
    border-radius: 24px 24px 0 0;
  }
  .avatar-dialog-header h2 {
    font-size: 21px;
  }
  .avatar-options {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 430px) {
  .add-stop-button {
    margin-left: 20px;
  }
  .avatar-option {
    padding: 10px 5px;
  }
  .avatar-preview {
    width: 50px;
    height: 50px;
  }
  .avatar-colours {
    justify-content: space-between;
    gap: 10px;
  }
  .avatar-colours button {
    width: 38px;
    height: 38px;
  }
}

@media (max-width: 820px) {
  .route-planner-card {
    top: 8px;
    left: 8px;
    right: 8px;
    max-height: min(44dvh, 300px);
    padding: 8px 10px;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .route-planner-card:has(.search-results.open) {
    max-height: none;
    overflow: visible;
  }
  .route-panel-header {
    margin-bottom: 5px;
    display: none;
  }
  .route-panel-header .eyebrow {
    font-size: 10px;
  }
  .mobile-panel-close {
    width: 28px;
    height: 28px;
  }
  .location-stack {
    gap: 5px;
  }
  .location-control {
    min-height: 40px;
    padding-top: 3px;
    padding-bottom: 3px;
  }
  .location-action {
    width: 33px;
    height: 33px;
  }
  .add-stop-button {
    min-height: 28px;
    margin-top: 3px;
  }
  .mode-control {
    margin: 5px 0;
  }
  .mode-button {
    min-height: 36px;
  }
  .route-button {
    min-height: 39px;
  }
}

/* Clear endpoint semantics and a heading-accurate live position marker. */
.current-location-marker {
  position: relative;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(23, 105, 232, 0.2);
  box-shadow: none;
  animation: current-location-pulse 2s ease-out infinite;
}
.current-location-marker > span {
  width: 17px;
  height: 17px;
  display: block;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #1769e8;
  box-shadow: 0 2px 7px rgba(0, 0, 0, 0.35);
}
@keyframes current-location-pulse {
  0%,
  45% {
    box-shadow: 0 0 0 0 rgba(23, 105, 232, 0.35);
  }
  100% {
    box-shadow: 0 0 0 13px rgba(23, 105, 232, 0);
  }
}

.route-location-pin {
  width: 34px;
  height: 44px;
  display: grid;
  place-items: start center;
  color: #1769e8;
  filter: drop-shadow(0 3px 3px rgba(0, 0, 0, 0.35));
  font-size: 40px;
  line-height: 1;
}
.route-location-pin.destination {
  color: #df2f2f;
}
.route-location-pin i {
  display: block;
  -webkit-text-stroke: 2px #fff;
}

/* Overlay toggle sits in the style panel but is independent of the basemap choice. */
.map-overlay-heading {
  margin-top: 4px;
  padding-top: 9px;
  border-top: 1px solid var(--adi-line);
}
.map-style-option:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
section {
  padding-top: 0;
  padding-bottom: 0;
}

/* Keep route actions below the map while editing all addresses in one top stack. */
.route-panel {
  padding: 16px;
}
.route-panel-header {
  margin-bottom: 10px;
}
.route-panel h1 {
  font-size: 19px;
}
.location-stack {
  gap: 7px;
}
.location-control {
  min-height: 40px;
  padding-top: 4px;
  padding-bottom: 4px;
}
.location-control input {
  font-size: 14px;
}
.route-content {
  margin-top: 13px;
  border-top: 1px solid var(--adi-line);
  padding-top: 10px;
}
.route-content[hidden] {
  display: none;
}
.route-content:not(.has-result) .route-result-content {
  display: none;
}
.route-plan-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}
.route-plan-actions .add-stop-button {
  min-height: 42px;
  margin: 0;
  padding-inline: 12px;
  white-space: nowrap;
}
.route-content .mode-control {
  margin: 0 0 8px;
}
.reorderable-control {
  padding-left: 36px;
}
.itinerary-drag {
  position: absolute;
  left: 0px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 32px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--adi-muted);
  cursor: grab;
  touch-action: none;
}
.itinerary-drag:active {
  cursor: grabbing;
}
.stop-row {
  grid-template-columns: 16px minmax(0, 1fr) 40px;
  gap: 9px;
}
.stop-row .location-control {
  min-height: 48px;
  padding-left: 36px;
}
.stop-remove {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--adi-line);
  border-radius: 50%;
  background: #fff;
  color: var(--adi-danger);
}
.route-stops {
  gap: 7px;
}
.itinerary-dragging {
  z-index: 5;
  box-shadow: 0 8px 20px rgba(23, 32, 51, 0.2);
  opacity: 0.9;
}
.itinerary-drop-target {
  outline: 2px solid var(--adi-blue);
  border-radius: 6px;
  background: var(--adi-blue-soft);
}
.route-result-content {
  margin-top: 5px;
  border-top: 1px solid var(--adi-line);
  padding-top: 5px;
}
.empty-state {
  display: none;
}

@media (max-width: 820px) {
  .route-panel {
    padding: 0;
  }
  .route-planner-card {
    max-height: min(28dvh, 185px);
    overflow: visible;
  }
  .route-planner-card:has(.stop-row) {
    max-height: min(52dvh, 420px);
    overflow-y: auto;
  }
  .route-planner-card:has(.search-results.open) {
    max-height: min(75dvh, 600px);
    overflow: visible;
  }
  .route-panel-header {
    margin-bottom: 4px;
  }
  .route-content {
    position: absolute;
    bottom: 0;
    margin: 0;
    max-height: 47dvh;
    padding: 15px 12px calc(12px + env(safe-area-inset-bottom));
    border: 0;
  }
  .route-content .mode-control {
    margin: 0 0 7px;
  }
  .route-content .mode-button {
    min-height: 36px;
  }
  .route-plan-actions .route-button {
    min-height: 40px;
  }
  .route-plan-actions .add-stop-button {
    min-height: 40px;
  }
  .route-panel.open + .map-stage .map-toolbar,
  .route-panel.open.has-routes + .map-stage .map-toolbar {
    top: 165px;
  }
  .route-panel.open:has(.stop-row:nth-child(1)) + .map-stage .map-toolbar {
    top: 215px;
  }
  .route-panel.open:has(.stop-row:nth-child(2)) + .map-stage .map-toolbar {
    top: 265px;
  }
  .route-panel.open:has(.stop-row:nth-child(3)) + .map-stage .map-toolbar {
    top: 315px;
  }
  .stop-row .location-control {
    min-height: 43px;
    padding-right: 38px;
  }
  .stop-row .voice-input-button {
    right: 7px;
    top: 7px;
  }
  .stop-results {
    top: calc(100% + 7px);
    bottom: auto;
    left: -1px;
    right: -41px;
    max-height: min(30dvh, 240px);
  }
}

@media (max-width: 430px) {
  .route-planner-card {
    max-height: min(27dvh, 178px);
  }
  .route-planner-card:has(.stop-row) {
    max-height: min(50dvh, 400px);
  }
  .route-planner-card:has(.stop-row):has(.search-results.open) {
    max-height: min(75dvh, 600px);
    overflow: visible;
  }
  .route-plan-actions .add-stop-button {
    padding-inline: 7px;
    font-size: 12px;
  }
  .route-plan-actions .route-button {
    font-size: 12px;
  }
  .stop-row {
    gap: 7px;
  }
}

.planner-quick-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 9px;
}
.navigation-nearby-button {
  display: none;
}
.navigation-active .navigation-nearby-button {
  display: grid;
}
.planner-quick-actions button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--adi-line);
  border-radius: 6px;
  background: #fff;
  color: var(--adi-blue-dark);
  font-weight: 700;
  font-size: 14px;
}
.planner-quick-actions button:hover,
.planner-quick-actions button:focus-visible {
  border-color: var(--adi-blue);
  background: var(--adi-blue-soft);
}
.utility-modal[hidden] {
  display: none;
}
.utility-modal {
  position: fixed;
  inset: 0;
  z-index: 1800;
  display: grid;
  place-items: center;
  font-family: Georgia, "Times New Roman", serif;
}
.utility-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(12, 27, 49, 0.52);
}
.utility-dialog {
  position: relative;
  width: min(500px, calc(100vw - 28px));
  max-height: min(720px, calc(100dvh - 32px));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 20px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(12, 27, 49, 0.28);
}
.utility-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.utility-heading > div {
  flex: 1;
  min-width: 0;
}
.utility-heading button[hidden],
.nearby-categories[hidden],
.nearby-results[hidden] {
  display: none;
}
.nearby-dialog.results-view {
  width: min(680px, calc(100vw - 28px));
  height: min(800px, calc(100dvh - 32px));
}
.utility-modal.nearby-results-open {
  pointer-events: none;
}
.nearby-results-open .utility-backdrop {
  opacity: 0;
  pointer-events: none;
}
.nearby-results-open .nearby-dialog {
  pointer-events: auto;
}
.nearby-dialog.results-view .nearby-results {
  flex: 1;
}
.utility-heading h2 {
  margin: 0;
  color: var(--adi-blue-dark);
  font-size: 23px;
  line-height: 1.2;
}
.utility-heading button {
  flex: none;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: var(--adi-page);
  color: var(--adi-blue-dark);
}
.nearby-categories {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: minmax(58px, auto);
  min-height: 0;
  overflow-y: auto;
  gap: 7px;
}
.nearby-categories button {
  min-height: 58px;
  display: grid;
  place-content: center;
  gap: 3px;
  border: 1px solid var(--adi-line);
  border-radius: 6px;
  background: #fff;
  color: var(--adi-blue-dark);
  font-size: 12px;
}
.nearby-categories button i {
  font-size: 17px;
}
.nearby-categories button span {
  padding: 0 3px;
  line-height: 1.2;
}
.nearby-categories button.active {
  border-color: var(--adi-blue);
  background: var(--adi-blue-soft);
}
.utility-message {
  margin: 12px 0;
  color: var(--adi-muted);
  font-size: 14px;
  line-height: 1.4;
}
.nearby-dialog .utility-message.loading {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-left: 3px solid var(--adi-blue);
  border-radius: 4px;
  background: var(--adi-blue-soft);
  color: var(--adi-blue-dark);
  font-weight: 700;
}
.nearby-dialog .utility-message.loading::before {
  content: "";
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(7, 84, 184, 0.25);
  border-top-color: var(--adi-blue);
  border-radius: 50%;
  animation: nearby-status-spin 0.8s linear infinite;
}
@keyframes nearby-status-spin {
  to {
    transform: rotate(360deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .nearby-dialog .utility-message.loading::before {
    animation: none;
  }
}
.utility-message.error {
  color: var(--adi-danger);
}
.nearby-results,
.saved-trips-list {
  min-height: 0;
  overflow-y: auto;
  display: grid;
  align-content: start;
  gap: 6px;
}
.nearby-item,
.saved-trip-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--adi-line);
  border-radius: 6px;
  background: #fff;
}
.nearby-item > button,
.saved-trip-item > button:first-child {
  min-width: 0;
  display: grid;
  gap: 3px;
  padding: 11px 12px;
  border: 0;
  background: transparent;
  color: var(--adi-ink);
  text-align: left;
}
.nearby-item strong,
.saved-trip-item strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 15px;
}
.nearby-item small,
.saved-trip-item small {
  color: var(--adi-muted);
  font-size: 13px;
  line-height: 1.45;
}
.nearby-item > span {
  padding-right: 12px;
  color: var(--adi-blue-dark);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.nearby-map-pin {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: var(--adi-orange);
  font-size: 24px;
  filter: drop-shadow(0 1px 2px #fff) drop-shadow(0 2px 3px rgba(0, 0, 0, 0.35));
}
.saved-trip-delete {
  width: 38px;
  height: 38px;
  margin-right: 7px;
  border: 0;
  background: transparent;
  color: var(--adi-danger);
}
.save-trip-form {
  margin-bottom: 8px;
}
.save-trip-form[hidden] {
  display: none;
}
.save-trip-form label {
  display: block;
  margin-bottom: 5px;
  color: var(--adi-blue-dark);
  font-size: 13px;
  font-weight: 700;
}
.save-trip-form > div {
  display: flex;
  gap: 8px;
}
.save-trip-form input {
  min-width: 0;
  flex: 1;
  padding: 9px 10px;
  border: 1px solid var(--adi-line);
  border-radius: 6px;
  font-size: 14px;
}
.save-trip-form button {
  min-height: 40px;
  padding-inline: 18px;
}

@media (max-width: 820px) {
  .nearby-categories {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .planner-quick-actions button {
    min-height: 36px;
  }
  .route-panel.open + .map-stage .map-style-control {
    bottom: max(
      calc(78px + env(safe-area-inset-bottom)),
      calc(var(--route-sheet-height, 0px) + 12px)
    );
  }
  .route-panel.open + .map-stage .map-style-panel {
    max-height: max(
      120px,
      calc(100dvh - var(--route-sheet-height, 0px) - 90px)
    );
  }
  .navigation-active .route-panel.open + .map-stage .map-style-control {
    bottom: calc(116px + env(safe-area-inset-bottom));
  }
  .utility-modal {
    align-items: end;
  }
  .utility-dialog {
    width: 100%;
    max-height: min(70dvh, 680px);
    padding: 18px 14px calc(18px + env(safe-area-inset-bottom));
    border-radius: 12px 12px 0 0;
  }
  .nearby-dialog.results-view {
    width: 100%;
    height: min(78dvh, 840px);
    max-height: 78dvh;
  }
}

.route-plan-actions {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-start;
  gap: 6px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 2px 0 5px;
  scrollbar-width: thin;
  scrollbar-color: #b8c8da transparent;
}
.route-plan-actions::-webkit-scrollbar {
  height: 4px;
}
.route-plan-actions::-webkit-scrollbar-thumb {
  background: #b8c8da;
  border-radius: 4px;
}
.route-plan-actions > button,
.route-plan-actions .add-stop-button,
.route-plan-actions .route-button {
  flex: 0 0 auto;
  width: auto;
  min-height: 40px;
  margin: 0;
  padding: 0 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
  font-size: 13px;
  line-height: 1;
}
.route-plan-actions > button:not(.route-button) {
  border: 1px solid var(--adi-line);
  border-radius: 6px;
  background: #fff;
  color: var(--adi-blue-dark);
  font-weight: 700;
}
.route-plan-actions > button:not(.route-button):hover {
  border-color: var(--adi-blue);
  background: var(--adi-blue-soft);
}
.nearby-item > span {
  max-width: 130px;
  white-space: normal;
  text-align: right;
  line-height: 1.3;
}

.ask-adi-panel[hidden] {
  display: none;
}
.ask-adi-panel {
  position: fixed;
  z-index: 1700;
  top: 14px;
  right: 14px;
  bottom: 14px;
  width: min(440px, calc(100vw - 28px));
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 18px;
  border: 1px solid var(--adi-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 42px rgba(12, 27, 49, 0.22);
  animation: ask-adi-enter 0.22s ease-out;
}
@keyframes ask-adi-enter {
  from {
    opacity: 0;
    transform: translateX(18px);
  }
}
.ask-adi-heading {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 10px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--adi-line);
}
.ask-adi-heading-main {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 10px;
}
.ask-adi-heading h2 {
  margin: 2px 0 0;
  color: var(--adi-blue-dark);
  font-size: 22px;
  line-height: 1.2;
}
.ask-adi-heading > button {
  width: 36px;
  height: 36px;
  flex: none;
  border: 0;
  border-radius: 50%;
  background: var(--adi-page);
  color: var(--adi-blue-dark);
}
.ask-adi-back {
  width: 36px;
  height: 36px;
  flex: none;
  border: 0;
  border-radius: 50%;
  background: var(--adi-page);
  color: var(--adi-blue-dark);
}
.ask-adi-back[hidden] {
  display: none;
}
.ask-adi-messages {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  overflow-y: auto;
  padding: 16px 2px;
}
.ask-adi-message {
  max-width: 90%;
  padding: 11px 13px;
  border-radius: 8px;
  font-size: 15px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.ask-adi-message.assistant {
  background: var(--adi-blue-soft);
  color: var(--adi-blue-dark);
}
.ask-adi-message.user {
  align-self: flex-end;
  background: var(--adi-blue);
  color: #fff;
}
.ask-adi-welcome {
  align-self: stretch;
  display: grid;
  justify-items: center;
  gap: 8px;
  margin: auto 0 14px;
  padding: 18px 8px 6px;
  text-align: center;
}
.ask-adi-welcome-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--adi-blue-soft);
  color: var(--adi-blue);
  font-size: 21px;
}
.ask-adi-welcome h3 {
  margin: 0;
  color: var(--adi-blue-dark);
  font-size: 21px;
  line-height: 1.25;
}
.ask-adi-welcome p {
  margin: 0;
  color: var(--adi-muted);
  font-size: 15px;
  line-height: 1.45;
}
.ask-adi-suggestions {
  align-self: stretch;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: auto;
}
.ask-adi-suggestions[hidden] {
  display: none;
}
.ask-adi-suggestions button {
  min-height: 56px;
  padding: 9px 11px;
  border: 1px solid var(--adi-line);
  border-radius: 8px;
  background: var(--adi-page);
  color: var(--adi-blue-dark);
  text-align: left;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}
.ask-adi-suggestions button:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}
.ask-adi-suggestions button:hover,
.ask-adi-suggestions button:focus-visible {
  border-color: var(--adi-blue);
  background: var(--adi-blue-soft);
}
.ask-adi-suggestions.contextual {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 3px 0 10px;
}
.ask-adi-suggestions.contextual[hidden] {
  display: none;
}
.ask-adi-suggestions.contextual button {
  min-height: 34px;
  padding: 6px 9px;
  font-size: 12px;
}
.ask-adi-action {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 7px 11px;
  border: 1px solid var(--adi-blue);
  border-radius: 6px;
  background: #fff;
  color: var(--adi-blue-dark);
  font-size: 13px;
  font-weight: 700;
}
.ask-adi-action {
  align-self: flex-start;
}
.ask-adi-action:disabled,
.ask-adi-place-list button:disabled {
  opacity: 0.55;
  cursor: default;
}
.ask-adi-place-list {
  align-self: stretch;
  display: grid;
  gap: 6px;
}
.ask-adi-place-list button {
  padding: 10px 12px;
  border: 1px solid var(--adi-line);
  border-radius: 6px;
  background: #fff;
  color: var(--adi-ink);
  text-align: left;
  font-size: 14px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.ask-adi-place-list button:hover,
.ask-adi-place-list button:focus-visible {
  border-color: var(--adi-blue);
  background: var(--adi-blue-soft);
}
.ask-adi-card {
  align-self: stretch;
  display: grid;
  gap: 9px;
  padding: 12px;
  border: 1px solid var(--adi-line);
  border-radius: 8px;
  background: #fff;
  color: var(--adi-ink);
}
.ask-adi-card h3 {
  margin: 0;
  color: var(--adi-blue-dark);
  font-size: 16px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.ask-adi-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
}
.ask-adi-card ol {
  margin: 0;
  padding-left: 20px;
  font-size: 14px;
  line-height: 1.5;
}
.ask-adi-card ul {
  margin: 0;
  padding-left: 20px;
  font-size: 14px;
  line-height: 1.5;
}
.ask-adi-drive-note {
  color: var(--adi-blue-dark);
  font-weight: 600;
}
.ask-adi-place-image {
  display: block;
  width: 100%;
  max-height: 210px;
  object-fit: cover;
  border-radius: 5px;
}
.ask-adi-source {
  display: block;
  color: var(--adi-muted);
  font-size: 12px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.ask-adi-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.ask-adi-facts strong {
  padding: 6px 8px;
  border-radius: 4px;
  background: var(--adi-blue-soft);
  color: var(--adi-blue-dark);
  font-size: 13px;
}
.ask-adi-card-action {
  justify-self: start;
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid var(--adi-blue);
  border-radius: 5px;
  background: #fff;
  color: var(--adi-blue-dark);
  font-size: 13px;
  font-weight: 700;
}
.ask-adi-recommendations {
  display: grid;
  gap: 7px;
}
.ask-adi-recommendations > div {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: start;
  gap: 4px 9px;
  min-width: 0;
  padding: 11px 0;
  border-top: 1px solid var(--adi-line);
}
.ask-adi-recommendations > div.without-photo {
  grid-template-columns: minmax(0, 1fr);
}
.ask-adi-recommendations strong {
  min-width: 0;
  font-size: 14px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.ask-adi-recommendations > div > strong,
.ask-adi-recommendations > div > small,
.ask-adi-recommendations > div > button,
.ask-adi-recommendations > div > .ask-adi-verified,
.ask-adi-recommendations > div > .ask-adi-rec-badges,
.ask-adi-recommendations > div > .ask-adi-rec-actions {
  grid-column: 2;
  min-width: 0;
}
.ask-adi-recommendations .without-photo > * {
  grid-column: 1;
}
.ask-adi-recommendations small {
  color: var(--adi-muted);
  font-size: 13px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.ask-adi-recommendations button {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 32px;
  padding: 5px 9px;
  border: 1px solid var(--adi-line);
  border-radius: 5px;
  background: var(--adi-blue-soft);
  color: var(--adi-blue-dark);
  font-size: 12px;
  font-weight: 700;
}
.ask-adi-recommendations button:hover,
.ask-adi-recommendations button:focus-visible {
  border-color: var(--adi-blue);
  background: #dceaff;
}
.ask-adi-recommendations button.primary {
  border-color: var(--adi-blue);
  background: var(--adi-blue);
  color: #fff;
}
.ask-adi-recommendations button.primary:hover,
.ask-adi-recommendations button.primary:focus-visible {
  background: var(--adi-blue-dark);
}
.ask-adi-rec-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.ask-adi-rec-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 2px;
}
.ask-adi-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 7px;
  border-radius: 999px;
  background: var(--adi-page);
  color: var(--adi-muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
  white-space: nowrap;
}
.ask-adi-badge i {
  font-size: 10px;
}
.ask-adi-badge.rating {
  background: #fff4e3;
  color: #9a5800;
}
.ask-adi-badge.rating i {
  color: var(--adi-orange);
}
.ask-adi-badge.open {
  background: #e5f6ec;
  color: #17633b;
}
.ask-adi-badge.closed {
  background: #fdebea;
  color: #a3312e;
}
.ask-adi-badge.hours {
  background: var(--adi-blue-soft);
  color: var(--adi-blue-dark);
}
.ask-adi-badge.type {
  background: var(--adi-page);
  color: var(--adi-muted);
}
.ask-adi-card-icon {
  margin-right: 7px;
  color: var(--adi-blue);
}
.ask-adi-itinerary {
  display: grid;
  gap: 10px;
}
.ask-adi-day {
  display: grid;
  gap: 6px;
  padding: 10px 11px;
  border: 1px solid var(--adi-line);
  border-left: 3px solid var(--adi-blue);
  border-radius: 6px;
  background: var(--adi-page);
}
.ask-adi-day h4 {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  color: var(--adi-blue-dark);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.ask-adi-day h4 i {
  color: var(--adi-blue);
}
.ask-adi-day ol {
  display: grid;
  gap: 9px;
  margin: 0;
  padding-left: 18px;
}
.ask-adi-day li {
  display: grid;
  gap: 3px;
}
.ask-adi-day li strong {
  font-size: 14px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.ask-adi-day li small {
  color: var(--adi-muted);
  font-size: 12px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.ask-adi-place-section h4 {
  display: flex;
  align-items: center;
  gap: 7px;
}
.ask-adi-place-section h4 i {
  color: var(--adi-blue);
}
.ask-adi-place-description {
  display: grid;
  gap: 7px;
}
.ask-adi-place-description p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
}
.ask-adi-place-description .ask-adi-lead {
  color: var(--adi-ink);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
}
.ask-adi-place-description p:not(.ask-adi-lead) {
  color: var(--adi-muted);
}
.ask-adi-feature-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.ask-adi-badge.feature {
  background: #eef7f1;
  color: #1d6742;
}
.ask-adi-badge.feature i {
  color: #2f8f5b;
}
.ask-adi-result-index {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--adi-blue);
  color: #fff;
  font-size: 12px;
}
.ask-adi-result-image {
  grid-column: 1;
  grid-row: 1 / span 4;
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 5px;
}
.ask-adi-result-image.loading {
  visibility: hidden;
}
.ask-adi-image-placeholder {
  grid-column: 1;
  grid-row: 1 / span 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  box-sizing: border-box;
  width: 72px;
  height: 72px;
  padding: 4px;
  border: 1px solid var(--adi-line);
  border-radius: 5px;
  background: var(--adi-page);
  color: var(--adi-muted);
  text-align: center;
  overflow: hidden;
}
.ask-adi-image-placeholder i {
  font-size: 17px;
}
.ask-adi-image-placeholder small {
  display: block;
  width: 100%;
  font-size: 9px;
  line-height: 1.1;
  overflow-wrap: normal;
}
.ask-adi-verified {
  color: #26734d;
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
}
.ask-adi-map-marker {
  display: grid;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--adi-blue);
  box-shadow: 0 2px 7px rgba(0, 0, 0, 0.3);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.ask-adi-address {
  color: var(--adi-muted);
  font-size: 13px !important;
}
.ask-adi-gallery {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  grid-auto-rows: 92px;
  gap: 4px;
  overflow: hidden;
  border-radius: 6px;
}
.ask-adi-gallery.single {
  grid-template-columns: 1fr;
  grid-auto-rows: 210px;
}
.ask-adi-gallery figure {
  position: relative;
  min-width: 0;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  background: var(--adi-page);
}
.ask-adi-gallery figure:first-child:not(:last-child) {
  grid-row: span 2;
}
.ask-adi-gallery img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ask-adi-gallery img.loading {
  visibility: hidden;
}
.ask-adi-gallery figcaption[hidden] {
  display: none;
}
.ask-adi-gallery figcaption {
  position: absolute;
  right: 4px;
  bottom: 3px;
  max-width: calc(100% - 8px);
  padding: 2px 4px;
  background: rgba(0, 0, 0, 0.68);
  color: #fff;
  font-size: 9px;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ask-adi-gallery figure .ask-adi-photo-unavailable {
  min-height: 100%;
  height: 100%;
  box-sizing: border-box;
  padding: 6px;
  border: 0;
}
.ask-adi-photo-unavailable {
  display: grid;
  place-items: center;
  gap: 7px;
  min-height: 115px;
  padding: 14px;
  border: 1px dashed var(--adi-line);
  border-radius: 6px;
  background: var(--adi-page);
  color: var(--adi-muted);
  text-align: center;
  font-size: 12px;
}
.ask-adi-photo-unavailable i {
  color: var(--adi-blue);
  font-size: 22px;
}
.ask-adi-photo-unavailable.compact {
  grid-column: 1 / -1;
  min-height: 76px;
}
.ask-adi-place-facts,
.ask-adi-place-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.ask-adi-place-facts span {
  padding: 5px 7px;
  border-radius: 4px;
  background: var(--adi-blue-soft);
  color: var(--adi-blue-dark);
  font-size: 12px;
  font-weight: 700;
}
.ask-adi-place-facts .open {
  background: #e5f6ec;
  color: #17633b;
}
.ask-adi-place-facts .closed {
  background: #fdebea;
  color: #a3312e;
}
.ask-adi-place-section {
  display: grid;
  gap: 5px;
  padding-top: 9px;
  border-top: 1px solid var(--adi-line);
}
.ask-adi-place-section h4 {
  margin: 0;
  color: var(--adi-blue-dark);
  font-size: 14px;
}
.ask-adi-place-section > strong,
.ask-adi-place-section > small {
  font-size: 13px;
}
.ask-adi-place-section details {
  color: var(--adi-ink);
  font-size: 12px;
}
.ask-adi-place-section summary {
  color: var(--adi-blue-dark);
  cursor: pointer;
  font-weight: 700;
}
.ask-adi-place-section ul {
  display: grid;
  gap: 3px;
  margin: 7px 0 0;
  padding-left: 18px;
}
.ask-adi-card-link {
  min-height: 31px;
  padding: 6px 8px;
  border: 1px solid var(--adi-line);
  border-radius: 5px;
  color: var(--adi-blue-dark);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}
.ask-adi-reviews blockquote {
  margin: 0;
  padding: 8px;
  border-left: 3px solid var(--adi-blue);
  background: var(--adi-page);
}
.ask-adi-reviews blockquote p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  font-size: 12px;
}
.ask-adi-reviews blockquote footer {
  margin-top: 5px;
  color: var(--adi-muted);
  font-size: 10px;
}
.ask-adi-form {
  display: flex;
  align-items: end;
  gap: 6px;
  padding: 7px;
  border: 1px solid var(--adi-line);
  border-radius: 8px;
  background: #fff;
}
.ask-adi-form:focus-within {
  border-color: var(--adi-blue);
}
.ask-adi-form textarea {
  flex: 1;
  min-width: 0;
  min-height: 40px;
  max-height: 100px;
  resize: vertical;
  padding: 9px 3px;
  border: 0;
  outline: 0;
  color: var(--adi-ink);
  font: inherit;
  font-size: 14px;
}
.ask-adi-form button {
  flex: none;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--adi-blue-dark);
}
.ask-adi-form #askAdiSend {
  background: var(--adi-blue);
  color: #fff;
}
.ask-adi-form #askAdiMic.listening {
  background: #fdeaea;
  color: var(--adi-danger);
  animation: ask-adi-pulse 1s ease-in-out infinite alternate;
}
@keyframes ask-adi-pulse {
  to {
    box-shadow: 0 0 0 5px rgba(197, 59, 56, 0.12);
  }
}
.ask-adi-status {
  min-height: 18px;
  margin: 7px 1px 0;
  color: var(--adi-muted);
  font-size: 12px;
}
.ask-adi-status.loading::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 7px;
  border: 2px solid var(--adi-line);
  border-top-color: var(--adi-blue);
  border-radius: 50%;
  animation: nearby-status-spin 0.8s linear infinite;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
@media (max-width: 820px) {
  .ask-adi-panel {
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: min(74dvh, 650px);
    padding: 16px 14px calc(10px + env(safe-area-inset-bottom));
    border-radius: 12px 12px 0 0;
    animation-name: ask-adi-mobile-enter;
  }
  @keyframes ask-adi-mobile-enter {
    from {
      opacity: 0;
      transform: translateY(24px);
    }
  }
}
@media (max-width: 480px) {
  .ask-adi-gallery {
    grid-auto-rows: 76px;
  }
  .ask-adi-gallery.single {
    grid-auto-rows: 180px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ask-adi-panel,
  .ask-adi-form #askAdiMic.listening,
  .ask-adi-status.loading::before {
    animation: none;
  }
}

/* Weather and air quality */
.weather-summary {
  position: absolute;
  z-index: 570;
  left: 72px;
  bottom: 20px;
  min-width: 92px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 11px;
  border: 1px solid #cbd8e5;
  border-radius: 6px;
  background: #fff;
  color: var(--adi-blue-dark);
  box-shadow: 0 4px 14px rgba(23, 32, 51, 0.18);
}
.weather-summary[hidden],
.weather-panel[hidden],
.weather-content[hidden],
.weather-loading[hidden],
.weather-error[hidden] {
  display: none;
}
.weather-summary-icon {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--adi-blue-soft);
  color: var(--adi-blue);
  font-size: 15px;
}
.weather-summary-copy {
  display: grid;
  min-width: 0;
  text-align: left;
  line-height: 1.05;
}
.weather-summary-copy strong {
  font-size: 15px;
}
.weather-summary-copy small {
  margin-top: 3px;
  color: var(--adi-muted);
  font-size: 10px;
  white-space: nowrap;
}
.weather-summary.aqi-good .weather-summary-copy small {
  color: #16784a;
}
.weather-summary.aqi-moderate .weather-summary-copy small {
  color: #9a6800;
}
.weather-summary.aqi-unhealthy .weather-summary-copy small,
.weather-summary.aqi-very-unhealthy .weather-summary-copy small,
.weather-summary.aqi-hazardous .weather-summary-copy small {
  color: #b53c35;
}

.weather-panel {
  position: absolute;
  z-index: 1250;
  left: 16px;
  bottom: 20px;
  width: min(470px, calc(100% - 32px));
  max-height: min(760px, calc(100% - 40px));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 18px;
  border: 1px solid var(--adi-line);
  border-radius: 8px;
  background: #fff;
  color: var(--adi-ink);
  box-shadow: 0 18px 45px rgba(12, 27, 49, 0.28);
  animation: weather-panel-enter 0.2s ease-out;
}
@keyframes weather-panel-enter {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
}
.weather-panel-grabber {
  display: none;
}
.weather-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--adi-line);
}
.weather-panel-header > div {
  min-width: 0;
}
.weather-panel-header h2 {
  margin: 0;
  color: var(--adi-blue-dark);
  font-size: 23px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.weather-panel-header p {
  display: -webkit-box;
  margin: 4px 0 0;
  overflow: hidden;
  color: var(--adi-muted);
  font-size: 11px;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.weather-panel-header button {
  flex: none;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--adi-page);
  color: var(--adi-blue-dark);
  font-size: 17px;
}
.weather-loading {
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--adi-blue-dark);
  font-weight: 700;
}
.weather-loading .spinner {
  width: 20px;
  height: 20px;
  border: 2px solid var(--adi-line);
  border-top-color: var(--adi-blue);
  border-radius: 50%;
  animation: nearby-status-spin 0.8s linear infinite;
}
.weather-error {
  padding: 30px 10px;
  text-align: center;
}
.weather-error p {
  color: var(--adi-danger);
}
.weather-error button {
  min-height: 36px;
  padding: 6px 13px;
  border: 1px solid var(--adi-blue);
  border-radius: 5px;
  background: #fff;
  color: var(--adi-blue-dark);
  font-weight: 700;
}
.weather-content {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 15px 2px 2px;
  scrollbar-width: thin;
}
.weather-current {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  align-items: center;
  gap: 15px;
  padding: 2px 4px 14px;
}
.weather-current-icon {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--adi-blue-soft);
  color: var(--adi-blue);
  font-size: 38px;
}
.weather-current-reading {
  display: grid;
  gap: 3px;
}
.weather-current-reading > strong {
  color: var(--adi-blue-dark);
  font-size: 46px;
  line-height: 1;
  font-weight: 400;
}
.weather-current-reading > span {
  color: var(--adi-ink);
  font-size: 15px;
}
.weather-current-reading > small {
  color: var(--adi-muted);
  font-size: 12px;
  line-height: 1.35;
}
.weather-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin-bottom: 16px;
}
.weather-metrics > div {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 2px 7px;
  padding: 9px;
  border: 1px solid var(--adi-line);
  border-radius: 6px;
  background: var(--adi-page);
}
.weather-metrics i {
  grid-row: 1 / span 2;
  color: var(--adi-blue);
}
.weather-metrics span {
  color: var(--adi-muted);
  font-size: 10px;
}
.weather-metrics strong {
  font-size: 12px;
  overflow-wrap: anywhere;
}
.weather-section {
  margin-top: 14px;
}
.weather-section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.weather-section-heading h3 {
  margin: 0;
  color: var(--adi-blue-dark);
  font-size: 16px;
}
.weather-section-heading span {
  color: var(--adi-muted);
  font-size: 10px;
}
.weather-hourly {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 1px 0 7px;
  scrollbar-width: thin;
}
.weather-hour {
  flex: 0 0 62px;
  min-height: 96px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 6px;
  padding: 8px 4px;
  border: 1px solid var(--adi-line);
  border-radius: 6px;
  background: var(--adi-page);
  text-align: center;
}
.weather-hour.now {
  border-color: var(--adi-blue);
  background: var(--adi-blue-soft);
}
.weather-hour time {
  color: var(--adi-muted);
  font-size: 10px;
}
.weather-hour i {
  color: var(--adi-blue);
  font-size: 20px;
}
.weather-hour strong {
  font-size: 13px;
}
.weather-hour small {
  min-height: 12px;
  color: var(--adi-blue);
  font-size: 9px;
}
.weather-aqi {
  margin-top: 13px;
  padding: 12px;
  border: 1px solid var(--adi-line);
  border-radius: 6px;
  background: #f7fafc;
}
.weather-aqi-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.weather-aqi-heading > div {
  display: grid;
  gap: 2px;
}
.weather-aqi-heading span {
  color: var(--adi-muted);
  font-size: 11px;
}
.weather-aqi-heading strong {
  color: var(--adi-blue-dark);
  font-size: 16px;
}
.weather-aqi-value {
  color: var(--adi-blue-dark) !important;
  font-size: 14px !important;
  font-weight: 700;
}
.weather-aqi-scale {
  position: relative;
  height: 7px;
  margin: 12px 0 9px;
  border-radius: 4px;
  background: linear-gradient(
    90deg,
    #39a96b 0 16%,
    #e0b834 16% 33%,
    #e58b34 33% 50%,
    #d7514b 50% 66%,
    #873c95 66% 83%,
    #7b253b 83% 100%
  );
}
.weather-aqi-scale span {
  position: absolute;
  top: 50%;
  left: 0;
  width: 13px;
  height: 13px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--adi-ink);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
  transform: translate(-50%, -50%);
}
.weather-aqi p {
  margin: 0;
  color: var(--adi-muted);
  font-size: 11px;
  line-height: 1.4;
}
.weather-aqi-pollutants {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 9px;
}
.weather-aqi-pollutants span {
  padding: 4px 6px;
  border-radius: 4px;
  background: #fff;
  color: var(--adi-muted);
  font-size: 9px;
}
.weather-daily {
  display: grid;
  gap: 1px;
}
.weather-day {
  display: grid;
  grid-template-columns: 72px 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  padding: 6px 3px;
  border-top: 1px solid var(--adi-line);
}
.weather-day time {
  color: var(--adi-ink);
  font-size: 12px;
  font-weight: 700;
}
.weather-day i {
  color: var(--adi-blue);
  font-size: 17px;
  text-align: center;
}
.weather-day span {
  color: var(--adi-muted);
  font-size: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.weather-day strong {
  color: var(--adi-blue-dark);
  font-size: 12px;
  white-space: nowrap;
}

@media (max-width: 820px) {
  .weather-summary {
    left: 68px;
    bottom: calc(14px + env(safe-area-inset-bottom));
  }
  .route-panel.open + .map-stage .weather-summary {
    bottom: max(
      calc(78px + env(safe-area-inset-bottom)),
      calc(var(--route-sheet-height, 0px) + 12px)
    );
  }
  .navigation-active .route-panel.open + .map-stage .weather-summary {
    bottom: calc(116px + env(safe-area-inset-bottom));
  }
  .weather-panel {
    position: fixed;
    inset: auto 0 0;
    width: 100%;
    max-height: min(78dvh, 720px);
    padding: 10px 14px calc(14px + env(safe-area-inset-bottom));
    border-width: 1px 0 0;
    border-radius: 12px 12px 0 0;
  }
  .weather-panel-grabber {
    display: block;
    flex: none;
    width: 42px;
    height: 4px;
    margin: 0 auto 10px;
    border-radius: 2px;
    background: #c6ccd5;
  }
  .weather-current {
    grid-template-columns: 70px minmax(0, 1fr);
    gap: 12px;
  }
  .weather-current-icon {
    width: 66px;
    height: 66px;
    font-size: 31px;
  }
  .weather-current-reading > strong {
    font-size: 40px;
  }
}

@media (max-width: 420px) {
  .weather-panel-header h2 {
    font-size: 20px;
  }
  .weather-metrics > div {
    padding: 7px 6px;
  }
  .weather-current-reading > strong {
    font-size: 37px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .weather-panel,
  .weather-loading .spinner {
    animation: none;
  }
}

/* Destination Street View */
body.street-view-open {
  overflow: hidden;
}
.street-view-preview[hidden],
.street-view-notice[hidden],
.street-view-viewer[hidden],
.street-view-progress[hidden],
.street-view-viewer-error[hidden] {
  display: none;
}
.street-view-preview {
  position: absolute;
  z-index: 550;
  left: 16px;
  bottom: 78px;
  width: 150px;
  height: 104px;
  overflow: hidden;
  padding: 0;
  border: 2px solid #fff;
  border-radius: 8px;
  background: #e8eef4;
  color: #fff;
  box-shadow: 0 5px 18px rgba(12, 27, 49, 0.27);
  cursor: pointer;
}
.street-view-canvas {
  bottom: -30px !important;
}

.street-view-preview img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.street-view-preview img[hidden],
.street-view-preview-fallback[hidden] {
  display: none;
}
.street-view-preview-fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: var(--adi-blue);
  font-size: 30px;
}
/* Circular 360 badge over the thumbnail, in place of a text caption. */
.street-view-preview-label {
  position: absolute;
  left: 5px;
  bottom: 5px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: var(--adi-blue-dark);
  font-size: 11px;
  line-height: 1;
  box-shadow: 0 1px 4px rgba(12, 27, 49, 0.3);
}
.street-view-preview-credit {
  position: absolute;
  top: 4px;
  right: 5px;
  max-width: calc(100% - 10px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 2px 4px;
  border-radius: 3px;
  background: rgba(8, 29, 58, 0.78);
  color: #fff;
  font-size: 9px;
  line-height: 1.2;
}
.street-view-preview-report {
  position: absolute;
  z-index: 550;
  left: 17px;
  bottom: 57px;
  padding: 2px 5px;
  border-radius: 3px;
  background: rgba(8, 29, 58, 0.85);
  color: #fff;
  font-size: 10px;
  text-decoration: underline;
}
.street-view-preview-report[hidden] {
  display: none;
}
.street-view-preview:hover,
.street-view-preview:focus-visible {
  outline: 2px solid var(--adi-blue);
  outline-offset: 2px;
}
/* Setup state: the provider is switched off rather than simply empty here. */
.street-view-notice.setup {
  max-width: min(330px, calc(100% - 32px));
  border-color: #f0c98a;
  background: #fff8ec;
  color: #8a5300;
}
.street-view-notice {
  position: absolute;
  z-index: 550;
  left: 16px;
  bottom: 80px;
  max-width: min(280px, calc(100% - 32px));
  margin: 0;
  padding: 9px 11px;
  border: 1px solid var(--adi-line);
  border-radius: 6px;
  background: #fff;
  color: var(--adi-blue-dark);
  box-shadow: 0 4px 14px rgba(23, 32, 51, 0.18);
  font-size: 12px;
  line-height: 1.35;
}
.navigation-active .street-view-preview,
.navigation-active .street-view-preview-report,
.navigation-active .street-view-notice {
  display: none;
}

.street-view-viewer {
  position: fixed;
  inset: 0;
  z-index: 2200;
  overflow: hidden;
  background: #152031;
  color: #fff;
  font-family: inherit;
}
.street-view-canvas {
  position: absolute;
  inset: 0;
}
.street-view-canvas pnx-photo-viewer {
  display: block;
  width: 100%;
  height: 100%;
}
.street-view-canvas .street-view-pano {
  width: 100%;
  height: 100%;
}
/* Google's logo and Terms links are required attribution and must stay visible, so the
   zoom/pan controls and our own credit bar are lifted clear of them instead. */
.street-view-canvas .street-view-pano .gm-bundled-control {
  margin-bottom: calc(46px + env(safe-area-inset-bottom)) !important;
}
.street-view-viewer:has(.street-view-pano) .street-view-credit {
  padding-bottom: calc(26px + env(safe-area-inset-bottom));
}
/* Two short strips rather than one full-viewport gradient: the transparent middle still
   had to be composited over the panorama on every rotation frame, which cost paint for
   nothing. Only the areas that actually carry shading are painted now. */
.street-view-viewer-shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: none;
}
.street-view-viewer-shade::before,
.street-view-viewer-shade::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 20%;
}
.street-view-viewer-shade::before {
  top: 0;
  background: linear-gradient(180deg, rgba(6, 18, 35, 0.67), transparent);
}
.street-view-viewer-shade::after {
  bottom: 0;
  height: 30%;
  background: linear-gradient(0deg, rgba(6, 18, 35, 0.65), transparent);
}

.street-view-viewer-header {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  padding: max(18px, env(safe-area-inset-top)) 20px 10px;
  pointer-events: none;
}
.street-view-viewer-header button {
  pointer-events: auto;
}
.street-view-viewer-place {
  display: grid;
  gap: 3px;
  min-width: 0;
  max-width: min(620px, calc(100% - 56px));
  text-shadow: 0 1px 4px #182437;
}
.street-view-viewer-place strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 21px;
  line-height: 1.3;
}
.street-view-viewer-place small {
  font-size: 12px;
}
.street-view-viewer-eyebrow {
  color: #d9eaff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}
.street-view-viewer-header button {
  flex: none;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(9, 22, 41, 0.78);
  color: #fff;
  font-size: 19px;
  cursor: pointer;
}
.street-view-viewer-header button:hover {
  background: var(--adi-blue);
}
.street-view-progress,
.street-view-viewer-error {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 11px;
  max-width: min(340px, calc(100% - 32px));
  padding: 14px 18px;
  border-radius: 6px;
  background: rgba(9, 22, 41, 0.9);
  text-align: center;
  font-size: 14px;
}
.street-view-progress .spinner {
  flex: none;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-top-color: #fff;
  border-radius: 50%;
  animation: nearby-status-spin 0.8s linear infinite;
}
.street-view-credit {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 0;
  /* display: flex; */
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 42px;
  padding: 8px 16px calc(8px + env(safe-area-inset-bottom));
  background: rgba(9, 22, 41, 0.82);
  font-size: 12px;
}
.street-view-credit a {
  color: #fff;
  text-decoration: underline;
}
.street-view-credit-links {
  display: flex;
  flex: none;
  gap: 12px;
}
.street-view-credit-links a[hidden] {
  display: none;
}
@media (max-width: 820px) {
  .street-view-preview,
  .street-view-notice {
    bottom: calc(80px + env(safe-area-inset-bottom));
  }
  .street-view-preview-report {
    bottom: calc(59px + env(safe-area-inset-bottom));
  }
  .route-panel.open + .map-stage .street-view-preview,
  .route-panel.open + .map-stage .street-view-notice {
    bottom: max(
      calc(152px + env(safe-area-inset-bottom)),
      calc(var(--route-sheet-height, 0px) + 72px)
    );
  }
  .route-panel.open + .map-stage .street-view-preview-report {
    bottom: max(
      calc(131px + env(safe-area-inset-bottom)),
      calc(var(--route-sheet-height, 0px) + 51px)
    );
  }
  .street-view-preview {
    width: 100px;
    height: 74px;
  }
  .street-view-viewer-header {
    padding-inline: 14px;
  }
  .street-view-viewer-place strong {
    font-size: 17px;
  }
  .street-view-credit {
    align-items: flex-start;
    font-size: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .street-view-progress .spinner {
    animation: none;
  }
}

/* Map-area landmarks and their provider-backed detail sheet. */
.map-button.landmarks-toggle.active {
  color: #fff;
  background: var(--adi-blue, #0754b8);
}
.map-landmark-marker {
  background: transparent;
  border: 0;
}
.map-landmark-marker span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  color: #fff;
  background: #eb841d;
  border: 2px solid #fff;
  border-radius: 50% 50% 50% 4px;
  box-shadow: 0 2px 8px rgba(15, 36, 63, 0.35);
  transform: rotate(-45deg);
}
.map-landmark-marker i {
  font-size: 13px;
  transform: rotate(45deg);
}
.place-details-panel[hidden] {
  display: none;
}
.place-details-loading[hidden],
.place-details-error[hidden],
.place-details-content[hidden],
.place-details-gallery[hidden] {
  display: none;
}
.place-details-panel {
  position: absolute;
  z-index: 1260;
  left: 18px;
  bottom: 22px;
  display: flex;
  flex-direction: column;
  width: min(440px, calc(100% - 36px));
  max-height: min(76vh, 720px);
  overflow: hidden;
  color: var(--text-color, #17367c);
  background: #fff;
  border: 1px solid #d8e1ed;
  border-radius: 12px;
  box-shadow: 0 12px 36px rgba(20, 45, 78, 0.22);
}
.place-details-panel .weather-panel-header {
  flex: none;
  padding: 0 18px 12px;
}
.place-details-panel .weather-panel-header h2 {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.place-details-loading,
.place-details-error {
  flex: none;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  color: #52657e;
  font-size: 13px;
}
.place-details-error {
  color: #72501d;
  background: #fff7e9;
}
.place-details-content {
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 0 18px 12px;
}
.place-details-gallery {
  position: relative;
  overflow: hidden;
  margin: 0 0 14px;
  aspect-ratio: 16 / 8;
  background: #eef3f8;
  border-radius: 8px;
}
.place-details-gallery img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.place-details-image-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  height: 100%;
  color: #65768c;
  background: #eef3f8;
  font-size: 13px;
}
.place-details-gallery small {
  position: absolute;
  right: 6px;
  bottom: 6px;
  max-width: calc(100% - 12px);
  padding: 3px 6px;
  color: white;
  background: rgba(10, 25, 45, 0.75);
  border-radius: 4px;
  font-size: 10px;
}
.place-details-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.place-details-meta-item {
  min-width: 0;
  padding: 9px 10px;
  background: #f3f7fb;
  border-radius: 6px;
}
.place-details-meta-item span,
.place-details-meta-item strong {
  display: block;
  overflow-wrap: anywhere;
}
.place-details-meta-item span {
  margin-bottom: 3px;
  color: #697b90;
  font-size: 11px;
}
.place-details-meta-item strong {
  color: #183b70;
  font-size: 13px;
  font-weight: 600;
}
.place-details-summary {
  margin: 12px 0 0;
  color: #455a73;
  font-size: 14px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.place-details-links {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}
.place-details-links a {
  padding: 7px 9px;
  color: #0754b8;
  background: #edf4ff;
  border-radius: 5px;
  font-size: 12px;
  text-decoration: none;
}
.place-details-links a:hover {
  text-decoration: underline;
}
.place-details-source {
  display: block;
  margin-top: 12px;
  color: #75849a;
  font-size: 10px;
}
.place-details-actions {
  flex: none;
  display: flex;
  gap: 10px;
  padding: 12px 18px calc(12px + env(safe-area-inset-bottom));
  background: #fff;
  border-top: 1px solid #e2e8f0;
}
.place-details-actions button {
  flex: 1;
  justify-content: center;
  min-height: 42px;
}
.place-details-actions button:disabled {
  opacity: 0.55;
}
.place-details-panel .spinner {
  flex: none;
  width: 17px;
  height: 17px;
  border: 2px solid #dbe6f3;
  border-top-color: var(--adi-blue, #0754b8);
  border-radius: 50%;
  animation: nearby-status-spin 0.8s linear infinite;
}
@media (max-width: 820px) {
  .place-details-panel {
    left: 8px;
    right: 8px;
    bottom: calc(8px + env(safe-area-inset-bottom));
    width: auto;
    max-height: min(78dvh, 680px);
    border-radius: 16px;
  }
  .place-details-panel .weather-panel-grabber {
    display: block;
  }
  .place-details-content {
    padding-inline: 14px;
  }
  .place-details-actions {
    padding-inline: 14px;
  }
}
@media (max-width: 380px) {
  .place-details-meta {
    grid-template-columns: minmax(0, 1fr);
  }
  .place-details-actions {
    gap: 7px;
  }
  .place-details-actions button {
    padding-inline: 9px;
    font-size: 13px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .place-details-panel .spinner {
    animation: none;
  }
}

.place-details-overview {
  display: grid;
  grid-template-columns: minmax(110px, 0.82fr) minmax(0, 1.4fr);
  align-items: start;
  gap: 12px;
  margin-bottom: 12px;
}
.place-details-overview:has(.place-details-gallery[hidden]) {
  grid-template-columns: minmax(0, 1fr);
}
.place-details-overview:has(.place-details-summary[hidden]) {
  grid-template-columns: minmax(0, 1fr);
}
.place-details-overview .place-details-gallery {
  margin: 0;
  aspect-ratio: 4 / 3;
}
.place-details-overview .place-details-summary {
  margin: 0;
  font-size: 13px;
}
.place-hours {
  margin-top: 12px;
  overflow: hidden;
  background: #f3f7fb;
  border: 1px solid #e0e8f1;
  border-radius: 7px;
}
.place-hours summary {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 9px 11px;
  color: #183b70;
  cursor: pointer;
  list-style: none;
  font-size: 13px;
  font-weight: 700;
}
.place-hours summary::-webkit-details-marker {
  display: none;
}
.place-hours summary > span {
  flex: 1;
}
.place-hours-chevron {
  transition: transform 0.18s ease;
}
.place-hours[open] .place-hours-chevron {
  transform: rotate(180deg);
}
.place-hours-week {
  padding: 0 11px 8px;
}
.place-hours-day {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  color: #586a80;
  border-top: 1px solid #e1e8ef;
  font-size: 12px;
}
.place-hours-day strong {
  color: #253f60;
}

/* Keep the address inputs visible while the route summary sheet is minimized. */
.route-sheet-handle {
  position: absolute;
  z-index: 4;
  top: 0;
  left: 0;
  right: 0;
  height: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  touch-action: none;
}
@media (min-width: 821px) {
  .route-content {
    position: relative;
  }
}
.route-sheet-handle:active {
  cursor: grabbing;
}
.route-sheet-grip {
  width: 42px;
  height: 4px;
  border-radius: 3px;
  background: #b9c5d2;
}
.route-content-collapse {
  position: absolute;
  right: 10px;
  top: 1px;
  width: 32px;
  height: 24px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #17367c;
}
.route-content:not(.has-result) .route-sheet-handle {
  display: none;
}
.route-collapsed-summary[hidden] {
  display: none;
}
.route-collapsed-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 40px;
  padding: 3px 5px;
  color: #17367c;
  background: transparent;
  border: 0;
  text-align: left;
  cursor: grab;
  touch-action: none;
}
.route-collapsed-metrics {
  display: flex;
  align-items: baseline;
  gap: 12px;
  min-width: 0;
}
.route-collapsed-metrics strong {
  font-size: 17px;
  white-space: nowrap;
}
.route-collapsed-metrics span {
  color: #536982;
  font-size: 13px;
  white-space: nowrap;
}
.route-collapsed-label {
  margin-left: auto;
  color: #536982;
  font-size: 12px;
  white-space: nowrap;
}
.route-content.route-content-collapsed {
  position: relative;
  height: 76px;
  min-height: 76px;
  max-height: 76px;
  overflow: hidden;
  padding: 31px 14px 5px;
  touch-action: pan-y;
}
.route-content.route-content-collapsed
  > :not(.route-sheet-handle):not(.route-collapsed-summary) {
  display: none !important;
}
.route-content.route-content-collapsed .route-collapsed-summary {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  min-height: 46px;
  padding: 2px 16px 8px;
}

/* Compact route endpoints while retaining their accessible labels. */
.location-stack {
  gap: 6px;
}
.location-stack > .location-row:not(.stop-row) .location-control {
  display: flex;
  align-items: center;
  min-height: 33px;
  padding: 0 68px 0 20px;
}
.location-stack > .location-row:not(.stop-row) .location-control input {
  height: 100%;
  padding: 0;
  line-height: 1.2;
}
.location-stack > .location-row:not(.stop-row) .voice-input-button,
.location-stack > .location-row:not(.stop-row) .field-clear {
  top: 50%;
  transform: translateY(-50%);
}
@media (max-width: 820px) {
  .place-details-overview {
    grid-template-columns: minmax(96px, 0.68fr) minmax(0, 1.32fr);
    gap: 10px;
  }
  .place-details-overview .place-details-summary {
    font-size: 12px;
  }
  .route-content:not(.route-content-collapsed) {
    max-height: min(39dvh, 330px) !important;
    padding: 27px 12px calc(10px + env(safe-area-inset-bottom));
  }
  .route-content.route-content-collapsed {
    position: fixed !important;
    left: 0;
    right: 0;
    bottom: 0;
    height: 76px;
    min-height: 76px;
    max-height: 76px !important;
    padding: 29px 12px calc(4px + env(safe-area-inset-bottom));
    margin: 0;
    border-radius: 18px 18px 0 0;
    overflow: visible;
    z-index: 5;
    pointer-events: auto;
  }
  .route-content.route-content-collapsed .route-collapsed-summary {
    display: flex !important;
    left: 0;
    right: 0;
    bottom: 0;
    min-height: 52px;
    padding: 4px 14px calc(8px + env(safe-area-inset-bottom));
    cursor: pointer;
    pointer-events: auto;
  }
  .route-content.route-content-collapsed .route-sheet-handle {
    z-index: 2;
  }
  .route-content.route-content-collapsed .route-content-collapse {
    z-index: 6;
    width: 38px;
    height: 30px;
    background: #f1f5fb;
    cursor: pointer;
    pointer-events: auto;
  }
  .route-content:not(.route-content-collapsed)::before {
    display: none;
  }
  .location-stack > .location-row:not(.stop-row) .location-control {
    min-height: 33px;
    padding-inline: 20px 65px;
  }
}
@media (max-width: 420px) {
  .place-details-overview {
    grid-template-columns: minmax(86px, 0.62fr) minmax(0, 1.38fr);
    gap: 8px;
  }
  .route-collapsed-metrics {
    gap: 8px;
  }
  .route-collapsed-metrics strong {
    font-size: 15px;
  }
  .route-collapsed-metrics span,
  .route-collapsed-label {
    font-size: 11px;
  }
}
