.time-slider {
  margin: 0.85rem 0 0.15rem;
}

.time-slider__label {
  display: block;
  margin-bottom: 0.4rem;
  font-family: var(--mono);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
}

.time-slider input[type="range"] {
  width: 100%;
  accent-color: var(--gold);
  cursor: pointer;
}

.time-slider__ends {
  display: flex;
  justify-content: space-between;
  margin-top: 0.25rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--muted);
}

.current-map-frame {
  position: relative;
  margin-top: 0.85rem;
}

.current-map {
  height: min(72vh, 680px);
  min-height: 420px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #081018;
}

.speed-legend {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 500;
  padding: 0.55rem 0.55rem 0.5rem;
  border-radius: 14px;
  background: rgba(12, 17, 24, 0.78);
  border: 1px solid rgba(36, 48, 68, 0.9);
  backdrop-filter: blur(8px);
  pointer-events: none;
}

.speed-legend__title {
  margin: 0 0 0.35rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text);
}

.speed-legend__row {
  display: flex;
  gap: 0.4rem;
  align-items: stretch;
}

.speed-legend__bar {
  width: 10px;
  border-radius: 999px;
  background: linear-gradient(
    180deg,
    #d4452a 0%,
    #f08a3c 33%,
    #f3f6f8 50%,
    #5aa8dc 75%,
    #0b1c3d 100%
  );
}

.speed-legend__ticks {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 1.6rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--muted);
  line-height: 1;
}

.current-map .leaflet-container {
  height: 100%;
  width: 100%;
  background: #081018;
  font-family: var(--font);
}

.current-map .leaflet-container,
.current-map .leaflet-container.leaflet-grab,
.current-map .leaflet-grab,
.current-map .leaflet-interactive,
.current-map .leaflet-dragging .leaflet-grab,
.current-map .leaflet-dragging .leaflet-grab .leaflet-interactive,
.current-map__cursor {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath d='M5 5l14 14M19 5L5 19' fill='none' stroke='%23ffffff' stroke-width='1.8' stroke-linecap='square'/%3E%3Ccircle cx='12' cy='12' r='2.15' fill='%23d4a853' stroke='%231a1408' stroke-width='1'/%3E%3C/svg%3E") 12 12, crosshair !important;
}

.current-map__arrows {
  pointer-events: none;
}

.station-pin {
  background: var(--gold);
  border: 2px solid #1a1408;
  border-radius: 50%;
}

.station-pin-label {
  font-family: var(--font);
  font-size: 11px;
  font-weight: 600;
  color: #ffe8aa;
  text-shadow: 0 1px 2px #081018;
  white-space: nowrap;
}

@media (max-width: 720px) {
  .current-map {
    min-height: 360px;
  }
}
