/* Read-only journey reader. Existing access-hours, schedule and comment components remain intact. */
:root{--page:#f7f8fa;--paper:#fff;--ink:#203849;--muted:#617383;--line:#e1e7eb;--blue:#315f86;--green:#397863;--rail:200px;--header:76px}
html{scroll-padding-top:100px}body{background:var(--page);color:var(--ink);margin:0;font-family:system-ui,-apple-system,"PingFang SC","Microsoft YaHei",sans-serif}button,a,input,textarea,summary{touch-action:manipulation}button{cursor:pointer}button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #4279ad;outline-offset:4px}button:disabled{cursor:wait}a{color:#315f86}img{max-width:100%}
.topbar{position:sticky;top:0;z-index:1001;height:auto;min-height:76px;padding:12px 25px;background:#fff;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;gap:18px;align-items:center;box-sizing:border-box}.brand{flex-shrink:0}.brand-mark{background:#244b61;border-radius:10px}.brand small{font-size:9px;letter-spacing:1.7px}.top-actions{display:flex;gap:9px;align-items:center;flex-wrap:wrap;justify-content:flex-end}.top-actions button{font-size:12px;min-height:36px}.top-actions .draft{font-size:11px;color:#547064;border-color:#dce8e2;background:#f4f8f5}.outline-button{padding:8px 12px;border-radius:8px}.account-label{max-width:130px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.journey-rail{position:fixed;left:0;top:var(--header);bottom:0;width:var(--rail);background:#FAF9F6;border-right:1px solid var(--line);overflow-y:auto;overscroll-behavior:contain;padding:25px 12px 18px;box-sizing:border-box}.rail-intro{padding:0 7px 18px}.rail-intro .eyebrow{font-size:8px;letter-spacing:1.2px;color:#71848d}.rail-intro h1{font-size:23px;letter-spacing:2px;margin:9px 0}.rail-intro>p:last-of-type{font-size:11px;color:var(--muted)}.rail-cover{margin:18px 0 0;height:103px;position:relative;overflow:hidden;border-radius:9px}.rail-cover img{width:100%;height:100%;object-fit:cover}.rail-cover figcaption{position:absolute;bottom:0;background:#163b4fc9;padding:4px 6px;width:100%;font-size:8px}.rail-cover a{color:#fff;text-decoration:none}.rail-note{padding:17px 7px;font-size:11px;line-height:1.9;color:var(--muted)}
.day-nav{display:flex;flex-direction:column;gap:5px;position:static;border:0;padding:0;background:none;overflow:visible;max-width:none}/* A small vermilion page marker keeps the selected day distinct without a panel. */
.day-tab{position:relative;min-width:0;width:100%;flex:none;text-align:left;padding:11px 14px;border:1px solid transparent;border-radius:0;color:#62747d;background:none;transition:color 150ms ease}.day-tab span{font-size:10px;letter-spacing:.5px;color:#727A75}.day-tab strong{display:block;position:relative;font-size:13px;line-height:1.5;color:inherit;margin-top:4px;font-weight:500}.day-tab strong:before{content:"";position:absolute;left:-12px;top:50%;width:2px;height:1em;background:#B65342;transform:translateY(-50%);opacity:0;transition:opacity 150ms ease}.day-tab[aria-current=page]{background:transparent;border:1px solid transparent;color:#28332F;box-shadow:none}.day-tab[aria-current=page] strong{font-weight:650}.day-tab[aria-current=page] strong:before{opacity:1}.day-tab[aria-current=page]:after{display:none}.day-tab:hover{background:transparent;color:#28332F}.day-tab:focus-visible{outline:2px solid #B65342;outline-offset:-2px}
@media(prefers-reduced-motion:reduce){.day-tab,.day-tab strong:before{transition:none}}
.journey-main{margin-left:var(--rail);max-width:none;padding:0;display:grid;grid-template-columns:minmax(460px,1fr) minmax(360px,.9fr);gap:0;align-items:start}.reading-column{padding:30px clamp(20px,2.5vw,42px) 12px;min-width:0}.day-heading{display:block;margin:0 0 21px;padding:0;border:0}.day-kicker{font-size:11px;letter-spacing:1.2px;color:#6a7e8e;font-weight:600;margin-bottom:10px}.day-heading h2{font-size:clamp(23px,2.1vw,32px);line-height:1.4;font-weight:650;letter-spacing:-.6px}.day-description{font-size:13px;line-height:1.9;color:#647583;margin-top:11px;max-width:56em}.day-chips{display:flex;flex-wrap:wrap;gap:7px;margin-top:14px}.day-chips span{border:1px solid #dde6e9;border-radius:5px;font-size:10px;padding:3px 8px;background:#fff;color:#5b707d}.day-chips span:first-child{background:#edf3f0;color:#3d715f;border-color:#dae8e1}
.plan-switch{margin:0 0 20px;padding:13px;border-radius:9px;background:#eef3f5;display:block}.plan-switch .eyebrow{font-size:10px;letter-spacing:.6px}.plan-switch p{font-size:11px;margin-top:4px}.segmented{display:flex;margin-top:10px;width:100%}.segmented button{flex:1;padding:9px 8px;font-size:12px}.segmented button span{font-size:11px;margin-left:4px}
.daily-summary{border:1px solid var(--line);border-radius:12px;padding:17px;margin:0 0 18px;background:#fff}.daily-kpis{grid-template-columns:1.2fr .85fr 1fr;gap:12px;margin:0 0 12px;display:grid}.daily-kpis>div{border:0;padding:0;min-width:0}.daily-kpis span{font-size:10px;color:#6e7e89}.daily-kpis strong{font-size:clamp(16px,1.5vw,21px);font-weight:650;line-height:1.5;margin-top:5px;letter-spacing:-.6px}.daily-kpis strong small{font-size:10px;font-weight:500;letter-spacing:0;display:inline}.budget-scope{font-size:10px;line-height:1.8;margin:0;color:#6f7d87}.budget-details{margin-top:12px;padding-top:11px}.budget-details summary{font-size:11px;cursor:pointer;line-height:1.8}.budget-details summary span{display:block;font-size:10px;color:#7a8590;margin-left:14px}.budget-row{padding:12px 0;grid-template-columns:1fr auto;gap:6px 12px}.budget-row>strong,.budget-amount{font-size:12px}.budget-row p,.budget-details li{font-size:12px}.summary-narrative{font-size:12px;line-height:1.8}
.allocation-card{padding:16px;margin-bottom:27px;border-radius:12px}.allocation-heading h3{font-size:14px}.allocation-heading p{font-size:10px}.allocation-zoom button{font-size:10px;padding:7px 8px}.allocation-notice{font-size:11px;line-height:1.8;margin:12px 0}.allocation-legend{font-size:10px;gap:8px 15px;margin:12px 0 17px}.allocation-track{height:58px}.allocation-block{border-radius:6px;padding:7px 0}.allocation-block span,.allocation-block small{font-size:10px;margin-left:5px;margin-right:5px}.allocation-help{font-size:10px;margin-bottom:10px}.allocation-detail{font-size:11px;min-height:46px;padding:10px;line-height:1.6}.allocation-detail>strong{font-size:12px}.allocation-detail>p{font-size:11px}.allocation-tick>span{font-size:9px}.allocation-tick:nth-child(2n):not(.last)>span{display:none}.zoomed .allocation-tick:nth-child(2n):not(.last)>span{display:block}
.map-column{position:sticky;top:var(--header);height:calc(100dvh - var(--header));min-width:0;background:#eef2f4;border-left:1px solid var(--line);padding:0;display:flex;flex-direction:column;overflow:hidden}.map-card{border:0;border-radius:0;box-shadow:none;display:flex;flex-direction:column;flex:1;min-height:0;background:#f6f8f9}.map-top{padding:19px 20px;gap:10px;align-items:center;background:#fff}.map-top h2{font-size:15px}.map-top .muted{font-size:10px;display:block;margin-top:4px;line-height:1.6}.map-actions{display:flex;flex-direction:row;gap:4px;flex-shrink:0}.map-actions button{font-size:10px;border:1px solid #dce5eb;border-radius:5px;padding:7px 9px;background:#fff;white-space:nowrap}.map-actions button[aria-pressed=true]{color:#285c79;background:#e9f1f6;border-color:#c6d7e3}#map{height:auto;min-height:220px;flex:1;width:100%;z-index:1}.map-legend{padding:12px 19px 6px;gap:11px;font-size:10px;background:#fff}.map-caption{padding:0 19px 12px;font-size:10px;line-height:1.8;background:#fff;margin:0}.map-error{margin:0;padding:10px 19px;font-size:12px}.map-footnote{display:block;font-size:9px;line-height:1.7;padding:5px 19px;background:#fff;flex-shrink:0}.map-footnote details{margin:0}.map-footnote summary{cursor:pointer}.map-selection{display:flex;gap:12px;align-items:center;min-height:74px;box-sizing:border-box;padding:15px 20px;font-size:12px;color:#536d7e;background:#fff;border-top:1px solid var(--line)}.map-selection strong{font-size:13px;color:#244151}.map-selection p{font-size:11px;margin-top:3px}.map-selection button{margin-left:auto;border:1px solid #d4e0e8;background:#f4f7f9;border-radius:7px;font-size:11px;padding:9px;color:#315f86;white-space:nowrap}.selected-number{background:#315f86;color:#fff;width:28px;height:28px;border-radius:50%;display:grid;place-items:center;flex-shrink:0}
.details-column{min-width:0;margin:0}.section-label{margin:0 0 11px;align-items:center;gap:12px}.section-label h3{font-size:16px;font-weight:650}.section-label span{font-size:10px}.route-guide{margin-bottom:19px;font-size:11px;color:#687a88;line-height:1.8}.route-guide summary{cursor:pointer}.route-guide p{margin-top:8px}.timeline{list-style:none;margin:0;padding:0}.stop{padding:0;margin:0;position:relative;scroll-margin-top:110px;border:0}.stop:before,.stop:after{display:none}.stop-card{padding:18px;border:1px solid var(--line);border-radius:12px;background:#fff;transition:border-color .15s,box-shadow .15s;overflow:hidden}.stop.active .stop-card{border-color:#739ab7;box-shadow:0 0 0 3px #315f8610}.stop-card-top{display:flex;gap:12px;align-items:flex-start;margin-bottom:13px}.stop-card-top>div{flex:1;min-width:0}.stop-pin{position:static;flex-shrink:0;display:grid;place-items:center;width:29px;height:29px;min-width:29px;border:0;border-radius:50%;color:#fff;background:#315f86;box-shadow:none;font-size:12px;margin-top:3px}.transit-stop .stop-pin{background:#8a9da9}.stop-time{font-size:11px;color:#647f90;margin:0 0 4px;font-weight:500}.stop-card h4{margin:0;line-height:1.5}.stop-title{text-align:left;font-size:16px;color:#233e50;font-weight:650;padding:0;line-height:1.6;display:block;max-width:100%;overflow-wrap:anywhere;border:0;background:none}.stop-title:hover{color:#315f86;text-decoration:underline;text-underline-offset:4px}.stop-category{font-size:9px;padding:3px 6px;border:1px solid #e4eaec;border-radius:4px;color:#7c8d96;flex-shrink:0}.stop-content{display:block}.stop-content.with-photo{display:grid;grid-template-columns:minmax(0,1fr) 136px;gap:15px}.stop-note{font-size:13px;line-height:1.85;color:#5b6f7d;margin:0}.visit-duration{display:block;font-size:11px;font-weight:550;line-height:1.8;margin:10px 0 0;padding:7px 9px;background:#eff6f2;color:#356554;border-radius:6px}.ticket-price{margin-top:10px;font-size:11px;line-height:1.7}.ticket-price p{display:flex;justify-content:space-between;gap:6px;flex-wrap:wrap;margin:0}.ticket-price p span{color:#657a86}.ticket-price strong{font-weight:650;color:#7b632f}.ticket-price small{display:block;color:#7f8a8f;font-size:10px;margin-top:4px;line-height:1.8}.ticket-price a{white-space:nowrap}
.place-photo{background:#f3f5f6;border:1px dashed #dce4e8;border-radius:9px;min-width:0;align-self:start;min-height:111px;padding:17px 9px;box-sizing:border-box;display:flex;flex-direction:column;justify-content:center;text-align:center}.photo-caption{font-size:9px;color:#86969e;letter-spacing:1px}.place-photo p{font-size:11px;color:#758690;margin:7px 0 9px}.place-photo a{font-size:10px;line-height:1.8}.place-photo.has-photo{padding:0;background:#fff;border:0}.place-photo img{width:100%;height:112px;object-fit:cover;display:block;border-radius:8px}.place-photo button{padding:0;border:0;background:none}.place-photo .photo-credit{font-size:9px;line-height:1.6;text-align:left;color:#72838b;margin-top:5px}.stop-links{display:flex;gap:15px;flex-wrap:wrap;font-size:10px;margin-top:12px}.stop .access-hours{font-size:11px;padding:10px 12px;margin:14px 0 0;background:#fafbfc;border-color:#e6ebed;border-radius:8px}.stop .access-hours dl>div{grid-template-columns:87px minmax(0,1fr);gap:9px;padding:3px 0}.stop .access-hours dt{font-size:10px}.stop .access-hours .hours-heading strong{font-size:10px;min-width:100px}.stop .access-hours .hours-heading>span{font-size:9px}.stop .access-hours summary{font-size:10px}.stop .access-hours small{font-size:10px}.stop .access-hours .hours-sources a{font-size:10px}.stop .step-comments{margin:14px 0 0}.stop .comment-thread{border:0;border-top:1px solid #e5ebe8;border-radius:0;background:none}.stop .comment-thread>summary{padding:12px 0 0;font-size:11px}.stop .comment-thread-body{padding:12px 0 0}
.connection{position:relative;margin:0 0 0 14px;padding:15px 0 15px 22px;display:flex;gap:9px;align-items:flex-start;font-size:10px;line-height:1.8;border-left:1px dashed #b8c8d1;color:#768792;background:none;flex-wrap:wrap}.connection>span:nth-child(2){flex:1;min-width:100px}.connection>a{margin-left:auto;font-size:10px;white-space:nowrap;align-self:center}.mode-tag{font-size:9px;border-radius:4px;padding:2px 6px;white-space:nowrap}.day-end{margin:0 0 22px 14px;padding:16px 0 0 22px;border-left:1px dashed #b8c8d1;font-size:10px;color:#87949b}.support-card,.handoff-card{border:1px solid var(--line);border-radius:11px;padding:18px;margin:15px 0;background:#fff}.support-card h3,.handoff-card h3{font-size:14px}.support-card p,.support-card li,.handoff-card p{font-size:12px;line-height:1.85}.support-card summary{font-size:13px}.rest-card{background:#edf5f0;border-color:#d8e9e0}.booking-status{font-size:10px}.link-row{gap:8px 15px}.link-row a{font-size:11px}.handoff-label{font-size:10px}.planning-note{padding:16px 0;border:0;margin-top:24px;background:none}.planning-note strong{font-size:12px}.planning-note p{font-size:11px;line-height:1.9}.note-symbol{font-size:13px;width:22px;height:22px;flex-shrink:0}footer{font-size:10px;padding:18px 0 10px;border-top:1px solid var(--line);gap:10px}.overview-card{border-radius:11px;padding:18px;margin-bottom:12px}.overview-card p{font-size:13px}.overview-card .overview-budget{font-size:11px}.overview-card small{font-size:10px}.mobile-view-switch{display:none}
@media(min-width:1800px){.journey-main{grid-template-columns:minmax(500px,760px) minmax(450px,1fr)}.reading-column{padding:36px 42px}.stop-title{font-size:18px}.stop-note{font-size:14px}.stop-content.with-photo{grid-template-columns:minmax(0,1fr) 170px}.place-photo img{height:135px}}
@media(max-width:1250px){:root{--rail:170px}.journey-main{grid-template-columns:minmax(430px,1fr) minmax(330px,.85fr)}.reading-column{padding:25px 20px}.map-top{flex-wrap:wrap;padding:16px}.rail-intro h1{font-size:22px}.rail-intro>p:last-of-type{font-size:10px}.stop-content.with-photo{grid-template-columns:minmax(0,1fr) 112px;gap:12px}}
@media(max-width:1100px){:root{--rail:160px}.journey-main{display:block}.reading-column{max-width:760px;margin:auto;padding:25px 28px}.map-column{display:none;height:calc(100dvh - 245px);min-height:360px;position:relative;top:auto;border-left:0;margin:0 24px 24px;border-radius:12px;border:1px solid var(--line)}.mobile-view-switch{display:flex;background:#e8eef2;border-radius:8px;padding:4px;margin:0 0 20px;gap:4px}.mobile-view-switch button{flex:1;border:0;background:none;border-radius:6px;color:#557082;font-size:13px;padding:9px;min-height:38px}.mobile-view-switch button[aria-pressed=true]{color:#24485f;background:#fff;box-shadow:0 1px 3px #24485f13}body[data-view=map] .map-column{display:flex}body[data-view=map] .itinerary-reading{display:none}body[data-view=map] .reading-column{padding-bottom:0}body[data-view=map] .day-description,body[data-view=map] .day-chips{display:none}.stop-content.with-photo{grid-template-columns:minmax(0,1fr) 145px}.daily-kpis strong{font-size:22px}.map-actions{flex-direction:row}.map-top{flex-wrap:nowrap}}
@media(max-width:700px){:root{--rail:0px;--header:106px}html{scroll-padding-top:180px}.topbar{padding:12px 15px;min-height:74px;gap:10px;flex-wrap:wrap}.brand{font-size:16px}.brand-mark{width:31px;height:31px;font-size:18px}.brand small{font-size:8px}.top-actions{gap:6px;justify-content:flex-start}.top-actions button{font-size:10px;min-height:32px;padding:6px 8px}.top-actions .draft{display:none}.journey-rail{position:sticky;top:var(--header);width:100%;height:auto;padding:0;border-right:0;border-bottom:1px solid var(--line);z-index:1000;overflow:hidden}.rail-intro,.rail-note{display:none}.day-nav{flex-direction:row;overflow-x:auto;padding:8px 10px;gap:5px;scrollbar-width:none}.day-tab{min-width:110px;width:auto;padding:8px 10px;flex-shrink:0}.day-tab span{font-size:9px}.day-tab strong{font-size:11px;margin-top:2px}.day-tab[aria-current=page]{box-shadow:none}.journey-main{margin:0}.reading-column{padding:22px 15px 0}.day-heading{margin-bottom:17px}.day-heading h2{font-size:24px}.day-kicker{font-size:10px}.day-description{font-size:12px}.day-chips{margin-top:12px}.map-column{margin:0 15px 20px;height:calc(100dvh - 300px);min-height:330px}.daily-summary{padding:14px}.daily-kpis{grid-template-columns:1.15fr .85fr 1fr;gap:9px}.daily-kpis>div:last-child{grid-column:auto}.daily-kpis span{font-size:9px}.daily-kpis strong{font-size:18px}.daily-kpis small{font-size:9px}.budget-details summary span{display:block}.stop-card{padding:14px}.stop-card-top{gap:9px}.stop-title{font-size:15px}.stop-pin{width:27px;height:27px;min-width:27px}.stop-content.with-photo{grid-template-columns:minmax(0,1fr) 105px;gap:11px}.stop-note{font-size:13px}.place-photo{padding:14px 7px;min-height:100px}.place-photo img{height:100px}.stop-category{display:none}.stop .access-hours dl>div{grid-template-columns:79px minmax(0,1fr)}.connection{padding:14px 0 14px 19px}.section-label span{font-size:9px}.allocation-heading{flex-wrap:wrap;gap:9px}.allocation-legend{gap:7px 13px}.stop{scroll-margin-top:190px}footer{flex-direction:row;flex-wrap:wrap}.segmented button span{display:inline}.comments-dialog,.member-panel{z-index:2000}}
@media(max-width:360px){.stop-content.with-photo{grid-template-columns:1fr}.place-photo{min-height:70px;text-align:left}.daily-kpis strong{font-size:16px}.daily-kpis strong small{font-size:8px}.reading-column{padding-left:11px;padding-right:11px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
@media print{.journey-rail,.mobile-view-switch,.map-selection,.place-photo{display:none!important}.journey-main{display:block;margin:0}.reading-column{padding:0;max-width:none}.map-column{display:block;position:static;height:auto;overflow:visible}#map{height:350px}.itinerary-reading{display:block!important}.stop-card{break-inside:avoid}.connection{break-after:avoid}}

.photo-dialog{border:0;border-radius:16px;padding:20px;max-width:min(900px,calc(100vw - 40px));max-height:90dvh;overflow:auto;background:#fff;color:var(--ink);box-shadow:0 24px 90px #0c233a55}.photo-dialog::backdrop{background:#122233aa}.photo-dialog header{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:14px}.photo-dialog h2{font-size:19px;margin:0}.photo-dialog button{border:1px solid #dce4e8;border-radius:8px;background:#fff;padding:8px 12px;color:inherit;cursor:pointer}.photo-dialog>img{display:block;max-height:65dvh;max-width:100%;width:auto;height:auto;margin:auto;border-radius:8px}.photo-dialog .photo-credit,.photo-dialog .photo-note{font-size:11px;line-height:1.8;color:#647581;margin:10px 0 0}.photo-dialog a{color:var(--blue)}.place-photo button{cursor:zoom-in}.place-photo .photo-credit{overflow-wrap:anywhere}.place-photo.has-photo p{margin:5px 0 0}

@media(max-width:1100px){.leaflet-popup-content .access-hours{display:none}.leaflet-popup-content{font-size:12px;line-height:1.6}.map-footnote{font-size:9px}}

@media(max-width:700px){.daily-kpis{grid-template-columns:1fr 1fr;gap:10px 20px}.daily-kpis>div:first-child{grid-column:1 / -1}.daily-kpis>div:first-child strong{font-size:22px}}

.allocation-tick:nth-last-child(2):not(.first)>span{display:none}

.place-photo .photo-description{font-size:10px;line-height:1.6;color:#657784;text-align:left;margin:5px 0 0}.support-card .place-photo{margin:0}.support-card .stop-content{margin-top:10px}

.route-choices{margin:16px 0}.route-choices label{display:block;margin-top:12px}.route-choices select{display:block;width:100%;max-width:100%;padding:10px;border:1px solid #c8d4cc;border-radius:6px;background:white;color:#28332f;margin-top:6px}

.departure-deadline{margin:16px 0;padding:14px 16px;border:1px solid #b68b50;border-left:3px solid #99723d;border-radius:10px;background:#fffaf2;color:#544731;font-size:13px;line-height:1.7}.departure-deadline>strong{font-size:14px}.departure-deadline p{margin:8px 0}.departure-deadline-times{font-weight:650;color:#80551f}
