
.route-page.atlas-page { --map-ink:#202b29; --map-muted:#536562; --map-edge:#dedfd6; --map-label:#fdfdfc; }
.atlas-page .route-field { background:var(--site-background); min-height:560px; }
.atlas-page .route-field .route-heading,
.atlas-page .route-field.is-overview .route-heading {
  top:20px; left:clamp(22px,4.2vw,68px); right:clamp(22px,4.2vw,68px);
  display:grid; grid-template-columns:max-content minmax(0,1fr) auto;
  align-items:baseline; gap:4px 22px; max-width:none;
}
.atlas-page .route-heading h1 { color:var(--map-ink); font-size:clamp(29px,3.15vw,45px); line-height:1.22; letter-spacing:-.04em; }
.atlas-page .route-heading p { margin:0; color:var(--map-muted); font-size:14px; max-width:57ch; }
.atlas-page .route-heading .route-actions { margin:0; }
.atlas-page .route-field::after,.atlas-page .route-field:not(.is-overview)::after { display:none; }
.atlas-page .route-field .route-view {
  inset:86px clamp(16px,3vw,50px) 117px;
  isolation:isolate; overflow:hidden; display:grid; place-items:center;
  background:#f3f1e7; border:1px solid #dbe3da; border-radius:18px;
  box-shadow:inset 0 0 40px #869c8510;
  touch-action:none; contain:layout paint;
}
.atlas-page .route-field.has-variants .route-view { bottom:149px; }
.atlas-page .route-field.has-route .route-view { bottom:160px; }
.atlas-page .route-field.has-route.has-variants .route-view { bottom:194px; }
.atlas-landscape {
  display:block; width:100%; height:100%; position:absolute; inset:0;
  background:radial-gradient(ellipse at 50% 43%,#fffdf4,#f2f0e5 79%);
}
.atlas-chart { position:relative; transform-origin:center; flex:none; }
.atlas-land { fill:#eae7d5; }
.atlas-wood { fill:#e0e9da; }
.atlas-water-edge,.atlas-water,.atlas-current-line { fill:none; }
.atlas-water-edge { stroke:#fdfcf2;stroke-width:32; }
.atlas-water { stroke:#d2e8e4; stroke-width:28; }
.atlas-current-line { stroke:#a3cbc3; stroke-width:.65; stroke-dasharray:1.1 5.4; opacity:.71; }
.atlas-contours { fill:none; stroke:#c7d0bb; stroke-width:.7; opacity:.68; }
.atlas-trail { fill:none; color:var(--trail); }
.atlas-trail-bed { stroke:#fffdf6; stroke-width:9; stroke-linecap:round; }
.atlas-trail-line { stroke:currentColor; stroke-width:2.1; opacity:.79; stroke-linecap:round; }
.atlas-trail-travel {
  stroke:currentColor; stroke-width:3.6; stroke-linecap:round;
  stroke-dasharray:7 93; stroke-dashoffset:0; opacity:.92;
  animation:atlas-along 4.7s linear infinite; animation-delay:calc(-.64s * var(--lane));
}
.atlas-page .route-field.has-route .atlas-trail-travel { animation-direction:reverse; }
@keyframes atlas-along { to { stroke-dashoffset:100; } }
.atlas-spot {
  position:absolute; left:var(--atlas-x); top:var(--atlas-y);
  transform:translate(-50%,-59%); text-align:center; white-space:nowrap;
}
button.atlas-spot,.atlas-step-button {
  display:grid; align-items:center; justify-items:center; gap:1px; min-width:64px; min-height:44px;
  padding:0 6px 3px; border:0; border-radius:9px; background:none; color:var(--map-ink);
}
.atlas-sprite {
  display:block; width:clamp(63px,7vw,101px); aspect-ratio:1; margin:-6px 0 -5px;
  background-image:url("media/atlas-landmarks.png"); background-size:400% 200%;
  background-position:var(--sprite-x) var(--sprite-y);
  filter:saturate(.92);
  transition:transform .18s cubic-bezier(.2,.75,.25,1);
}
.atlas-spot:hover .atlas-sprite,.atlas-spot:focus-visible .atlas-sprite { transform:translateY(-5px); }
.atlas-name {
  display:block; padding:3px 9px 4px; color:#2a3d38; font-size:clamp(11px,1vw,14px); font-weight:680;
  line-height:1.3; background:#fffdf2ee; border:1px solid color-mix(in srgb,var(--pin) 32%,#fffdf2);
  border-radius:99px; box-shadow:0 2px 5px #253a3510;
}
.atlas-spot:hover .atlas-name,.atlas-step-button:hover .atlas-name { border-color:var(--pin); }
button.atlas-origin { z-index:3; min-width:145px; transform:translate(-50%,-61%); }
.atlas-origin .atlas-sprite { width:clamp(91px,10.4vw,145px); margin-top:-24px; margin-bottom:-8px; }
.atlas-origin .atlas-name {
  min-width:142px; padding:8px 11px 9px; font-size:14px; text-align:center;
  border:1px solid #8f2928; color:#fffdf4; background:#a23934;
  box-shadow:0 0 0 5px #f7e6dc,0 6px 15px #80463d35;
}
.atlas-origin .atlas-name small { display:block; margin-top:2px; font-size:10px; color:#fff2df; font-weight:500; }
.atlas-origin:hover .atlas-name { background:#8d312e; }
.atlas-project { transform:translate(-50%,-36%); }
.atlas-stop { transform:translate(-50%,-29%); }
.atlas-step-dot {
  display:grid; place-items:center; width:29px; height:29px; border-radius:50%;
  border:2px solid #fffdf5; box-shadow:0 0 0 1px var(--pin);
  background:var(--pin); color:#fff; font-size:11px; font-weight:700; font-variant-numeric:tabular-nums;
}
.atlas-step-button { min-width:75px; }
.atlas-step-button[aria-current=step] .atlas-step-dot { box-shadow:0 0 0 3px #fffdf6,0 0 0 5px var(--pin); }
.atlas-step-button[aria-current=step] .atlas-name { border-color:var(--pin); }
.atlas-mini-row { display:flex; justify-content:center; gap:4px; }
.atlas-mini {
  padding:4px 5px; min-height:27px; color:#45625d; background:#f6faf1;
  border:1px solid #c9dbce; border-radius:5px; font-size:10px; line-height:1.2;
}
.atlas-mini:hover { background:#fff; border-color:var(--pin); }
.atlas-page [data-map-help] { font-size:11px; }
.atlas-page .route-field .route-deck { bottom:13px; border-color:#dce4dd; background:#fdfdfc; }
.atlas-page .route-field .route-dock { bottom:66px; }
.atlas-page .route-field.has-variants .route-dock { bottom:100px; }
.atlas-page .route-field.has-route .route-dock { bottom:111px; }
.atlas-page .route-field.has-route.has-variants .route-dock { bottom:145px; }
.atlas-page .route-field .route-ribbon { bottom:60px; }
.atlas-page .route-field.has-variants .route-ribbon { bottom:94px; }
.atlas-page .route-field .route-panel { background:var(--site-background); }
.atlas-page .route-field.panel-open .atlas-trail-travel,.atlas-page:has(.site-chat[open]) .atlas-trail-travel { animation-play-state:paused; }
.atlas-page .route-field.panel-open + .float-site-ai,
.atlas-page:has(.route-field.panel-open) .float-site-ai { display:none !important; }
.route-field[data-arrival] .atlas-landscape { animation:atlas-surface-in .45s cubic-bezier(.2,.73,.21,1) both; }
@keyframes atlas-surface-in { from { opacity:.5; transform:translate3d(0,5px,0); } }

@media (max-width:699px) {
  .atlas-page .route-field {
    display:flex; flex-direction:column; gap:11px; min-height:calc(100svh - var(--header));
    height:auto; padding:17px 11px 73px; overflow:clip;
  }
  .atlas-page .route-field .route-heading,.atlas-page .route-field.is-overview .route-heading {
    position:relative; inset:auto; order:0; display:flex; flex-wrap:wrap; align-items:baseline;
    gap:6px 12px; padding-inline:7px; min-height:57px;
  }
  .atlas-page .route-heading h1 { font-size:clamp(28px,8.1vw,41px); }
  .atlas-page .route-heading p { flex-basis:100%; font-size:12.5px; margin:0; max-width:none; }
  .atlas-page .route-heading .route-actions:has(button:not([hidden])) { margin-top:3px; }
  .atlas-page .route-field.panel-open .route-heading { opacity:1; }
  .atlas-page .route-field.panel-open .route-heading .route-actions { display:none; }
  .atlas-page .route-field .route-view {
    display:grid; order:1; position:relative; inset:auto;
    height:clamp(392px,132vw,530px); min-height:0; border-radius:13px; touch-action:pan-y;
  }
  .atlas-page .route-field.has-variants .route-view,.atlas-page .route-field.has-route .route-view,
  .atlas-page .route-field.has-route.has-variants .route-view { bottom:auto; }
  .atlas-spot { transform:translate(-50%,-61%); }
  .atlas-sprite { width:clamp(49px,15.8vw,74px); margin:0 0 -4px; }
  .atlas-name { padding:3px 6px; font-size:clamp(10px,2.95vw,12px); }
  .atlas-origin .atlas-sprite { width:clamp(73px,22vw,106px); margin-top:-10px; }
  .atlas-origin .atlas-name { min-width:124px; font-size:13px; }
  .atlas-project { transform:translate(-50%,-43%); }
  .atlas-stop { transform:translate(-50%,-22%); }
  .atlas-step-dot { width:27px; height:27px; }
  .atlas-step-button { min-width:72px; }
  .atlas-mini { min-height:30px; }
  .atlas-page .route-field .route-dock,.atlas-page .route-field.has-route .route-dock {
    position:static; inset:auto; order:2; justify-content:center; padding:0; margin:0;
  }
  .atlas-page .route-field .route-tools { justify-content:center; flex-wrap:wrap; gap:5px; }
  .atlas-page .route-tools button { min-height:40px; min-width:36px; border-radius:30px; font-size:11px; }
  .atlas-page .route-field :is(.route-legends,.route-ribbon,#route-help) { display:none; }
  .atlas-page .route-field .route-deck {
    position:static; inset:auto; order:3; padding:0; border:0; background:transparent;
  }
  .atlas-page .route-field.is-overview .route-deck { display:none; }
  .atlas-page .route-field .route-directions { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); padding:0; }
  .atlas-page .route-directions button { min-height:38px; font-size:11px; white-space:normal; }
  .atlas-page .route-direction-caption { grid-column:1/-1; text-align:left; margin:0; padding:4px 8px; }
  .atlas-page .route-field .route-panel {
    position:fixed; inset:auto 8px max(8px,env(safe-area-inset-bottom)); width:auto; max-height:82dvh;
    z-index:12; min-height:0; border-radius:13px; box-shadow:0 0 0 100vmax #23363822,0 12px 39px #20363c3d;
  }
  .atlas-page .route-field .route-panel-body { overscroll-behavior:contain; }
}
@media(prefers-reduced-motion:reduce) {
  .atlas-trail-travel,.route-field[data-arrival] .atlas-landscape { animation:none; }
  .atlas-sprite { transition:none; }
}
