/* ------------------------------------------------------------------
  London City Airport (corporate-page inspired) skin
  Mobile-friendly version with touch-first location selection
--------------------------------------------------------------------- */

:root {
  --brand-ink: #393E8C;
  --brand-panel: #393E8C;
  --cta-bg: #E5E5E5;
  --cta-ink: #393E8C;

  --bg: #FFFFFF;
  --surface: #FFFFFF;
  --surface-2: #F2F2F2;
  --border: #D9D9D9;
  --ink: #000000;
  --muted: #5E6372;

  --radius-lg: 18px;
  --radius-md: 14px;
  --shadow-sm: 0 8px 18px rgba(11, 15, 20, 0.06);
  --shadow: 0 16px 36px rgba(11, 15, 20, 0.10);
  --focus: rgba(57, 62, 140, 0.28);

  --font: Gilroy, "Gilroy", "Century Gothic", "Avenir Next", Avenir, Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --h1: clamp(26px, 3vw, 40px);
  --h2: clamp(20px, 2.2vw, 28px);
  --h3: 16px;
  --body: 16px;
  --small: 13px;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--body);
  line-height: 1.5;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--cta-bg);
  color: var(--cta-ink);
  font-weight: 700;
  text-decoration: none;
  z-index: 9999;
}

.skip-link:focus {
  left: 12px;
}

.app {
  max-width: 1320px;
  margin: 0 auto;
  padding: 14px 18px 40px;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
  padding: 0 0 2px;
  margin-bottom: 0;
  height: 145px;
  overflow-x: visible;
  overflow-y: hidden;
}

.header-logo {
  flex-shrink: 0;
  padding-right: 30px;
  margin-right: 10px;
}

.logo-img {
  display: block;
  width: clamp(350px, 30.6vw, 490px);
  height: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ===== Journey progress stepper ===== */
.stepper {
  flex: 1;
  max-width: none;
  min-width: 0;
  overflow: visible;
  padding-left: 12px;
  padding-right: 24px;
}

.stepper-inner {
  position: relative;
  width: 100%;
  height: 28px;
  overflow: visible;
  background: transparent;
  border-radius: 10px;
}

.stepper-line {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  padding-left: 12px;
  height: 6px;
  overflow: hidden;
  z-index: 1;
}

.stepper-line img {
  width: 100%;
  height: 100%;
  object-fit: fill;
  display: block;
}

.stepper-line-filled {
  width: 0%;
  right: auto;
  background: linear-gradient(90deg, #13FE31 0%, #00CAF3 100%);
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.stepper-line-filled img {
  display: none;
}

.stepper-dot {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 23px;
  height: 23px;
  z-index: 1;
}

.stepper-dot[data-step="1"] {
  left: 0%;
}

.stepper-dot[data-step="2"] {
  left: 25%;
}

.stepper-dot[data-step="3"] {
  left: 50%;
}

.stepper-dot[data-step="4"] {
  left: 75%;
}

.stepper-dot[data-step="5"] {
  left: 100%;
}

.stepper-dot img {
  width: 100%;
  height: 100%;
  display: block;
}

.stepper-dot.is-filled img {
  content: url('/assets/progressbar/Circle Filled.svg');
}

.stepper-dot.is-current {
  opacity: 0;
}

.stepper-plane {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  left: 0%;
  z-index: 3;
  width: 47px;
  height: 47px;
  transition: left 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.status {
  min-height: 0;
  margin: 0 0 1px;
  text-align: center;
  color: var(--muted);
}

.status:empty {
  display: none;
}

.status:not(:empty) {
  display: block;
  background: #fff3cd;
  color: #7a3910;
  border: 1px solid #f5c842;
  border-radius: 6px;
  padding: 6px 14px;
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 16px;
}

.status:not(:empty)~.view:not(.hidden) {
  margin-top: 0;
}

.view {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  margin-top: -12px;
  box-shadow: none;
}

.hidden {
  display: none;
}

.view h2 {
  margin: 0 0 10px;
  text-align: left;
  font-size: 40px;
  color: #393E8C;
  font-weight: 700;
  letter-spacing: -0.01em;
}

#select-title {
  display: inline-flex;
  align-items: last baseline;
  gap: 1em;
}

.select-title-audio-icon {
  width: 28px;
  height: 28px;
  vertical-align: middle;
  flex-shrink: 0;
}

.view p {
  margin: 0 auto 10px;
  max-width: 72ch;
  text-align: left;
  font-size: 16px;
  line-height: 1.35;
  color: #6F6F6F;
  font-weight: 400;
}

.view p strong,
.view p b {
  font-weight: 700;
  color: inherit;
}

.calibration-red {
  color: #D32F2F;
  font-weight: 700;
}

.calibration-horniman-note {
  margin-top: 16px;
}

#view-horniman .actions {
  flex-direction: column;
  align-items: center;
}

#view-horniman .actions button {
  width: min(100%, 280px);
}

.horniman-map {
  width: 100%;
  margin: 0.5em auto;
  display: block;
}

@media (max-width: 992px) {
  .horniman-map {
    width: 100%;
    margin: 0.5em auto;
  }
}

#view-intro p,
#view-calibration p,
#view-background p,
#view-select p,
#view-playback p,
#view-horniman p {
  text-align: left;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

#view-intro {
  background: transparent;
  border: 0;
  box-shadow: none;
}

#view-intro h2,
#view-intro p {
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

#view-intro h2 {
  margin-bottom: 10px;
}

@media (min-width: 992px) {

  #view-intro:not(.hidden),
  #view-calibration:not(.hidden),
  #view-background:not(.hidden),
  #view-playback:not(.hidden),
  #view-horniman:not(.hidden),
  #view-select:not(.hidden) {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(360px, 1fr);
    column-gap: 24px;
    align-items: start;
  }

  #view-intro>.video,
  #view-calibration>.video,
  #view-background>.video,
  #view-playback>.video,
  #view-horniman>.video,
  #view-select>.map {
    grid-column: 1;
    grid-row: 1 / span 20;
    width: 100%;
    max-height: none;
    aspect-ratio: 16 / 9;
    object-fit: cover;
  }

  #view-intro> :not(.video),
  #view-calibration> :not(.video),
  #view-background> :not(.video),
  #view-playback> :not(.video),
  #view-horniman> :not(.video),
  #view-select> :not(.map) {
    grid-column: 2;
  }

  /* Calibration: keep natural source order in the right column.
    Do not force specific paragraphs into fixed grid rows. */
  #view-calibration>.video {
    grid-row: 1 / span 20;
  }

  #view-calibration>.actions {
    align-self: start;
    margin-top: 12px;
  }

  #view-select:not(.hidden) {
    grid-template-rows: auto auto auto auto auto auto;
  }

  #view-select>h2 {
    grid-row: 1;
  }

  #view-select>p:nth-of-type(1) {
    grid-row: 2;
  }

  #view-select>p:nth-of-type(2) {
    grid-row: 3;
  }

  #view-select>.map {
    grid-row: 1 / span 6;
  }

  #view-select>.direction-panel {
    grid-row: 4;
  }

  #view-select>.mobile-location-picker {
    grid-row: 5;
  }

  #view-select>.select-actions {
    grid-row: 6;
    align-self: start;
    margin-top: 12px;
  }
}

#view-intro .actions {
  justify-content: flex-end;
}

.muted {
  color: var(--muted);
  font-size: var(--small);
}

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 900px) {
  .grid {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

.card {
  border-radius: var(--radius-lg);
  padding: 16px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  box-shadow: var(--shadow-sm);
}

.card h3 {
  margin: 0 0 10px;
  font-size: var(--h3);
  color: var(--brand-ink);
  font-weight: 700;
}

.section-header {
  display: block;
}

.direction-panel {
  margin: 8px 0 14px;
}

.direction-title {
  margin: 0 0 10px;
  font-size: var(--h3);
  color: var(--brand-ink);
  font-weight: 700;
}

.instruction-text {
  text-align: left !important;
  max-width: none !important;
}

.selection-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
}

.selection {
  margin: 0;
  text-align: left;
  color: var(--brand-ink);
  font-weight: 700;
  font-size: 14px;
}

.selection span {
  display: block;
  font-weight: 700;
  color: var(--brand-ink);
}

.selection-change-btn {
  flex-shrink: 0;
  min-width: auto;
  padding: 6px 16px;
  font-size: 14px;
}

.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 14px;
}

button {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 12px 22px;
  min-height: 48px;
  cursor: pointer;
  font-family: var(--font);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: transform 0.08s ease, box-shadow 0.12s ease, filter 0.12s ease;
  -webkit-tap-highlight-color: transparent;
}

button:focus {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none !important;
  transform: none !important;
}

button.primary {
  background: var(--brand-panel);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

button.primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
  filter: brightness(1.03);
}

button.secondary {
  background: #fff;
  color: var(--cta-ink);
  border: 1px solid var(--brand-panel);
  box-shadow: none;
}

button.secondary:hover {
  transform: none;
  box-shadow: none;
  filter: none;
}

button.ambient {
  background: #fff;
  color: var(--brand-ink);
  border: 1px solid var(--brand-panel);
  box-shadow: none;
}

button.ambient:hover {
  transform: none;
  box-shadow: none;
}

button.ambient[data-ambient="high"] {
  background: #ffffff;
}

button.ambient[data-ambient="medium"] {
  background: #ffffff;
}

button.ambient[data-ambient="low"] {
  background: #ffffff;
}

button.ambient.is-selected {
  background: var(--brand-panel);
  color: #fff;
  border-color: var(--brand-panel);
  box-shadow: var(--shadow-sm);
}

button.direction {
  background: #fff;
  color: var(--brand-ink);
  border: 1px solid var(--brand-panel);
  box-shadow: none;
}

button.direction.is-selected {
  background: var(--brand-panel);
  color: #fff;
  border-color: var(--brand-panel);
  box-shadow: var(--shadow-sm);
}

.video {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: var(--shadow-sm);
}

.mobile-location-picker {
  margin: 0 0 14px;
  display: block;
  clear: both;
}

.map-style-control {
  display: flex;
  gap: 6px;
  padding: 6px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: 0 10px 20px rgba(11, 15, 20, 0.14);
}

.map-style-control .map-style-option {
  width: 32px;
  height: 32px;
  min-height: 0;
  padding: 0;
  border-radius: 8px;
  border: 2px solid transparent;
  background: #fff;
  box-shadow: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.map-style-control .map-style-option:hover {
  transform: none;
  box-shadow: none;
}

.map-style-control .map-style-option.is-selected {
  border-color: var(--brand-panel);
}

.map-style-control .map-style-icon {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  border: 1px solid var(--border);
  background-image:
    linear-gradient(0deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.2)),
    linear-gradient(90deg, rgba(255, 255, 255, 0.25) 0 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.25) 0 1px, transparent 1px),
    linear-gradient(135deg, #ccf2ff, #d6d9e8 55%, #e5e5e5);
  background-size: auto, 8px 8px, 8px 8px, cover;
  pointer-events: none;
}

.map-style-control .map-style-icon-grey {
  filter: grayscale(1) contrast(1.02);
}

.map-legend-control {
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  min-width: 170px;
}

.map-legend-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--brand-ink);
}

.map-legend-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  min-height: 0;
  font: inherit;
  cursor: pointer;
}

.map-legend-chevron {
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--brand-ink);
  border-bottom: 2px solid var(--brand-ink);
  transform: rotate(45deg);
  transition: transform 0.15s ease;
  margin-left: 8px;
}

.map-legend-control.is-collapsed .map-legend-chevron {
  transform: rotate(-45deg);
}

.map-legend-content {
  display: block;
  margin-top: 4px;
}

.map-legend-control.is-collapsed .map-legend-content {
  display: none;
}

.map-legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.map-legend-item+.map-legend-item {
  margin-top: 4px;
}

.map-legend-swatch {
  width: 22px;
  height: 3px;
  border-radius: 999px;
  background: var(--legend-color);
  display: inline-block;
}

.map-legend-swatch.is-dashed {
  background: repeating-linear-gradient(
    to right,
    var(--legend-color) 0,
    var(--legend-color) 8px,
    transparent 8px,
    transparent 14px
  );
  border-radius: 0;
}

.map-legend-label {
  font-size: 12px;
  color: var(--ink);
  line-height: 1.2;
}

.map-legend-info {
  font-size: 11px;
  color: var(--ink);
  opacity: 0.75;
  font-style: italic;
}

.link-plain {
  color: inherit;
  text-decoration: none;
}

.link,
.link:visited,
.link:hover,
.link:focus {
  color: var(--brand-ink);
}

.picker-label {
  display: block;
  margin-bottom: 8px;
  color: var(--brand-ink);
  font-weight: 700;
}

.location-select {
  width: 100%;
  min-height: 48px;
  border-radius: 12px;
  border: 1px solid rgba(57, 62, 140, 0.18);
  background: #fff;
  color: var(--ink);
  font: inherit;
  padding: 12px 14px;
  box-shadow: 0 8px 16px rgba(11, 15, 20, 0.06);
}

.location-select:focus {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.map {
  width: 100%;
  max-height: 62vh;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  position: relative;
  touch-action: manipulation;
  aspect-ratio: 16 / 9;
}

.map .leaflet-container {
  width: 100%;
  height: 100%;
  font-family: var(--font);
}

.map .leaflet-interactive {
  cursor: pointer;
}

.map .leaflet-tooltip.map-point-label {
  pointer-events: none;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 4px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  padding: 2px 6px;
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
}

.map .leaflet-tooltip.map-point-label:before {
  display: none;
}

.footer {
  text-align: center;
  margin-top: 16px;
}

.footer small {
  color: var(--muted);
  font-size: var(--small);
}

.hero-block {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  margin-top: 18px;
}

@media (min-width: 900px) {
  .hero-block {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

.hero-media {
  min-height: 260px;
  background: #ddd;
}

.hero-placeholder {
  width: 100%;
  height: 100%;
  min-height: 260px;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.02)),
    radial-gradient(800px 260px at 30% 30%, rgba(57, 62, 140, 0.20), transparent 60%),
    radial-gradient(700px 220px at 70% 40%, rgba(235, 237, 245, 0.85), transparent 55%),
    linear-gradient(180deg, #f2f2f2, #d9d9d9);
}

.hero-panel {
  background: var(--brand-panel);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.hero-panel-inner {
  width: 100%;
  max-width: 360px;
  text-align: left;
}

.hero-icon {
  font-size: 22px;
  opacity: 0.95;
  margin-bottom: 10px;
}

.hero-panel-title {
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #fff;
}

.hero-actions {
  justify-content: flex-start;
}

.hero-note {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.82);
  text-align: left;
  max-width: none;
}

@media (max-width: 767px) {
  .app {
    padding: 4px 12px 28px;
  }

  .header {
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 2px 0 2px;
    margin-bottom: 0;
    height: auto;
    overflow: visible;
  }

  .logo-img {
    width: 100%;
    max-width: 100%;
    height: auto;
  }

  .header-logo {
    padding-right: 0;
    margin-right: 0;
  }

  .stepper {
    width: 100%;
    max-width: none;
    padding-left: 2em;
    padding-right: 2.25em;
    margin: 2em;
  }

  .stepper-inner {
    height: 20px;
  }

  .stepper-plane {
    width: 32px;
    height: 32px;
  }

  .stepper-dot {
    width: 14px;
    height: 14px;
  }

  #view-intro {
    max-width: 100%;
  }

  #view-intro h2,
  #view-intro p {
    max-width: 100%;
  }

  .view {
    padding: 16px;
    margin-top: -8px;
  }

  .status:not(:empty)~.view:not(.hidden) {
    margin-top: 0;
  }

  #view-intro .actions {
    justify-content: flex-end;
    align-items: center;
  }
}

#view-intro .actions-stacked-mobile {
  align-items: flex-end;
}

#view-intro .actions button {
  width: auto;
  min-width: 120px;

  .actions-stacked-mobile,
  .ambient-actions,
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .actions-stacked-mobile button,
  .ambient-actions button,
  .hero-actions button {
    width: 100%;
  }

  .map {
    height: 280px;
  }

  .hero-media,
  .hero-placeholder {
    min-height: 200px;
  }
}

@media (hover: none) {
  .map .leaflet-interactive {
    transition: none;
  }
}



/* -------------------------------------------------
  Calibration page fixes
--------------------------------------------------- */

#view-calibration h2,
#view-calibration p,
#view-calibration ul,
#view-calibration li {
  text-align: left;
}

#view-calibration ul {
  margin: 0 0 12px 1.25rem;
  padding: 0;
  font-size: 16px;
  line-height: 1.35;
  color: #6F6F6F;
}

#view-calibration li {
  margin-bottom: 6px;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
}

.calibration-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

.calibration-nav-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-top: 0;
}

.calibration-demo-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  width: 100%;
  margin-top: 6px;
}

.info-circle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--brand-ink);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}

.info-popup {
  width: 100%;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 12px 16px;
  margin-top: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
}

.info-popup p {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
  color: #6F6F6F;
}

.calibration-nav-row button {
  min-width: 140px;
}

/* -------------------------------------------------
  Background page navigation
--------------------------------------------------- */

.background-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

.background-nav-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.background-nav-row button {
  min-width: 140px;
}

.background-actions>[hidden] {
  display: none !important;
}

/* Mobile adjustments */
@media (max-width:767px) {

  .calibration-nav-row,
  .background-nav-row {
    width: 100%;
    gap: 10px;
  }

  .calibration-nav-row button,
  .background-nav-row button {
    width: auto !important;
    min-width: 120px;
    flex: 0 1 auto;
  }

  .calibration-demo-row {
    width: 100%;
  }

  .calibration-demo-row button {
    width: auto !important;
  }
}


/* Calibration text alignment hard override */
#view-calibration p {
  text-align: left;
  max-width: none;
  margin: 0 0 10px;
}

#view-calibration p strong {
  text-align: left !important;
}

#view-calibration ul,
#view-calibration li {
  text-align: left !important;
}

#view-calibration ul {
  list-style-position: outside;
}


/* -------------------------------------------------
  Select page navigation
---------------------------------------------------- */

.select-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
  clear: both;
}

.select-nav-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.select-nav-row button {
  min-width: 140px;
}

@media (max-width:767px) {
  .select-nav-row {
    width: 100%;
    gap: 10px;
  }

  .select-nav-row button {
    width: auto !important;
    min-width: 120px;
    flex: 0 1 auto;
  }
}


/* -------------------------------------------------
  Playback page navigation
---------------------------------------------------- */

.playback-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

.playback-nav-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.playback-nav-row button {
  min-width: 140px;
  flex: 0 0 auto;
}

@media (max-width:767px) {
  .playback-nav-row {
    width: 100%;
    gap: 10px;
  }

  .playback-nav-row button {
    width: auto !important;
    min-width: 120px;
    flex: 0 1 auto;
  }
}

/* -------------------------------------------------
  Background page option buttons
---------------------------------------------------- */

#view-background .ambient-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  width: 100%;
  margin-top: 14px;
}

#view-background .ambient-actions .ambient {
  width: min(100%, 280px);
  flex: 0 0 auto;
  padding: 0 24px;
  font-size: 16px;
  line-height: 1.25;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width:768px) {
  #view-background .background-actions {
    margin-top: 28px;
  }
}

/* -------------------------------------------------
  Select page runway buttons
---------------------------------------------------- */

#view-select .direction-actions {
  justify-content: flex-start;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

#view-select .direction-actions .direction {
  flex: 0 0 auto;
}

@media (max-width:991px) {
  #view-select:not(.hidden) {
    display: flex !important;
    flex-direction: column !important;
  }

  #view-select>h2 {
    order: 1 !important;
  }

  #view-select>p:nth-of-type(1) {
    order: 2 !important;
  }

  #view-select>p:nth-of-type(2) {
    order: 3 !important;
  }

  #view-select>.map {
    order: 4 !important;
  }

  #view-select>.direction-panel {
    order: 5 !important;
  }

  #view-select>.mobile-location-picker {
    order: 6 !important;
    display: block !important;
    margin-bottom: 0 !important;
  }

  #view-select>.select-actions {
    order: 7 !important;
    display: flex !important;
    flex-direction: column !important;
    margin-top: 12px !important;
  }
}


/* -------------------------------------------------
  Footer + side panel (strictly additive)
---------------------------------------------------- */

.site-footer {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
}

.footer-copyright,
.footer-meta {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
  color: var(--muted);
  text-align: left;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
}

.footer-link {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  min-height: 0;
  border-radius: 0;
  cursor: pointer;
  color: var(--brand-ink);
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: underline;
  box-shadow: none;
}

.footer-link:hover {
  transform: none;
  box-shadow: none;
  filter: none;
}

.footer-link:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

.info-overlay {
  position: fixed;
  inset: 0;
  background: rgba(17, 20, 34, 0.38);
  z-index: 999;
}

.info-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: min(520px, 92vw);
  height: 100dvh;
  background: #fff;
  box-shadow: -12px 0 28px rgba(11, 15, 20, 0.18);
  z-index: 1000;
  overflow: hidden;
}

.info-overlay[hidden],
.info-panel[hidden],
.info-content[hidden] {
  display: none !important;
}

.info-panel-inner {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.info-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 20px 14px;
  border-bottom: 1px solid var(--border);
}

.info-panel-header h2 {
  margin: 0;
  font-size: 28px;
  line-height: 1.15;
  color: #393E8C;
}

.info-panel-close {
  flex-shrink: 0;
  min-width: 110px;
}

.info-panel-body {
  padding: 20px;
  overflow: auto;
}

.info-panel-body p,
.info-panel-body li {
  font-size: 16px;
  line-height: 1.5;
  color: #6F6F6F;
  overflow-wrap: break-word;
  word-break: break-word;
}

.info-panel-body h3 {
  margin: 22px 0 8px;
  font-size: 18px;
  line-height: 1.3;
  color: #727272;
}

.info-panel-body ul {
  margin: 0 0 14px 1.25rem;
  padding: 0;
}

.panel-open {
  overflow: hidden;
}



@media (max-width: 767px) {
  .site-footer {
    margin-top: 20px;
    padding-top: 16px;
  }

  .footer-nav {
    gap: 12px 16px;
  }

  .info-panel {
    width: 100vw;
  }

  .info-panel-header {
    padding: 16px 16px 12px;
  }

  .info-panel-body {
    padding: 16px;
  }

  .info-panel-body p,
  .info-panel-body li {
    font-size: 16px;
  }
}