:root {
  color-scheme: light;
  --ink:#18322d; --muted:#50665d; --brand:#163a30; --line:#d9e2d9;
  --canvas:#eef3ed; --card:#fff; --green:#c8f08a; --deep:#102928;
  --orange:#ffd58d; --blue:#cee0f6; --radius:17px;
  font-family: Heebo, "Arial", sans-serif;
}
* {box-sizing:border-box}
body {margin:0;background:var(--canvas);color:var(--ink)}
button,a {-webkit-tap-highlight-color:transparent}
button {font:inherit;cursor:pointer}
a {color:inherit}
a,button {touch-action:manipulation}
button:focus-visible,a:focus-visible,[tabindex]:focus-visible {outline:3px solid #347747;outline-offset:3px}
[hidden] {display:none!important}
h1,h2,h3,p {margin:0}
h2 {font-size:clamp(1rem,1.7vw,1.28rem);line-height:1.25}
h3 {font-size:1rem}
.muted {color:var(--muted);font-size:.85rem;line-height:1.5}
.skip {position:fixed;top:8px;right:8px;transform:translateY(-200%);background:white;padding:12px;z-index:800}
.skip:focus {transform:none}
.site-header {background:var(--deep);color:#f5facf;border-bottom:1px solid #33504a}
.header-inner,.shell {max-width:1390px;margin:auto;padding-inline:clamp(14px,3.25vw,46px)}
.header-inner {display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:66px}
.brand {display:flex;align-items:center;gap:10px;text-decoration:none;font-size:1rem;font-weight:850;letter-spacing:.1em;direction:ltr}
.brand-accent {color:var(--green);margin-left:4px}
.top-links {display:flex;gap:clamp(20px,3vw,44px);font-size:.875rem}
.top-links a {color:#e1ecd9;text-decoration:none;padding-block:12px}
.top-links a:hover {text-decoration:underline}
.header-button,.outline {border:1px solid #6c867b;background:none;border-radius:9px;color:inherit;min-height:40px;padding:7px 12px;font-weight:650;font-size:.82rem}
.header-button:hover {background:#264740}
.hero {
  margin-top:22px;position:relative;overflow:hidden;isolation:isolate;
  min-height:183px;display:flex;align-items:end;justify-content:space-between;gap:17px;
  padding:clamp(20px,3.5vw,44px);border-radius:22px;color:white;
  background: radial-gradient(ellipse at 7% 100%,#3b6a46 0%,transparent 55%),linear-gradient(115deg,#234a3b,#19362f 52%,#102928);
}
.hero::after {
  content:"";position:absolute;z-index:-1;inset:0;opacity:.25;pointer-events:none;
  background:repeating-radial-gradient(ellipse at 13% 112%,transparent 0 12px,#b2cf9b 13px,transparent 14px 24px);
  mask-image:linear-gradient(to right,black,transparent 83%);
}
.eyebrow {color:var(--green);font-size:.7rem;font-weight:750;letter-spacing:.19em;text-align:right}
.hero h1 {font-size:clamp(2rem,5.3vw,4.9rem);font-weight:800;letter-spacing:-.066em;line-height:.98;margin-block:8px 11px;direction:ltr;text-align:right}
.hero h1 span {color:#a5d177;font-weight:400}
.hero-copy {color:#e3edde;font-size:clamp(.82rem,1.4vw,1rem);line-height:1.5}
.places {display:flex;gap:7px;overflow:auto;padding:5px 3px 8px;margin:16px -3px 9px;scrollbar-width:thin}
.place {white-space:nowrap;border:1px solid #cfdccf;border-radius:9px;background:#f8fbf6;color:#283f35;font-weight:700;padding:9px 12px;min-height:42px;font-size:.83rem}
.place[aria-pressed="true"] {color:#17352b;background:#c8f08a;border-color:#7fac54}
.place:hover {border-color:#648f6c}
.section-heading,.card-head {display:flex;justify-content:space-between;align-items:center;gap:8px}
.section-heading {margin-bottom:5px}
#place-name {font-size:clamp(1.27rem,2.5vw,2rem);letter-spacing:-.035em}
#place-meta {margin-top:3px}
.outline {border-color:#b9cbbd;background:#f9fcf7}
.outline:hover {background:#e2efdc}
.outline:disabled {opacity:.65;cursor:progress}
.status {color:var(--muted);font-size:.81rem;min-height:1.45em;margin-block:6px 9px}
.status[data-state="error"],.status[data-state="stale"] {color:#844510}
.metrics {display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:9px;margin-bottom:15px}
.metric,.card {background:var(--card);border:1px solid var(--line);border-radius:var(--radius);min-width:0}
.metric {padding:12px clamp(8px,1vw,15px);min-height:104px;display:flex;flex-direction:column;gap:5px}
.metric:first-child {background:#e0efdb;border-color:#cdddc7}
.metric-label {font-size:.78rem;font-weight:730}
.metric-value {font-size:clamp(1.1rem,2.4vw,1.77rem);font-weight:800;font-variant-numeric:tabular-nums;line-height:1.15;white-space:nowrap}
.metric-value small {font-size:.64em}
.metric-detail {color:var(--muted);font-size:.71rem;line-height:1.4}
.overview-grid,.details-grid {display:grid;gap:14px;align-items:start}
.overview-grid {grid-template-columns:minmax(0,1.55fr) minmax(0,1fr)}
.details-grid {grid-template-columns:1fr 1fr;margin-top:14px}
.card {padding:13px}
.card-head {padding:3px 1px 11px;min-height:35px}
.text-button {padding:5px 2px;color:#245d44;background:transparent;border:none;font-size:.79rem;font-weight:750;text-decoration:underline;text-underline-offset:3px}
.text-button:hover {color:#102928}
#map {height:clamp(315px,31vw,442px);border-radius:11px;background:#e5ede1;z-index:0;font-family:Arial,sans-serif}
#map .leaflet-container {background:#e5ede1}
#map .leaflet-tile {filter:saturate(.79)}
.leaflet-control-attribution {max-width:100%;text-align:left}
.leaflet-control-zoom a {color:#224635}
.map-marker {display:grid;place-items:center;width:30px;height:30px;border-radius:50%;border:2px solid #fff;color:#16362c;background:#c8f08a;box-shadow:0 2px 6px #132d32a0;font:bold 15px Arial,sans-serif}
.map-marker.camera {color:#163250;background:var(--blue);border-radius:8px}
.map-marker.lift {color:#492f0c;background:var(--orange);border-radius:5px}
.map-marker svg {width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8}
.marker-active .map-marker {box-shadow:0 0 0 2px #164f38,0 3px 9px #193b34a3}
.legend {display:flex;flex-wrap:wrap;gap:6px 16px;padding:11px 2px 1px;color:var(--muted);font-size:.75rem}
.key::before {content:"";display:inline-block;width:9px;height:9px;border-radius:50%;margin-left:5px;background:var(--green);border:1px solid #52664d}
.key.camera::before {background:var(--blue);border-radius:2px}
.key.lift::before {background:var(--orange);border-radius:1px}
.inline-message,.empty {font-size:.86rem;line-height:1.6;padding:11px;border-radius:9px;background:#edf3eb;color:#3d5948}
.inline-message {margin-top:8px}
.inline-message a,.inline-message button {display:inline-block;margin-inline-start:5px}
.camera-stage {aspect-ratio:16/9;border-radius:11px;overflow:hidden;display:grid;place-items:center;text-align:center;background:radial-gradient(ellipse at 32% 86%,#355e47,transparent 65%),#16342e;color:#f6f9ed}
.camera-stage p {line-height:1.4;padding:14px}
.camera-stage iframe {display:block;width:100%;height:100%;border:0}
.camera-selector {display:flex;flex-wrap:wrap;gap:6px;margin-top:9px}
.camera-choice {font:inherit;font-size:.76rem;font-weight:700;background:#f4f7f3;border:1px solid var(--line);color:var(--ink);border-radius:7px;padding:6px 8px;min-height:34px}
.camera-choice[aria-pressed="true"] {background:#e2f0da;border-color:#89a780}
.camera-note {font-size:.79rem;color:var(--muted);line-height:1.5;margin-block:9px}
.camera-caption {display:flex;justify-content:space-between;gap:10px;align-items:center;margin-top:12px}
.primary {display:inline-flex;align-items:center;justify-content:center;min-height:41px;border:1px solid #91b36e;border-radius:9px;padding:7px 12px;background:var(--green);color:#15372b;font-weight:750}
.primary:hover {background:#ddf6b1}
.forecast-card {margin-top:14px}
.label {background:#e8efe6;color:#355649;padding:4px 8px;border-radius:6px;font-size:.73rem;white-space:nowrap}
.days {display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:7px}
.day {background:#f5f8f3;border:1px solid #e1e9df;border-radius:10px;min-width:0;padding:9px 7px;display:grid;gap:3px;text-align:center;font-size:.8rem}
.day:first-child {background:#eaf2e6}
.day strong {font-size:.98rem;font-variant-numeric:tabular-nums}
.day-icon {font-size:1.2rem}
.chart-heading {display:flex;justify-content:space-between;align-items:center;gap:12px;margin:17px 0 8px}
.chart-scroll,.hours {display:flex;overflow:auto;scrollbar-width:thin;padding-bottom:4px}
.chart-bar {flex:1;min-width:38px;display:grid;gap:3px;justify-items:center;grid-template-rows:18px 54px 17px;align-items:end;font-size:.69rem}
.chart-bar progress {appearance:none;border:none;width:11px;height:54px;writing-mode:vertical-lr;direction:rtl}
.chart-bar progress::-webkit-progress-bar {background:#eaf1e9;border-radius:4px}
.chart-bar progress::-webkit-progress-value {background:#6ba782;border-radius:4px}
.chart-bar progress::-moz-progress-bar {background:#6ba782;border-radius:4px}
.hours {gap:5px;margin-top:10px}
.hour {min-width:70px;border-inline-end:1px solid #e1e9df;padding:4px 7px;text-align:center;display:grid;gap:4px;font-size:.74rem}
.compare-row,.operation-link {width:100%;display:flex;gap:8px;align-items:center;justify-content:space-between;text-align:start;padding:9px 7px;border:0;border-top:1px solid #e5eae4;background:none;color:var(--ink);text-decoration:none}
.compare-row:hover,.operation-link:hover {background:#f0f6ed}
.compare-row strong,.operation-link strong {display:block;font-size:.88rem}
.compare-condition {text-align:end}
.operation-link .muted {display:block;font-size:.75rem}
footer {display:flex;flex-wrap:wrap;justify-content:space-between;gap:7px 13px;padding:18px 2px 22px;font-size:.75rem;color:var(--muted)}
.toast {position:fixed;z-index:700;bottom:14px;left:16px;background:var(--deep);color:white;border-radius:8px;padding:10px 14px;font-size:.85rem}
@media(max-width:820px) {
  .overview-grid {grid-template-columns:1.35fr 1fr}
  .hero {min-height:145px}
  .days {display:flex;overflow:auto;scrollbar-width:thin}
  .day {flex:1;min-width:75px}
}
@media(max-width:650px) {
  .header-inner {min-height:57px}
  .hero {margin-top:12px;border-radius:16px;min-height:0;padding:17px;align-items:start;flex-direction:column}
  .hero h1 {font-size:clamp(2rem,8.7vw,3.6rem)}
  .top-links {display:none}
  .places {margin-top:10px}
  .metrics {grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
  .metric:last-child {grid-column:span 2}
  .metric {min-height:78px;padding:8px 9px}
  .overview-grid,.details-grid {grid-template-columns:minmax(0,1fr);gap:10px}
  .card {padding:10px}
  #map {height:328px}
}
@media(prefers-reduced-motion:reduce) {*,*::before,*::after {scroll-behavior:auto!important}}

/* The map stays central on desktop and comes first on narrow screens. */
.shell {max-width:1540px}
.hero {min-height:0;padding:18px clamp(16px,3vw,36px);align-items:center}
.hero h1 {font-size:clamp(1.9rem,4vw,3.5rem);margin:0}
.overview-grid {
  position:relative;display:grid;direction:ltr;align-items:start;
  grid-template-columns:minmax(180px,1fr) minmax(0,3fr) minmax(180px,1fr);
  gap:16px;
}
.overview-grid > :not(svg) {direction:rtl}
.map-card {grid-column:2;grid-row:1;position:relative;padding:14px}
.camera-west {grid-column:1;grid-row:1}
.camera-east {grid-column:3;grid-row:1}
.camera-rail {display:grid;gap:12px}
.camera-card {position:relative;z-index:3;padding:10px}
.camera-selected {border-color:#487950;box-shadow:0 0 0 1px #487950}
.camera-card-title {display:flex;align-items:center;justify-content:space-between;gap:6px}
.camera-card-title h3 {overflow-wrap:anywhere}
.camera-location {
  flex:none;min-height:44px;min-width:48px;padding:5px 8px;border:1px solid #afc9ad;border-radius:8px;
  color:var(--ink);background:#edf5e7;font-size:.88rem;font-weight:750;
}
.camera-location:hover {background:#dcefd3}
.camera-place {margin-top:2px}
.camera-stage {margin-top:6px}
.camera-status {font-size:.85rem;line-height:1.35;color:var(--muted);padding:5px 2px 0}
.camera-links {display:flex;gap:0 8px;flex-wrap:wrap;padding-inline:2px}
.camera-links .text-button {display:inline-flex;align-items:center;min-height:36px}
#camera-lines {position:absolute;inset:0;width:100%;height:100%;z-index:2;pointer-events:none}
#camera-lines path {fill:none;stroke:#356478;stroke-width:1.5;stroke-opacity:.75}
#camera-lines .active {stroke:#12502e;stroke-width:3;stroke-opacity:1}
.map-selection {
  display:flex;flex-wrap:wrap;gap:10px;align-items:center;background:#eaf3e6;
  border-radius:8px;padding:8px 12px;margin-bottom:9px;min-height:42px;
  text-decoration:none;font-weight:700;
}
.map-selection span {margin-inline-start:auto;font-size:.85rem;color:#245d44}
#map {height:clamp(435px,38vw,605px)}
#map .leaflet-tile {filter:none}
#map .leaflet-control-zoom a {width:36px;height:36px;line-height:36px}
.legend,.text-button,.status,.metric-label {font-size:.9rem}
.metric-detail {font-size:.83rem}
.place {font-size:.94rem;min-height:44px}
.current-weather {grid-column:1 / -1;grid-row:2;scroll-margin-top:10px}
.current-weather .metrics {margin-bottom:0}
@media(max-width:900px) {
  .overview-grid {grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .map-card {grid-column:1 / -1;grid-row:1}
  .current-weather {grid-row:2}
  .camera-west {grid-column:2;grid-row:3}
  .camera-east {grid-column:1;grid-row:3}
  #camera-lines {display:none}
  #map {height:clamp(340px,64vw,460px)}
  .camera-card {padding:8px}
  .camera-links .text-button {min-height:42px}
}

.weather-preview {
  width:min(460px,calc(100% - 28px));max-height:calc(100% - 28px);padding:18px;
  border:1px solid var(--line);border-radius:var(--radius);background:var(--card);color:var(--ink);
  box-shadow:0 16px 50px #10292840;
}
.weather-preview::backdrop {background:#10292890}
.weather-preview h2 {font-size:1.28rem}
.weather-preview .outline {min-height:44px}
.preview-condition {font-weight:750}
.preview-values {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:8px 0}
.preview-values div {padding:8px 10px;border-radius:8px;background:var(--canvas)}
.preview-values dt {font-size:.9rem}
.preview-values dd {margin:3px 0 0;font-weight:750;font-size:1.1rem}
.weather-preview .primary {margin-top:14px;min-height:44px;text-decoration:none}

.map-marker.shop,.key.shop::before {background:#dbcaf4;color:#46276a;border-radius:7px}
.map-info #map-info-body {line-height:1.55}
.trip-direction {margin-block:2px 10px;text-align:center;font-weight:750}
.next-departure {
  display:grid;gap:2px;background:#e5f0d8;border:1px solid #b9d1a5;border-radius:10px;
  padding:10px 14px;margin-block:8px;font-size:.9rem;
}
.next-departure strong {font-size:2rem;text-align:right;font-variant-numeric:tabular-nums}
.departure-list {margin-block:10px}
.departure-list summary {cursor:pointer;padding-block:7px;font-weight:700}
.departure-list ul {display:grid;grid-template-columns:repeat(5,1fr);gap:5px;list-style:none;padding:0;text-align:center;font-size:.9rem}
.departure-list li[aria-current] {background:#e5f0d8;border-radius:4px;font-weight:750}
.info-subtitle {margin-top:12px}
.map-info-links {display:flex;flex-wrap:wrap;gap:12px;margin-top:6px}
