.journey-stage{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(300px,1fr);min-height:560px;border-top:1px solid var(--line,#dbe4da)}.journey-stage .route-map-frame{min-width:0;height:560px;margin:0}.journey-stage #map{height:100%;min-height:380px}.journey-panel{background:#fff;border-left:1px solid #dbe4da;min-width:0}.journey-panel-scroll{max-height:560px;overflow:auto;overscroll-behavior:contain;padding:20px}.journey-panel header h2{font-size:23px;margin:8px 0 16px}.journey-sheet-controls{display:none}.journey-categories{display:flex;flex-wrap:wrap;gap:6px;margin:18px 0}.journey-categories button,.journey-sheet-controls button{border:1px solid #dbe4da;border-radius:18px;padding:9px 13px;min-height:44px;background:#fff;color:#1a443f;cursor:pointer}.journey-categories button[aria-pressed=true],.journey-sheet-controls button[aria-pressed=true]{background:#16475a;color:white;border-color:#16475a}.journey-place{display:flex;width:100%;gap:12px;align-items:center;text-align:left;border:0;border-bottom:1px solid #e0e7e1;background:#fff;padding:15px 2px;color:#193d37;cursor:pointer;min-height:64px}.journey-place>span:nth-child(2){flex:1;min-width:0}.journey-place strong,.journey-place small{display:block;overflow-wrap:anywhere}.journey-place small{margin-top:5px;color:#617576;font-size:12px}.journey-place-number{display:grid;place-items:center;border-radius:50%;background:#edf4ee;width:36px;min-width:36px;height:36px;font-weight:700}.journey-place.visited .journey-place-number{background:#607775;color:white}.journey-place.selected{background:#eff6f4;box-shadow:inset 4px 0 #16475a}.journey-reason{line-height:1.35}.journey-tools{display:flex;gap:10px;flex-wrap:wrap;margin:20px 0}.journey-calculation{min-width:0}.journey-calculation>summary{cursor:pointer;min-height:48px;padding:18px;background:#fff;border:1px solid #dbe4da;border-radius:16px;font-weight:700}.journey-calculation[open]>summary{border-radius:16px 16px 0 0}.journey-calculation .card{margin-top:0}.journey-map-placeholder{min-height:220px;padding:20px}.journey-stage .route-stop-popup{max-width:360px}.route-metrics{grid-template-columns:repeat(4,minmax(0,1fr))}.route-metrics .text-btn{display:inline-flex;text-align:left;min-height:44px;margin-top:8px;padding:0}.shared-journey{max-width:850px;margin:24px auto;padding:24px}.journey-place-card .stop-popup{position:static}.journey-share-result{display:flex;flex-direction:column;gap:14px}.journey-share-result input{width:100%;padding:14px;border:1px solid #dbe4da;border-radius:12px}.journey-day-options{margin:18px 0}.journey-day-options>summary{cursor:pointer;padding:15px 0;min-height:44px}.journey-inline-help{font-size:13px;line-height:1.5}.journey-map-placeholder .notice{margin:0}
@media(max-width:760px){.journey-stage{display:flex;flex-direction:column;min-height:0;position:relative}.journey-stage .route-map-frame{height:390px;min-height:280px}.journey-stage #map{min-height:280px}.journey-panel{border-left:0;border-top:1px solid #dbe4da;border-radius:22px 22px 0 0;margin-top:-18px;position:relative;z-index:2;box-shadow:0 -7px 20px #173e391a}.journey-sheet-controls{display:flex;padding:10px;gap:5px;justify-content:space-between;position:sticky;top:0;background:white;border-radius:22px 22px 0 0;z-index:2}.journey-sheet-controls button{flex:1;padding:8px;font-size:12px}.journey-panel-scroll{padding:14px 16px;max-height:340px}.journey-panel[data-sheet=summary] .journey-panel-scroll{max-height:135px}.journey-panel[data-sheet=summary] .journey-categories,.journey-panel[data-sheet=summary] .journey-place-list,.journey-panel[data-sheet=summary] .journey-list-note{display:none}.journey-panel[data-sheet=full] .journey-panel-scroll{max-height:min(70dvh,660px)}.journey-panel:has(#journey-place-card:not(:empty)) .journey-place-list,.journey-panel:has(#journey-place-card:not(:empty)) .journey-categories,.journey-panel:has(#journey-place-card:not(:empty)) .journey-panel-scroll > header,.journey-panel:has(#journey-place-card:not(:empty)) .journey-list-note{display:none}.journey-stage .route-stop-popup{display:none!important}.journey-panel #journey-place-card .stop-popup{position:static;max-width:none;box-shadow:none;padding:0;border:0}.route-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:15px;padding:20px}.route-metrics strong{font-size:24px}.journey-tools .btn{flex:1;font-size:13px;padding:12px;min-height:44px}.journey-stage .stop-popup .popup-facts{grid-template-columns:1fr}.journey-calculation summary{padding:14px}.shared-journey{padding:18px;margin:0}}

.journey-stage .popup-actions{flex-wrap:wrap}.journey-stage .popup-actions .btn{min-height:44px;font-size:12px;min-width:110px}.journey-stage .popup-close{min-width:44px;height:44px}.journey-stage .popup-reason,.journey-stage .popup-detour{font-size:12px;line-height:1.45;margin:10px 0}
/* Trip facts first; context and secondary explanations take one collapsed row. */
.journey-panel header h2{font-size:19px;line-height:1.3;margin:5px 0 10px}
.journey-panel header h2[title]{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.journey-panel-scroll{padding:16px}
.journey-categories{margin:12px 0;gap:5px}
.journey-place{padding:11px 2px;gap:10px}
.journey-place small{margin-top:3px;line-height:1.4}
.journey-list-note{margin:10px 0 0;font-size:12px}
.journey-list-note>summary,.popup-information>summary{min-height:44px;display:flex;align-items:center;gap:8px;cursor:pointer}
.journey-list-note>summary::before,.popup-information>summary::before{content:'＋';font-weight:600}
.journey-list-note[open]>summary::before,.popup-information[open]>summary::before{content:'−'}
.journey-list-note p{margin:0 0 8px;line-height:1.45}
.journey-stage .popup-information{margin-top:8px;border-top:1px solid var(--line,#dbe4da);font-size:12px}
.journey-stage .popup-information .popup-source{margin:7px 0}
.journey-stage .popup-source-facts{border:0;padding-top:0}
.journey-stage .popup-source-facts:empty{display:none}
.journey-stage .popup-source-facts .hint{grid-column:1/-1;font-size:11px;line-height:1.4;margin:4px 0}
.journey-stage .popup-facts{gap:8px 12px;padding-top:9px}
.journey-stage .popup-fact span{font-size:11px;margin-bottom:2px}
.journey-stage .popup-fact strong{font-size:12px}
.journey-stage .popup-availability{grid-column:1/-1}
.journey-stage .popup-plan{font-size:12px;line-height:1.4;margin:8px 0 5px}
.journey-stage .popup-detour{margin:5px 0 10px}
.journey-stage .popup-caution{font-size:12px;line-height:1.4;padding:8px 10px;margin:8px 0}
.journey-stage .popup-primary-actions{gap:6px;margin-top:10px}
.journey-stage .popup-primary-actions:empty{display:none}
.journey-stage .popup-primary-actions .btn{flex:1 1 110px}
.journey-stage .popup-secondary-actions{margin-top:8px}
.journey-calculation>.actual-trip{border:1px solid var(--line,#dbe4da);border-top:0;border-radius:0 0 16px 16px}
@media(max-width:760px){
 .journey-panel-scroll{padding:12px 14px}
 .journey-categories{flex-wrap:nowrap;overflow-x:auto;padding:2px 0 5px;margin:8px 0;scrollbar-width:thin}
 .journey-categories button{flex:0 0 auto;font-size:12px;padding:8px 11px}
 .journey-panel[data-sheet=summary]:has(#journey-place-card:not(:empty)) .journey-panel-scroll{max-height:340px}
 .journey-stage .stop-popup .popup-facts{grid-template-columns:repeat(2,minmax(0,1fr))}
 .journey-panel header h2{font-size:18px}
 .journey-coverage{font-size:11px;line-height:1.35;margin:6px 0 8px}
}
.journey-stage:has(>.journey-map-placeholder){display:block;min-height:0}
.journey-stage:has(>.journey-map-placeholder)>.journey-map-placeholder{min-height:0;padding:12px 16px;border-bottom:1px solid var(--line,#dbe4da)}
.journey-stage:has(>.journey-map-placeholder)>.journey-panel{border-left:0}
.journey-stage:has(>.journey-map-placeholder) .journey-panel-scroll{max-height:380px}
@media(max-width:760px){.journey-stage:has(>.journey-map-placeholder)>.journey-panel{margin-top:0;border-radius:0;box-shadow:none}.journey-stage:has(>.journey-map-placeholder) .journey-panel[data-sheet=summary] .journey-panel-scroll{max-height:135px}}
