/* One straight runway connects the visit steps. Only the illustration moves. */
.journey-flight {
  --airplane-width: 164px;
  --airplane-height: 82px;
  margin-bottom: 36px;
}
.journey-flight .journey-tabs { border: 0; margin-bottom: 0; }
.journey-flight .journey-tab { padding-bottom: 16px; }
.journey-flight .journey-tab::after { display: none; }
.journey-flight .journey-tab > svg { display: none; }
.journey-flight .journey-tab[aria-selected="true"] .stop-number {
  background: var(--plum);
  color: var(--paper);
  box-shadow: 0 0 0 5px var(--paper), 0 0 0 6px var(--line);
}
.runway-scene { position: relative; height: 208px; overflow: hidden; }
.runway-sign {
  position: absolute; bottom: 98px; left: 28%; display: flex;
  align-items: center; gap: 12px; padding: 4px 10px;
  background: var(--sunny); border: 1px solid var(--plum); border-radius: 3px;
  font-size: 13px; font-weight: 650; line-height: 1.4;
}
.runway-sign span { font-size: 8px; letter-spacing: .1em; }
.runway-windsock { position: absolute; right: 15%; bottom: 85px; width: 61px; height: 64px; }
.runway-cloud { position: absolute; width: 86px; height: 42px; right: 3%; top: 13px; color: var(--lilac-light); }
.runway-spark { position: absolute; right: 27%; top: 23px; width: 20px; height: 20px; color: var(--apricot); }
.runway-track {
  position: absolute; inset-inline: 0; bottom: 27px; height: 48px;
  background: var(--plum); border-radius: 6px;
  border-block: 3px solid var(--lilac);
  box-shadow: 0 0 0 6px var(--paper), 0 0 0 7px var(--line);
}
.runway-track::before, .runway-track::after {
  content: ''; position: absolute; inset-inline: 10px; height: 5px;
  background: radial-gradient(circle at 3px 2.5px, var(--sunny) 2px, transparent 2.6px) 0 0 / 46px 5px repeat-x;
}
.runway-track::before { top: -12px; }
.runway-track::after { bottom: -12px; }
.runway-centerline {
  position: absolute; top: calc(50% - 1px); height: 2px; left: 110px; right: 104px;
  background: repeating-linear-gradient(90deg, var(--paper) 0 24px, transparent 24px 44px);
  opacity: .6;
}
.runway-threshold { position: absolute; top: 8px; bottom: 8px; width: 28px; background: repeating-linear-gradient(90deg, var(--paper) 0 3px, transparent 3px 7px); opacity: .85; }
.threshold-start { left: 17px; }
.threshold-end { right: 17px; }
.runway-number, .runway-end-arrow { position: absolute; top: 50%; transform: translateY(-50%); color: var(--paper); font-size: 18px; font-weight: 650; letter-spacing: .05em; }
.runway-number { left: 62px; }
.runway-end-arrow { right: 63px; font-size: 27px; font-weight: 400; }
/* Carrier percentages are relative to the available runway length, at any width. */
.runway-course { position: absolute; left: 22px; right: calc(var(--airplane-width) + 22px); bottom: 48px; height: var(--airplane-height); }
.runway-carrier { position: absolute; inset: 0; }
.runway-aircraft { position: relative; width: var(--airplane-width); height: var(--airplane-height); transform-origin: 74% 88%; }
.runway-airframe { position: relative; width: 100%; height: 100%; }
.runway-plane-shadow { position: absolute; bottom: 0; left: 22px; width: calc(var(--airplane-width) - 35px); height: 8px; border-radius: 50%; background: #1c1028; opacity: .25; }
.engine-smoke { position: absolute; width: 1px; height: 1px; pointer-events: none; }
.smoke-far { left: 45%; top: 50%; }
.smoke-near { left: 50%; top: 84%; }
.engine-smoke i { position: absolute; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; background: var(--lilac); border: 1px solid #6b577933; opacity: 0; }
.smoke-far i { width: 8px; height: 8px; background: var(--lilac-light); }
.runway-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: -6px; }
.runway-status { display: flex; align-items: center; gap: 9px; font-size: 12px; line-height: 1.4; color: var(--muted); }
.runway-beacon { width: 7px; height: 7px; border-radius: 50%; background: var(--apricot); border: 1px solid var(--plum); flex-shrink: 0; }
[data-flight="taxi"] .runway-beacon { background: var(--sunny); }
[data-flight="takeoff"] .runway-beacon { background: var(--lilac); }
.runway-motion { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 8px 0 8px 12px; min-height: 44px; background: transparent; font-size: 11px; white-space: nowrap; }
.runway-motion[aria-pressed="true"] .pause-icon { border: 0; width: 0; height: 0; border-top: 5px solid transparent; border-bottom: 5px solid transparent; border-left: 8px solid currentColor; }
/* Static illustrations remain meaningful with reduced motion or keyboard use. */
[data-flight="taxi"] .runway-carrier { transform: translateX(43%); }
[data-flight="takeoff"] .runway-carrier { transform: translateX(84%); }
[data-flight="takeoff"] .runway-aircraft { transform: translateY(-48%) rotate(-12deg); }
[data-flight="takeoff"] .runway-plane-shadow { opacity: .08; transform: scale(.65); }

@media (prefers-reduced-motion: no-preference) {
  .journey-flight:not(.runway-keyboard) .engine-smoke i { animation: engine-puff 1800ms linear infinite; }
  .journey-flight:not(.runway-keyboard) .engine-smoke i:nth-child(2) { animation-delay: -600ms; }
  .journey-flight:not(.runway-keyboard) .engine-smoke i:nth-child(3) { animation-delay: -1200ms; }
  .journey-flight:not(.runway-keyboard) .smoke-far i { animation-delay: -300ms; }
  .journey-flight:not(.runway-keyboard) .smoke-far i:nth-child(2) { animation-delay: -900ms; }
  .journey-flight:not(.runway-keyboard) .smoke-far i:nth-child(3) { animation-delay: -1500ms; }
  [data-flight="check-in"]:not(.runway-keyboard) .runway-airframe { animation: engine-idle 320ms linear infinite; }
  [data-flight="taxi"]:not(.runway-keyboard) .runway-carrier { animation: runway-taxi 5200ms linear infinite; }
  [data-flight="takeoff"]:not(.runway-keyboard) .runway-carrier { animation: runway-departure 6000ms linear infinite; }
  [data-flight="takeoff"]:not(.runway-keyboard) .runway-aircraft { animation: runway-liftoff 6000ms linear infinite; }
  [data-flight="takeoff"]:not(.runway-keyboard) .runway-plane-shadow { animation: runway-shadow 6000ms linear infinite; }
  /* Explicit pause overrides the more specific animation shorthands above. */
  .journey-flight.runway-asleep *, html.motion-paused .journey-flight * { animation-play-state: paused !important; }
}
@keyframes engine-puff {
  0% { opacity: 0; transform: translate(0, 0) scale(.9); }
  15% { opacity: .65; }
  70% { opacity: .35; }
  100% { opacity: 0; transform: translate(-49px, -15px) scale(2.3); }
}
@keyframes engine-idle { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-.65px); } }
@keyframes runway-taxi {
  0% { transform: translateX(0); opacity: 0; }
  7% { transform: translateX(0); opacity: 1; }
  82% { transform: translateX(100%); opacity: 1; }
  92%, 100% { transform: translateX(100%); opacity: 0; }
}
@keyframes runway-departure {
  0% { transform: translateX(0); opacity: 0; }
  7% { transform: translateX(0); opacity: 1; }
  26% { transform: translateX(8%); }
  45% { transform: translateX(26%); }
  64% { transform: translateX(54%); opacity: 1; }
  85% { transform: translateX(100%); opacity: 1; }
  94%, 100% { transform: translateX(100%); opacity: 0; }
}
@keyframes runway-liftoff {
  0%, 32% { transform: translateY(0) rotate(0); }
  48% { transform: translateY(-9%) rotate(-5deg); }
  66% { transform: translateY(-35%) rotate(-12deg); }
  85%, 100% { transform: translateY(-95%) rotate(-16deg); }
}
@keyframes runway-shadow {
  0%, 32% { opacity: .25; transform: scale(1); }
  66% { opacity: .13; transform: scale(.75); }
  85%, 100% { opacity: 0; transform: scale(.5); }
}
@media (hover: hover) and (pointer: fine) {
  .journey-flight .journey-tab:hover .stop-number { border-color: var(--plum); }
  .runway-motion:hover { text-decoration: underline; text-underline-offset: 4px; }
}
@media (max-width: 959px) { .journey-flight { --airplane-width: 144px; --airplane-height: 72px; } }
@media (max-width: 639px) {
  .journey-flight { --airplane-width: 112px; --airplane-height: 56px; margin-bottom: 26px; }
  .journey-flight .journey-tabs { gap: 12px; }
  .journey-flight .journey-tab { padding-block: 10px 6px; font-size: 13px; }
  .journey-flight .journey-tab small { font-size: 10px; }
  .runway-scene { height: 169px; }
  .runway-track { height: 38px; bottom: 26px; }
  .runway-course { left: 9px; right: calc(var(--airplane-width) + 9px); bottom: 42px; }
  .runway-track::before, .runway-track::after { background-size: 29px 5px; }
  .runway-centerline { left: 57px; right: 57px; background-size: auto; }
  .runway-threshold { width: 17px; top: 6px; bottom: 6px; background-size: auto; }
  .threshold-start { left: 8px; }
  .threshold-end { right: 8px; }
  .runway-number { font-size: 12px; left: 34px; }
  .runway-end-arrow { font-size: 18px; right: 33px; }
  .runway-sign { left: 8px; bottom: 107px; padding: 3px 7px; font-size: 11px; gap: 7px; }
  .runway-sign span { font-size: 6px; }
  .runway-windsock { width: 43px; height: 45px; right: 8%; bottom: 77px; }
  .runway-cloud { width: 53px; height: 28px; top: 2px; right: 2%; }
  .runway-spark { width: 14px; height: 14px; top: 16px; right: 29%; }
  .runway-status { font-size: 10px; gap: 6px; max-width: 190px; }
  .runway-motion { font-size: 10px; gap: 6px; padding-left: 4px; }
  .runway-footer { gap: 8px; }
  .engine-smoke i { width: 7px; height: 7px; }
  .smoke-far i { width: 6px; height: 6px; }
}
