.route-preview { display: none; }
.spatial-journey[data-mode="immersive"] .route-preview { display: block; }
.spatial-journey[data-mode="immersive"] .spatial-stage,
.spatial-journey[data-mode="immersive"] .spatial-caption,
.spatial-journey[data-mode="immersive"] .spatial-action { display: none; }
.journey-overview[data-journey-preview="immersive"] .journey-intro,
.journey-overview[data-journey-preview="immersive"] .journey-heading,
.journey-overview[data-journey-preview="immersive"] .journey-next-action,
.journey-overview[data-journey-preview="immersive"] .journey-scope-note,
.journey-overview[data-journey-preview="immersive"] .journey-legend,
.journey-overview[data-journey-preview="immersive"] .step-guide { display: none; }
.journey-overview[data-journey-preview="immersive"] .journey-home-grid { display: block; }
.journey-overview[data-journey-preview="immersive"] .journey-canvas { width: 100%; }

.route-preview {
  --route-ink: #eef8f7;
  color: var(--route-ink);
  border: 1px solid rgba(210, 244, 244, .15);
  border-radius: 19px;
  background: radial-gradient(ellipse at 48% -16%, rgba(101, 148, 157, .17), transparent 57%), #10191d;
  box-shadow: inset 0 1px rgba(255, 255, 255, .08), 0 26px 65px rgba(0, 0, 0, .19);
  overflow: hidden;
}
.route-preview-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; padding: 25px 32px 8px; }
.route-preview-head div { display: grid; gap: 4px; }
.route-preview-head small, .route-page-head small { color: #acc5c8; font-size: .65rem; letter-spacing: .15em; font-weight: 800; }
.route-preview-head strong { font-size: 1.35rem; font-weight: 620; }
.route-preview-head span, .route-preview-head p { margin: 0; color: #a6b9bc; font-size: .74rem; }
.route-preview-head p { max-width: 260px; text-align: right; }
.route-top { position: relative; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); min-height: 117px; margin: 0 32px; align-items: start; }
.route-rail { position: absolute; pointer-events: none; }
.route-top .route-rail {
  top: 24px; left: 6.8%; right: -13px; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(202, 232, 233, .4) 6%, rgba(204, 237, 239, .42) 96%, transparent);
  box-shadow: 0 0 8px rgba(178, 232, 237, .14);
}
.route-stop { position: relative; z-index: 1; display: grid; justify-items: center; align-content: start; gap: 9px; padding: 9px 5px; border: 0; background: none; color: #c3d5d7; cursor: pointer; }
.route-mark {
  display: grid; place-items: center; width: 31px; height: 31px;
  border: 1px solid rgba(198, 226, 229, .55); border-radius: 50%;
  background: radial-gradient(circle at 33% 25%, #3c555a, #142327 67%);
  box-shadow: inset 0 1px 3px rgba(255, 255, 255, .21), 0 0 0 5px #142025, 0 6px 12px #071013;
  color: #ecf7f7; font-size: .61rem; font-weight: 760;
  transition: transform .35s ease, box-shadow .35s ease, background .35s ease;
}
.route-stop-title { max-width: 132px; font-size: .63rem; line-height: 1.25; text-align: center; text-wrap: balance; }
.route-stop.is-optional .route-mark { border-style: dashed; }
.route-stop[data-active="true"] .route-mark { transform: translateY(-3px) scale(1.17); background: radial-gradient(circle at 31% 22%, #fff, #bedfe1 63%, #6ea1a8); box-shadow: 0 0 0 5px #182b30, 0 0 23px rgba(210, 251, 252, .68); color: #1c353a; }
.route-stop[data-active="true"] .route-stop-title { color: #fff; font-weight: 760; }
.route-stop:hover .route-mark { box-shadow: 0 0 0 5px #182b30, 0 0 17px rgba(210, 251, 252, .48); }
.route-stop:focus-visible { outline: 2px solid #e1f8fa; outline-offset: -2px; border-radius: 8px; }

.route-body { display: grid; grid-template-columns: minmax(0, 1fr) 171px; gap: 15px; margin: 0 26px; }
.route-page { min-width: 0; min-height: 590px; border: 1px solid rgba(208, 236, 238, .21); border-radius: 16px; background: linear-gradient(135deg, rgba(217, 238, 239, .1), rgba(28, 48, 53, .21) 62%), rgba(13, 27, 32, .83); box-shadow: inset 0 1px rgba(255, 255, 255, .09), 0 15px 42px rgba(0, 0, 0, .18); backdrop-filter: blur(15px); }
.route-page-head { display: flex; align-items: start; justify-content: space-between; gap: 20px; padding: 25px 29px 15px; }
.route-page-head h2 { margin: 5px 0 4px; font-size: clamp(1.3rem, 2vw, 1.9rem); font-weight: 570; }
.route-page-head p { margin: 0; color: #b4cacc; font-size: .78rem; }
.route-page-status { flex: none; padding: 7px 10px; border: 1px solid rgba(208, 237, 239, .29); border-radius: 40px; color: #cfebec; font-size: .68rem; }
.route-page-body { padding: 0 29px 19px; }
.route-page-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 29px 22px; border-top: 1px solid rgba(204, 233, 234, .15); padding-top: 15px; }
.route-page-actions button { border: 1px solid rgba(194, 224, 226, .3); border-radius: 9px; padding: 9px 13px; background: rgba(210, 238, 239, .07); color: #f0fafa; cursor: pointer; font-size: .73rem; }
.route-page-actions button:hover { background: rgba(210, 238, 239, .15); }
.route-page-actions button:disabled { opacity: .35; cursor: default; }
.route-page-actions span { color: #9ab3b6; font-size: .7rem; }
.route-side { position: relative; display: grid; grid-template-rows: repeat(7, minmax(0, 1fr)); padding: 8px 0; }
.route-side .route-rail { right: 18px; top: -15px; bottom: 9%; width: 2px; background: linear-gradient(rgba(211, 242, 243, .4), rgba(211, 242, 243, .12)); box-shadow: 0 0 9px rgba(207, 246, 247, .16); }
.route-side::before { content: ""; position: absolute; top: -93px; right: 18px; height: 80px; border-right: 1px solid rgba(211, 242, 243, .34); pointer-events: none; }
.route-side .route-stop { display: flex; flex-direction: row-reverse; align-items: center; gap: 13px; justify-items: end; padding: 0 3px 0 0; text-align: right; }
.route-side .route-mark { flex: none; width: 30px; height: 30px; }
.route-side .route-stop-title { text-align: right; max-width: 120px; }
.route-preview-foot { display: flex; justify-content: space-between; gap: 16px; padding: 14px 31px 18px; color: #8da8ad; font-size: .64rem; letter-spacing: .04em; }
.route-preview-foot small { font-size: inherit; }
@media (max-width: 1050px) {
  .route-top { overflow-x: auto; grid-template-columns: repeat(7, 128px); }
  .route-body { grid-template-columns: minmax(0, 1fr) 138px; }
  .route-side .route-stop-title { font-size: .6rem; }
}
@media (max-width: 760px) {
  .route-preview-head { align-items: start; flex-direction: column; }
  .route-preview-head p { text-align: left; }
  .route-body { display: flex; flex-direction: column-reverse; }
  .route-side { display: flex; overflow-x: auto; min-height: 100px; gap: 12px; }
  .route-side .route-rail, .route-side::before { display: none; }
  .route-side .route-stop { flex: none; width: 115px; flex-direction: column; gap: 5px; }
  .route-side .route-stop-title { text-align: center; }
  .route-page { min-height: 0; }
  .route-preview-foot { flex-wrap: wrap; }
}
