:root {
  color-scheme: light;
  --ink: #122033;
  --muted: #5d6a7d;
  --bg: #f5efe4;
  --bg-strong: #fffaf2;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --navy: #08223c;
  --blue: #0f5ca8;
  --gold: #c8821f;
  --green: #14715d;
  --line: rgba(18, 32, 51, 0.12);
  --shadow: 0 22px 55px rgba(8, 34, 60, 0.12);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 14px;
  --page: 1240px;
  --container: 1240px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 104px;
}

body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, var(--bg-strong) 0%, var(--bg) 36%, #eef3f7 100%);
  font-family: "Manrope", sans-serif;
  line-height: 1.62;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(rgba(8, 34, 60, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8, 34, 60, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(180deg, black, transparent 80%);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid rgba(200, 130, 31, 0.65);
  outline-offset: 4px;
}

.sr-only,
.skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  position: fixed;
  z-index: 200;
  top: 1rem;
  left: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
}

.section,
.header-inner,
.mobile-menu,
.site-footer {
  width: min(var(--page), calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 250, 242, 0.94);
  backdrop-filter: blur(16px);
}

.header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  min-width: 0;
}

.brand img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  flex: none;
}

.brand span {
  display: grid;
  gap: 0.08rem;
}

.brand strong {
  font-family: "Archivo", sans-serif;
  font-size: 1rem;
  letter-spacing: -0.01em;
}

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

.desktop-nav {
  display: none;
  align-items: center;
  gap: 0.2rem;
  font-weight: 800;
}

.desktop-nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.55rem 0.72rem;
  color: #26364c;
}

.desktop-nav a:hover {
  background: rgba(15, 92, 168, 0.08);
  color: var(--blue);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.menu-button {
  width: 48px;
  height: 48px;
  display: inline-grid;
  place-content: center;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
}

.menu-button span:not(.sr-only) {
  width: 20px;
  height: 2px;
  border-radius: 99px;
  background: var(--navy);
}

.mobile-menu {
  display: grid;
  gap: 0.35rem;
  padding: 0 0 1rem;
}

.mobile-menu a {
  min-height: 44px;
  display: flex;
  align-items: center;
  border-radius: 14px;
  padding: 0.7rem 0.85rem;
  background: rgba(255, 255, 255, 0.82);
  font-weight: 800;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0.8rem 1.12rem;
  font-weight: 900;
  line-height: 1;
}

.button--primary {
  background: var(--gold);
  color: #111827;
  box-shadow: 0 12px 24px rgba(200, 130, 31, 0.22);
}

.button--primary:hover {
  background: #d99527;
}

.button--secondary {
  background: var(--surface);
  color: var(--navy);
  border-color: var(--line);
}

.button--compact {
  min-height: 44px;
  padding-inline: 0.95rem;
}

.button--full {
  width: 100%;
}

.hero {
  display: grid;
  gap: 1.5rem;
  padding: clamp(2rem, 5vw, 5.5rem) 0 1rem;
}

.hero__content {
  display: grid;
  align-content: center;
  gap: 1rem;
}

.eyebrow {
  margin: 0;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4 {
  color: var(--navy);
  font-family: "Archivo", sans-serif;
  line-height: 1.06;
  letter-spacing: -0.035em;
}

h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(2.45rem, 6vw, 5.1rem);
}

h2 {
  margin: 0;
  font-size: clamp(1.75rem, 3vw, 2.55rem);
}

h3 {
  margin: 0 0 0.65rem;
  font-size: 1.25rem;
}

h4 {
  margin: 1rem 0 0.45rem;
  font-size: 1rem;
}

p {
  margin: 0 0 0.85rem;
}

.hero__lead {
  max-width: 740px;
  color: #334155;
  font-size: clamp(1.08rem, 2vw, 1.32rem);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.trust-line,
.affiliate-note,
.verified,
caption {
  color: var(--muted);
  font-size: 0.92rem;
}

.hero__panel {
  position: relative;
}

.hero__panel::before {
  content: "";
  position: absolute;
  inset: -18px;
  z-index: -1;
  border-radius: 36px;
  background:
    linear-gradient(135deg, rgba(8, 34, 60, 0.92), rgba(15, 92, 168, 0.86)),
    url("/assets/support/station-departure.jpg") center/cover;
}

.search-card {
  display: grid;
  gap: 0.9rem;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow);
}

.search-card__top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.search-card__top strong {
  color: var(--navy);
}

label,
.filter-label {
  display: grid;
  gap: 0.35rem;
  color: #26364c;
  font-weight: 900;
}

input,
select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.72rem 0.85rem;
  background: #fff;
  color: var(--ink);
}

.answer-box,
.method-card,
.contents-card {
  display: grid;
  gap: 1.2rem;
  margin-top: 1.5rem;
  padding: clamp(1.1rem, 3vw, 1.6rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 18px 45px rgba(8, 34, 60, 0.08);
}

.method-card {
  background: #08223c;
  color: #e6edf5;
}

.method-card h2,
.method-card .eyebrow {
  color: #fff;
}

.method-card .verified,
.method-card p {
  color: #d8e4ef;
}

.badge {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 0.75rem;
  border-radius: 999px;
  padding: 0.35rem 0.65rem;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-weight: 900;
  font-size: 0.8rem;
}

.contents-drawer summary {
  min-height: 44px;
  cursor: pointer;
  font-weight: 900;
}

.contents-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 0.55rem;
}

.contents-grid a,
.toc a {
  min-height: 42px;
  display: flex;
  align-items: center;
  border-radius: 12px;
  padding: 0.58rem 0.7rem;
  background: var(--surface-soft);
  color: #26364c;
  font-weight: 800;
}

.contents-grid a:hover,
.toc a:hover {
  color: var(--blue);
  background: rgba(15, 92, 168, 0.08);
}

.page-grid {
  display: grid;
  gap: 1.4rem;
  padding-block: 1.8rem 3rem;
}

.toc {
  display: none;
}

.content-flow {
  display: grid;
  gap: clamp(2rem, 4vw, 3.5rem);
}

.content-flow > section {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: clamp(1rem, 3vw, 1.5rem);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 15px 40px rgba(8, 34, 60, 0.07);
}

.section-heading {
  max-width: 900px;
  margin-bottom: 1.2rem;
}

.section-heading p {
  color: #334155;
}

.filter-input {
  margin: 0.3rem 0 1rem;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
}

.data-table {
  width: 100%;
  min-width: 780px;
  border-collapse: collapse;
}

.data-table caption {
  caption-side: top;
  padding: 0.8rem 1rem;
  text-align: left;
  background: #f8fafc;
}

.data-table th,
.data-table td {
  padding: 0.9rem 1rem;
  border-top: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.data-table th {
  background: #f1f5f9;
  color: var(--navy);
  font-size: 0.84rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.data-table tbody tr:hover {
  background: #fbfdff;
}

.price-table {
  min-width: 1060px;
}

.price-table th:nth-child(2),
.price-table td:nth-child(2),
.price-table th:nth-child(3),
.price-table td:nth-child(3) {
  white-space: nowrap;
}

.table-cta,
.text-cta,
.compact-grid a {
  color: var(--blue);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cta-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
  padding: 1rem;
  border-radius: var(--radius-lg);
  background: #eef6ff;
}

.cta-strip strong,
.cta-strip span {
  display: block;
}

.route-notes,
.operator-feature-grid,
.compact-grid,
.faq-grid {
  display: grid;
  gap: 1rem;
}

.route-notes article,
.operator-card,
.compact-grid article,
.callout,
.faq-grid details {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1rem;
  background: #fff;
}

.operator-card img {
  width: 120px;
  height: 60px;
  object-fit: contain;
  margin-bottom: 1rem;
}

.mini-warning,
.callout {
  background: #fff7e8;
  border-color: rgba(200, 130, 31, 0.28);
}

.warning {
  color: #8a4c0f;
  font-weight: 900;
}

.step-list {
  display: grid;
  gap: 0.75rem;
  padding-left: 1.25rem;
}

.step-list li,
.callout li {
  padding-left: 0.2rem;
}

.faq-grid details {
  padding: 0;
  overflow: hidden;
}

.faq-grid summary {
  min-height: 54px;
  display: flex;
  align-items: center;
  padding: 0.9rem 1rem;
  color: var(--navy);
  cursor: pointer;
  font-weight: 900;
}

.faq-grid details p {
  padding: 0 1rem 1rem;
}

.site-footer {
  padding: 2.2rem 0 7rem;
}

.footer-grid {
  display: grid;
  gap: 1.2rem;
  padding: 1.2rem;
  border-radius: var(--radius-xl);
  background: var(--navy);
  color: #d9e7f2;
}

.footer-grid h2 {
  margin: 0 0 0.65rem;
  color: #fff;
  font-size: 1rem;
}

.footer-grid a {
  display: block;
  min-height: 34px;
  color: #e8f1f9;
  font-weight: 800;
}

.footer-grid .brand strong,
.footer-grid .brand small {
  color: #fff;
}

.mobile-sticky-cta {
  position: fixed;
  z-index: 120;
  right: 0.75rem;
  bottom: max(0.75rem, env(safe-area-inset-bottom));
  left: 0.75rem;
  display: flex;
  gap: 0.55rem;
  align-items: center;
  padding: 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  background: rgba(8, 34, 60, 0.96);
  box-shadow: var(--shadow);
}

.mobile-sticky-cta .button {
  flex: 1;
}

.mobile-sticky-cta button {
  min-height: 44px;
  border: 0;
  border-radius: 14px;
  padding: 0.55rem 0.75rem;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-weight: 900;
}

[hidden] {
  display: none !important;
}

@media (min-width: 760px) {
  .hero {
    grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.68fr);
    align-items: center;
  }

  .answer-box,
  .method-card {
    grid-template-columns: 0.72fr 1.28fr;
  }

  .route-notes,
  .operator-feature-grid,
  .compact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: 1.4fr repeat(3, 1fr);
  }
}

@media (min-width: 1080px) {
  .desktop-nav {
    display: flex;
  }

  .menu-button {
    display: none;
  }

  .page-grid {
    grid-template-columns: 230px minmax(0, 1fr);
    align-items: start;
  }

  .toc {
    position: sticky;
    top: 104px;
    display: grid;
    gap: 0.4rem;
    padding: 0.9rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.9);
  }

  .toc strong {
    margin-bottom: 0.35rem;
    color: var(--navy);
    font-family: "Archivo", sans-serif;
  }

  .operator-feature-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .compact-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .faq-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mobile-sticky-cta {
    display: none;
  }
}

@media (max-width: 520px) {
  .header-inner {
    min-height: 68px;
  }

  .brand img {
    width: 44px;
    height: 44px;
  }

  .brand small {
    display: none;
  }

  .header-actions .button {
    display: none;
  }

  .content-flow > section,
  .answer-box,
  .method-card,
  .contents-card {
    border-radius: 20px;
  }
}

/* Premium booking-product polish */
.site-header {
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 1px 0 rgba(8, 34, 60, 0.08);
}

.header-inner {
  min-height: 72px;
}

.brand--logo-only img {
  width: auto;
  height: 42px;
  max-width: 172px;
}

.desktop-nav {
  gap: 0.55rem;
}

.desktop-nav a {
  background: transparent;
  color: #17253a;
  padding-inline: 0.55rem;
}

.hero {
  position: relative;
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 1rem;
  padding-top: clamp(1.4rem, 4vw, 4rem);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 1rem 0 5rem;
  z-index: -1;
  border-radius: 34px;
  background:
    radial-gradient(circle at 18% 20%, rgba(200, 130, 31, 0.24), transparent 28%),
    linear-gradient(135deg, #061b31 0%, #0a3a66 58%, #116b96 100%);
  box-shadow: var(--shadow);
}

.hero__layout {
  display: grid;
  gap: 1.1rem;
  padding: clamp(1rem, 3vw, 2rem);
  color: #fff;
}

.hero__content {
  max-width: 820px;
}

.hero__content .eyebrow,
.hero__content h1 {
  color: #fff;
}

.hero__lead {
  color: rgba(255, 255, 255, 0.88);
}

.hero__lead--short {
  color: #fff;
  font-weight: 900;
}

.hero .button--secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.12);
}

.operator-slider {
  order: -1;
  position: relative;
  min-height: 250px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 30px;
  overflow: hidden;
  background:
    linear-gradient(rgba(8, 34, 60, 0.3), rgba(8, 34, 60, 0.48)),
    url("/assets/support/station-departure.jpg") center/cover;
}

.operator-slider__viewport {
  position: relative;
  min-height: 250px;
}

.operator-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: end;
  gap: 1rem;
  padding: 1.1rem;
  opacity: 0;
  transform: translateX(18px);
  transition: opacity 420ms ease, transform 420ms ease;
}

.operator-slide.is-active {
  opacity: 1;
  transform: translateX(0);
}

.operator-slide img {
  width: min(170px, 54vw);
  height: 76px;
  object-fit: contain;
  border-radius: 18px;
  padding: 0.7rem;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.18);
}

.operator-slide div {
  display: grid;
  gap: 0.25rem;
  color: #fff;
}

.operator-slide strong {
  font-family: "Archivo", sans-serif;
  font-size: clamp(1.6rem, 4vw, 2.45rem);
  letter-spacing: 0.04em;
}

.operator-slide span {
  color: rgba(255, 255, 255, 0.86);
  font-weight: 800;
}

.operator-slider__controls {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.operator-slider__controls button,
.operator-slider__dots button {
  border: 0;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
}

.operator-slider__controls > button {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  font-size: 1.5rem;
}

.operator-slider__dots {
  display: flex;
  gap: 0.32rem;
}

.operator-slider__dots button {
  width: 9px;
  height: 9px;
  min-height: 9px;
  padding: 0;
  border-radius: 999px;
  opacity: 0.58;
}

.operator-slider__dots button[aria-selected="true"] {
  width: 24px;
  opacity: 1;
  background: var(--gold);
}

.booking-engine {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 1rem;
  margin-inline: clamp(0rem, 2vw, 1rem);
  padding: clamp(1rem, 2vw, 1.25rem);
  border: 1px solid rgba(8, 34, 60, 0.1);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 26px 70px rgba(8, 34, 60, 0.18);
}

.booking-engine__brand {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.booking-engine__brand strong {
  color: var(--navy);
  font-family: "Archivo", sans-serif;
  font-size: 1.1rem;
}

.booking-engine__grid {
  display: grid;
  gap: 0.75rem;
}

.booking-field {
  position: relative;
  display: grid;
  gap: 0.32rem;
}

.booking-field label,
.field-label {
  color: #1d2b3f;
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.booking-field input {
  min-height: 58px;
  border-radius: 17px;
  font-weight: 800;
}

.swap-button {
  width: 48px;
  height: 48px;
  place-self: end center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--blue);
  font-size: 1.2rem;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(8, 34, 60, 0.08);
}

.passenger-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.passenger-controls label {
  display: grid;
  gap: 0.2rem;
  text-transform: none;
  letter-spacing: 0;
}

.passenger-controls span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
}

.booking-engine__submit {
  min-height: 58px;
  align-self: end;
}

.autocomplete-panel {
  position: absolute;
  z-index: 30;
  top: calc(100% + 0.45rem);
  left: 0;
  right: 0;
  max-height: min(420px, 72vh);
  overflow: auto;
  border: 1px solid rgba(8, 34, 60, 0.12);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 55px rgba(8, 34, 60, 0.18);
}

.autocomplete-group {
  padding: 0.45rem;
}

.autocomplete-group + .autocomplete-group {
  border-top: 1px solid var(--line);
}

.autocomplete-group p {
  margin: 0;
  padding: 0.35rem 0.55rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.autocomplete-group button {
  width: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  border: 0;
  border-radius: 12px;
  padding: 0.65rem 0.75rem;
  background: transparent;
  color: var(--ink);
  text-align: left;
  font-weight: 900;
}

.autocomplete-group button:hover,
.autocomplete-group button:focus-visible {
  background: #eef6ff;
}

.autocomplete-group small {
  color: var(--muted);
  font-weight: 800;
}

.autocomplete-group mark {
  border-radius: 5px;
  background: rgba(200, 130, 31, 0.25);
  color: inherit;
}

.booking-engine__error {
  margin: 0;
  border-radius: 14px;
  padding: 0.7rem 0.85rem;
  background: #fff1f2;
  color: #9f1239;
  font-weight: 900;
}

.hero-trust-row {
  display: grid;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero-trust-row li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: #334155;
  font-size: 0.9rem;
  font-weight: 900;
}

.hero-trust-row li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--gold);
}

.operator-strip {
  display: grid;
  gap: 0.6rem;
  overflow: hidden;
  padding: 0.35rem clamp(0rem, 2vw, 1rem) 0;
}

.operator-strip span {
  color: rgba(255, 255, 255, 0.86);
  font-weight: 900;
}

.operator-strip div {
  display: flex;
  gap: 0.55rem;
  width: max-content;
  animation: operator-marquee 28s linear infinite;
}

.operator-strip b {
  border-radius: 999px;
  padding: 0.52rem 0.85rem;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  white-space: nowrap;
}

.status-row {
  display: grid;
  gap: 0.55rem;
  margin-top: 1rem;
}

.status-row span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  padding: 0.75rem 0.9rem;
  background: rgba(255, 255, 255, 0.08);
}

.operator-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.75rem 0;
}

.operator-pills span {
  border-radius: 999px;
  padding: 0.35rem 0.58rem;
  background: #eef6ff;
  color: var(--blue);
  font-size: 0.8rem;
  font-weight: 900;
}

.footer-legal {
  color: #aebed1;
  font-size: 0.88rem;
}

@keyframes operator-marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-40%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .operator-slide,
  .operator-strip div {
    transition: none;
    animation: none;
  }
}

/* Keep the visual lead edge-to-edge and prevent table rows from hiding below headers. */
.hero.section {
  width: 100%;
  max-width: none;
  margin-inline: 0;
  padding-inline: 0;
}

.hero__layout {
  width: 100%;
  max-width: none;
  min-height: 100svh !important;
  border-radius: 0;
}

.data-table thead th {
  position: static !important;
  inset: auto !important;
  z-index: auto !important;
}

.table-wrap {
  overflow-x: auto;
  overflow-y: visible;
}

/* Mobile safety overrides: keep this last so legacy rules cannot undo mobile layout. */
@media (max-width: 760px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  body {
    padding-bottom: calc(86px + env(safe-area-inset-bottom));
  }

  .section {
    width: min(100% - 1rem, var(--container));
  }

  .hero.section {
    width: 100%;
  }

  .hero__layout {
    min-height: 100svh !important;
    padding-right: 1rem;
    padding-left: 1rem;
  }

  .hero__content,
  .hero__content h1,
  .hero__lead {
    max-width: 100%;
  }

  .hero__content h1 {
    font-size: clamp(2.3rem, 11vw, 3.2rem);
  }

  .booking-engine {
    width: min(calc(100% - 1rem), 700px) !important;
    margin-top: 1rem !important;
  }

  .content-flow {
    gap: 1.35rem;
  }

  .content-flow > section {
    padding: 1rem;
    border-radius: 18px;
  }

  .section-heading h2 {
    font-size: clamp(1.55rem, 8vw, 2.1rem);
    line-height: 1.04;
  }

  .table-wrap {
    overflow: visible !important;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .data-table,
  .price-table,
  .data-table tbody,
  .data-table tr,
  .data-table td {
    display: block;
    width: 100%;
    min-width: 0 !important;
  }

  .data-table thead {
    display: none;
  }

  .data-table caption {
    display: block;
    width: 100%;
    margin: 0 0 0.75rem;
    padding: 0.75rem 0.85rem;
    border: 1px solid rgba(15, 92, 168, 0.14);
    border-radius: 14px;
    background: #f8fbff;
    color: #43566b;
    font-size: 0.82rem;
    line-height: 1.45;
    text-align: left;
  }

  .data-table tbody {
    display: grid;
    gap: 0.75rem;
  }

  .data-table tr {
    overflow: hidden;
    border: 1px solid rgba(8, 34, 60, 0.12);
    border-radius: 16px;
    background: #fff !important;
    box-shadow: 0 8px 20px rgba(8, 34, 60, 0.05);
  }

  .data-table td {
    padding: 0.62rem 0.85rem;
    overflow-wrap: anywhere;
    border-top: 1px solid rgba(8, 34, 60, 0.08);
    line-height: 1.55;
  }

  .data-table td:first-child {
    border-top: 0;
    padding-top: 0.85rem;
  }

  .data-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 0.18rem;
    color: #69798a;
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  .table-cta,
  .text-cta,
  .compact-grid a {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .table-cta {
    width: fit-content;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: normal;
  }

  .cta-strip {
    align-items: stretch;
    border-radius: 16px;
  }

  .cta-strip .button {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .guide-gallery {
    grid-auto-flow: column;
    grid-auto-columns: minmax(245px, 84%);
    margin-inline: -0.25rem;
    padding-inline: 0.25rem;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline mandatory;
  }

  .guide-gallery .guide-photo {
    scroll-snap-align: start;
  }

  .guide-photo figcaption {
    padding: 0.82rem;
  }

  .rail-promo__cards {
    gap: 1rem;
  }

  .rail-promo__image {
    aspect-ratio: 16 / 9;
  }

  .faq-grid summary {
    align-items: flex-start;
    padding: 0.9rem;
    line-height: 1.35;
  }

  .faq-grid details p {
    padding: 0 0.9rem 0.95rem;
    line-height: 1.58;
  }

  .gyg-activity-widget,
  .city-widget,
  .schedule-widget {
    max-width: 100%;
    overflow: hidden;
  }

  onetwogo-travelto-widget,
  .gyg-activity-widget [data-gyg-widget] {
    max-width: 100%;
  }

.mobile-sticky-cta {
    right: 0.65rem;
    bottom: max(0.65rem, env(safe-area-inset-bottom));
    left: 0.65rem;
  }
}

.language-switcher {
  position: relative;
}

.language-switcher summary {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 42px;
  padding: 0.5rem 0.7rem;
  border: 1px solid rgba(8, 34, 60, 0.12);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(244, 248, 251, 0.9));
  color: var(--ink);
  cursor: pointer;
  font-weight: 900;
  list-style: none;
  box-shadow: 0 10px 28px rgba(8, 34, 60, 0.08);
}

.language-switcher summary::-webkit-details-marker {
  display: none;
}

.language-switcher__panel {
  position: absolute;
  top: calc(100% + 0.55rem);
  right: 0;
  z-index: 30;
  display: grid;
  min-width: 210px;
  padding: 0.45rem;
  border: 1px solid rgba(8, 34, 60, 0.12);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(8, 34, 60, 0.16);
}

.language-switcher__panel a,
.footer-languages a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ink);
  font-weight: 900;
  text-decoration: none;
}

.language-switcher__panel a {
  justify-content: flex-start;
  padding: 0.62rem 0.75rem;
  border-radius: 12px;
}

.language-switcher__panel a:hover,
.language-switcher__panel a[aria-current="page"] {
  background: #f0f6fb;
  color: var(--blue);
}

.footer-languages {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 1.25rem 0 0.55rem;
}

.footer-languages a {
  justify-content: center;
  min-width: 62px;
  min-height: 34px;
  padding: 0.35rem 0.62rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.language-flag {
  display: inline-grid;
  place-items: center;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  background: rgba(8, 34, 60, 0.06);
  font-size: 0.98rem;
  line-height: 1;
}

.language-code {
  letter-spacing: 0.08em;
  font-size: 0.76rem;
}

.language-name {
  font-size: 0.82rem;
}

.language-switcher summary .language-name,
.footer-languages .language-name {
  display: none;
}

.language-switcher__panel .language-code {
  min-width: 2.1rem;
  color: var(--muted);
}

.language-switcher__panel a[aria-current="page"] .language-code,
.language-switcher__panel a:hover .language-code {
  color: var(--blue);
}

.footer-languages a:hover,
.footer-languages a[aria-current="page"] {
  border-color: rgba(255, 255, 255, 0.46);
  background: rgba(255, 255, 255, 0.14);
}

[dir="rtl"] {
  text-align: right;
  font-family: "Noto Kufi Arabic", "Manrope", sans-serif;
}

[dir="rtl"] .header-inner,
[dir="rtl"] .booking-engine__grid,
[dir="rtl"] .footer-grid,
[dir="rtl"] .cta-strip {
  direction: rtl;
}

[dir="rtl"] .language-switcher__panel {
  right: auto;
  left: 0;
}

[dir="rtl"] .operator-marquee,
[dir="rtl"] .operator-slider,
[dir="rtl"] .rail-menu__panel {
  direction: ltr;
}

[dir="rtl"] .data-table td,
[dir="rtl"] .data-table th {
  text-align: right;
}

@media (max-width: 760px) {
  .language-switcher summary {
    min-width: 48px;
    justify-content: center;
    padding: 0.5rem 0.65rem;
  }

  .language-switcher__panel {
    right: -3.8rem;
  }

  [dir="rtl"] .language-switcher__panel {
    right: auto;
    left: -3.8rem;
  }
}

/* Final mobile readability pass for tables, galleries, widgets and FAQ. */
@media (max-width: 760px) {
  .section {
    width: min(100% - 1rem, var(--container));
  }

  .content-flow {
    gap: 1.35rem;
  }

  .content-flow > section {
    padding: 1rem;
    border-radius: 18px;
  }

  .section-heading {
    margin-bottom: 0.9rem;
  }

  .section-heading h2 {
    font-size: clamp(1.55rem, 8vw, 2.1rem);
    line-height: 1.04;
  }

  .table-wrap {
    overflow: visible !important;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .data-table {
    width: 100%;
    min-width: 0 !important;
    border-collapse: separate;
    border-spacing: 0;
  }

  .data-table caption {
    display: block;
    width: 100%;
    margin: 0 0 0.75rem;
    padding: 0.75rem 0.85rem;
    border: 1px solid rgba(15, 92, 168, 0.14);
    border-radius: 14px;
    background: #f8fbff;
    color: #43566b;
    font-size: 0.82rem;
    line-height: 1.45;
    text-align: left;
  }

  .data-table tbody {
    display: grid;
    gap: 0.75rem;
  }

  .data-table tr {
    display: block;
    overflow: hidden;
    border: 1px solid rgba(8, 34, 60, 0.12);
    border-radius: 16px;
    background: #fff !important;
    box-shadow: 0 8px 20px rgba(8, 34, 60, 0.05);
  }

  .data-table td {
    display: block;
    width: 100%;
    min-width: 0;
    padding: 0.62rem 0.85rem;
    overflow-wrap: anywhere;
    border-top: 1px solid rgba(8, 34, 60, 0.08);
    line-height: 1.55;
  }

  .data-table td:first-child {
    border-top: 0;
  }

  .table-cta {
    width: fit-content;
    max-width: 100%;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: normal;
  }

  .cta-strip {
    align-items: stretch;
    border-radius: 16px;
  }

  .cta-strip .button {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .guide-gallery {
    margin-inline: -0.25rem;
    padding-inline: 0.25rem;
  }

  .guide-photo figcaption {
    padding: 0.82rem;
  }

  .rail-promo__cards {
    gap: 1rem;
  }

  .rail-promo__image {
    aspect-ratio: 16 / 9;
  }

  .faq-grid summary {
    align-items: flex-start;
    padding: 0.9rem;
    line-height: 1.35;
  }

  .faq-grid details p {
    padding: 0 0.9rem 0.95rem;
    line-height: 1.58;
  }

  .gyg-activity-widget,
  .city-widget,
  .schedule-widget {
    max-width: 100%;
    overflow: hidden;
  }

  onetwogo-travelto-widget,
  .gyg-activity-widget [data-gyg-widget] {
    max-width: 100%;
  }
}

.schedule-widget {
  display: grid;
  justify-content: center;
  width: min(100%, 320px);
  min-height: 320px;
  margin: 1.2rem auto 0;
  padding: 0.65rem;
  border: 1px solid rgba(8, 34, 60, 0.12);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 16px 32px rgba(8, 34, 60, 0.08);
}

.schedule-widget iframe {
  max-width: 100%;
}

.schedule-widget__note {
  max-width: 520px;
  margin: 0.85rem auto 0;
  color: #52667b;
  text-align: center;
}

.route-notes--cairo .route-card__image {
  display: block;
  width: 100%;
  height: 150px;
  margin: 0 0 1rem;
  border-radius: 12px;
  object-fit: cover;
  object-position: center;
}

.route-notes--cairo article:nth-child(2) .route-card__image {
  object-position: center 68%;
}

.route-notes--cairo article:nth-child(5) .route-card__image {
  object-position: center 62%;
}

@media (max-width: 760px) {
  .route-notes--cairo .route-card__image {
    height: 136px;
  }
}

.route-photo-credit {
  margin: 0.85rem 0 1.25rem;
  color: #64748b;
  font-size: 0.76rem;
  line-height: 1.55;
}

.route-photo-credit a {
  color: #0f5ca8;
  font-weight: 800;
}

.guide-visual-grid {
  display: grid;
  gap: 1rem;
  margin: 1.15rem 0 1.35rem;
}

.guide-gallery {
  align-items: stretch;
}

.guide-photo {
  position: relative;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(8, 34, 60, 0.12);
  border-radius: 18px;
  background: #061b31;
  box-shadow: 0 18px 38px rgba(8, 34, 60, 0.1);
}

.guide-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  object-fit: cover;
  object-position: center;
}

.guide-photo figcaption {
  display: grid;
  gap: 0.28rem;
  padding: 0.9rem 1rem 1rem;
  background: #fff;
}

.guide-photo strong {
  color: var(--navy);
  font-family: "Archivo", sans-serif;
  font-size: 1rem;
}

.guide-photo span {
  color: #4d6074;
  font-size: 0.93rem;
  line-height: 1.55;
}

.guide-photo--wide img {
  aspect-ratio: 16 / 8.4;
}

.guide-visual-grid--three .guide-photo:first-child img {
  object-position: center 44%;
}

.guide-visual-grid--single {
  max-width: 920px;
}

.gyg-activity-widget {
  min-height: 120px;
  margin: 1.35rem 0;
  padding: clamp(0.85rem, 2vw, 1rem);
  overflow: hidden;
  border: 1px solid rgba(15, 92, 168, 0.14);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(239, 246, 255, 0.92)),
    #fff;
  box-shadow: 0 16px 36px rgba(8, 34, 60, 0.08);
}

.gyg-activity-widget [data-gyg-widget] {
  min-height: 96px;
}

.route-photo-credit--guide {
  position: relative;
  z-index: 1;
  margin-top: 1rem;
  color: #b6c9d9;
}

@media (min-width: 760px) {
  .guide-visual-grid--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .guide-visual-grid--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .guide-visual-grid--four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .guide-gallery {
    grid-auto-flow: column;
    grid-auto-columns: minmax(245px, 84%);
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    padding-bottom: 0.4rem;
    scroll-snap-type: inline mandatory;
  }

  .guide-gallery .guide-photo {
    scroll-snap-align: start;
  }

  .guide-photo--wide img {
    aspect-ratio: 4 / 3;
  }

  .gyg-activity-widget {
    border-radius: 18px;
  }
}

.compact-grid--cairo .cairo-route-card__image {
  display: block;
  width: 100%;
  height: 118px;
  margin: 0 0 0.85rem;
  border-radius: 12px;
  object-fit: cover;
  object-position: center;
}

.compact-grid--cairo article:nth-child(8) .cairo-route-card__image,
.compact-grid--cairo article:nth-child(9) .cairo-route-card__image {
  object-position: center 62%;
}

.route-photo-credit--compact {
  margin-top: 0.85rem;
}

@media (max-width: 760px) {
  .compact-grid--cairo .cairo-route-card__image {
    height: 108px;
  }
}

.source-note {
  margin: 0.85rem 0 1.25rem;
  color: #52667b;
  font-size: 0.86rem;
}

.source-note a {
  color: #0f5ca8;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.destination-visual {
  position: relative;
  display: grid;
  min-height: clamp(260px, 34vw, 430px);
  margin: 1.2rem 0;
  overflow: hidden;
  border: 1px solid rgba(8, 34, 60, 0.16);
  border-radius: 24px;
  background: #08223c;
  box-shadow: 0 20px 45px rgba(8, 34, 60, 0.12);
}

.destination-visual img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
}

.destination-visual--red-sea img {
  object-position: center 55%;
}

.destination-visual figcaption {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  max-width: 620px;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 16px;
  background: rgba(8, 34, 60, 0.84);
  color: #f7fbff;
  backdrop-filter: blur(10px);
}

.destination-visual figcaption strong {
  display: block;
  margin-bottom: 0.2rem;
  font-family: "Archivo", sans-serif;
}

.destination-visual figcaption a {
  color: #f7c56e;
  font-weight: 800;
}

@media (max-width: 760px) {
  .destination-visual {
    min-height: 300px;
    border-radius: 18px;
  }

  .destination-visual figcaption {
    right: 0.75rem;
    bottom: 0.75rem;
    left: 0.75rem;
    padding: 0.75rem 0.8rem;
    font-size: 0.88rem;
  }
}

.city-widget {
  display: grid;
  gap: 1rem;
  align-items: center;
  margin: 1.5rem 0;
  padding: clamp(1rem, 3vw, 1.5rem);
  border: 1px solid rgba(15, 92, 168, 0.18);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(232, 242, 250, 0.96), rgba(255, 255, 255, 0.98)),
    radial-gradient(circle at top right, rgba(224, 146, 42, 0.16), transparent 42%);
  box-shadow: 0 16px 36px rgba(8, 34, 60, 0.08);
}

.city-widget__copy h3 {
  margin: 0.15rem 0 0.45rem;
  color: #08223c;
}

.city-widget__copy p:last-child {
  margin: 0;
  color: #40566b;
}

.city-widget onetwogo-travelto-widget {
  display: block;
  width: 100%;
  min-height: 120px;
  overflow: hidden;
  border-radius: 16px;
  background: #fff;
}

@media (min-width: 900px) {
  .city-widget {
    grid-template-columns: minmax(210px, 0.7fr) minmax(0, 1.3fr);
  }
}

/* Full-screen hero and interaction refinement */
.hero__layout {
  min-height: 100svh;
}

.operator-slide__content {
  bottom: clamp(5rem, 9vh, 7.5rem);
}

.operator-slide__content > p:not(.operator-slide__name) {
  max-width: 370px;
  margin-bottom: 0;
  font-size: 0.94rem;
  line-height: 1.58;
}

.operator-slide__routes {
  display: none;
}

.rail-menu__panel {
  transform-origin: top center;
  transition: opacity 160ms ease, transform 160ms ease;
}

.rail-menu:not([open]) .rail-menu__panel {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(-4px);
}

.data-table thead th {
  position: static;
}

@media (min-width: 761px) {
  .table-wrap {
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 760px) {
  .hero__layout {
    min-height: 100svh;
  }

  .operator-slide__content {
    bottom: 4.35rem;
  }

  .operator-slide__content > p:not(.operator-slide__name) {
    display: -webkit-box;
    overflow: hidden;
    max-width: 320px;
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.78rem;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  .mobile-sticky-cta {
    display: block;
    padding: 0.45rem;
  }

  .mobile-sticky-cta .button {
    width: 100%;
    min-height: 52px;
  }
}

/* Keep booking separate from the full-screen operator showcase. */
.booking-engine {
  margin-top: 1.35rem;
}

@media (max-width: 760px) {
  .booking-engine {
    margin-top: 1rem;
  }
}

@media (min-width: 760px) {
  .hero__layout {
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.75fr);
    align-items: center;
  }

  .operator-slider {
    order: 0;
    min-height: 380px;
  }

  .operator-slider__viewport {
    min-height: 380px;
  }

  .booking-engine {
    margin-top: -1.1rem;
  }

  .hero-trust-row,
  .status-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 980px) {
  .booking-engine__grid {
    grid-template-columns: minmax(170px, 1.1fr) 48px minmax(170px, 1.1fr) minmax(150px, 0.72fr) minmax(180px, 0.9fr) minmax(150px, 0.72fr);
    align-items: end;
  }
}

@media (max-width: 760px) {
  .hero::before {
    inset: 0 0 4rem;
    border-radius: 0 0 28px 28px;
  }

  .brand--logo-only img {
    height: 36px;
    max-width: 148px;
  }

  .operator-slider {
    min-height: 230px;
  }

  .operator-slider__viewport {
    min-height: 230px;
  }

  .swap-button {
    place-self: center;
    transform: rotate(90deg);
  }
}

/* Premium visual and booking-engine pass */
body {
  background: #f6f4ef;
}

body::before {
  background:
    radial-gradient(ellipse 80% 38% at -10% 22%, transparent 0 56%, rgba(15, 92, 168, 0.05) 56.2% 56.7%, transparent 57%),
    radial-gradient(ellipse 76% 48% at 105% 68%, transparent 0 61%, rgba(200, 130, 31, 0.055) 61.2% 61.7%, transparent 62%),
    radial-gradient(circle at 16% 26%, rgba(8, 34, 60, 0.07) 0 2px, transparent 2.5px),
    radial-gradient(circle at 78% 72%, rgba(8, 34, 60, 0.06) 0 2px, transparent 2.5px);
  background-size: auto, auto, 420px 420px, 520px 520px;
  mask-image: none;
  opacity: 1;
}

.site-header {
  min-height: 84px;
  background: rgba(255, 255, 255, 0.88);
  border-bottom-color: rgba(8, 34, 60, 0.1);
}

.header-inner {
  min-height: 84px;
}

.brand--logo-only img {
  height: 56px;
  max-width: 236px;
}

.desktop-nav {
  gap: 0.16rem;
}

.desktop-nav a {
  min-height: 42px;
  padding-inline: 0.5rem;
  font-size: 0.84rem;
}

.rail-menu {
  position: relative;
}

.rail-menu summary {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  border-radius: 999px;
  padding: 0.55rem 0.5rem;
  color: #536377;
  cursor: pointer;
  font-size: 0.84rem;
  font-weight: 900;
  list-style: none;
}

.rail-menu summary::-webkit-details-marker {
  display: none;
}

.rail-menu[open] summary,
.rail-menu summary:hover {
  background: rgba(15, 92, 168, 0.08);
  color: var(--blue);
}

.rail-menu__panel {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 50%;
  width: 190px;
  display: grid;
  gap: 0.15rem;
  padding: 0.5rem;
  border: 1px solid rgba(8, 34, 60, 0.1);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(8, 34, 60, 0.15);
  transform: translateX(-50%);
}

.rail-menu__panel a {
  min-height: 40px;
  justify-content: space-between;
  border-radius: 10px;
  padding: 0.55rem 0.65rem;
}

.button {
  min-height: 50px;
  border-radius: 15px;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button--primary {
  background: #d28a27;
  color: #122033;
  box-shadow: 0 12px 24px rgba(210, 138, 39, 0.2);
}

.button--primary:hover {
  background: #e19c3a;
  box-shadow: 0 16px 28px rgba(210, 138, 39, 0.26);
  transform: translateY(-2px);
}

.button--secondary:hover {
  transform: translateY(-2px);
}

.hero {
  display: block !important;
  min-height: 0;
  padding: clamp(1rem, 2vw, 1.5rem) 0 0;
}

.hero::before {
  display: none;
}

.hero__layout {
  position: relative;
  min-height: 650px;
  display: grid;
  align-items: start;
  overflow: hidden;
  border-radius: 32px;
  padding: clamp(2rem, 5.5vw, 5.8rem) clamp(1.35rem, 6vw, 5.5rem);
  isolation: isolate;
  background: #08223c;
  color: #fff;
}

.hero__content {
  position: relative;
  z-index: 3;
  max-width: min(650px, 58%);
  gap: 1.25rem;
}

.hero__content h1 {
  max-width: 640px;
  color: #fff;
  font-size: clamp(3.05rem, 5.4vw, 5.4rem);
  text-wrap: balance;
}

.hero__content .eyebrow {
  color: #f2c479;
}

.hero__lead {
  max-width: 590px;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(1.04rem, 1.55vw, 1.24rem);
}

.hero .button--secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.12);
}

.operator-slider {
  position: absolute;
  z-index: 1;
  inset: 0;
  min-height: 0;
  order: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: #08223c;
}

.operator-slider__viewport {
  min-height: 100%;
  height: 100%;
}

.operator-slide {
  display: block;
  padding: 0;
  transform: none;
  transition: opacity 650ms ease;
}

.operator-slide.is-active {
  transform: none;
}

.operator-slide__photo {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: none;
  border: 0 !important;
  border-radius: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  object-fit: cover;
  object-position: var(--desktop-position);
  filter: saturate(0.96) contrast(1.04);
  transform: scale(1.03);
  transition: transform 5.6s ease-out;
}

@media (max-width: 1080px) {
  .operator-slide__photo {
    object-position: var(--tablet-position, var(--desktop-position));
  }
}

@media (max-width: 760px) {
  .operator-slide__photo {
    object-position: var(--mobile-position, var(--tablet-position, var(--desktop-position)));
  }
}

.operator-slide.is-active .operator-slide__photo {
  transform: scale(1.08);
}

.operator-slide__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3, 16, 30, 0.94) 0%, rgba(4, 22, 40, 0.78) 35%, rgba(4, 22, 40, 0.24) 66%, rgba(4, 22, 40, 0.46) 100%),
    linear-gradient(0deg, rgba(3, 16, 30, 0.82), transparent 48%);
}

.operator-slide__content {
  position: absolute;
  z-index: 2;
  right: clamp(1.15rem, 4vw, 4.2rem);
  bottom: 4.5rem;
  width: min(380px, 34%);
  color: #fff;
}

.operator-slide__content p {
  margin-bottom: 0.85rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.92rem;
  line-height: 1.5;
}

.operator-slide__logo {
  width: 150px !important;
  height: 64px !important;
  margin-bottom: 0.7rem;
  border-radius: 12px !important;
  padding: 0.45rem !important;
  background: rgba(255, 255, 255, 0.94) !important;
  object-fit: contain;
}

.operator-slide__name {
  margin-bottom: 0.35rem !important;
  color: #fff !important;
  font-family: "Archivo", sans-serif;
  font-size: 1.35rem !important;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.operator-slide__routes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.38rem;
}

.operator-slide__routes span {
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  padding: 0.25rem 0.5rem;
  background: rgba(3, 16, 30, 0.4);
  color: #fff;
  font-size: 0.73rem;
  font-weight: 800;
}

.operator-slider__controls {
  z-index: 5;
  right: clamp(1.15rem, 4vw, 4.2rem);
  bottom: 1.25rem;
}

.operator-slider__controls > button {
  width: 40px;
  height: 40px;
  font-size: 1.35rem;
  transition: background 180ms ease, transform 180ms ease;
}

.operator-slider__controls > button:hover {
  background: rgba(255, 255, 255, 0.34);
  transform: translateY(-1px);
}

.booking-engine {
  width: min(1240px, calc(100% - 2rem));
  z-index: 10;
  gap: 0.85rem;
  margin: -86px auto 0;
  border-radius: 22px;
  padding: 1.25rem;
  box-shadow: 0 26px 70px rgba(8, 34, 60, 0.2);
}

.booking-engine__brand {
  padding-inline: 0.2rem;
}

.booking-engine__brand span {
  font-size: 0.82rem;
}

.booking-engine__grid {
  gap: 0.65rem;
}

.booking-field input {
  min-height: 60px;
  border-color: rgba(8, 34, 60, 0.14);
  border-radius: 14px;
}

.booking-field input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(15, 92, 168, 0.12);
  outline: 0;
}

.swap-button {
  width: 44px;
  height: 44px;
  border-color: rgba(8, 34, 60, 0.14);
}

.booking-engine__submit {
  min-height: 60px;
}

.hero-trust-row {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 0.1rem 0.2rem 0;
}

.hero-trust-row li {
  color: #516176;
  font-size: 0.8rem;
}

.autocomplete-panel {
  z-index: 80;
  border-radius: 16px;
}

.autocomplete-group button > span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.autocomplete-group i {
  width: 1rem;
  color: var(--blue);
  font-size: 0.82rem;
  font-style: normal;
  text-align: center;
}

.operator-strip {
  width: min(1240px, calc(100% - 2rem));
  margin: 1.25rem auto 0;
  overflow: hidden;
  border-radius: 24px;
  padding: 1rem 0 1.1rem;
  background: #092640;
  box-shadow: 0 18px 42px rgba(8, 34, 60, 0.14);
}

.operator-strip > span {
  display: block;
  padding: 0 1.15rem 0.65rem;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.operator-marquee {
  display: flex;
  gap: 0.65rem;
  width: max-content;
  padding-left: 1.15rem;
  animation: operator-marquee 34s linear infinite;
}

.operator-marquee:hover {
  animation-play-state: paused;
}

.operator-marquee__tile {
  width: 145px;
  height: 58px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  padding: 0.45rem 0.65rem;
  background: rgba(255, 255, 255, 0.94);
}

.operator-marquee__tile img {
  width: 100%;
  height: 42px;
  object-fit: contain;
}

@keyframes operator-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.content-flow > section {
  border-color: rgba(8, 34, 60, 0.1);
  box-shadow: none;
}

.content-flow > section:nth-child(odd) {
  background: rgba(255, 255, 255, 0.92);
}

.content-flow > section:nth-child(even) {
  background: rgba(249, 248, 244, 0.94);
}

.table-wrap {
  border-color: rgba(8, 34, 60, 0.12);
  box-shadow: 0 10px 25px rgba(8, 34, 60, 0.04);
}

.data-table th,
.data-table td {
  padding: 1rem;
}

.data-table thead th {
  position: sticky;
  top: 84px;
  z-index: 2;
  background: #eaf1f7;
  color: #102c48;
  font-size: 0.75rem;
  font-weight: 900;
}

.data-table tbody tr:nth-child(even) {
  background: rgba(247, 249, 251, 0.85);
}

.data-table tbody tr:hover {
  background: #eef7ff;
}

.data-table td:first-child {
  color: #102c48;
  font-weight: 900;
}

.table-cta {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(15, 92, 168, 0.18);
  border-radius: 12px;
  padding: 0.5rem 0.75rem;
  background: #fff;
  color: var(--blue);
  font-size: 0.84rem;
  font-weight: 900;
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease;
}

.table-cta:hover {
  background: var(--blue);
  color: #fff;
  transform: translateY(-1px);
}

.rail-promo {
  position: relative;
  overflow: hidden;
  border: 0 !important;
  background: #092640 !important;
  color: #eaf2f8;
}

.rail-promo::before {
  content: "";
  position: absolute;
  width: 760px;
  height: 380px;
  top: -210px;
  right: -160px;
  border: 2px solid rgba(242, 196, 121, 0.22);
  border-radius: 50%;
  box-shadow: -80px 90px 0 -78px rgba(242, 196, 121, 0.42), -190px 168px 0 -188px rgba(242, 196, 121, 0.28);
  transform: rotate(-14deg);
}

.rail-promo__intro,
.rail-promo__cards {
  position: relative;
  z-index: 1;
}

.rail-promo .eyebrow,
.rail-promo h2,
.rail-promo h3 {
  color: #fff;
}

.rail-promo__intro {
  max-width: 650px;
}

.rail-promo__intro > p:last-child {
  color: #c4d5e5;
}

.rail-promo__cards {
  display: grid;
  align-items: stretch;
  gap: 0.85rem;
  margin-top: 1.25rem;
}

.rail-promo__cards article {
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr) auto;
  align-content: stretch;
  gap: 0.2rem;
  min-height: 230px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.08);
}

.rail-promo__image {
  display: block;
  width: calc(100% + 2.5rem);
  max-width: none;
  aspect-ratio: 16 / 9;
  height: auto;
  margin: -1.25rem -1.25rem 1rem;
  object-fit: cover;
  object-position: center;
}

.rail-promo__cards article:first-child .rail-promo__image {
  object-position: center 58%;
}

.rail-promo__label {
  color: #f2c479;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.rail-promo__cards article p:not(.rail-promo__label) {
  color: #d9e6f1;
}

.rail-promo__cards .button {
  width: fit-content;
  margin-top: auto;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.11);
}

.site-footer {
  padding-top: 2.8rem;
}

.footer-grid {
  grid-template-columns: minmax(0, 1.45fr) repeat(2, minmax(150px, 0.7fr));
  padding: clamp(1.4rem, 3vw, 2.25rem);
  background: #071d32;
}

.footer-grid .brand--footer img {
  width: 58px;
  height: 58px;
}

.footer-copyright {
  margin: 0.8rem 0 0;
  color: #65778a;
  font-size: 0.82rem;
  text-align: center;
}

@media (min-width: 760px) {
  .booking-engine__grid {
    grid-template-columns: minmax(180px, 1.1fr) 48px minmax(180px, 1.1fr) minmax(160px, 0.75fr) minmax(165px, 0.8fr);
    align-items: end;
  }

  .rail-promo__cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1080px) {
  .hero__layout {
    min-height: 610px;
  }

  .hero__content {
    max-width: 60%;
  }

  .operator-slide__content {
    width: min(350px, 39%);
  }
}

@media (max-width: 760px) {
  .site-header,
  .header-inner {
    min-height: 72px;
  }

  .brand--logo-only img {
    height: 44px;
    max-width: 178px;
  }

  .hero {
    padding-top: 0;
  }

  .hero__layout {
    min-height: 570px;
    border-radius: 0 0 28px 28px;
    padding: 2.2rem 1.15rem 1.3rem;
  }

  .hero__content {
    max-width: 100%;
  }

  .hero__content h1 {
    max-width: 360px;
    font-size: clamp(2.55rem, 12vw, 3.45rem);
  }

  .hero__lead {
    max-width: 350px;
    font-size: 1rem;
  }

  .hero__actions .button--secondary {
    display: none;
  }

  .operator-slide__photo {
    object-position: var(--mobile-position);
  }

  .operator-slide__overlay {
    background:
      linear-gradient(180deg, rgba(3, 16, 30, 0.88) 0%, rgba(3, 16, 30, 0.48) 45%, rgba(3, 16, 30, 0.9) 100%),
      linear-gradient(90deg, rgba(3, 16, 30, 0.42), transparent 75%);
  }

  .operator-slide__content {
    right: 1.15rem;
    bottom: 3.75rem;
    left: 1.15rem;
    width: auto;
    max-width: 340px;
  }

  .operator-slide__content p {
    display: none;
  }

  .operator-slide__logo {
    width: 120px !important;
    height: 52px !important;
    margin-bottom: 0.35rem;
  }

  .operator-slide__name {
    font-size: 1.1rem !important;
  }

  .operator-slide__routes span {
    font-size: 0.68rem;
  }

  .operator-slider__controls {
    right: 1rem;
    bottom: 0.95rem;
  }

  .booking-engine {
    width: calc(100% - 1.25rem);
    margin-top: -42px;
    border-radius: 20px;
    padding: 1rem;
  }

  .booking-engine__brand {
    display: grid;
    gap: 0.18rem;
  }

  .booking-engine__grid {
    grid-template-columns: 1fr;
  }

  .swap-button {
    order: 1;
    margin: -0.55rem 0;
    transform: rotate(90deg);
  }

  .booking-field--combo:nth-of-type(2) {
    order: 2;
  }

  .booking-field:not(.booking-field--combo) {
    order: 3;
  }

  .booking-engine__submit {
    order: 4;
  }

  .hero-trust-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .operator-strip {
    width: 100%;
    margin-top: 1rem;
    border-radius: 0;
  }

  .operator-marquee {
    animation-duration: 27s;
  }

  .operator-marquee__tile {
    width: 126px;
  }

  .data-table,
  .data-table tbody,
  .data-table tr,
  .data-table td {
    display: block;
    min-width: 0;
  }

  .data-table thead {
    display: none;
  }

  .table-wrap {
    overflow: visible;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .data-table tbody {
    display: grid;
    gap: 0.75rem;
  }

  .data-table tr {
    overflow: hidden;
    border: 1px solid rgba(8, 34, 60, 0.12);
    border-radius: 16px;
    padding: 0.2rem 0;
    background: #fff !important;
    box-shadow: 0 7px 18px rgba(8, 34, 60, 0.04);
  }

  .data-table td {
    padding: 0.62rem 0.85rem;
    border-top: 0;
  }

  .data-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 0.18rem;
    color: #69798a;
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  .data-table td:first-child {
    padding-top: 0.9rem;
    font-size: 1.04rem;
  }

  .data-table td:last-child {
    padding-bottom: 0.9rem;
  }

  .rail-promo__cards article {
    min-height: 0;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid > :first-child {
    grid-column: 1 / -1;
  }
}

/* Final viewport and header sizing overrides. Kept last to defeat legacy responsive rules. */
.hero__layout {
  min-height: 100svh !important;
}

.booking-engine {
  position: relative;
  margin: 1.5rem auto 0 !important;
}

.site-header,
.header-inner {
  min-height: 96px;
}

.brand--logo-only {
  min-width: 98px;
}

.brand--logo-only img {
  height: 88px !important;
  max-width: 260px !important;
  transform: scale(1.16);
  transform-origin: left center;
}

@media (max-width: 760px) {
  .site-header,
  .header-inner {
    min-height: 80px;
  }

  .brand--logo-only {
    min-width: 72px;
  }

  .brand--logo-only img {
    height: 66px !important;
    max-width: 196px !important;
    transform: scale(1.1);
  }

  .hero__layout {
    min-height: 100svh !important;
  }

  .booking-engine {
    width: min(calc(100% - 1.25rem), 700px);
    margin-top: 1rem !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .operator-slide,
  .operator-slide__photo,
  .button,
  .table-cta,
  .operator-marquee {
    animation: none;
    transition: none;
  }
}

/* Final page-level fixes: these remain last because legacy styles are layered above. */
.hero.section {
  width: 100%;
  max-width: none;
  margin-inline: 0;
  padding-inline: 0;
}

.hero__layout {
  width: 100%;
  max-width: none;
  min-height: 100svh !important;
  border-radius: 0;
}

.data-table thead th {
  position: static !important;
  inset: auto !important;
  z-index: auto !important;
}

.table-wrap {
  overflow-x: auto;
  overflow-y: visible;
}

/* True-final mobile containment override. Keep this at the end of the file. */
@media (max-width: 760px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .section,
  .header-inner,
  .mobile-menu,
  .site-footer {
    width: min(100% - 1rem, var(--page)) !important;
    max-width: 100% !important;
  }

  .hero.section,
  .operator-strip {
    width: 100% !important;
    max-width: 100% !important;
  }

  .hero__layout,
  .hero__content,
  .hero__content h1,
  .hero__lead,
  .booking-engine,
  .booking-engine__grid,
  .booking-engine__brand,
  .content-flow,
  .content-flow > section,
  .operator-slider,
  .operator-slider__viewport,
  .operator-slide,
  .operator-slide__content,
  .rail-promo,
  .rail-promo__cards,
  .rail-promo__cards article,
  .faq-grid,
  .faq-grid details,
  .route-notes,
  .route-notes article,
  .operator-feature-grid,
  .operator-card,
  .compact-grid,
  .compact-grid article,
  .station-grid,
  .callout,
  .answer-box,
  .method-card,
  .contents-card,
  .city-widget,
  .gyg-activity-widget,
  .schedule-widget {
    min-width: 0 !important;
    max-width: 100% !important;
  }

  .hero__content h1,
  .hero__lead {
    width: 100% !important;
  }

  h1,
  h2,
  h3,
  h4,
  p,
  li,
  a,
  span,
  strong,
  small,
  summary,
  figcaption,
  label,
  button,
  input,
  th,
  td {
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: normal;
    hyphens: auto;
  }

  .button,
  .table-cta,
  .text-cta {
    white-space: normal !important;
    text-align: center;
  }

  .booking-engine {
    width: min(100% - 1rem, 700px) !important;
    overflow: visible;
  }

  .booking-engine__grid,
  .booking-engine__brand,
  .hero-trust-row,
  .footer-grid,
  .rail-promo__cards,
  .operator-feature-grid,
  .compact-grid,
  .route-notes,
  .faq-grid,
  .station-grid {
    grid-template-columns: 1fr !important;
  }

  .footer-grid > * {
    grid-column: auto !important;
  }

  .table-wrap {
    width: 100% !important;
    max-width: 100% !important;
    overflow: visible !important;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .data-table,
  .price-table,
  .data-table thead,
  .data-table tbody,
  .data-table tr,
  .data-table th,
  .data-table td {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }

  .data-table thead {
    display: none !important;
  }

  .data-table tbody {
    display: grid !important;
    gap: 0.8rem;
  }

  .data-table tr {
    overflow: hidden;
    border: 1px solid rgba(8, 34, 60, 0.12);
    border-radius: 16px;
    background: #fff !important;
    box-shadow: 0 8px 20px rgba(8, 34, 60, 0.05);
  }

  .data-table td {
    padding: 0.68rem 0.85rem !important;
    border-top: 1px solid rgba(8, 34, 60, 0.08) !important;
    line-height: 1.52;
  }

  .data-table td:first-child {
    border-top: 0 !important;
  }

  .data-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 0.2rem;
    color: #69798a;
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  .guide-gallery {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(230px, 86%);
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline mandatory;
  }

  .guide-gallery > * {
    scroll-snap-align: start;
  }

  .schedule-widget,
  .city-widget,
  .gyg-activity-widget {
    overflow: hidden !important;
  }

  .schedule-widget iframe,
  .city-widget iframe,
  .gyg-activity-widget iframe,
  onetwogo-travelto-widget,
  .gyg-activity-widget [data-gyg-widget] {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }
}
