/* MODULE map · "Where we are". Uses site.css tokens. Transform and opacity only, plus the one-off road draw (stroke-dashoffset). */

.map{background:var(--paper);padding-block:clamp(80px,11vw,150px);position:relative}
.map__grid{display:grid;grid-template-columns:minmax(0,.82fr) minmax(0,1.18fr);gap:clamp(30px,5vw,80px);align-items:center}
.map .h2{max-width:20ch}

.map__addr{display:grid;gap:2px;font-style:normal;margin-block-start:30px;padding-block:22px;border-block:1px solid var(--line)}
.map__k{font-size:.8rem;font-weight:700;color:var(--fire-deep)}
html[lang="en"] .map__k{letter-spacing:.14em;text-transform:uppercase;font-size:.72rem}
.map__v{font-size:clamp(1.15rem,1.7vw,1.4rem);font-weight:800;color:var(--ink);line-height:1.6}
.map__v--sub{font-size:1.02rem;font-weight:600;color:var(--muted)}
.map__cta{display:flex;flex-wrap:wrap;gap:12px;margin-block-start:28px}

/* the drawing */
.map__fig{min-width:0}
.map__frame{--mx:0;--my:0;position:relative;aspect-ratio:8/7;border-radius:var(--r);overflow:hidden;background:var(--paper-2);border:1px solid var(--line);box-shadow:0 30px 60px -40px rgba(60,30,5,.45);isolation:isolate}
.map__svg{display:block;width:100%;height:100%}
.map__note{margin-block-start:12px;font-size:.82rem;color:var(--muted)}

.map__dot{fill:#d9cbb9}
.map__river{fill:none;stroke:var(--ink);stroke-width:15;stroke-linecap:round;stroke-linejoin:round}
.map__river-line{fill:none;stroke:var(--paper-2);stroke-width:1.4;stroke-linecap:round;opacity:.38}
.map__road{fill:none;stroke:#cdbfad;stroke-width:3.5;stroke-linecap:round;stroke-linejoin:round}
.map__road--main{stroke:#b3a390;stroke-width:5.5}
.map__rider{fill:var(--amber);stroke:var(--ink);stroke-width:2}
.map__north-ring{fill:var(--paper-2);stroke:var(--line);stroke-width:1.5}
.map__north-arrow{fill:var(--ink)}
.map__tel{font-variant-numeric:tabular-nums;white-space:nowrap}
/* site.css mirrors button icons in RTL; a phone handset must not be mirrored */
html[dir="rtl"] .map .map__cta .btn .ic.map__ic{transform:none}

.map__label{font-family:var(--font);font-size:22px;font-weight:800;fill:var(--ink);stroke:var(--paper-2);stroke-width:7px;stroke-linejoin:round;paint-order:stroke fill}
.map__label--river{font-size:19px;font-weight:700;fill:var(--ink-3)}
html[lang="en"] .map__label--river{letter-spacing:.12em}

.map__pin-shadow{fill:var(--ink);opacity:.2}
.map__pin-body{fill:var(--fire);stroke:var(--ink);stroke-width:2;stroke-linejoin:round}
.map__pin-eye{fill:var(--paper)}
.map__pulse{fill:none;stroke:var(--fire);stroke-width:2;vector-effect:non-scaling-stroke;opacity:0;transform-box:fill-box;transform-origin:center;animation:mapPulse 2.8s cubic-bezier(.2,.6,.3,1) infinite}
.map__pulse--b{animation-delay:1.4s}
.motion-off .map__pulse,.map__frame.is-armed:not(.is-live) .map__pulse{animation-play-state:paused}
@keyframes mapPulse{0%{transform:scale(.6);opacity:.85}80%,100%{transform:scale(4);opacity:0}}

/* pointer parallax (values written by map.js; zero without it) */
.map__layer--back{transform:translate(calc(var(--mx) * -5px),calc(var(--my) * -5px))}
.map__layer--net{transform:translate(calc(var(--mx) * 6px),calc(var(--my) * 6px))}
.map__layer--pin{transform:translate(calc(var(--mx) * 11px),calc(var(--my) * 11px))}

/* draw-in: only when map.js has armed it, so the map is complete without JS */
.map__frame.is-armed .map__river,
.map__frame.is-armed .map__road{stroke-dasharray:1 2;stroke-dashoffset:1.08}
.map__frame.is-armed .map__river-line,
.map__frame.is-armed .map__north,
.map__frame.is-armed .map__label,
.map__frame.is-armed .map__riders,
.map__frame.is-armed .map__pulses{opacity:0}
.map__frame.is-armed .map__pin{opacity:0;transform:translateY(-22px)}

.map__frame.is-armed.is-in .map__river{stroke-dashoffset:0;transition:stroke-dashoffset 1.9s var(--ease)}
.map__frame.is-armed.is-in .map__road{stroke-dashoffset:0;transition:stroke-dashoffset 1.5s var(--ease) .3s}
.map__frame.is-armed.is-in .map__road:nth-child(2){transition-delay:.38s}
.map__frame.is-armed.is-in .map__road:nth-child(3){transition-delay:.46s}
.map__frame.is-armed.is-in .map__road:nth-child(4){transition-delay:.54s}
.map__frame.is-armed.is-in .map__road:nth-child(5){transition-delay:.62s}
.map__frame.is-armed.is-in .map__road:nth-child(6){transition-delay:.7s}
.map__frame.is-armed.is-in .map__road:nth-child(7){transition-delay:.78s}
.map__frame.is-armed.is-in .map__road:nth-child(8){transition-delay:.86s}
.map__frame.is-armed.is-in .map__road:nth-child(9){transition-delay:.94s}
.map__frame.is-armed.is-in .map__road:nth-child(10){transition-delay:1.02s}
.map__frame.is-armed.is-in .map__road:nth-child(11){transition-delay:1.1s}
.map__frame.is-armed.is-in .map__road:nth-child(12){transition-delay:1.18s}
.map__frame.is-armed.is-in .map__north{opacity:1;transition:opacity .8s var(--ease) 1.2s}
.map__frame.is-armed.is-in .map__river-line{opacity:.38;transition:opacity .8s var(--ease) 1.4s}
.map__frame.is-armed.is-in .map__pin{opacity:1;transform:none;transition:opacity .4s var(--ease) 1.5s,transform .8s var(--spring) 1.5s}
.map__frame.is-armed.is-in .map__label{opacity:1;transition:opacity .7s var(--ease) 1.9s}
.map__frame.is-armed.is-in .map__riders{opacity:1;transition:opacity .9s var(--ease) 2s}
.map__frame.is-armed.is-in .map__pulses{opacity:1;transition:opacity .6s var(--ease) 2.2s}

@media (max-width:900px){
  .map__grid{grid-template-columns:1fr}
}
/* one column, wide frame: a shorter crop keeps the map from filling the whole screen (pin and both labels stay inside) */
@media (min-width:561px) and (max-width:900px){
  .map__frame{aspect-ratio:16/10}
  .map__north{display:none} /* sits in the cropped strip at this ratio */
}
@media (max-width:760px){
  .map__cta .btn{flex:1 1 auto;justify-content:center}
}
/* small frames scale the drawing down, so the labels and strokes are drawn larger to stay legible */
@media (max-width:560px){
  .map__label{font-size:28px;stroke-width:8px}
  .map__label--river{font-size:24px}
  .map__rider{stroke-width:2.5}
  .map__road{stroke-width:4.5}
  .map__road--main{stroke-width:7}
}
@media (max-width:420px){
  .map__label{font-size:32px;stroke-width:9px}
  .map__label--river{font-size:27px}
}

@media (prefers-reduced-motion:reduce){
  .map__pulse{animation:none;opacity:0}
  .map__layer{transform:none}
}
