/* Shared A + C: confirmed chapters have media; unfinished content stays empty. */
.museum-detail-copy .route-illustrated-chapters{padding:0;list-style:none;font-size:16px;line-height:1.95}
.route-illustrated-chapters>li{margin:0 0 56px}
.route-illustrated-chapters>li:last-child{margin-bottom:36px}
.route-illustrated-chapters h4{font:400 24px/1.5 var(--serif);margin:0 0 18px;text-wrap:balance}
.route-illustrated-chapters p{margin:0}
.route-chapter-figure{margin:30px 0 0}
.route-chapter-gallery{display:grid;grid-template-columns:minmax(0,1fr);gap:28px;margin-top:30px}
.route-chapter-gallery>.route-chapter-figure{margin-top:0;min-width:0}
.route-chapter-gallery.has-many{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}
.route-chapter-gallery.has-many>.route-chapter-figure.is-portrait{width:100%;max-width:360px;justify-self:center}
.route-chapter-figure.is-portrait{width:72%;max-width:490px;margin-left:auto;margin-right:auto}
.route-chapter-image{display:block;position:relative;width:100%;padding:0;border:0;background:transparent;cursor:zoom-in;color:var(--ink)}
.route-chapter-image img{display:block;width:100%;height:auto}
.route-chapter-image-hint{position:absolute;right:12px;bottom:12px;background:#faf9f6ed;padding:8px 12px;font:400 12px/1.4 sans-serif;letter-spacing:.04em;transition:background .2s}
.route-chapter-image:hover .route-chapter-image-hint{background:#fff}
.route-chapter-image:focus-visible,img[data-route-media]:focus-visible{outline:2px solid var(--gold);outline-offset:4px}
.route-chapter-figure figcaption{font-size:13px;line-height:1.7;color:var(--muted);text-align:center;padding-top:12px}
img[data-route-media]{cursor:zoom-in}
body:has(#route-image-viewer[open]){overflow:hidden}
#route-image-viewer{inset:0;margin:0;width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;border:0;padding:22px 32px;box-sizing:border-box;background:#1c1b18;color:#f5f1e9;overflow:hidden;box-shadow:none}
#route-image-viewer[open]{display:grid;grid-template-rows:auto minmax(0,1fr) auto;gap:16px}
#route-image-viewer::backdrop{background:#1c1b18f5}
.route-viewer-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px}
#route-image-viewer h2{font:400 18px/1.5 var(--serif);margin:0;letter-spacing:.04em}
#route-image-viewer button{color:inherit;background:transparent;border:1px solid #f5f1e933;padding:10px 16px;cursor:pointer;font-size:14px;line-height:1.3}
#route-image-viewer .route-viewer-close{font-size:28px;line-height:1;width:44px;height:44px;padding:0;border-color:transparent}
#route-image-viewer button:hover{background:#ffffff14}
#route-image-viewer button:focus-visible{outline:2px solid #c7b794;outline-offset:4px}
.route-viewer-stage{min-height:0;display:flex;align-items:center;justify-content:center;overflow:hidden}
.route-viewer-stage img{display:block;width:auto;height:auto;object-fit:contain;max-height:100%;max-width:100%}
.route-viewer-footer{display:flex;align-items:center;justify-content:space-between;gap:20px}
.route-viewer-caption{font-size:14px;line-height:1.6;margin:0;color:#e3ded4}
.route-viewer-controls{display:flex;align-items:center;gap:16px;flex-shrink:0}
.route-viewer-count{font-size:12px;color:#bfb7a6;font-variant-numeric:tabular-nums;white-space:nowrap}
#route-image-viewer [hidden]{display:none}
.route-detail-first-screen.route-detail-pending-screen{height:auto;min-height:0}
.route-detail-pending-screen .route-detail-opening{min-height:0;padding:52px 8% 32px}
.route-detail-pending-screen .route-detail-scroll{display:none}
.route-content-pending{padding:22px 0;color:var(--muted)}
@media(max-width:767px){
 .route-illustrated-chapters h4{font-size:22px;text-wrap:initial}
 .route-illustrated-chapters>li{margin-bottom:42px}
 .route-chapter-figure{margin-top:24px}
 .route-chapter-gallery,.route-chapter-gallery.has-many{grid-template-columns:minmax(0,1fr);margin-top:24px;gap:26px}
 .route-chapter-figure.is-portrait{width:100%}
 .route-chapter-image-hint{font-size:11px;right:8px;bottom:8px;padding:7px 10px}
 #route-image-viewer{padding:12px 16px calc(16px + env(safe-area-inset-bottom))}
 #route-image-viewer[open]{gap:12px}
 .route-viewer-footer{flex-direction:column;gap:14px;text-align:center}
 .route-viewer-controls{gap:18px}
 #route-image-viewer button{font-size:12px;padding:10px 14px}
}
.route-chapter-image.has-archive-mat{position:relative;aspect-ratio:var(--archive-ratio,1.386);overflow:hidden}
.route-chapter-image.has-archive-mat>img{position:absolute;width:var(--archive-width,178.57%);max-width:none;height:var(--archive-height,178.57%);left:var(--archive-left,-39.29%);top:var(--archive-top,-28.57%);object-fit:fill}

/* Daily groups retain the illustrated stops and distinguish only day changes. */
.museum-detail-copy .route-day-group{margin:44px 0 0;padding-top:26px;border-top:1px solid var(--line)}
.museum-detail-copy .route-day-heading{font:400 28px/1.5 var(--serif);margin:0 0 32px;color:var(--ink)}
.museum-detail-copy .route-day-group>.route-illustrated-chapters{border-left:1px solid #b4a18455;padding-left:24px;margin:0}
.museum-detail-copy .route-day-group>.route-illustrated-chapters>li:last-child{margin-bottom:0}
.route-pdf-download{margin:28px 0 40px;padding:26px;background:#b4a1840c;border:1px solid var(--line)}
.museum-detail-copy .route-pdf-download h3{font:400 23px/1.5 var(--serif);margin:0 0 12px}
.museum-detail-copy .route-pdf-download p{font-size:14px;line-height:1.85;margin:0 0 18px}
.route-pdf-download small{display:block;margin-top:12px;font-size:11px;letter-spacing:.05em;color:var(--muted)}

/* Full-screen opening, image changes and closing share a restrained fade. */
@keyframes route-viewer-reveal{from{opacity:0;transform:scale(.99)}to{opacity:1;transform:scale(1)}}
@keyframes route-viewer-dismiss{from{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.99)}}
@keyframes route-viewer-backdrop-in{from{opacity:0}to{opacity:1}}
@keyframes route-viewer-backdrop-out{from{opacity:1}to{opacity:0}}
#route-image-viewer[open]{animation:route-viewer-reveal 280ms cubic-bezier(.2,.65,.3,1) both}
#route-image-viewer[open]::backdrop{animation:route-viewer-backdrop-in 280ms ease both}
.route-viewer-stage img.route-viewer-image-loading{opacity:0}
@media(max-width:767px){
 .museum-detail-copy .route-day-heading{font-size:23px;margin-bottom:26px}
 .museum-detail-copy .route-day-group>.route-illustrated-chapters{padding-left:16px}
 .route-pdf-download{padding:20px}
}
@media(prefers-reduced-motion:reduce){#route-image-viewer[open],#route-image-viewer[open]::backdrop{animation:none!important}}
