.fallback-map {position:absolute;inset:0;background:radial-gradient(ellipse at 48% 40%,#fffaf0,#dce2e7);display:grid;place-items:center;overflow:hidden}
.fallback-map p {position:absolute;bottom:85px;left:20px;z-index:1;margin:0;padding:8px 12px;background:#fffcf3e8;border:1px solid #d5d7ce;border-radius:5px;color:#3c5654;font:11px/1.4 var(--sans);pointer-events:none}
.fallback-map svg {width:94%;height:94%;padding:65px 25px 80px;box-sizing:border-box;touch-action:none;cursor:grab}
.fallback-map svg:active {cursor:grabbing}
.fallback-map svg:focus-visible {outline:2px solid #3c5654;outline-offset:-2px}
body:not(.home-mode) #map-stage[data-map-mode=error] :is(.map-topbar-right,#trail-list-toggle,.trail-sidebar,.layer-switcher,.active-layer-label,.map-controls,.map-bottom-left) {display:none}
.map-label {text-shadow:0 1px 4px #fcfaf3,0 0 9px #fcfaf3}
@media (max-width:700px){.fallback-map p{bottom:95px;font-size:10px;max-width:240px}}
@media (prefers-reduced-motion:reduce){.fallback-map *,#mountain-title{scroll-behavior:auto}}
.active-layer-label,#trail-list-toggle{display:none}
/* Keep the forecast day and light controls in reach on desktop. The mountain
   retains the same renderer and geometry; compact the surrounding chrome. */
@media(min-width:1100px) and (min-height:700px){
  .mountain-heading{min-height:90px;padding-top:9px;padding-bottom:12px}
  .explorer{height:calc(100svh - 390px);min-height:380px}
}
@media (max-width:700px){
  body:not(.home-mode) .header{height:auto;min-height:94px;flex-wrap:wrap;padding:8px 14px 7px;gap:5px}
  body:not(.home-mode) .header-right{display:flex;width:100%;justify-content:space-between;align-items:center}
  body:not(.home-mode) .resort-picker{flex-direction:row;align-items:center;gap:12px;flex:1}
  body:not(.home-mode) .resort-picker>span{display:block;font-size:8px;letter-spacing:1px}
  body:not(.home-mode) .resort-picker select{max-width:none;min-width:165px;font-size:12px;padding:6px 10px}
  .header nav{gap:12px}.nav-item{font-size:9px}.header .brand{font-size:22px}
  .mountain-heading{min-height:92px;gap:8px;padding-top:12px;padding-bottom:12px}.mountain-heading h1{font-size:30px}.heading-stats .scenario-tag{min-width:94px}
  .explorer{display:flex;flex-direction:column;height:auto;min-height:0}
  .map-stage{order:0;width:100%;min-width:0;height:520px;min-height:520px;flex:none}
  .trail-sidebar{order:2;width:100%;height:310px;max-height:310px;flex:none;border-right:0;border-top:1px solid #d8e1d8}
  #trail-list-toggle{display:block;margin-left:auto;font-size:11px;padding:8px 10px;border:1px solid #ced9cd;border-radius:5px;color:#315b4a}
  .sidebar-title>span{display:none}.trail-sidebar.collapsed{height:56px;max-height:56px}.trail-sidebar.collapsed>:not(.sidebar-title){display:none}
  .sidebar-title{padding:14px 16px 9px}.sidebar-title h2{font-size:16px}
  .search-wrap{margin:0 14px 8px}.search-wrap input{font-size:12px}
  .list-tabs{margin:0 15px}.difficulty-filters{padding:8px 14px 2px}.list-caption{padding:5px 15px}
  .trail-list{padding:0 10px}.trail-item{font-size:12px;min-height:38px}.difficulty-filters button{width:28px;height:25px}
  .map-topbar .view-pill{display:none}.map-topbar-right{margin-left:auto;gap:6px}.map-topbar-right .map-button{font-size:10px;padding:8px}
  .map-topbar-right .trail-toggle{width:30px}.map-topbar-right .trail-toggle>span:first-child{display:block}.map-topbar-right .map-button svg{width:14px;height:14px}
  .layer-switcher{top:54px}.layer-switcher button{padding:9px}.layer-switcher button svg{height:17px;width:17px}
  .active-layer-label{display:block;position:absolute;top:100px;left:14px;z-index:3;font-size:10px;color:#315b4a;background:#fafbf2ed;border:1px solid #e0e5db;border-radius:4px;padding:4px 7px;pointer-events:none}
  .panel-open .active-layer-label{display:none}
  .layer-legend,.map-stage.panel-open .layer-legend{max-width:calc(100vw - 66px)!important;font-size:8px;gap:10px}
  .run-panel{right:44px;width:calc(100% - 56px);top:98px;bottom:80px}.panel-heading h2{font-size:25px}.condition-value{font-size:13px}.condition-note,.panel-method-note{font-size:9px}.demo-note{font-size:9px}
  .explorer>.timebar{order:1;display:flex;flex-wrap:wrap;gap:8px;width:100%;padding:10px 14px 12px;min-height:0;flex:none;background:#fafbf5;border-top:1px solid #d8e1d8}
  .date-control{width:100%;margin:0;gap:7px}.date-control .date-icon{width:25px;height:25px}.date-control>div{display:flex;align-items:center;gap:10px}.date-control label{font-size:8px}.date-control select{font-size:10px;max-width:none;padding:3px 0}.time-control{width:100%;min-width:0}.time-label{font-size:10px}.time-ticks{font-size:8px}.timebar-note{display:none}
  footer{width:100%;box-sizing:border-box;overflow-wrap:anywhere}
}
