/* ══════════════════════════════════════
   SCROLL TRAIL — winding mountain path
   down the left edge of the full page
   ══════════════════════════════════════ */

#scroll-trail {
  position: fixed;
  left: 28px;
  top: 0;
  width: 48px;
  height: 100vh;
  z-index: 200;
  pointer-events: none;
}

/* the SVG path container */
#trail-svg {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  overflow: visible;
}

/* the path itself — drawn via stroke-dashoffset */
#trail-path-bg {
  fill: none;
  stroke: rgba(255,255,255,0.08);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 6 8;
}

#trail-path-fg {
  fill: none;
  stroke: url(#trailGrad);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  /* dasharray set by JS to path total length */
  transition: stroke-dashoffset 0.05s linear;
  will-change: stroke-dashoffset;
  filter: drop-shadow(0 0 4px rgba(201,168,76,0.6));
}

/* hiker dot that travels the path */
#trail-hiker {
  position: absolute;
  width: 22px;
  height: 22px;
  pointer-events: none;
  transform: translate(-50%, -50%);
  will-change: transform;
  transition: opacity 0.3s;
}
#trail-hiker svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 6px rgba(201,168,76,0.7));
}

/* section stop markers on the trail */
.trail-stop {
  position: absolute;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.trail-stop.visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.trail-stop-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--gold, #c9a84c);
  border: 2px solid rgba(255,255,255,0.5);
  box-shadow: 0 0 8px rgba(201,168,76,0.7);
  flex-shrink: 0;
}

.trail-stop-label {
  background: rgba(10,20,15,0.75);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(201,168,76,0.3);
  color: rgba(255,255,255,0.85);
  font-family: 'Lato', sans-serif;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 20px;
  white-space: nowrap;
  pointer-events: none;
}

/* progress percentage badge */
#trail-pct {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Playfair Display', serif;
  font-size: 0.65rem;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.08em;
  white-space: nowrap;
  transition: color 0.3s;
}

/* hide on very small screens / mobile */
@media (max-width: 900px) {
  #scroll-trail { display: none; }
}
