.track-central { align-items: start; }

.track-map {
  position: relative;
  min-height: 440px;
  overflow: hidden;
  border: 1px solid #d8d4cc;
  border-radius: 22px;
  background: #f4f1eb;
}

.track-map-canvas {
  position: absolute;
  inset: 0;
}

.track-map-canvas .sl-track-map-svg { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 100%; }

.track-map-label,
.track-map-legend {
  position: absolute;
  z-index: 3;
  border: 1px solid rgba(215, 209, 198, .9);
  border-radius: 10px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 8px 22px rgba(65, 60, 49, .12);
}

.track-map-label {
  top: 16px;
  left: 16px;
  padding: 8px 10px;
  font-size: 12px;
}

.track-map-label strong,
.track-map-label small { display: block; }
.track-map-label small { margin-top: 2px; color: #64728a; font-size: 10px; }

.track-map-legend {
  right: 14px;
  bottom: 14px;
  display: grid;
  grid-template-columns: 10px auto;
  align-items: center;
  gap: 5px 7px;
  padding: 8px 10px;
  color: #536176;
  font-size: 10px;
  font-weight: 800;
}

.track-map-legend i {
  display: block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #f27d38;
}

.track-map-legend i:nth-of-type(2) { background: #fff; border: 2px solid #f27d38; }
.track-map-truck .track-map-legend i:first-of-type { background: #5d66a6; }
.track-map-truck .track-map-legend i:nth-of-type(2) { border-color: #5d66a6; }

.track-panel button:focus-visible,
.track-map-event:focus-visible { outline: 3px solid rgba(255, 138, 61, .5); outline-offset: 2px; }

.track-timeline {
  display: grid;
  gap: 7px;
  margin: 14px 0;
  padding: 12px;
  border: 1px solid #d8d4cc;
  border-radius: 14px;
  background: #fffdfa;
}

.track-timeline label { color: #64728a; font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.track-timeline input[type="range"] { width: 100%; accent-color: #f27d38; cursor: pointer; }
.track-timeline > div { display: flex; justify-content: space-between; gap: 10px; color: #64728a; font-size: 12px; }
.track-timeline strong { color: #25314d; }
.track-context-warning { display: block; margin-top: 4px; color: #9b5c37; font-size: 10px; line-height: 1.35; }
.track-context-guide { display: block; margin-top: 4px; color: #3d9b72; font-size: 10px; line-height: 1.35; }
.track-context-guide.is-warning { color: #9b5c37; }

@media (prefers-reduced-motion: reduce) {
  .track-map *, .track-panel * { scroll-behavior: auto; transition: none !important; animation: none !important; }
}

@media (max-width: 760px) {
  .track-map { min-height: 300px; }
  .track-map-legend { display: none; }
  .track-timeline { padding: 10px; }
}
