.platform-header { min-height: 68px; }
.tour-main { max-width: 1460px; padding-top: clamp(24px, 4vh, 48px); }
.tour-main h1 { font-size: clamp(2rem, 4.5vw, 4.5rem); }
.tour-main .platform-intro { margin-bottom: 24px; }
.tour-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(245px, 1fr); gap: 16px; }
.tour-scene, .tour-route { border: 1px solid #c9cdc4; background: #fff; border-radius: 10px; overflow: hidden; }
.tour-scene { position: relative; min-height: clamp(250px, min(31vw, 44vh), 430px); }
.tour-scene canvas { display: block; position: absolute; width: 100%; height: 100%; }
.tour-landmark { position: absolute; bottom: 10px; left: 14px; max-width: calc(100% - 28px); margin: 0; padding: 7px 12px; border: 1px solid #a8b3a8; border-radius: 4px; background: #fbfbf6; font-weight: 700; }
.tour-route { display: flex; flex-direction: column; padding: 18px; }
.tour-label, .tour-route h2 { margin: 0; }
.tour-label { color: #4c5850; font-size: .85rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.tour-route h2 { margin-top: 5px; font-size: clamp(1.25rem, 2vw, 1.65rem); overflow-wrap: anywhere; }
#route-map { display: block; width: 100%; max-height: 215px; min-height: 130px; flex: 1; }
#route-map polyline { fill: none; stroke-linejoin: round; stroke-linecap: round; stroke-width: 4; }
#map-outline { stroke: #b2bdb2; }
#map-ridden, #map-finish { stroke: #1b513a; }
#map-start, #map-player { fill: #1b513a; }
#map-player { stroke: #fff; stroke-width: 2; }
#map-finish { fill: #fff; stroke-width: 2; }
.route-distance { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 5px 12px; }
.route-distance strong { font-size: 1.35rem; }
.route-distance span, .tour-source { color: #47584b; }
.tour-route progress { accent-color: #2c5e44; width: 100%; height: 13px; margin-top: 6px; }
.tour-source { font-size: .8rem; margin: 9px 0 0; }
.tour-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 16px 0; border: 1px solid #c9cdc4; border-radius: 8px; background: #fff; }
.tour-metrics div { padding: 12px 16px; }
.tour-metrics div + div { border-left: 1px solid #c9cdc4; }
.tour-metrics dt { color: #4e544d; }
.tour-metrics dd { margin: 0; font-size: clamp(1.45rem, 3.35vw, 3rem); font-weight: 800; font-variant-numeric: tabular-nums; }
.tour-metrics small { font-size: .4em; color: #4e544d; }
.tour-controls { padding: 16px 0; border-top: 1px solid #c9cdc4; }
.tour-controls p { margin: 0 0 10px; }
.tour-actions, .tour-files { display: flex; flex-wrap: wrap; align-items: center; gap: 9px 14px; }
.tour-main button, .tour-files input::file-selector-button { min-height: 44px; border: 1px solid #69756d; border-radius: 6px; padding: 8px 12px; font: inherit; font-weight: 700; color: #202820; background: #fff; cursor: pointer; }
.tour-main button.tour-primary { background: #223e30; border-color: #223e30; color: #fff; }
.tour-main button:disabled { opacity: .5; cursor: default; }
.tour-main :focus-visible { outline: 3px solid #526d5b; outline-offset: 3px; }
#tour-error { color: #8b312c; margin-top: 12px; }
.tour-files { color: #47584b; font-size: .9rem; }
.tour-files input { font: inherit; max-width: 100%; }
.tour-files input::file-selector-button { margin-right: 8px; }
[hidden] { display: none !important; }
@media (max-width: 730px) {
  .tour-grid { grid-template-columns: minmax(0, 1fr); }
  .tour-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tour-metrics div:nth-child(3) { border-left: 0; }
  .tour-metrics div:nth-child(n + 3) { border-top: 1px solid #c9cdc4; }
}
