/* REV map layout v6. Single authoritative layout file; preview branch only. */
body.rev-map-one{--rev-blue:#0866ee;--rev-border:#dce7f5;--rev-ink:#182f4c;background:#eef4fb!important;color:var(--rev-ink);font-family:Vazirmatn,Vazir,Tahoma,sans-serif!important}
body.rev-map-one main{margin:0!important;padding:0!important;max-width:none!important}
body.rev-map-one header[aria-hidden=true]{display:none!important}
body.rev-map-one #map{position:fixed!important;inset:0!important;width:100%!important;height:100dvh!important;min-height:100dvh!important;border:0!important;border-radius:0!important;z-index:1!important}
body.rev-map-one main>.title,body.rev-map-one main>.actions,body.rev-map-one #status,body.rev-map-one .map-search-bar{box-sizing:border-box!important;background:white!important;border:1px solid var(--rev-border)!important;box-shadow:0 5px 21px #0d355426!important}
body.rev-map-one main>.title{position:fixed!important;top:calc(9px + env(safe-area-inset-top));right:10px;left:auto;z-index:1200!important;margin:0!important;border-radius:15px!important;padding:8px 12px!important;font-size:14px!important;color:#165ab9!important}
body.rev-map-one main>.actions{position:fixed!important;top:calc(61px + env(safe-area-inset-top));right:10px;left:10px;z-index:1200!important;margin:0!important;padding:6px!important;display:flex!important;gap:7px!important;border-radius:15px!important}
body.rev-map-one main>.actions #filter{flex:1;min-width:0;max-width:none!important;background:#f3f7fc!important;border-radius:10px!important}
body.rev-map-one main>.actions #refresh{flex:0 0 auto!important;background:var(--rev-blue)!important;color:#fff!important;border-radius:10px!important;padding:8px 12px!important}
body.rev-map-one #status{position:fixed!important;top:calc(115px + env(safe-area-inset-top));right:10px;left:auto;z-index:1190!important;width:max-content!important;max-width:calc(100vw - 20px)!important;font-size:10px!important;padding:5px 9px!important;margin:0!important;border-radius:10px!important;pointer-events:none}
body.rev-map-one .map-search-bar{position:fixed!important;top:calc(158px + env(safe-area-inset-top))!important;right:10px!important;left:10px!important;bottom:auto!important;z-index:1300!important;width:auto!important;max-width:none!important;margin:0!important;display:grid!important;grid-template-columns:32px minmax(0,1fr) 42px 42px!important;align-items:center!important;gap:5px!important;padding:7px!important;min-height:58px!important;border-radius:17px!important}
body.rev-map-one .map-search-form{display:grid!important;grid-template-columns:34px minmax(0,1fr) auto 38px!important;align-items:center!important;gap:3px!important;min-width:0!important;width:100%!important;margin:0!important}
body.rev-map-one .map-search-form #placeSearch{width:100%!important;min-width:0!important;max-width:none!important;font-size:13px!important}
body.rev-map-one .map-search-bar :is(#historyToggle,#locate,#routeToggle,#filterBtn,.search-go,#searchClear){position:static!important;transform:none!important;float:none!important;margin:0!important;padding:0!important;display:grid!important;place-items:center!important;width:100%!important;max-width:none!important;height:40px!important;min-height:40px!important;min-width:0!important;border-radius:11px!important;box-sizing:border-box!important}
body.rev-map-one .map-search-bar #routeToggle{background:var(--rev-blue)!important;color:#fff!important}
body.rev-map-one .map-search-bar svg{width:19px!important;height:19px!important}
body.rev-map-one .map-search-bar #searchClear[hidden]{display:none!important}
body.rev-map-one #filterMenu:not([hidden]){position:fixed!important;top:calc(221px + env(safe-area-inset-top))!important;right:10px!important;left:10px!important;z-index:1400!important;background:white!important;border:1px solid var(--rev-border)!important;border-radius:16px!important;padding:8px!important;max-width:none!important;margin:0!important}
body.rev-map-one #routePanel:not([hidden]),body.rev-map-one #details-panel:not([hidden]){position:fixed!important;top:auto!important;right:10px!important;left:10px!important;bottom:calc(78px + env(safe-area-inset-bottom))!important;margin:0!important;width:auto!important;max-width:none!important;max-height:min(43dvh,390px)!important;overflow:auto!important;overscroll-behavior:contain!important;border:1px solid var(--rev-border)!important;background:white!important;border-radius:23px!important;box-shadow:0 -9px 32px #14395b30!important;z-index:1800!important}
body.rev-map-one #routePanel .route-head{position:sticky;top:0;background:white;z-index:2}
body.rev-map-one #routeSettingsPanel:not([hidden]){max-height:min(40dvh,300px)!important;overflow:auto!important;border-radius:18px!important}
body.rev-map-one :is(#routePanel,#details-panel,#navDash,#navBanner)[hidden]{display:none!important}
body.rev-map-one .rev-right-buttons{display:flex!important;flex-direction:column!important;align-items:center!important;gap:8px!important}
body.rev-map-one .rev-right-buttons button{margin:0!important;width:44px!important;height:44px!important;border-radius:13px!important}
body.rev-map-one .bottom-nav{background:#fff!important;border-radius:19px!important;box-shadow:0 6px 28px #13375626!important}
body.rev-map-one.rev-navigating :is(main>.title,main>.actions,#status,.map-search-bar,#filterMenu,#routePanel,#details-panel){display:none!important}
@media(max-width:699px){
 html body.rev-map-one.rev-navigating #navBanner:not([hidden]){top:calc(7px + env(safe-area-inset-top))!important;right:9px!important;left:9px!important;width:auto!important;max-height:88px!important;min-height:0!important;overflow:hidden!important;padding:8px!important;border-radius:15px!important;z-index:2500!important}
 html body.rev-map-one.rev-navigating #navDash:not([hidden]){top:auto!important;bottom:calc(8px + env(safe-area-inset-bottom))!important;right:9px!important;left:9px!important;width:auto!important;max-height:140px!important;min-height:0!important;overflow:auto!important;padding:8px!important;border-radius:18px!important;z-index:2500!important}
 html body.rev-map-one.rev-navigating #navDash .rev-nav-env{display:none!important}
 html body.rev-map-one.rev-navigating #navDash #revApprovedOpen{padding:5px!important;margin:2px 0!important;font-size:11px!important;min-height:29px!important}
 html body.rev-map-one.rev-navigating #navDash #navEndBtn{padding:5px!important;min-height:29px!important}
 html body.rev-map-one.rev-navigating :is(#tripLivePanel,#groupTripPanel):not([hidden]){display:none!important}
 html body.rev-map-one.rev-navigating #revMusicDock{display:none!important}
 html body.rev-map-one.rev-navigating #routeSettingsPanel:not([hidden]){max-height:32dvh!important}
 html body.rev-map-one.rev-navigating #navRecenterFloat{top:48%!important;right:10px!important;bottom:auto!important}
}
@media(max-width:390px){body.rev-map-one .map-search-bar{grid-template-columns:26px minmax(0,1fr) 36px 36px!important;gap:3px!important;padding:5px!important}body.rev-map-one .map-search-form{grid-template-columns:30px minmax(0,1fr) auto 32px!important}body.rev-map-one .map-search-bar :is(#historyToggle,#locate,#routeToggle,#filterBtn,.search-go){height:36px!important;min-height:36px!important}body.rev-map-one .map-search-bar svg{width:17px!important;height:17px!important}}
/* Desktop workspace: independent map viewport and fixed right control rail. */
@media(min-width:900px){
 html body.rev-map-one{background:#eef3fa!important}
 html body.rev-map-one #map{position:fixed!important;top:16px!important;bottom:16px!important;left:16px!important;right:392px!important;width:calc(100vw - 408px)!important;height:calc(100dvh - 32px)!important;min-height:0!important;transform:none!important;border:1px solid #dae7f5!important;border-radius:22px!important;overflow:hidden!important;box-shadow:0 9px 33px #173a6220!important}
 html body.rev-map-one main>.title{position:fixed!important;top:18px!important;right:16px!important;left:auto!important;width:360px!important;height:47px!important;display:flex!important;align-items:center!important;justify-content:center!important;margin:0!important}
 html body.rev-map-one main>.actions{position:fixed!important;top:77px!important;right:16px!important;left:auto!important;width:360px!important;height:56px!important;margin:0!important;max-width:none!important}
 html body.rev-map-one .map-search-bar{position:fixed!important;top:145px!important;right:16px!important;left:auto!important;width:360px!important;height:58px!important;max-width:none!important;margin:0!important}
 html body.rev-map-one #status{position:fixed!important;top:216px!important;right:16px!important;left:auto!important;width:360px!important;max-width:360px!important;min-height:28px!important;box-sizing:border-box!important;white-space:normal!important;overflow:hidden!important}
 html body.rev-map-one #filterMenu:not([hidden]){position:fixed!important;top:213px!important;right:16px!important;left:auto!important;width:360px!important;max-width:none!important;z-index:1500!important;margin:0!important}
 html body.rev-map-one #routePanel:not([hidden]),html body.rev-map-one #details-panel:not([hidden]){position:fixed!important;top:260px!important;bottom:94px!important;right:16px!important;left:auto!important;width:360px!important;max-width:360px!important;max-height:none!important;margin:0!important;overflow:auto!important;box-sizing:border-box!important}
 html body.rev-map-one #routeSettingsToggle{position:fixed!important;top:24px!important;left:26px!important;right:auto!important;z-index:1750!important}
 html body.rev-map-one #routeSettingsPanel:not([hidden]){position:fixed!important;top:25px!important;left:82px!important;right:auto!important;width:330px!important;max-height:min(54dvh,390px)!important;z-index:2200!important}
 html body.rev-map-one .rev-right-buttons{position:fixed!important;top:86px!important;left:26px!important;right:auto!important;width:46px!important;gap:10px!important;z-index:1740!important}
 html body.rev-map-one .bottom-nav{position:fixed!important;bottom:18px!important;right:16px!important;left:auto!important;transform:none!important;width:360px!important;max-width:360px!important;margin:0!important}
 html body.rev-map-one.rev-navigating #navBanner:not([hidden]){top:18px!important;right:16px!important;left:auto!important;width:360px!important;max-height:125px!important}
 html body.rev-map-one.rev-navigating #navDash:not([hidden]){top:auto!important;bottom:18px!important;right:16px!important;left:auto!important;width:360px!important;max-height:220px!important}
 html body.rev-map-one.rev-navigating #routeSettingsToggle{top:160px!important;left:26px!important;right:auto!important}
 html body.rev-map-one.rev-navigating #navRecenterFloat{right:410px!important;left:auto!important}
}
@media(min-width:900px) and (max-height:720px){
 html body.rev-map-one #status{display:none!important}
 html body.rev-map-one #routePanel:not([hidden]),html body.rev-map-one #details-panel:not([hidden]){top:220px!important;bottom:78px!important}
 html body.rev-map-one .bottom-nav{bottom:8px!important}
}
