:root {
  --queye-shell-heading-font: "Wix Madefor Display", "Metropolis", "Noto Sans Simplified Chinese", "Arimo", "Geologica", "Roboto", system-ui, Arial, sans-serif;
  --queye-shell-body-font: "Wix Madefor Text", "Metropolis", "Noto Sans Simplified Chinese", "Arimo", "Geologica", "Roboto", system-ui, Arial, sans-serif;
  --queye-shell-green: #479FF8;
  --queye-shell-canvas: #f2f2f2;
  --queye-shell-panel: #fff;
  --queye-shell-ink: #202124;
  --queye-shell-muted: #4d5156;
  --queye-shell-border: #dadce0;
  --queye-shell-link: #479FF8;
  --maps-sidebar: clamp(340px, 27vw, 430px);
  --maps-radius: 8px;
  --maps-shadow: 0 18px 46px rgba(32, 33, 36, 0.18);
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --queye-shell-canvas: #000;
    --queye-shell-panel: #111;
    --queye-shell-ink: #ddd;
    --queye-shell-muted: #bbb;
    --queye-shell-border: #333;
    --queye-shell-link: #479FF8;
    --maps-shadow: 0 18px 48px rgba(0, 0, 0, 0.42);
  }
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  width: 100%;
  min-width: 320px;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--queye-shell-canvas);
  color: var(--queye-shell-ink);
  font-family: var(--queye-shell-body-font);
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

.maps-app {
  width: 100%;
  height: 100dvh;
  display: grid;
  grid-template-columns: var(--maps-sidebar) minmax(0, 1fr);
  background: var(--queye-shell-canvas);
}

.maps-sidebar {
  position: relative;
  z-index: 12;
  min-width: 0;
  height: 100dvh;
  padding: 18px 18px 16px;
  background: var(--queye-shell-panel);
  border-right: 1px solid var(--queye-shell-border);
  display: grid;
  grid-template-rows: auto auto auto auto minmax(0, 1fr);
  gap: 14px;
  overflow: hidden;
}

.maps-brandbar {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.maps-brand {
  min-width: 0;
  color: var(--queye-shell-ink);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.maps-brand img {
  width: 62px;
  height: 52px;
  object-fit: contain;
  display: block;
}

.maps-brand span {
  min-width: 0;
  color: var(--queye-shell-ink);
  font-family: var(--queye-shell-heading-font);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0;
}

.maps-account {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #000;
  flex: 0 0 auto;
}

.maps-account img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.maps-search {
  min-height: 50px;
  padding: 0 8px 0 15px;
  border: 1px solid #dfe1e5;
  border-radius: 24px;
  background: var(--queye-shell-panel);
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 10px;
}

.maps-search:focus-within {
  border-color: color-mix(in srgb, var(--queye-shell-link) 42%, var(--queye-shell-border));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--queye-shell-link) 14%, transparent);
}

.maps-app.is-loading .maps-search {
  border-color: var(--queye-shell-green);
}

.maps-search > i {
  color: var(--queye-shell-muted);
  font-size: 15px;
}

.maps-search input {
  width: 100%;
  min-width: 0;
  height: 46px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--queye-shell-ink);
  font-size: 16px;
}

.maps-search input::placeholder {
  color: color-mix(in srgb, var(--queye-shell-muted) 82%, transparent);
}

.icon-button {
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--queye-shell-border);
  border-radius: 999px;
  background: var(--queye-shell-panel);
  color: var(--queye-shell-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.icon-button:hover,
.icon-button:focus-visible {
  background: color-mix(in srgb, var(--queye-shell-panel) 88%, var(--queye-shell-ink));
  outline: 0;
}

.icon-button.is-active {
  border-color: transparent;
  background: var(--queye-shell-green);
  color: #000;
}

.maps-chipbar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 1px;
}

.maps-chipbar::-webkit-scrollbar {
  display: none;
}

.chip {
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid var(--queye-shell-border);
  border-radius: 999px;
  background: var(--queye-shell-panel);
  color: var(--queye-shell-ink);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
}

.chip:hover,
.chip:focus-visible,
.chip.is-active {
  border-color: transparent;
  background: var(--queye-shell-green);
  color: #000;
  outline: 0;
}

.maps-action-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.maps-action {
  min-width: 0;
  min-height: 58px;
  padding: 9px 8px;
  border: 1px solid var(--queye-shell-border);
  border-radius: var(--maps-radius);
  background: color-mix(in srgb, var(--queye-shell-panel) 92%, var(--queye-shell-canvas));
  color: var(--queye-shell-ink);
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 6px;
  cursor: pointer;
}

.maps-action:hover,
.maps-action:focus-visible {
  background: color-mix(in srgb, var(--queye-shell-panel) 82%, var(--queye-shell-ink));
  outline: 0;
}

.maps-action i {
  font-size: 17px;
}

.maps-action span {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 800;
}

.maps-results-shell,
.maps-route-box {
  min-width: 0;
  border: 1px solid var(--queye-shell-border);
  border-radius: var(--maps-radius);
  background: var(--queye-shell-panel);
  overflow: hidden;
}

.maps-route-box {
  padding: 13px;
  display: grid;
  gap: 12px;
}

.maps-route-box {
  grid-row: 4;
}


.maps-route-menu {
  min-width: 0;
  border: 1px solid var(--queye-shell-border);
  border-radius: var(--maps-radius);
  background: var(--queye-shell-panel);
  overflow: hidden;
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr);
}

.route-menu-head {
  min-height: 58px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--queye-shell-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.route-menu-head p {
  margin: 0 0 3px;
  color: var(--queye-shell-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.route-menu-head strong {
  display: block;
  max-width: 280px;
  overflow: hidden;
  color: var(--queye-shell-ink);
  font-size: 17px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.route-choice-modes {
  height: 40px;
  margin: 12px 14px 0;
  padding: 3px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--queye-shell-panel) 88%, var(--queye-shell-ink));
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
}

.route-menu-status {
  min-height: 34px;
  padding: 10px 14px 0;
  color: var(--queye-shell-muted);
  font-size: 12px;
  font-weight: 850;
}

.route-options {
  min-height: 0;
  padding: 8px 14px 14px;
  overflow: auto;
  display: grid;
  align-content: start;
  gap: 8px;
}

.route-option {
  width: 100%;
  min-width: 0;
  min-height: 86px;
  padding: 12px;
  border: 1px solid var(--queye-shell-border);
  border-radius: var(--maps-radius);
  background: var(--queye-shell-panel);
  color: var(--queye-shell-ink);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 10px;
  text-align: left;
  cursor: pointer;
}

.route-option:hover,
.route-option:focus-visible,
.route-option.is-selected {
  border-color: color-mix(in srgb, var(--queye-shell-green) 48%, var(--queye-shell-border));
  background: color-mix(in srgb, var(--queye-shell-green) 12%, var(--queye-shell-panel));
  outline: 0;
}

.route-option-title,
.route-option-summary {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.route-option-title {
  font-size: 14px;
  font-weight: 900;
}

.route-option-time {
  color: var(--queye-shell-ink);
  font-size: 20px;
  line-height: 1;
  grid-row: span 2;
  align-self: center;
}

.route-option-distance,
.route-option-summary {
  color: var(--queye-shell-muted);
  font-size: 12px;
  font-weight: 800;
}


.maps-results-shell {
  grid-row: 5;
}

.route-head {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.route-head p,
.results-head p,
.place-copy p:first-child {
  margin: 0 0 3px;
  color: var(--queye-shell-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.route-head strong {
  display: block;
  max-width: 260px;
  overflow: hidden;
  color: var(--queye-shell-ink);
  font-size: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.route-modes {
  height: 38px;
  padding: 3px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--queye-shell-panel) 88%, var(--queye-shell-ink));
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
}

.mode-button {
  min-width: 0;
  height: 32px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--queye-shell-muted);
  cursor: pointer;
}

.mode-button.is-active {
  background: var(--queye-shell-panel);
  color: var(--queye-shell-ink);
  box-shadow: 0 1px 3px rgba(32, 33, 36, 0.13);
}

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

.route-stats span {
  min-height: 38px;
  padding: 8px 10px;
  border-radius: var(--maps-radius);
  background: color-mix(in srgb, var(--queye-shell-panel) 90%, var(--queye-shell-canvas));
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.route-steps {
  max-height: 130px;
  margin: 0;
  padding: 0 0 0 22px;
  overflow: auto;
  color: var(--queye-shell-muted);
  font-size: 13px;
  line-height: 1.35;
}

.route-steps li + li {
  margin-top: 6px;
}

.route-navigation {
  padding: 12px;
  border-radius: var(--maps-radius);
  background: color-mix(in srgb, var(--queye-shell-green) 13%, var(--queye-shell-panel));
  display: grid;
  gap: 12px;
}

.route-next {
  display: grid;
  gap: 4px;
}

.route-next strong {
  color: var(--queye-shell-ink);
  font-size: 16px;
  line-height: 1.25;
}

.route-next span {
  color: var(--queye-shell-muted);
  font-size: 13px;
  font-weight: 800;
}

.route-nav-actions {
  display: flex;
  gap: 8px;
}

.route-nav-button {
  flex: 1 1 0;
}

.route-steps li.is-current {
  color: var(--queye-shell-ink);
  font-weight: 900;
}

.route-guidance-row {
  min-width: 0;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.route-maneuver-icon {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: var(--queye-shell-green);
  color: #000;
  display: inline-grid;
  place-items: center;
  font-size: 19px;
  box-shadow: 0 4px 14px color-mix(in srgb, var(--queye-shell-green) 35%, transparent);
}

.route-then {
  min-height: 30px;
  padding: 7px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--queye-shell-panel) 88%, var(--queye-shell-ink));
  color: var(--queye-shell-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 850;
}

.route-steps li {
  padding-right: 4px;
}

.route-steps li.is-complete {
  opacity: 0.52;
}

.route-step-text,
.route-step-distance {
  display: block;
}

.route-step-distance {
  margin-top: 2px;
  color: color-mix(in srgb, var(--queye-shell-muted) 78%, transparent);
  font-size: 11px;
  font-weight: 850;
}


.maps-results-shell {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.results-head {
  min-height: 48px;
  padding: 7px 14px;
  border-bottom: 1px solid var(--queye-shell-border);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.results-head h1 {
  margin: 0;
  font-family: var(--queye-shell-heading-font);
  font-size: 22px;
  line-height: 1.05;
  letter-spacing: 0;
}

.results-head span {
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--queye-shell-green);
  color: #000;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
}

.maps-results {
  min-height: 0;
  overflow: auto;
  padding: 8px;
}

.result-item {
  width: 100%;
  min-width: 0;
  padding: 10px;
  border: 0;
  border-radius: var(--maps-radius);
  background: transparent;
  color: var(--queye-shell-ink);
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 11px;
  text-align: left;
  cursor: pointer;
}

.result-item:hover,
.result-item:focus-visible,
.result-item.is-selected {
  background: color-mix(in srgb, var(--queye-shell-panel) 86%, var(--queye-shell-ink));
  outline: 0;
}

.result-thumb {
  width: 48px;
  height: 48px;
  border-radius: var(--maps-radius);
  background: color-mix(in srgb, var(--queye-shell-green) 20%, var(--queye-shell-panel));
  color: #000;
  display: grid;
  place-items: center;
  overflow: hidden;
  font-size: 18px;
}

.result-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.result-main {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.result-title-row {
  min-width: 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 9px;
}

.result-title {
  min-width: 0;
  overflow: hidden;
  color: var(--queye-shell-ink);
  font-size: 15px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.result-distance {
  color: var(--queye-shell-muted);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.result-address,
.result-meta {
  min-width: 0;
  overflow: hidden;
  color: var(--queye-shell-muted);
  font-size: 12px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.empty-state {
  padding: 28px 18px;
  color: var(--queye-shell-muted);
  font-size: 14px;
  line-height: 1.45;
}

.maps-stage {
  position: relative;
  min-width: 0;
  min-height: 100dvh;
  overflow: hidden;
}

#map {
  position: absolute;
  inset: 0;
  background: #dfe6e1;
}

.maps-route-overlay {
  position: absolute;
  inset: 0;
  z-index: 7;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.route-overlay-shadow,
.route-overlay-casing,
.route-overlay-line {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.route-overlay-shadow {
  stroke: rgba(0, 0, 0, 0.38);
  stroke-width: 16px;
}

.route-overlay-casing {
  stroke: #fff;
  stroke-width: 12px;
}

.route-overlay-line {
  stroke: #006bff;
  stroke-width: 8px;
}

.route-overlay-line.is-alternate {
  stroke: #4b5563;
  stroke-width: 5px;
  opacity: 0.64;
}

.route-overlay-casing.is-alternate {
  stroke-width: 8px;
  opacity: 0.68;
}

.route-overlay-shadow.is-alternate {
  stroke-width: 10px;
  opacity: 0.48;
}

.maps-mapbar {
  position: absolute;
  z-index: 8;
  top: 18px;
  right: 18px;
  display: flex;
  gap: 8px;
}

.maps-locate-fab {
  position: absolute;
  z-index: 8;
  right: 18px;
  bottom: 116px;
  width: 42px;
  height: 42px;
  box-shadow: var(--maps-shadow);
}

.maps-nav-dock {
  display: none;
}


#mapsMobilePanel {
  display: none;
}

.maps-style-menu {
  position: absolute;
  z-index: 9;
  top: 62px;
  right: 18px;
  width: 154px;
  padding: 6px;
  border: 1px solid var(--queye-shell-border);
  border-radius: var(--maps-radius);
  background: var(--queye-shell-panel);
  box-shadow: var(--maps-shadow);
}

.maps-style-menu button {
  width: 100%;
  min-height: 36px;
  padding: 0 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--queye-shell-ink);
  text-align: left;
  font-weight: 800;
  cursor: pointer;
}

.maps-style-menu button:hover,
.maps-style-menu button:focus-visible,
.maps-style-menu button.is-active {
  background: var(--queye-shell-green);
  color: #000;
  outline: 0;
}

.maps-place-sheet {
  position: absolute;
  z-index: 10;
  left: 18px;
  bottom: 18px;
  width: min(430px, calc(100% - 36px));
  max-height: min(76vh, 620px);
  overflow: auto;
  border: 1px solid var(--queye-shell-border);
  border-radius: var(--maps-radius);
  background: var(--queye-shell-panel);
  box-shadow: var(--maps-shadow);
}

.sheet-close {
  position: absolute;
  z-index: 2;
  top: 10px;
  right: 10px;
}

.place-image {
  width: 100%;
  height: 178px;
  background-size: cover;
  background-position: center;
}

.place-copy {
  padding: 16px 16px 8px;
}

.place-copy h2 {
  margin: 0 38px 8px 0;
  color: var(--queye-shell-ink);
  font-family: var(--queye-shell-heading-font);
  font-size: 26px;
  line-height: 1.05;
  letter-spacing: 0;
}

#mapsPlaceAddress,
#mapsPlaceDescription {
  margin: 0;
  color: var(--queye-shell-muted);
  font-size: 14px;
  line-height: 1.4;
}

#mapsPlaceDescription {
  margin-top: 8px;
}

.place-meta {
  padding: 0 16px 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.meta-pill {
  max-width: 100%;
  min-height: 30px;
  padding: 7px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--queye-shell-panel) 88%, var(--queye-shell-ink));
  color: var(--queye-shell-ink);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 800;
}

.meta-pill span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.place-actions {
  padding: 0 16px 16px;
  display: flex;
  gap: 8px;
}

.primary-button,
.secondary-button {
  min-height: 42px;
  min-width: 0;
  padding: 0 14px;
  border-radius: var(--maps-radius);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  text-decoration: none;
  font-weight: 900;
}

.primary-button {
  border: 0;
  background: var(--queye-shell-green);
  color: #000;
  cursor: pointer;
}

.secondary-button {
  border: 1px solid var(--queye-shell-border);
  background: var(--queye-shell-panel);
  color: var(--queye-shell-link);
}

.primary-button span,
.secondary-button span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.maps-toast {
  position: absolute;
  z-index: 20;
  left: 50%;
  bottom: 22px;
  max-width: min(520px, calc(100% - 36px));
  transform: translateX(-50%);
  padding: 11px 14px;
  border-radius: 999px;
  background: #202124;
  color: #fff;
  box-shadow: var(--maps-shadow);
  font-size: 14px;
  font-weight: 800;
}

.maps-place-marker {
  width: 26px;
  height: 26px;
  padding: 0;
  border: 3px solid #fff;
  border-radius: 999px;
  background: #479FF8;
  color: #fff;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.28);
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}

.maps-place-marker.is-selected {
  width: 32px;
  height: 32px;
  background: var(--queye-shell-green);
  color: #000;
}

.maps-user-marker {
  position: relative;
  width: 34px;
  height: 34px;
  border: 3px solid #fff;
  border-radius: 999px;
  background-color: #479FF8;
  background-position: center;
  background-size: cover;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--queye-shell-green) 22%, transparent), 0 2px 10px rgba(0, 0, 0, 0.3);
}

.maps-user-marker::after {
  content: "";
  position: absolute;
  right: -3px;
  bottom: -3px;
  width: 11px;
  height: 11px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: var(--queye-shell-green);
}

.maps-selected-marker {
  width: 24px;
  height: 24px;
  border: 4px solid #fff;
  border-radius: 999px 999px 999px 3px;
  background: var(--queye-shell-green);
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.28);
  transform: rotate(-45deg);
}

.maps-selected-marker::after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #000;
  position: absolute;
  top: 5px;
  left: 5px;
}

.mapboxgl-ctrl-logo,
.mapboxgl-ctrl-attrib {
  opacity: 0.76;
}

@media (prefers-color-scheme: dark) {
  .maps-brand img {
    filter: invert(1) brightness(1.85);
  }
}

@media (min-width: 761px) {
  .maps-app.is-choosing-route {
    --maps-sidebar: clamp(390px, 31vw, 500px);
  }

  .maps-app.is-choosing-route .maps-results-shell,
  .maps-app.is-choosing-route .maps-route-box {
    display: none;
  }

  .maps-app.is-choosing-route .maps-route-menu {
    grid-row: 4 / span 2;
    min-height: 0;
  }

  .maps-app.has-route {
    --maps-sidebar: clamp(390px, 31vw, 500px);
  }

  .maps-app.has-route .maps-sidebar {
    grid-template-rows: auto auto auto minmax(0, 1fr);
  }

  .maps-app.has-route .maps-results-shell {
    display: none;
  }

  .maps-app.has-route .maps-route-box {
    grid-row: 4;
    min-height: 0;
    padding: 0;
    gap: 0;
    display: grid;
    grid-template-rows: auto auto auto auto minmax(0, 1fr);
    overflow: hidden;
  }

  .maps-app.has-route .route-head {
    min-height: 62px;
    padding: 13px 14px;
    border-bottom: 1px solid var(--queye-shell-border);
    align-items: center;
  }

  .maps-app.has-route .route-head strong {
    max-width: none;
    font-size: 18px;
  }

  .maps-app.has-route .route-modes {
    margin: 12px 14px 0;
  }

  .maps-app.has-route .route-stats {
    padding: 12px 14px;
    border-bottom: 1px solid var(--queye-shell-border);
  }

  .maps-app.has-route .route-stats span {
    min-height: 56px;
    display: grid;
    place-items: center;
    font-size: 20px;
  }

  .maps-app.has-route .route-navigation {
    margin: 12px 14px;
    border-radius: var(--maps-radius);
  }

  .maps-app.has-route .route-next strong {
    font-size: 17px;
  }

  .maps-app.has-route .route-nav-actions {
    padding-top: 2px;
  }

  .maps-app.has-route .route-nav-button {
    min-height: 46px;
  }

  .maps-app.has-route .route-steps {
    min-height: 0;
    max-height: none;
    margin: 0;
    padding: 4px 14px 14px;
    overflow: auto;
    list-style: none;
    counter-reset: route-step;
  }

  .maps-app.has-route .route-steps li {
    position: relative;
    min-height: 48px;
    margin: 0;
    padding: 10px 10px 10px 42px;
    border-radius: var(--maps-radius);
    cursor: pointer;
  }

  .maps-app.has-route .route-steps li + li {
    margin-top: 4px;
  }

  .maps-app.has-route .route-steps li::before {
    counter-increment: route-step;
    content: counter(route-step);
    position: absolute;
    top: 11px;
    left: 10px;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--queye-shell-green) 18%, var(--queye-shell-panel));
    color: var(--queye-shell-ink);
    display: grid;
    place-items: center;
    font-size: 11px;
    font-weight: 900;
  }

  .maps-app.has-route .route-steps li:hover,
  .maps-app.has-route .route-steps li:focus-visible,
  .maps-app.has-route .route-steps li.is-current {
    background: color-mix(in srgb, var(--queye-shell-green) 14%, var(--queye-shell-panel));
    outline: 0;
  }

  .maps-app.has-route .route-steps li.is-current::before {
    background: var(--queye-shell-green);
    color: #000;
  }
}
@media (max-width: 980px) {
  :root {
    --maps-sidebar: min(390px, 42vw);
  }
}

@media (max-width: 760px) {
  :root {
    --maps-mobile-peek: 152px;
    --maps-mobile-sheet: min(70dvh, 620px);
    --maps-radius: 14px;
  }

  html,
  body {
    height: 100%;
    -webkit-tap-highlight-color: transparent;
    overflow: hidden;
    overscroll-behavior: none;
    background: #000;
  }

  .maps-app {
    position: relative;
    display: block;
    height: 100dvh;
    overflow: hidden;
  }

  .maps-stage {
    height: 100dvh;
    min-height: 100dvh;
  }

  .maps-sidebar {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 15;
    width: auto;
    height: var(--maps-mobile-sheet);
    max-height: calc(100dvh - 72px - env(safe-area-inset-top));
    padding: 26px 12px calc(14px + env(safe-area-inset-bottom));
    border: 0;
    border-top: 1px solid color-mix(in srgb, var(--queye-shell-border) 80%, transparent);
    border-radius: 24px 24px 0 0;
    background: color-mix(in srgb, var(--queye-shell-panel) 96%, transparent);
    box-shadow: 0 -18px 42px rgba(32, 33, 36, 0.22);
    display: grid;
    grid-template-rows: auto auto auto minmax(0, 1fr);
    gap: 10px;
    overflow: hidden;
    transform: translateY(calc(100% - var(--maps-mobile-peek) - env(safe-area-inset-bottom)));
    transition: transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
    touch-action: pan-y;
  }

  .maps-sidebar::before {
    content: "";
    position: absolute;
    top: 8px;
    left: 50%;
    width: 42px;
    height: 5px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--queye-shell-muted) 34%, transparent);
    transform: translateX(-50%);
  }

  .maps-app.is-panel-open .maps-sidebar {
    transform: translateY(0);
  }

  .maps-brandbar,
  .maps-action-grid {
    display: none;
  }

  .maps-search {
    min-height: 56px;
    padding: 0 8px 0 16px;
    border-radius: 18px;
    background: var(--queye-shell-panel);
    box-shadow: 0 8px 22px rgba(32, 33, 36, 0.12);
  }

  .maps-search input {
    height: 54px;
    font-size: 16px;
  }

  .icon-button {
    width: 44px;
    height: 44px;
  }

  .maps-search .icon-button {
    width: 38px;
    height: 38px;
  }

  .maps-chipbar {
    margin: 0 -12px;
    padding: 2px 12px 4px;
    gap: 8px;
    scroll-snap-type: x proximity;
  }

  .chip {
    min-height: 40px;
    padding: 0 16px;
    scroll-snap-align: start;
  }

  .maps-route-box,
  .maps-route-menu,
  .maps-results-shell {
    grid-row: auto;
  }

  .maps-app.is-choosing-route .maps-search,
  .maps-app.is-choosing-route .maps-chipbar,
  .maps-app.is-choosing-route .maps-results-shell {
    display: none;
  }

  .maps-app.is-choosing-route .maps-sidebar {
    height: auto;
    max-height: min(62dvh, 520px);
    grid-template-rows: minmax(0, 1fr);
    transform: translateY(0);
  }

  .maps-app.is-choosing-route .maps-route-menu {
    max-height: min(56dvh, 460px);
  }

  .maps-route-box,
  .maps-route-menu {
    max-height: 42dvh;
    padding: 12px;
    border: 0;
    border-radius: 18px;
    background: color-mix(in srgb, var(--queye-shell-panel) 92%, var(--queye-shell-canvas));
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }

  .route-menu-head p {
    display: none;
  }

  .route-menu-head strong {
    max-width: calc(100vw - 108px);
    font-size: 15px;
  }

  .route-options {
    max-height: 28dvh;
  }

  .route-head p {
    display: none;
  }

  .route-head strong {
    max-width: calc(100vw - 108px);
    font-size: 15px;
  }

  .route-modes {
    height: 44px;
  }

  .mode-button {
    height: 38px;
    font-size: 15px;
  }

  .route-navigation {
    padding: 11px;
    border-radius: 16px;
  }

  .route-next strong {
    font-size: 15px;
  }

  .route-steps {
    max-height: 90px;
    font-size: 12px;
  }

  .maps-results-shell {
    border: 0;
    border-radius: 0;
    background: transparent;
    display: grid;
    grid-template-rows: minmax(0, 1fr);
    overflow: hidden;
  }

  .results-head {
    display: none;
  }

  .maps-results {
    padding: 2px 0 0;
    -webkit-overflow-scrolling: touch;
  }

  .result-item {
    min-height: 78px;
    padding: 12px 8px;
    border-radius: 16px;
    background: color-mix(in srgb, var(--queye-shell-panel) 94%, var(--queye-shell-canvas));
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 12px;
  }

  .result-item + .result-item {
    margin-top: 7px;
  }

  .result-thumb {
    width: 54px;
    height: 54px;
    border-radius: 14px;
  }

  .result-title {
    font-size: 15.5px;
  }

  .result-address,
  .result-meta {
    font-size: 12.5px;
  }

  .empty-state {
    padding: 20px 8px;
  }

  .maps-mapbar {
    top: calc(12px + env(safe-area-inset-top));
    right: 12px;
    padding: 4px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--queye-shell-panel) 82%, transparent);
    box-shadow: 0 8px 24px rgba(32, 33, 36, 0.18);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    gap: 4px;
  }

  .maps-mapbar .icon-button {
    width: 42px;
    height: 42px;
    border: 0;
    background: var(--queye-shell-panel);
  }

  #mapsMobilePanel {
    display: inline-flex;
  }

  .maps-locate-fab {
    right: 14px;
    bottom: calc(var(--maps-mobile-peek) + 18px + env(safe-area-inset-bottom));
    width: 50px;
    height: 50px;
    border: 0;
    background: var(--queye-shell-panel);
    box-shadow: 0 10px 26px rgba(32, 33, 36, 0.24);
  }

  .maps-app.is-panel-open .maps-locate-fab,
  .maps-app.has-place-sheet .maps-locate-fab {
    bottom: calc(var(--maps-mobile-sheet) + 16px);
  }

  .maps-style-menu {
    top: calc(66px + env(safe-area-inset-top));
    right: 12px;
    border-radius: 18px;
  }

  .maps-place-sheet {
    z-index: 18;
    left: 0;
    right: 0;
    bottom: 0;
    width: auto;
    max-height: min(72dvh, 620px);
    border: 0;
    border-top: 1px solid color-mix(in srgb, var(--queye-shell-border) 80%, transparent);
    border-radius: 24px 24px 0 0;
    box-shadow: 0 -18px 42px rgba(32, 33, 36, 0.24);
  }

  .maps-place-sheet::before {
    content: "";
    position: sticky;
    top: 8px;
    left: 50%;
    z-index: 3;
    width: 42px;
    height: 5px;
    margin: 8px auto 0;
    border-radius: 999px;
    background: color-mix(in srgb, var(--queye-shell-muted) 34%, transparent);
    display: block;
  }

  .sheet-close {
    top: 14px;
    right: 14px;
    width: 40px;
    height: 40px;
  }

  .place-image {
    height: 188px;
  }

  .place-copy {
    padding: 18px 16px 8px;
  }

  .place-copy h2 {
    font-size: 24px;
  }

  .place-actions {
    position: sticky;
    bottom: 0;
    padding: 12px 16px calc(16px + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--queye-shell-panel) 96%, transparent);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
  }

  .primary-button,
  .secondary-button {
    min-height: 48px;
    border-radius: 14px;
  }

  .maps-toast {
    top: calc(16px + env(safe-area-inset-top));
    bottom: auto;
    max-width: calc(100% - 24px);
    border-radius: 16px;
  }

  .maps-app.is-navigating .maps-sidebar {
    top: 0;
    bottom: auto;
    height: auto;
    max-height: none;
    padding: calc(12px + env(safe-area-inset-top)) 12px 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
    transform: none;
    pointer-events: none;
  }

  .maps-app.is-navigating .maps-sidebar::before,
  .maps-app.is-navigating .maps-search,
  .maps-app.is-navigating .maps-chipbar,
  .maps-app.is-navigating .maps-results-shell,
  .maps-app.is-navigating .maps-route-menu,
  .maps-app.is-navigating .route-head,
  .maps-app.is-navigating .route-modes,
  .maps-app.is-navigating .route-stats,
  .maps-app.is-navigating .route-nav-actions,
  .maps-app.is-navigating .route-steps {
    display: none;
  }

  .maps-app.is-navigating .maps-route-box {
    max-height: none;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
    pointer-events: none;
  }

  .maps-app.is-navigating .route-navigation {
    padding: 13px;
    border-radius: 22px;
    background: color-mix(in srgb, var(--queye-shell-panel) 96%, transparent);
    box-shadow: 0 14px 36px rgba(32, 33, 36, 0.24);
    pointer-events: auto;
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
  }

  .maps-app.is-navigating .route-guidance-row {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 13px;
  }

  .maps-app.is-navigating .route-maneuver-icon {
    width: 58px;
    height: 58px;
    font-size: 26px;
  }

  .maps-app.is-navigating .route-next strong {
    font-size: 19px;
    line-height: 1.18;
  }

  .maps-app.is-navigating .route-next span {
    font-size: 15px;
  }

  .maps-app.is-navigating .route-then {
    border-radius: 16px;
  }

  .maps-app.is-navigating .maps-nav-dock {
    position: absolute;
    z-index: 22;
    left: 12px;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    display: grid;
    grid-template-columns: minmax(0, 1fr) 82px;
    gap: 10px;
    align-items: stretch;
    pointer-events: auto;
  }

  .maps-nav-metrics {
    min-width: 0;
    padding: 10px;
    border-radius: 22px;
    background: color-mix(in srgb, var(--queye-shell-panel) 96%, transparent);
    box-shadow: 0 12px 32px rgba(32, 33, 36, 0.24);
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
  }

  .maps-nav-metrics strong,
  .maps-nav-metrics span {
    min-width: 0;
    min-height: 50px;
    padding: 0 8px;
    border-radius: 16px;
    background: color-mix(in srgb, var(--queye-shell-panel) 90%, var(--queye-shell-canvas));
    display: grid;
    place-items: center;
    overflow: hidden;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 900;
  }

  .maps-nav-metrics strong {
    color: var(--queye-shell-ink);
    font-size: 20px;
  }

  .maps-nav-metrics span {
    color: var(--queye-shell-muted);
    font-size: 17px;
  }

  .maps-nav-stop {
    min-height: 70px;
    padding: 0 8px;
    border: 0;
    border-radius: 22px;
    background: #202124;
    color: #fff;
    box-shadow: 0 12px 32px rgba(32, 33, 36, 0.28);
    flex-direction: column;
    gap: 5px;
  }

  .maps-nav-stop span {
    max-width: 100%;
    font-size: 12px;
  }

  .maps-app.is-navigating .maps-mapbar {
    display: none;
  }

  .maps-app.is-navigating .maps-locate-fab {
    bottom: calc(102px + env(safe-area-inset-bottom));
  }

  .mapboxgl-ctrl-bottom-right {
    display: none;
  }

  .mapboxgl-ctrl-bottom-left {
    bottom: calc(var(--maps-mobile-peek) + 8px + env(safe-area-inset-bottom));
  }
}
