/* 움직이는 픽업 지도 (SVG 선·점) — guide.html 「전철」 탭. 움직임 줄이기 설정이면 정지 그림으로 */
.route9 {
  margin: 0 0 20px;
}
.route9-head {
  text-align: center;
  margin-bottom: clamp(16px, 2.5vw, 28px);
}
.route9-head h2 {
  font-size: clamp(26px, 3.4vw, 40px);
  line-height: 1.22;
  letter-spacing: -0.03em;
  margin: 0;
}
.route9-map {
  position: relative;
  max-width: 920px;
  margin: 0 auto;
  padding: clamp(8px, 2vw, 20px);
  border-radius: 20px;
  background: linear-gradient(180deg, #eef6f8 0%, #f8fbfc 100%);
  border: 1px solid var(--line);
}
.route9-map:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}
.route9-map svg {
  display: block;
  width: 100%;
  height: auto;
}
/* 선 */
.route9-base {
  fill: none;
  stroke: #cfdde6;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 0.012 0.018;
}
.route9-trail {
  fill: none;
  stroke: url(#route9-grad);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}
.route9-map.is-run .route9-trail {
  animation: route9-draw 6s linear forwards;
}
.route9-map.is-static .route9-trail {
  stroke-dashoffset: 0;
}
@keyframes route9-draw {
  to {
    stroke-dashoffset: 0;
  }
}
/* 정류장 */
.route9-stop .route9-ring {
  fill: #fff;
  stroke: #cfdde6;
  stroke-width: 3;
  transition:
    stroke 0.4s,
    stroke-width 0.4s;
}
.route9-stop path,
.route9-stop rect {
  fill: var(--navy);
}
.route9-stop .route9-glass,
.route9-stop .route9-snow {
  fill: #9de3ed;
}
.route9-stop .route9-sign {
  fill: #0ab3c8;
}
.route9-stop .route9-wheel {
  fill: #566774;
}
.route9-stop.is-on .route9-ring,
.route9-map.is-static .route9-stop .route9-ring {
  stroke: var(--blue);
  stroke-width: 5;
}
/* 픽업차(점) */
.route9-van-dot {
  fill: var(--blue);
  stroke: #fff;
  stroke-width: 3;
}
.route9-van-glow {
  fill: rgba(9, 104, 174, 0.18);
}
.route9-map:not(.is-run):not(.is-static) .route9-van {
  opacity: 0;
}
.route9-map.is-static .route9-van {
  transform: translate(656px, 92px);
}
.route9-map.is-static .route9-van animateMotion {
  display: none;
}
/* 다시 보기 */
.route9-replay {
  position: absolute;
  right: 12px;
  bottom: 10px;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font: inherit;
  font-size: 14px;
  color: var(--navy);
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s;
}
.route9-map.is-done .route9-replay {
  opacity: 1;
}
.route9-map.is-static .route9-replay {
  display: none;
}
/* 세 걸음 글 — 점이 닿을 때 켜진다 */
.route9-steps {
  list-style: none;
  max-width: 920px;
  margin: clamp(14px, 2vw, 22px) auto 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.route9-steps li {
  position: relative;
  padding: 16px 16px 16px 52px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  opacity: 0.45;
  transform: translateY(6px);
  transition:
    opacity 0.5s ease,
    transform 0.5s ease,
    border-color 0.5s;
}
.route9-steps li.is-on,
.route9-map.is-static ~ .route9-steps li,
.route9.is-static .route9-steps li {
  opacity: 1;
  transform: none;
}
.route9-steps li.is-on {
  border-color: var(--blue);
}
.route9-steps li b {
  position: absolute;
  left: 14px;
  top: 16px;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font-size: 14px;
  display: grid;
  place-items: center;
}
.route9-steps h3 {
  margin: 0 0 6px;
  font-size: 17px;
}
.route9-steps p {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
}
.route9-steps strong {
  color: var(--ink);
}
.route9-note {
  margin: 14px 0 0;
  text-align: center;
  font-size: 15px;
}
@media (max-width: 759px) {
  .route9-steps {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .route9-steps li {
    padding: 14px 14px 14px 50px;
  }
  .route9-steps p {
    font-size: 14px;
  }
  .route9-map {
    padding: 6px 6px 40px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .route9-map.is-run .route9-trail {
    animation: none;
    stroke-dashoffset: 0;
  }
  .route9-steps li {
    transition: none;
  }
}

/* 지도 아래 세 지점 이름 — 점이 닿으면 켜진다 */
.route9-labels {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  text-align: center;
}
.route9-labels li {
  display: grid;
  gap: 2px;
  opacity: 0.45;
  transition: opacity 0.5s ease;
}
.route9-labels li.is-on,
.route9.is-static .route9-labels li {
  opacity: 1;
}
.route9-labels b {
  font-size: 15px;
  color: var(--navy, #123c65);
}
.route9-labels span {
  font-size: 14px;
  color: var(--muted, #566774);
}
.route9-map {
  max-width: none;
}
@media (max-width: 759px) {
  .route9-map {
    padding: 6px 6px 40px;
  }
  .route9-labels b {
    font-size: 14px;
  }
  .route9-labels span {
    font-size: 13px;
  }
}
