/* ==========================================================================
   JoyoTour — shared base
   Reset + a few primitives the three style variants all rely on.
   Each variant keeps its own visual identity in its own stylesheet.
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body, h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd, ul, ol { margin: 0; }

ul[class], ol[class] { list-style: none; padding: 0; }

img, video { max-width: 100%; display: block; height: auto; }

input, button, textarea, select { font: inherit; color: inherit; }

button { background: none; border: 0; cursor: pointer; padding: 0; }

a { color: inherit; text-decoration: none; }

:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: #111; color: #fff; padding: 12px 18px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- scroll reveal (respects reduced motion) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1);
}
.reveal.is-in { opacity: 1; transform: none; }

.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }
.reveal[data-delay="5"] { transition-delay: .40s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
}

/* ---------- route map component shell ---------- */
.jr-map { position: relative; width: 100%; }
.jr-wrap { display: flex; flex-direction: column; gap: 18px; }
.jr-svg { position: relative; border-radius: 16px; overflow: hidden; }
.jr-svg-el { display: block; width: 100%; height: auto; }
.jr-node { cursor: pointer; transform-box: fill-box; transform-origin: center; }
.jr-pulse { animation: jrPulse 2.6s ease-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes jrPulse {
  0%   { transform: scale(.85); opacity: .75; }
  70%  { transform: scale(1.35); opacity: 0; }
  100% { transform: scale(1.35); opacity: 0; }
}
.jr-bar { display: flex; flex-wrap: wrap; gap: 10px; }
.jr-chip {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  padding: 10px 14px; border-radius: 12px;
  border: 1px solid rgba(0,0,0,.12);
  background: rgba(255,255,255,.6);
  text-align: left; transition: all .2s ease;
}
.jr-chip-name { font-weight: 700; font-size: 14px; line-height: 1.2; }
.jr-chip-sub { font-size: 11.5px; opacity: .62; letter-spacing: .01em; }
.jr-chip:hover { transform: translateY(-2px); }
.jr-chip.is-on { border-color: currentColor; box-shadow: 0 6px 18px -8px rgba(0,0,0,.35); }
.jr-note { font-size: 11.5px; opacity: .5; line-height: 1.5; }
