.year-map-section { padding-top:70px; margin-top:60px; border-top:3px solid transparent; border-image:var(--stripe) 1; }
.year-map-section h2 { font-size:clamp(2.5rem,5vw,4.5rem); font-weight:400; }
.year-map-section header p { color:var(--muted); font-size:1.1rem; margin:12px 0 24px; max-width:650px; }
.map-views { display:flex; flex-wrap:wrap; gap:10px; margin:20px 0; }
.map-views button { font:inherit; border:1px solid #f8e6c366; color:var(--light); background:transparent; padding:8px 18px; cursor:pointer; }
.map-views button:hover { border-color:var(--accent); }
.year-map-layout { display:grid; grid-template-columns:minmax(0,1fr) 260px; gap:24px; align-items:start; }
#year-map { height:620px; border:1px solid #b59166; background:#d9e3df; color:#20352d; isolation:isolate; }
.route-itinerary { margin:0; padding:0; list-style:none; max-height:620px; overflow:auto; }
.route-stop { display:block; width:100%; text-align:left; color:var(--light); border:0; border-bottom:1px solid #f8e6c344; background:transparent; padding:14px 12px; cursor:pointer; font:inherit; }
.route-stop span { display:block; color:var(--muted); font-size:1rem; }
.route-stop:hover,.route-stop[aria-current] { background:#f8e6c318; box-shadow:inset 3px 0 var(--accent); }
#year-map .leaflet-popup-content { font-family:var(--sans); font-size:16px; }
#year-map .leaflet-popup-content p { margin:5px 0; }
#year-map .leaflet-control-attribution { font-size:12px; }
@media(max-width:800px) { .year-map-layout { grid-template-columns:1fr; } #year-map { height:450px; } .route-itinerary { max-height:300px; } }
.location-gallery { width:min(1280px,calc(100% - 24px)); height:calc(100dvh - 24px); max-width:none; max-height:none; padding:24px; border:1px solid #f8e6c366; background:var(--dark); color:var(--light); }
.location-gallery[open] { display:grid; grid-template-rows:auto minmax(0,1fr); gap:24px; }
.location-gallery::backdrop { background:#071b1bed; }
.location-gallery-header { display:flex; align-items:start; justify-content:space-between; gap:20px; }
.location-gallery-header h2 { font-size:clamp(2rem,4vw,3rem); font-weight:400; line-height:1.15; }
.location-gallery-header p { color:var(--muted); font-size:1rem; margin-top:8px; }
.location-gallery-close { width:44px; height:44px; flex-shrink:0; border:1px solid #f8e6c366; background:transparent; color:var(--light); cursor:pointer; font:inherit; font-size:1.5rem; }
.location-gallery-grid { overflow:auto; display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; align-content:start; padding:4px; }
.location-thumbnail { border:1px solid #f8e6c344; padding:0; background:transparent; cursor:pointer; }
.location-thumbnail img { width:100%; height:auto; aspect-ratio:4/3; object-fit:cover; }
.location-thumbnail:hover { border-color:var(--accent); }
@media(max-width:800px) { .location-gallery-grid { grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media(max-width:500px) { .location-gallery { padding:14px; } .location-gallery-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; } }
.year-map-section { margin-top:32px; padding-top:0; border-top:0; }
