/* Beta 0.2.0: map first; controls stay in map, information stays below. */
body>header,body>.beta-notice{display:none}
.map-workspace{padding:0;max-width:1800px;background:#edf1ed}.map-stage{position:relative}#map{height:74vh;min-height:380px;max-height:1000px;border-radius:0}
.primary-actions{position:absolute;z-index:810;right:max(12px,env(safe-area-inset-right));top:max(12px,env(safe-area-inset-top));display:flex;flex-direction:column;width:150px!important;min-width:0;gap:8px;margin:0}
.primary-actions button{display:flex;align-items:center;justify-content:center;gap:6px;min-width:52px;min-height:52px;border-radius:12px;padding:8px;background:#fff;color:#263e38;border:1px solid #c1cec6;box-shadow:0 2px 8px #203b3429;font-size:13px}
.primary-actions button>.map-action-label{font-size:13px;margin:0;font-weight:600}.primary-actions #baseChoice{display:none}.primary-actions .ticket-icon{width:26px;height:26px;flex:none}
#compassNeedle{transition:transform .15s linear}.advanced-map-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:12px 0}.advanced-map-actions button{min-height:48px;white-space:normal;padding:8px;font-size:14px}.advanced-map-actions button>span{display:block;font-size:12px}
.choice-panel{z-index:1000;top:12px;max-height:calc(100% - 24px);overscroll-behavior:contain;touch-action:pan-y}.choice-panel select{width:100%;max-width:100%;min-height:48px;font-size:16px}.choice-panel button{min-height:48px}.choice-panel summary{min-height:44px;padding:10px 0;cursor:pointer}#closeBaseMenu,#closeRouteMenu,#closeDisplayMenu{position:sticky;bottom:0;background:#fff;z-index:2;width:100%;margin-top:10px;border:2px solid #56776b}
.sheet-backdrop{position:absolute;z-index:900;inset:0;width:100%;height:100%;border:0;border-radius:0;background:#203b3444;padding:0}.map-sheet-open{overflow:hidden}.map-top-actions{top:auto;right:auto;bottom:74px;left:max(12px,env(safe-area-inset-left));max-width:none}.map-top-actions button{min-height:48px;background:#fff}
#map .leaflet-bottom.leaflet-left{bottom:4px}#map .leaflet-control-attribution{max-width:min(660px,calc(100vw - 116px));white-space:normal;font-size:10px;line-height:1.4}#map .leaflet-control-zoom a{min-width:46px;min-height:46px;line-height:46px}
#mapInformationOrder{width:100%;max-width:1200px;margin:auto}.below-map-section{padding:14px 18px;border-bottom:1px solid #e0e7df;min-width:0}.below-map-section>h2{font-size:14px;color:#49675b;margin:0 0 6px}.current-route-name{font-size:21px;font-weight:700;margin:0}#belowPosition p{margin:5px 0}#belowLegend>.map-information{padding:0}.below-map-section aside{padding:0;border:0}#belowVersion header{padding:0}#belowVersion .beta-notice{margin:8px 0!important;padding:0!important}.debug-footer{padding:0}.map-readouts{position:static;max-width:100%;width:auto;padding:8px;background:#f2f5f1;border:0;box-shadow:none;pointer-events:auto}.map-readouts .map-mode-label{position:static}#belowPosition .coordinate-row{display:flex}.coordinate-row span{overflow-wrap:anywhere}.map-workspace.is-fullscreen .map-stage{height:100%}.map-workspace.is-fullscreen .primary-actions{flex-shrink:initial}.map-workspace.is-fullscreen{padding:0}.map-workspace.is-fullscreen #map{height:100%;min-height:0}
@media(max-width:1100px),(pointer:coarse){
 #map{height:calc(100svh - 110px);min-height:280px;max-height:none}.primary-actions{width:52px!important;gap:10px}.primary-actions button{width:52px;height:52px;min-height:52px;border-radius:50%;padding:0}.primary-actions .map-action-label{display:none!important}
 .choice-panel{position:absolute;top:auto;bottom:0;left:0;transform:none;width:100%;max-width:none;max-height:calc(100% - max(8px,env(safe-area-inset-top)));padding:16px max(16px,env(safe-area-inset-right)) max(16px,env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left));border-radius:18px 18px 0 0;box-shadow:0 -5px 24px #203b3433}
 .below-map-section{padding:12px max(14px,env(safe-area-inset-right)) 12px max(14px,env(safe-area-inset-left))}.map-top-actions{bottom:76px}.map-top-actions button{width:48px;height:48px;min-height:48px;border-radius:50%;font-size:0;padding:10px}.map-top-actions button svg{width:24px;height:24px}.leaflet-top.leaflet-left{top:max(12px,env(safe-area-inset-top));left:max(0px,env(safe-area-inset-left))}.current-route-name{font-size:19px}
}
@media(max-height:500px) and (orientation:landscape){#map{height:calc(100svh - 74px);min-height:260px}.primary-actions{display:grid;grid-template-columns:52px 52px;width:114px!important}.choice-panel{left:12%;width:76%;max-height:100%;padding-bottom:max(12px,env(safe-area-inset-bottom))}}
#fullscreenPosition{flex:none;margin:0;border:0;background:#fff;padding:0 max(12px,env(safe-area-inset-right)) max(4px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left));max-height:30svh;overflow:auto}#fullscreenPosition>summary{min-height:36px;padding:8px 0;font-size:12px}.map-workspace.is-fullscreen .map-stage{height:auto;flex:1;min-height:0}
