/* The train is an itinerary guide, not a literal five-day railway route. */
.journey-route { display: block; padding: 25px 0 22px; scroll-margin-top: 116px; }
.route-heading, .route-caption { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.route-heading p { margin: 0; color: var(--bronze); font: 400 27px/1.3 var(--serif); }
.route-heading > span { white-space: nowrap; }
.route-stage { position: relative; height: 162px; margin-top: 25px; }
.route-rail { position: absolute; top: 55px; left: 10%; right: 10%; height: 5px; border-block: 1px solid #a18c6b; }
.rail-traveller { position: absolute; bottom: 5px; width: 0; height: 46px; }
.route-train { display: block; width: 80px; height: 46px; transform: translateX(-50%); color: var(--night); overflow: visible; }
.train-windows { fill: #f4d99a; transition: fill .65s ease, filter .65s ease; filter: drop-shadow(0 0 1.5px #d8b775); }
.journey-route[data-travelling="true"] .train-windows { fill: #a8bbc3; filter: none; }
.route-stops { position: relative; top: 49px; display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); margin: 0; padding: 0; list-style: none; }
.route-stop { position: relative; display: block; min-height: 87px; padding: 24px 2px 5px; color: #667379; text-align: center; text-decoration: none; border-radius: 3px; }
.route-stop::before { content: ""; position: absolute; top: 3px; left: 50%; width: 11px; height: 11px; transform: translateX(-50%); background: var(--pearl); border: 1px solid #a18c6b; border-radius: 50%; }
.route-stop[aria-current="step"] { color: var(--night); }
.route-stop[aria-current="step"]::before { background: #a18c6b; box-shadow: 0 0 0 4px var(--pearl); }
.route-stop strong { display: block; margin-top: 5px; font-size: 17px; font-weight: 400; line-height: 1.6; }
.route-stop small { display: block; font-size: 12px; letter-spacing: .06em; white-space: nowrap; }
.route-stop:focus-visible { outline: 2px solid var(--bronze); outline-offset: -2px; }
.route-preview { display: grid; grid-template-columns: 70px minmax(0,1fr) auto; gap: 28px; align-items: start; min-height: 180px; padding: 27px 30px; background: #eae4db; border-radius: 2px 28px 2px 2px; }
.route-preview-number { color: var(--bronze); }
.route-preview-number small { display: block; font-size: 12px; letter-spacing: .08em; }
.journey-route .route-preview-number b { display: block; font: 400 50px/1.2 var(--serif); }
.route-preview-copy { min-width: 0; }
.route-preview-copy .route-preview-place { margin: 0 0 8px; color: #786348; font-size: 12px; letter-spacing: .05em; }
.route-preview h3 { margin: 0 0 12px; font-family: var(--sans); font-size: 23px; font-weight: 400; line-height: 1.6; }
.route-preview-copy .route-preview-note { margin: 0; color: #59646a; font-size: 16px; line-height: 1.9; }
.route-preview-copy .route-preview-transport { margin: 13px 0 0; color: #667379; font-size: 12px; line-height: 1.9; }
.route-day-link { align-self: end; display: inline-flex; align-items: center; gap: 20px; min-height: 44px; color: #786348; font-size: 13px; white-space: nowrap; text-decoration: none; }
.route-caption { align-items: center; padding-top: 20px; }
.route-caption p { margin: 0; color: #667379; font-size: 12px; line-height: 1.9; }
.route-caption p span { display: block; font-size: 12px; letter-spacing: 0; }
.route-controls { display: flex; align-items: center; gap: 18px; flex-shrink: 0; }
.route-controls[hidden] { display: none; }
.route-controls button { min-height: 44px; padding: 8px 4px; border: 0; background: transparent; color: #786348; font: 400 13px/1.7 var(--sans); cursor: pointer; }
.route-controls button:disabled { color: #667379; cursor: default; }
.route-replay span { display: inline-block; margin-right: 5px; font-size: 20px; vertical-align: -1px; }
@media (hover: hover) and (pointer: fine) {
  .route-stop:hover strong, .route-day-link:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
  .route-controls button:not(:disabled):hover { color: var(--night); }
}
@media (max-width: 760px) {
  .rail-traveller { height: 37px; }
  .route-train { width: 64px; height: 37px; }
  .journey-route { padding: 22px 0 18px; }
  .route-heading { align-items: baseline; gap: 10px; flex-wrap: wrap; }
  .route-heading p { font-size: 25px; }
  .route-heading > span { font-size: 12px; }
  .route-stop strong { font-size: 16px; }
  .route-stop small { letter-spacing: 0; }
  .route-preview { grid-template-columns: 40px minmax(0,1fr); gap: 12px; min-height: 338px; padding: 24px 16px; }
  .journey-route .route-preview-number b { font-size: 36px; }
  .route-preview h3 { font-size: 20px; }
  .route-day-link { grid-column: 2; justify-self: start; }
  .route-caption { align-items: flex-start; flex-wrap: wrap; gap: 8px; }
  .route-controls { margin-left: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .train-windows { transition: none; filter: none; }
  .route-controls { display: none; }
}
