/* Interactive territory map. Geometry remains separate from the interface. */
.map-section-heading{display:flex;justify-content:space-between;align-items:end;gap:16px;margin-bottom:18px}
.map-section-heading .section-title{margin:0}
.map-eyebrow{margin:0 0 6px;font-size:10px;letter-spacing:.12em;text-transform:uppercase;color:#526858;font-weight:700}
.map-section-heading>p{font-size:12px;line-height:1.6;color:#526858;margin:0;text-align:right}
.map-overview{padding:14px 16px;margin-top:12px;border:1px solid #dce5df;border-radius:16px;background:#fff}
.map-overview-heading{display:flex;align-items:baseline;justify-content:space-between;gap:6px 16px;flex-wrap:wrap;font-size:13px;color:#16352b}
.map-overview-heading>span{font-size:12px;color:#526858}
.map-zone-row{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}
.map-zone{display:inline-flex;align-items:center;gap:6px;padding:6px 9px;background:#f2f6f3;border-radius:7px;color:#526858;font-size:11px;line-height:1.5}
.map-zone i{width:6px;height:6px;border-radius:50%;background:#83928a;flex:none}
.map-zone-value{color:#304a3d;font-weight:700}
.map-zone[data-state=open] i{background:#2b8054}.map-zone[data-state=limited] i{background:#ba6b20}
.map-overview-meta{margin:9px 0 0;font-size:10px;color:#617268}
.map-live{--map-brand-pine:#16352b;--map-brand-orange:#ff8957;--map-lift-yellow:#ffca29;--map-lift-outline:#3a2b12;--map-tubing-orange:#ff752e;--map-main-blue:#1268e8;border:1px solid #ccdacf;border-radius:20px;overflow:hidden;background:#edf3ed;box-shadow:0 12px 36px -28px #16352b66}
.map-live .route-green{--map-route-ink:#20d764;--map-route-edge:#103724;--map-route-label:#075124}
.map-live .route-blue{--map-route-ink:#168bff;--map-route-edge:#11233e;--map-route-label:#12447c}
.map-live .route-red{--map-route-ink:#ff364c;--map-route-edge:#48121b;--map-route-label:#8f1427}
.map-live .route-black{--map-route-ink:#121716;--map-route-edge:#fff0d6;--map-route-label:#121716}
.map-live .route-neutral{--map-route-ink:#d7e3da;--map-route-edge:#203a32}
.map-live .map-lift{--map-object-accent:var(--map-lift-yellow)}
.map-live .map-tube{--map-object-accent:var(--map-tubing-orange)}
.map-live .map-main-slope{--map-object-accent:var(--map-main-blue)}
.map-live .map-jump,.map-live .jump-key{--map-object-accent:#ff364c}
.map-live .map-jump .pin-face,.map-live .jump-key circle{fill:var(--map-object-accent);stroke:var(--map-brand-pine);stroke-width:2.5}
.map-live .map-jump-symbol{pointer-events:none}
.map-live .map-jump-ramp{fill:var(--map-brand-pine)}
.map-live .map-jump-flight{fill:none;stroke:#fff5e6;stroke-width:2;stroke-linecap:round}
.map-toolbar{display:flex;justify-content:flex-end;align-items:center;gap:10px;padding:10px 12px;background:#fff;border-bottom:1px solid #dce5df}
.map-toolbar-caption{font-size:11px;color:#526858;line-height:1.5}
.map-toolbar-caption>span{display:inline-block;margin-right:5px;color:#c2410c;font-size:20px;vertical-align:middle}
.map-live .map-expand,.map-live .map-close{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:42px;padding:8px 12px;border:0;border-radius:10px;background:#16352b;color:#fff;font:700 11px Manrope,sans-serif;cursor:pointer;white-space:nowrap}
.map-live .map-expand>span{font-size:20px}.map-live .map-expand:hover,.map-live .map-close:hover{background:#28503d}
.map-canvas{position:relative;height:clamp(440px,130vw,580px);overflow:hidden;background:radial-gradient(ellipse at 50% 35%,#fff 5%,#e9f0e7 100%)}
.map-title{position:absolute;z-index:2;left:16px;top:16px;margin:0;font:600 24px/1.15 Oswald,sans-serif;color:#16352b;pointer-events:none;text-shadow:0 1px 8px #f6f8f7,0 0 16px #f6f8f7}
.map-canvas>svg{display:block;width:100%;height:100%;touch-action:pan-y;user-select:none}
.map-live .map-orthophoto{filter:saturate(.83)}
.map-canvas.is-zoomed>svg{touch-action:none;cursor:grab}.map-canvas.is-dragging>svg{cursor:grabbing}
.map-live .map-zoom{position:absolute;z-index:5;right:12px;top:auto;bottom:12px;display:flex;flex-direction:row;align-items:center;border:1px solid #ccdacf;border-radius:12px;box-shadow:0 4px 12px #16352b12}
.map-live .map-zoom button{display:grid;place-items:center;width:40px;height:42px;padding:0;font-size:23px}
.map-live .map-zoom .map-expand,.map-live .map-zoom .map-close{color:#16352b;background:#fff;border-top:0;border-left:1px solid #dce5df;border-radius:0 8px 8px 0}
.map-live .map-zoom button:hover{background:#eaf1e9}
.map-live .map-gesture-hint{left:12px;bottom:12px;border:0;background:#ffffffde;color:#526858;padding:7px 10px;border-radius:9px;font-size:10px;margin:0;max-width:calc(100% - 205px)}
.map-live .map-object .pin-face{stroke-width:2.5;filter:drop-shadow(0 2px 3px #16352b30)}
.map-live .map-object .map-pin text{font:600 25px Manrope,sans-serif}
.map-live .map-woodland-route .map-pin text{font-size:21px}
.map-live .map-object{transition:opacity .15s}
.map-live .map-object:is(:hover,:focus-visible) .pin-face{stroke:var(--map-brand-orange);stroke-width:4.5}
.map-live .map-object.is-selected .pin-face{fill:var(--map-brand-orange);stroke:#fff3e5;stroke-width:4}
.map-live .map-jump.is-selected .pin-face{fill:var(--map-object-accent)}
.map-live .map-object.is-selected .map-pin text{fill:var(--map-brand-pine)}
.map-live .map-object.is-selected .route-halo{stroke:#ffb48f}
.map-card{position:absolute;z-index:4;left:12px;right:12px;bottom:74px;padding:14px;border:1px solid #567268;border-top:3px solid var(--map-brand-orange);border-radius:13px;background:var(--map-brand-pine);color:#f6f8f7;box-shadow:0 12px 32px #071a16a6;max-height:calc(100% - 86px);overflow:auto}
.map-card[data-position=top]{top:56px;bottom:auto;max-height:calc(100% - 130px)}
.map-card-photo{margin:10px 0 0}
.map-card-photo[hidden],.map-card-photo figcaption[hidden]{display:none}
.map-card-photo img{display:block;width:100%;height:clamp(96px,15dvh,145px);object-fit:cover;border-radius:8px;background:#254b3e}
.map-card-photo figcaption{margin-top:4px;color:#c6d9d0;font-size:10px;line-height:1.3}
.map-card-photo a{color:inherit;text-underline-offset:2px}
@media(max-height:470px) and (orientation:landscape){.map-live-dialog .map-card-photo img{height:88px}}
.map-card-kind{display:inline-flex;align-items:center;gap:7px;padding-right:36px;color:#d9e9df;font:800 10px/1.35 Manrope,sans-serif;text-transform:uppercase;letter-spacing:.07em}
.map-card h3{margin:5px 0 8px;padding-right:34px;color:#f6f8f7;font:600 24px/1.15 Oswald,sans-serif}
.map-card-length{margin:0 0 8px;color:#d9e9df;font-size:12px;line-height:1.45}
.map-card-length strong{margin-left:4px;color:#fff;font-size:15px;white-space:nowrap}
.map-card-features{display:flex;flex-wrap:wrap;gap:5px 12px;margin:0 0 6px;padding:0;list-style:none;color:#ffe0b6;font-size:11px;font-weight:700}
.map-card-features li{display:flex;align-items:center;gap:4px}
.map-card-features svg{flex:none}
.map-card-features[hidden],.map-card-features li[hidden]{display:none}
.map-card-description{margin:0;color:#e2ece6;font-size:12px;line-height:1.55}
.map-card-state{margin:10px 0 0;padding-top:9px;border-top:1px solid #536f62;color:#d9e9df;font-size:11px;font-weight:700}
.map-card-state[data-state=open]{color:#95f0b4}.map-card-state[data-state=limited]{color:#ffd197}
.map-card-close{position:absolute;z-index:1;right:8px;top:8px;display:grid;place-items:center;width:36px;height:36px;padding:0;border:1px solid #648276;border-radius:9px;background:#24483c;color:#fff6ed;cursor:pointer}
.map-card-close:is(:hover,:focus-visible){outline:none;border-color:var(--map-brand-orange);color:var(--map-brand-orange)}
.map-hover{
  position:absolute;z-index:3;left:0;top:0;display:grid;grid-template-columns:8px minmax(0,1fr);
  align-items:start;gap:1px 9px;box-sizing:border-box;width:max-content;max-width:min(246px,calc(100% - 16px));
  padding:8px 11px;border:1px solid #16352b38;border-radius:9px;background:#fff8ec;color:var(--map-brand-pine);
  font:600 13px/1.35 Manrope,sans-serif;pointer-events:none;box-shadow:0 3px 10px #071a1638
}
.map-hover[hidden],.map-hover-kind[hidden]{display:none}
.map-hover::before{content:"";width:8px;height:8px;margin-top:5px;border-radius:50%;background:var(--map-object-accent,var(--map-brand-orange));outline:1px solid #16352b52}
.map-hover-label,.map-hover-kind{grid-column:2;overflow-wrap:anywhere}
.map-hover-kind{color:#526458;font-size:11px}
.map-card-kind::before{content:"";flex:none;width:7px;height:7px;border-radius:50%;background:var(--map-object-accent,var(--map-brand-orange));box-shadow:0 0 0 1px #fff3e598}
.map-caption{display:flex;flex-direction:column;gap:9px;padding:13px 15px;background:#fff;border-top:1px solid #dce5df}
.map-caption>p{margin:0;font-size:10px;line-height:1.5;color:#617268}
.map-slope-facts{display:flex;flex-wrap:wrap;gap:4px 14px;color:var(--map-brand-pine);font-size:12px}
.map-slope-facts p{margin:0;line-height:1.5}
.map-slope-facts strong{white-space:nowrap}
.map-snowmaking{display:flex;align-items:center;gap:6px}
.map-snowmaking svg{flex:none}
.map-key{display:flex;flex-wrap:wrap;gap:8px 16px;font-size:10px;color:#526858}
.map-key>span{display:flex;align-items:center;gap:6px}.map-key i{width:16px;height:0;border-top:3px solid #397cbd;border-radius:3px}
.map-key .key-slide{border-color:var(--map-tubing-orange);filter:drop-shadow(0 1px 0 #632b18)}
.map-key .key-lift{border-color:var(--map-lift-yellow);border-top-style:dashed;filter:drop-shadow(0 1px 0 var(--map-lift-outline))}
.map-key .key-training,.map-key .key-shared{border-color:var(--map-route-ink);filter:drop-shadow(0 1px 0 var(--map-route-edge))}
.map-difficulty-key{display:inline-flex;gap:2px}
.map-key .map-difficulty-key i{width:6px;height:6px;border:0;border-radius:2px;background:var(--map-route-ink)}
.map-key .key-main-slope{height:9px;border:1px solid #1649a5;background:var(--map-main-blue);border-radius:2px}
.map-key .key-parking{height:9px;border:1px dashed #397cbd;background:#e0f2ff;border-radius:2px}
.map-key .key-motor-zone{height:9px;border:1px dashed #8a5c25;background:#ffe4a0;border-radius:2px}
.map-live .main-slope-area{fill:var(--map-main-blue);fill-opacity:.43;stroke:#4f9dff;stroke-width:2.5;stroke-linejoin:round;pointer-events:fill}
.map-live .map-main-slope:is(:hover,:focus-visible,.is-selected) .main-slope-area{fill-opacity:.59;stroke:#89c9ff;stroke-width:3.5}
.map-live .main-slope-entry{fill:none;stroke:var(--map-main-blue);stroke-width:3.5;stroke-linecap:round}
.map-live .forest-area{fill:#426f43;fill-opacity:.22;stroke:#a0b88b;stroke-width:3;stroke-dasharray:8 6}
.map-live .map-forest:focus-visible .forest-area,.map-live .map-forest.is-selected .forest-area{fill:#a9cc83;fill-opacity:.34;stroke:#ffe0ab;stroke-width:4}
.map-live .map-tree-islands .forest-area{stroke-width:2.5;stroke-dasharray:5 4}
.map-live .parking-area{fill:#57aeef;fill-opacity:.19;stroke:#86d2ff;stroke-width:3.5;stroke-dasharray:8 5;stroke-linejoin:round;filter:drop-shadow(0 1px 1px #193957)}
.map-live .map-parking:is(:hover,:focus-visible,.is-selected) .parking-area{fill-opacity:.36;stroke:#c7eaff}
.map-live .map-motor-zone{--map-object-accent:#ffe4a0}
.map-live .motor-zone-area{fill:#ffda80;fill-opacity:.18;stroke:#ffe4a0;stroke-width:2;stroke-dasharray:7 5;stroke-linejoin:round;filter:drop-shadow(0 1px 1px #392419)}
.map-live .map-motor-zone:is(:hover,:focus-visible,.is-selected) .motor-zone-area{fill-opacity:.32;stroke:#fff4d8}
.map-live #ski-map{--map-direction-edge:#432c1c;--map-direction-ink:#ffe4a0}
.map-live .map-direction{fill:none;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}
.map-live .map-direction-edge{stroke:var(--map-direction-edge);stroke-width:5}
.map-live .map-direction-ink{stroke:var(--map-direction-ink);stroke-width:2.5}
.map-live .map-building-footprint{fill:#fff3df;stroke:#523e28;stroke-width:2.5;stroke-linejoin:round}
.map-live .map-object:is(:hover,:focus-visible,.is-selected) .map-building-footprint{fill:#fff9ed;stroke:#c2410c;stroke-width:3.5;filter:drop-shadow(0 1px 3px #36251799)}
.map-live .map-amenity-face{fill:#fff3df;stroke:var(--map-brand-pine);stroke-width:2;filter:drop-shadow(0 2px 2px #10231c70)}
.map-live .map-amenity-mark path{pointer-events:none}
.map-live .map-amenity-solid{fill:var(--map-brand-pine)}
.map-live .map-amenity-line,.map-live .map-amenity-accent{fill:none;stroke:var(--map-brand-pine);stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.map-live .map-amenity-accent{stroke:#c2410c}
.map-live .map-service:is(:hover,:focus-visible,.is-selected) .map-amenity-face{fill:#fff9ed;stroke:#c2410c;stroke-width:2.75}
.map-live .rental-ramps{fill:none;stroke:var(--map-route-label);stroke-width:2;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}
.map-live .rental-access-arrow{--map-route-edge:#49210f;--map-route-ink:var(--map-brand-orange);pointer-events:none}
.map-live .map-river path{fill:none;stroke:#98d7e8;stroke-width:3;stroke-linecap:round;filter:drop-shadow(0 1px 2px #153742)}
.map-live .river-label{fill:#ddf5fb;stroke:#243e3b;stroke-width:4;paint-order:stroke;font-size:19px;font-weight:700}
.map-live .route-halo{stroke-width:11;stroke-opacity:.92}
.map-live .route-line{stroke-width:5.5}
.map-live .route-hit{stroke-width:21}
.map-live [data-map-id=main-lift] .route-hit{stroke-width:12}
.map-live .map-lift .route-halo{stroke:var(--map-lift-outline);stroke-width:8}
.map-live .map-lift .route-line{stroke:var(--map-lift-yellow);stroke-width:5;stroke-dasharray:11 7}
.map-live .map-lift .pin-face{fill:var(--map-lift-yellow);stroke:var(--map-lift-outline)}
.map-live .map-lift .map-pin text{fill:var(--map-lift-outline)}
.map-live .station-dots{fill:var(--map-lift-yellow);stroke:var(--map-lift-outline);stroke-width:2.5}
.map-live :is(.map-training,.map-woodland-route) .route-line{stroke:var(--map-route-ink);stroke-width:5.5;stroke-dasharray:none}
.map-live :is(.map-training,.map-woodland-route) .route-halo{stroke:var(--map-route-edge);stroke-width:9.5}
.map-live :is(.map-training,.map-woodland-route) .pin-face{stroke:var(--map-route-label)}
.map-live :is(.map-training,.map-woodland-route) .map-pin text{fill:var(--map-route-label)}
.map-live .map-tube .route-line,.map-live .map-tube .pin-face{stroke:var(--map-tubing-orange)}
.map-live .map-tube .route-halo{stroke:#522513;stroke-width:8.5}
.map-live .map-object.is-selected .route-halo,.map-live .map-object:focus-visible .route-halo{stroke-width:15}
.map-live .map-route-layer:has([data-map-id=fir-route].is-selected) [data-map-id=west-route] .shared-finish,
.map-live .map-route-layer:has([data-map-id=forest-pocket].is-selected) [data-map-id=woodland-route-right] .shared-finish{stroke:#ffb48f;stroke-width:15}
.map-live-dialog{padding:0;border:0;width:100%;height:100dvh;max-width:100%;max-height:100dvh;margin:0;background:#fff;overflow:hidden;color:#16352b}
.map-live-dialog::backdrop{background:#102c22b8;backdrop-filter:blur(4px)}
.map-live-dialog .map-live{height:100%;display:flex;flex-direction:column;border:0;border-radius:0;box-shadow:none}
.map-live-dialog .map-canvas{flex:1;min-height:0;height:auto}
.map-live-dialog .map-caption{padding-bottom:max(13px,env(safe-area-inset-bottom))}
@media(max-width:480px){.map-section-heading{align-items:start}.map-section-heading>p{max-width:145px;font-size:11px}.map-toolbar-caption{max-width:165px}.map-toolbar-caption>span{display:none}}
@media(min-width:760px){
  .map-section-heading>p{font-size:13px}.map-overview{padding:16px 20px}.map-zone{font-size:12px;padding:7px 11px}.map-zone-row{gap:8px}
  .map-toolbar{padding:12px 18px}.map-toolbar-caption{font-size:12px}.map-live .map-expand,.map-live .map-close{font-size:12px}
  .map-title{left:20px;top:20px;font-size:28px}
  .map-canvas{height:640px}.map-card{right:auto;left:18px;bottom:18px;width:290px;padding:16px;max-height:calc(100% - 76px)}.map-card[data-position=top]{top:auto;bottom:18px;right:auto;max-height:calc(100% - 76px)}
  .map-card h3{font-size:28px}.map-card-description{font-size:13px}.map-caption{flex-direction:row;justify-content:space-between;align-items:center;gap:24px;padding:14px 18px}.map-caption>p{max-width:350px;text-align:right}
  .map-slope-facts{flex:0 0 auto;flex-direction:column}
  .map-live-dialog{width:min(1280px,calc(100vw - 32px));height:calc(100dvh - 32px);margin:auto;border-radius:20px}
}
@media(prefers-reduced-motion:no-preference){.map-live .map-object.is-selected .route-halo{animation:map-selection 2.4s ease-in-out infinite alternate}.map-card{animation:map-card-in .2s ease-out both}}
@keyframes map-card-in{from{opacity:0;translate:0 7px}to{opacity:1;translate:0 0}}
@keyframes map-selection{from{stroke-opacity:.6}to{stroke-opacity:1}}
