/* Activity map: functional controls, photos and source text. */
.journey { border:1px solid #ddd; margin:0 0 20px; background:var(--or-ground); color:#333; }
.journey button, .journey select { font-family:inherit; color:inherit; }
.journey button { cursor:pointer; }
.journey button:disabled { cursor:default; opacity:.35; }
.journey button:focus-visible, .journey a:focus-visible, .journey select:focus-visible, .journey-marker:focus-visible { outline:2px solid #8c1b13; outline-offset:3px; }
.journey-toolbar { padding:9px 14px; display:flex; align-items:center; gap:16px; border-bottom:1px solid #ddd; }
.journey-years, .journey-regions { display:flex; gap:2px; }
.journey-regions { margin-left:auto; }
.journey-years button, .journey-regions button { border:0; border-bottom:2px solid transparent; padding:7px 10px; min-height:34px; font-size:12px; background:none; }
.journey-years button:hover, .journey-regions button:hover { background:#f2f2ee; }
.journey-years button[aria-pressed=true], .journey-regions button.is-active { color:#8c1b13; border-bottom-color:#8c1b13; }
.journey-place-select { display:none; border:1px solid #ddd; background:var(--or-ground); padding:7px; font-size:12px; }
.journey-body { display:grid; grid-template-columns:minmax(0,1fr) 238px; height:440px; min-height:0; }
.journey-map-wrap { min-width:0; position:relative; overflow:hidden; display:flex; flex-direction:column; background:#f3f5f1; }
.journey-map { display:block; width:100%; flex:1; min-height:0; cursor:grab; touch-action:pan-y; }
.journey-map:active { cursor:grabbing; }
.journey-land { fill:#d9e0d6; stroke:#c2cdbd; stroke-width:.55; vector-effect:non-scaling-stroke; }
.journey-graticule { stroke:#e5e9e1; stroke-width:.55; fill:none; vector-effect:non-scaling-stroke; }
.journey-route { stroke:#b8a99d; opacity:.2; fill:none; stroke-width:1; stroke-dasharray:3 4; vector-effect:non-scaling-stroke; }
.journey-route.is-travelled { stroke:#a66852; opacity:.34; stroke-dasharray:none; }
.journey-route.is-current { stroke:#8c1b13; opacity:.9; stroke-width:1.7; }
.journey-marker { cursor:pointer; outline:none; }
.journey-marker-hit { fill:transparent; pointer-events:all; }
.journey-marker-halo { fill:#8c1b13; opacity:0; }
.journey-marker-dot { fill:#f4f4ed; stroke:#a7aea0; stroke-width:1.4; }
.journey-marker.is-visited .journey-marker-dot { fill:#af6c51; stroke:#fffdfa; }
.journey-marker.is-selected .journey-marker-dot { fill:#8c1b13; stroke:#fffdfa; stroke-width:2; }
.journey-marker:hover .journey-marker-halo, .journey-marker:focus-visible .journey-marker-halo { opacity:.13; }
.journey-marker.is-selected .journey-marker-halo { opacity:.14; }
.journey-marker.is-home .journey-marker-dot { fill:#3e6775; stroke:#fffdfa; stroke-width:2; }
.journey-marker.is-home .journey-marker-halo { fill:#3e6775; opacity:.16; }
.journey-marker.is-home.is-selected .journey-marker-dot { stroke:#8c1b13; }
.journey-labels { pointer-events:none; }
.journey-labels text { font-size:11px; font-family:var(--font-sans); fill:#596e5f; paint-order:stroke; stroke:#f3f5f1; stroke-width:3.5px; stroke-linejoin:round; }
.journey-labels text.is-selected { fill:#8c1b13; font-weight:700; }
.journey-labels text.is-home { fill:#3e6775; font-weight:700; }
.journey-zoom { position:absolute; right:12px; bottom:12px; display:flex; background:var(--or-ground); border:1px solid #d6ded5; }
.journey-zoom button { font-size:16px; width:30px; height:29px; border:0; background:none; }
.journey-zoom button + button { border-left:1px solid #d6ded5; }
.journey-detail { background:var(--or-ground); border-left:1px solid #ddd; min-width:0; min-height:0; overflow:hidden; display:flex; flex-direction:column; }
.journey-photo { display:block; flex:0 0 150px; height:150px; overflow:hidden; background:#eceee6; cursor:zoom-in; }
.journey-photo[hidden] { display:none; }
.journey-photo img { display:block; width:100%; height:100%; object-fit:cover; }
.journey-detail-copy { padding:17px 18px; flex:1; min-height:0; overflow-y:auto; scrollbar-width:thin; }
.journey-detail time { color:#777; font-size:12px; }
.journey-detail h4 { margin:5px 0 14px; font-size:18px; line-height:1.3; font-weight:700; }
.journey-detail p { margin:0; font-size:12px; line-height:1.75; color:#555; }
.journey-detail-links { display:flex; flex-wrap:wrap; gap:8px 12px; margin-top:14px; }
.journey-detail-links a { font-size:12px; color:var(--or-teal); }
.journey-timeline { display:flex; align-items:center; gap:16px; padding:12px 16px; border-top:1px solid #ddd; }
.journey-play { width:30px; height:30px; border:0; background:#8c1b13; color:#fff!important; border-radius:50%; flex-shrink:0; }
.journey-play span { font-size:11px; }
.journey-scrubber { flex:1; min-width:0; }
.journey-scrubber input { --progress:100%; display:block; width:100%; margin:0; height:3px; border-radius:0; appearance:none; background:linear-gradient(to right,#9b4e39 var(--progress),#dfe4d9 var(--progress)); cursor:pointer; }
.journey-scrubber input::-webkit-slider-thumb { appearance:none; width:11px; height:11px; border:2px solid #fffdfa; border-radius:50%; background:#8c1b13; box-shadow:0 0 0 1px #8c1b13; }
.journey-scrubber input::-moz-range-thumb { width:8px; height:8px; border:2px solid #fffdfa; border-radius:50%; background:#8c1b13; }
.journey-step { display:flex; align-items:center; gap:5px; }
.journey-step span { font-size:11px; color:#777; white-space:nowrap; font-variant-numeric:tabular-nums; }
.journey-step button { background:none; border:0; padding:7px 5px; font-size:16px; }
.journey-unmapped { border-top:1px solid #ddd; padding:10px 16px; color:#777; font-size:12px; }
.journey-unmapped summary { cursor:pointer; width:fit-content; }
.journey-unmapped ul { max-height:180px; overflow-y:auto; padding-left:16px; line-height:1.7; }
.journey-unmapped li { margin:8px 0; }
.journey-unmapped time { font-weight:700; }
.journey-unavailable { padding:20px; font-size:12px; }
.journey-loading { padding:20px; color:#777; font-size:12px; }
.journey-archive { margin-top:16px; }
.journey-archive > summary { cursor:pointer; padding:10px 0; color:var(--or-teal); font-size:12px; }
.journey-archive[open] > summary { margin-bottom:9px; }
@media (max-width:780px) {
    .journey-body { grid-template-columns:minmax(0,1fr) 215px; }
    .journey-detail-copy { padding:14px; }
}
@media (max-width:580px) {
    .journey-toolbar { flex-wrap:wrap; padding:9px 10px; gap:8px; }
    .journey-years button, .journey-regions button { padding:6px 7px; font-size:11px; }
    .journey-place-select { display:block; width:100%; flex-basis:100%; }
    .journey-body { grid-template-columns:1fr; height:530px; grid-template-rows:300px 230px; }
    .journey-detail { border-left:0; border-top:1px solid #ddd; display:grid; grid-template-columns:116px minmax(0,1fr); }
    .journey-photo { height:100%; min-height:0; }
    .journey-detail-copy { padding:14px; }
    .journey-detail-copy:only-child { grid-column:1/-1; }
    .journey-timeline { gap:11px; padding:12px; }
    .journey-step { gap:2px; }
    .journey-step span { font-size:10px; }
}
@media (prefers-reduced-motion:reduce) { .journey * { transition:none!important; } }
