.route-scene {
  min-height: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 28px 70px rgb(3 20 31 / 14%);
}

.route-scene svg {
  width: 100%;
  max-width: none;
  margin: 0;
  background: #eaf0ed;
}

.map-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 84px;
  padding: 16px 22px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.map-toolbar div { display: flex; flex-direction: column; }
.map-toolbar span { color: var(--muted); font-size: .72rem; font-weight: 750; text-transform: uppercase; letter-spacing: .08em; }
.map-toolbar strong { font-family: Georgia, serif; font-size: 1.45rem; font-weight: 600; line-height: 1.25; }
.map-toolbar small { color: var(--muted); font-size: .78rem; font-variant-numeric: tabular-nums; }
.coast { fill: #b9d8d4; }
.city-blocks { fill: #f7faf8; stroke: #d4dfdb; stroke-width: 1; }
.street-grid { fill: none; stroke: #fff; stroke-width: 17; }
.street-secondary { stroke-width: 8; }
.map-labels { fill: #718c91; font-size: 10px; font-weight: 750; letter-spacing: .12em; text-anchor: middle; }
.route-casing { fill: none; stroke: #fff; stroke-width: 12; stroke-linecap: round; }
.route-scene .route { fill: none; stroke: var(--teal); stroke-width: 5; stroke-linecap: round; stroke-dasharray: none; animation: routeDraw 1.4s cubic-bezier(.16, 1, .3, 1) both; }
.route-scene .map-pin text { paint-order: stroke; stroke: var(--surface); stroke-width: 5; stroke-linejoin: round; }
.map-scale { position: absolute; right: 18px; bottom: 16px; display: flex; align-items: end; gap: 8px; padding: 7px 9px; background: rgb(255 255 255 / 90%); color: #0b192b; font-size: .7rem; font-weight: 700; }
.map-scale i { display: block; width: 42px; height: 7px; border: solid #0b192b; border-width: 0 2px 2px; }
.route-scene .selected-place { display: none; }

@keyframes routeDraw { from { stroke-dasharray: 0 800; } to { stroke-dasharray: 800 0; } }

@media (prefers-color-scheme: dark) {
  .route-scene svg { background: #102b35; }
  .coast { fill: #18454a; }
  .city-blocks { fill: #17313b; stroke: #2d4a53; }
  .street-grid { stroke: #0c212d; }
  .map-labels { fill: #69858d; }
  .route-casing { stroke: #0c212d; }
  .map-scale { background: rgb(9 23 36 / 90%); color: #f5faf9; }
  .map-scale i { border-color: #f5faf9; }
}

@media (max-width: 620px) {
  .map-toolbar { align-items: flex-start; flex-direction: column; gap: 4px; min-height: 0; padding: 14px 16px; }
  .route-scene svg { min-height: 300px; object-fit: cover; }
  .map-scale { right: 10px; bottom: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .route-scene .route { animation: none; }
}
