/* One continuous, original SVG moving route, with accessible stage controls. */
.mgjourney {
  --mg-ink: #1c2340;
  --mg-accent: #c45100;
  --mg-muted: #5b6174;
  --mg-line: #dce0e8;
  padding: clamp(2.6rem, 5vw, 4.2rem) 0;
  color: var(--mg-ink);
  background: #fff;
}
.mgjourney *, .mgjourney *::before, .mgjourney *::after { box-sizing: border-box; }
.mgjourney__heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 1.6rem; }
.mgjourney__heading > div { min-width: 0; }
.mgjourney__eyebrow { display: block; color: var(--mg-accent); font-size: .75rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; margin-bottom: .65rem; }
.mgjourney__heading h2 { color: var(--mg-ink); font-size: clamp(1.6rem, 2.8vw, 2.35rem); line-height: 1.22; letter-spacing: -.035em; font-weight: 700; margin: 0; max-width: 660px; }
.mgjourney__heading > p { max-width: 260px; margin: 0; color: var(--mg-muted); font-size: .88rem; line-height: 1.65; }
.mgjourney__map { border: 1px solid var(--mg-line); border-radius: 10px 10px 0 0; background: #fafbfc; min-width: 0; }
.mgjourney__endpoints { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: 1.15rem 1.5rem 0; color: var(--mg-muted); font-size: .67rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.mgjourney__endpoints > span { display: inline-flex; align-items: center; gap: .6rem; }
.mgjourney__endpoints .mgjourney__route-label { font-size: .62rem; color: #6e7482; letter-spacing: .065em; text-align: center; }
.mgjourney__pin { width: 7px; height: 7px; border: 1.5px solid var(--mg-ink); border-radius: 50%; }
.mgjourney__pin--end { border-color: var(--mg-accent); background: var(--mg-accent); }
.mgjourney__panorama { overflow-x: auto; overflow-y: hidden; scrollbar-width: thin; scrollbar-color: #c7cddb transparent; overscroll-behavior-x: contain; min-width: 0; }
.mgjourney__panorama:focus-visible { outline: 2px solid var(--mg-accent); outline-offset: -3px; }
.mgjourney__landscape { display: block; width: 100%; height: auto; min-width: 950px; color: #626e85; }
.mgjourney__terrain { fill: #f0f2f5; stroke: #e9edf2; }
.mgjourney__land-lines { stroke: #d8dee7; stroke-width: 1; }
.mgjourney__road-edge { stroke: #fff; stroke-width: 25; }
.mgjourney__road { stroke: #c3cbd8; stroke-width: 1.5; stroke-dasharray: 4 7; }
.mgjourney__route-progress { stroke: #cc5500; stroke-width: 2; opacity: .68; visibility: hidden; }
.mgjourney.is-ready .mgjourney__route-progress { visibility: visible; }
.mgjourney__shadow { stroke: none; fill: #1c23400c; }
.mgjourney__wall { fill: #fff; }
.mgjourney__side { fill: #e7ebf2; }
.mgjourney__active-face { fill: #e7ebf2; transition: fill .55s ease; }
.mgjourney__scene-piece.is-active { color: var(--mg-ink); }
.mgjourney__scene-piece.is-active .mgjourney__active-face { fill: #f0ded0; }
.mgjourney__roof-detail { stroke: #c8cfda; stroke-width: 1; }
.mgjourney__glass { fill: #dce4ed; stroke: #a1adbf; }
.mgjourney__door { fill: #7c879c; stroke: #7c879c; }
.mgjourney__door-lines { stroke: #b9c2d0; stroke-width: 1; }
.mgjourney__paper { fill: #fff; }
.mgjourney__route-ink { stroke: #cc5500; }
.mgjourney__container-lines { stroke: #8995a8; stroke-width: 1; }
.mgjourney__tyre { fill: #445069; stroke: #f7f8fb; stroke-width: 3; }
.mgjourney__air-route { stroke: #c5cedb; stroke-width: 1; stroke-dasharray: 3 6; }
.mgjourney__plane { transform: translate(0, 0); transition: transform 1s ease; }
.mgjourney__scene-piece.is-active .mgjourney__plane { transform: translate(7px, -3px); }
.mgjourney__scene-dot { fill: #fafbfc; stroke: #aeb9c9; transition: fill .3s ease, stroke .3s ease; }
.mgjourney__scene-piece.is-active .mgjourney__scene-dot { fill: var(--mg-accent); stroke: var(--mg-accent); }
.mgjourney__traveller { visibility: hidden; }
.mgjourney.is-ready .mgjourney__traveller { visibility: visible; }
.mgjourney.is-inview .mgjourney__landscape { animation: mgjourney-reveal .7s ease both; }
@keyframes mgjourney-reveal { from { opacity: .6; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
.mgjourney__panorama-hint { display: none; }
.mgjourney__stations { list-style: none; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .35rem; padding: 0 1rem 1rem; margin: -.25rem 0 0; }
.mgjourney__station { margin: 0; padding: 0; min-width: 0; }
.mgjourney__stop { display: flex; justify-content: center; align-items: center; gap: .65rem; min-height: 46px; padding: .6rem .35rem; border: 1px solid transparent; border-radius: 6px; color: var(--mg-ink); text-decoration: none; transition: border-color .2s ease, background-color .2s ease; -webkit-tap-highlight-color: transparent; }
.mgjourney__stop:hover { color: var(--mg-ink); background: #1c234005; }
.mgjourney__stop:focus-visible { outline: 2px solid var(--mg-accent); outline-offset: 2px; }
.mgjourney__marker { display: grid; place-items: center; flex: 0 0 25px; height: 25px; width: 25px; background: #fafbfc; border: 1px solid #bac1cf; border-radius: 50%; font-size: .61rem; font-weight: 700; letter-spacing: -.02em; }
.mgjourney__label { display: block; font-size: .75rem; font-weight: 600; line-height: 1.4; }
.mgjourney.is-ready .mgjourney__stop[aria-selected="true"] { color: var(--mg-accent); border-color: #cc550027; background: #fff; }
.mgjourney.is-ready .mgjourney__stop[aria-selected="true"] .mgjourney__marker { background: var(--mg-accent); border-color: var(--mg-accent); color: #fff; }
.mgjourney__station.is-passed .mgjourney__marker { color: var(--mg-accent); border-color: #cc550060; }
.mgjourney__details { border: 1px solid var(--mg-line); border-top: 0; border-radius: 0 0 10px 10px; background: #fff; }
.mgjourney__panel { display: grid; grid-template-columns: 65px minmax(0, 1.7fr) minmax(0, 1fr); gap: 1.5rem; align-items: center; padding: 1.4rem 1.65rem; scroll-margin-top: 130px; }
.mgjourney__panel + .mgjourney__panel { border-top: 1px solid var(--mg-line); }
.mgjourney.is-ready .mgjourney__panel + .mgjourney__panel { border-top: 0; }
.mgjourney__panel[hidden] { display: none; }
.mgjourney__panel:focus-visible { outline: 2px solid var(--mg-accent); outline-offset: -4px; border-radius: 0 0 10px 10px; }
.mgjourney__count { display: flex; align-items: baseline; gap: .25rem; align-self: start; white-space: nowrap; }
.mgjourney__count > span { color: var(--mg-accent); font-size: 2.15rem; font-weight: 500; line-height: 1.2; letter-spacing: -.065em; }
.mgjourney__count small { font-size: .62rem; color: var(--mg-muted); }
.mgjourney__description h3 { color: var(--mg-ink); font-size: 1rem; font-weight: 700; line-height: 1.45; letter-spacing: -.02em; margin: 0 0 .4rem; }
.mgjourney__description p, .mgjourney__outcome p { color: var(--mg-muted); font-size: .81rem; line-height: 1.7; margin: 0; }
.mgjourney__outcome { border-left: 1px solid var(--mg-line); padding-left: 1.5rem; }
.mgjourney__outcome > span { display: block; color: var(--mg-ink); font-size: .63rem; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; margin-bottom: .45rem; }
.mgjourney__foot { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 1rem; }
.mgjourney__foot p { margin: 0; font-size: .71rem; color: var(--mg-muted); line-height: 1.6; }
.mgjourney__foot a { color: var(--mg-ink); display: inline-flex; align-items: center; gap: 1rem; font-size: .77rem; font-weight: 700; text-decoration: none; }
.mgjourney__foot a:hover { color: var(--mg-accent); text-decoration: underline; text-underline-offset: 4px; }
.mgjourney__foot a:focus-visible { outline: 2px solid var(--mg-accent); outline-offset: 5px; }
@media (max-width: 991px) {
  .mgjourney__heading { display: block; }
  .mgjourney__heading > p { margin-top: .85rem; max-width: none; }
  .mgjourney__panorama-hint { display: flex; justify-content: space-between; gap: 1rem; padding: .35rem 1.2rem .6rem; margin: 0; color: #6b7487; font-size: .67rem; }
  .mgjourney__panorama-hint span { font-size: 1rem; line-height: 1; }
  .mgjourney__stations { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .25rem; padding: .4rem .75rem .85rem; margin: 0; }
  .mgjourney__panel { grid-template-columns: 52px minmax(0, 1fr); gap: .8rem 1.2rem; padding: 1.2rem; }
  .mgjourney__outcome { grid-column: 2; padding-left: 0; padding-top: .75rem; border-left: 0; border-top: 1px solid var(--mg-line); }
}
@media (max-width: 575px) {
  .mgjourney { padding: 2.6rem 0; }
  .mgjourney__heading { margin-bottom: 1.3rem; }
  .mgjourney__heading h2 { max-width: 340px; }
  .mgjourney__heading > p { font-size: .82rem; }
  .mgjourney__endpoints { font-size: .6rem; gap: .3rem; padding: 1rem .9rem .5rem; }
  .mgjourney__endpoints > span { gap: .35rem; }
  .mgjourney__endpoints .mgjourney__route-label { font-size: .5rem; letter-spacing: .01em; }
  .mgjourney__landscape { min-width: 950px; }
  .mgjourney__panorama-hint { padding-left: .9rem; padding-right: .9rem; font-size: .62rem; }
  .mgjourney__stations { padding: .3rem .45rem .65rem; }
  .mgjourney__stop { padding: .5rem .18rem; gap: .36rem; }
  .mgjourney__marker { width: 22px; height: 22px; flex-basis: 22px; font-size: .57rem; }
  .mgjourney__label { font-size: .63rem; }
  .mgjourney__panel { padding: 1.1rem .9rem; grid-template-columns: 36px minmax(0, 1fr); gap: .75rem; }
  .mgjourney__count { flex-direction: column; gap: .15rem; }
  .mgjourney__count > span { font-size: 1.8rem; }
  .mgjourney__count small { font-size: .56rem; }
  .mgjourney__description h3 { font-size: .91rem; }
  .mgjourney__description p, .mgjourney__outcome p { font-size: .77rem; line-height: 1.65; }
  .mgjourney__outcome > span { font-size: .59rem; margin-bottom: .35rem; }
  .mgjourney__foot { align-items: start; flex-direction: column; gap: .65rem; }
}
@media (prefers-reduced-motion: reduce) {
  .mgjourney__stop, .mgjourney__active-face, .mgjourney__scene-dot, .mgjourney__plane { transition: none; }
  .mgjourney.is-inview .mgjourney__landscape { animation: none; }
  .mgjourney__scene-piece.is-active .mgjourney__plane { transform: none; }
}
