:root {
  --navy: #1b1b1b;
  --navy-2: #333333;
  --cyan: #ffcc00;
  --cyan-2: #e6b800;
  --ice: #fcf8ea;
  --mist: #f4f4f4;
  --text: #3c3c3b;
  --muted: #676765;
  --line: rgba(27, 27, 27, 0.12);
  --white: #fff;
  --shadow: 0 14px 36px rgba(0, 0, 0, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  font-family: Poppins, Segoe UI, system-ui, sans-serif;
  color: var(--text);
  background: #fff;
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: var(--navy); text-decoration: none; }
a:hover { color: #000; }
img { max-width: 100%; }

.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  z-index: 40;
  overflow: hidden;
}
.site-header-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0.7rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: nowrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
}
.brand { min-width: 0; overflow: hidden; }
.brand img { height: 48px; width: 48px; flex-shrink: 0; }
.brand-nr, .brand-via, .brand-via-home { display: none; max-width: 160px; height: 28px !important; width: auto !important; }
.brand-titles { line-height: 1.1; }
.brand-titles strong { display: block; color: var(--navy); font-size: 1.15rem; }
.brand-titles span { color: var(--cyan-2); font-size: 0.92rem; font-weight: 600; }
.brand-name-mobile { display: none; }
.header-nav { display: flex; align-items: center; gap: 1.1rem; flex-wrap: wrap; }
.header-nav a { font-weight: 600; color: var(--navy); font-size: 0.95rem; }
.header-call {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 12px;
  background: var(--mist);
  border: 1px solid var(--line);
  color: inherit;
}
.header-call i {
  width: 38px; height: 38px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--cyan);
  color: var(--navy);
}
.header-call small { display: block; color: var(--muted); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em; }
.header-call b { color: var(--navy); }

.hero {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.58), rgba(27, 27, 27, 0.78)),
    url("https://images.unsplash.com/photo-1474487548417-781cb71495f3?auto=format&fit=crop&w=1800&q=80") center/cover no-repeat;
  color: #fff;
  padding: 3.2rem 0 4rem;
}
.hero { overflow: visible; }
.hero-inner { max-width: 760px; margin: 0 auto; padding: 0 1rem; width: 100%; }
.hero h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 700; margin: 0 0 0.6rem; text-align: center; }
.hero .lead { text-align: center; color: rgba(255,255,255,0.9); font-size: 1.05rem; margin-bottom: 1.6rem; }
.mobile-welcome,
.mobile-form-title { display: none; }

.search-card {
  background: #fff;
  color: var(--text);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 1.35rem 1.2rem 1.45rem;
  overflow: visible;
  max-width: 100%;
}
.trip-toggle { display: flex; justify-content: center; gap: 1.4rem; margin-bottom: 1rem; }
.trip-toggle label { font-weight: 600; cursor: pointer; color: var(--navy); }
.trip-toggle input { margin-right: 6px; accent-color: var(--cyan); }

.search-stack {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}
.field { position: relative; width: 100%; max-width: 100%; min-width: 0; z-index: auto; }
.field.is-open { z-index: 40; }
.field label {
  position: static;
  display: block;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--navy);
  -webkit-text-fill-color: var(--navy);
  background: transparent;
  margin: 0 0 8px;
  padding: 0;
}
.field-control {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 54px;
  border: 1px solid #c5c5c3;
  border-radius: 8px;
  background: #fff;
}
.field-control:focus-within {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(255, 204, 0, 0.35);
}
.field input, .field select {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: 54px;
  border: 1px solid #c5c5c3;
  border-radius: 8px;
  padding: 0 14px;
  font: inherit;
  font-size: 16px;
  line-height: 1.25;
  margin: 0;
  color: var(--navy);
  -webkit-text-fill-color: var(--navy);
  background: #fff;
  box-sizing: border-box;
}
.field-control input {
  flex: 1 1 auto;
  height: 52px;
  line-height: 1.25;
  border: 0;
  border-radius: 8px;
  padding: 0 14px 0 4px;
  background: transparent;
  box-shadow: none;
  -webkit-appearance: none;
  appearance: none;
}
.field select { color: var(--muted); -webkit-text-fill-color: var(--muted); background-color: #fff; }
.field select.has-value { color: var(--navy); -webkit-text-fill-color: var(--navy); }
.field select:disabled,
.field select.is-locked {
  opacity: 0.55;
  cursor: not-allowed;
  background: var(--mist);
}
.field input.date-picker {
  cursor: pointer;
  caret-color: transparent;
}
.field input::placeholder {
  color: var(--muted);
  -webkit-text-fill-color: var(--muted);
  text-transform: capitalize;
  opacity: 1;
}
.field input:focus, .field select:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(255, 204, 0, 0.35);
}
.field-control input:focus { box-shadow: none; border-color: transparent; }
.field-icon {
  position: static;
  flex: 0 0 40px;
  width: 40px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
  font-size: 1rem;
  line-height: 1;
  pointer-events: none;
  z-index: 2;
  transform: none;
}
.field-control .field-icon.is-action {
  pointer-events: auto;
  cursor: pointer;
}
.cal-popup {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 30;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 12px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.16);
  padding: 12px 12px 10px;
}
.cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.cal-head strong {
  color: var(--navy);
  font-size: 0.95rem;
}
.cal-nav {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 8px;
  background: var(--cyan);
  color: var(--navy);
  cursor: pointer;
}
.cal-nav:hover,
.cal-nav:focus { background: var(--cyan-2); outline: none; box-shadow: none; }
.cal-key {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 2px 2px;
  padding-top: 8px;
  border-top: 1px solid #e4e4e4;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
}
.cal-key span {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: #e7f6ec;
  box-shadow: inset 0 0 0 1px #7dcea0;
  flex: none;
}
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.cal-dow {
  text-align: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--muted);
  padding: 4px 0;
}
.cal-day {
  height: 38px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--navy);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
}
.cal-day:hover:not(:disabled) { background: var(--ice); }
.cal-day.is-today { box-shadow: inset 0 0 0 1px var(--cyan); }
.cal-day.is-selected {
  background: var(--cyan);
  color: var(--navy);
  box-shadow: none;
}
.cal-day.is-available:not(.is-selected) { background: #e7f6ec; color: #0b6b32; box-shadow: inset 0 0 0 1px #7dcea0; }
.cal-day.is-unavailable,
.cal-day:disabled { color: #c5c5c3; background: #f3f3f2; cursor: default; }
.cal-day.is-empty { visibility: hidden; }
.search-btn {
  width: 100%;
  height: 54px;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  background: var(--cyan);
  color: var(--navy);
  font-weight: 700;
  padding: 0 18px;
  font-size: 1.02rem;
}
.search-btn:hover { filter: brightness(1.04); color: var(--navy); }

.pax-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  width: 100%;
}
.pax-row .field { margin: 0; }

.suggest {
  position: absolute; left: 0; right: 0; top: calc(100% + 4px);
  background: #fff; border: 1px solid #ddd; border-radius: 10px;
  box-shadow: 0 12px 28px rgba(0,0,0,.16); z-index: 50;
  max-height: 320px; overflow: auto; display: none;
}
.suggest.open { display: block; }
.suggest-item {
  display: block; width: 100%; text-align: left; border: 0; background: #fff;
  padding: 10px 14px; border-bottom: 1px solid #eef3f7; cursor: pointer;
}
.suggest-item:hover, .suggest-item.active { background: var(--ice); }
.suggest-item strong { display: block; color: var(--navy); font-size: 0.95rem; }
.suggest-item span { color: var(--cyan-2); font-size: 0.82rem; }
.field-error { color: #c0392b; font-size: 0.78rem; }
.field-error:not(:empty) { margin-top: 4px; }

.section { padding: 3.4rem 0; }
.section.alt { background: var(--mist); }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 1rem; }
.section-title { text-align: center; margin-bottom: 2rem; }
.section-title h2 {
  margin: 0 0 0.7rem; color: var(--navy); font-size: clamp(1.5rem, 3vw, 2.1rem);
  position: relative; display: inline-block;
}
.section-title h2:after {
  content: ""; position: absolute; left: 50%; bottom: -8px; transform: translateX(-50%);
  width: 72px; height: 4px; background: var(--cyan); border-radius: 2px;
}
.section-title p { color: var(--muted); max-width: 720px; margin: 1.1rem auto 0; }

.cards-3, .cards-4, .explore-grid { display: grid; gap: 1.2rem; }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-4 { grid-template-columns: repeat(4, 1fr); }
.explore-grid { grid-template-columns: repeat(3, 1fr); }
.info-card, .benefit-card, .explore-card, .faq-item {
  background: #fff; border-radius: 14px; box-shadow: 0 8px 24px rgba(0,0,0,.08);
  border: 1px solid var(--line);
}
.info-card, .benefit-card { padding: 1.4rem 1.25rem; }
.info-card i, .benefit-card i { font-size: 1.7rem; color: var(--cyan); margin-bottom: 0.7rem; }
.info-card h3, .benefit-card h3 { color: var(--navy); margin: 0 0 0.5rem; font-size: 1.1rem; }
.info-card p, .benefit-card p { color: var(--muted); margin: 0; line-height: 1.65; }

.explore-card { overflow: hidden; cursor: pointer; text-align: left; padding: 0; width: 100%; }
.explore-card img { width: 100%; height: 160px; object-fit: cover; display: block; }
.explore-card .pad { padding: 1rem 1.1rem 1.15rem; }
.explore-card h3 { margin: 0 0 0.35rem; color: var(--navy); font-size: 1.05rem; }
.explore-card p { margin: 0; color: var(--muted); font-size: 0.9rem; }
.explore-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

.faq-list { max-width: 860px; margin: 0 auto; display: grid; gap: 0.8rem; }
.faq-item { padding: 0; overflow: hidden; }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 1rem 1.15rem; font-weight: 700; color: var(--navy);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item p { margin: 0; padding: 0 1.15rem 1.1rem; color: var(--muted); line-height: 1.65; }

.disclaimer-box {
  display: flex; gap: 1rem; background: #fff9f1; border: 1px solid rgba(232,93,4,.2);
  border-left: 6px solid #e85d04; border-radius: 14px; padding: 1.2rem 1.3rem;
}
.disclaimer-box i {
  width: 44px; height: 44px; border-radius: 50%; background: #e85d04; color: #fff;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.disclaimer-box h3 { margin: 0 0 0.4rem; color: #e85d04; }
.disclaimer-box p { margin: 0; color: #4a5568; }

.cta-band {
  background: var(--navy);
  color: #fff; text-align: center; padding: 3rem 1rem;
}
.cta-band h2 { color: #fff; margin-top: 0; }
.cta-band p { max-width: 680px; margin: 0 auto 1.2rem; color: rgba(255,255,255,.9); }
.cta-band a {
  display: inline-block; background: var(--cyan); color: var(--navy); font-weight: 700;
  padding: 12px 22px; border-radius: 999px;
}

.page-banner {
  background: var(--navy);
  color: #fff; padding: 2.4rem 1rem; text-align: center;
}
.page-banner h1 { margin: 0; }
.policy { max-width: 860px; margin: 0 auto; padding: 2rem 1rem 3rem; }
.policy h2, .policy h3 { color: var(--navy); }
.policy p, .policy li { color: var(--muted); line-height: 1.7; }

.details-page { background: linear-gradient(180deg, #eae8e1, #f4f4f4); min-height: 100vh; }
.details-wrap { max-width: 860px; margin: 0 auto; padding: 1.4rem 1rem 2.5rem; }
.route-bar {
  background: var(--navy);
  color: #fff; border-radius: 12px; padding: 0.85rem 1rem; margin-bottom: 1rem;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
}
.route-bar h1 { margin: 0; font-size: 1.15rem; font-weight: 700; line-height: 1.4; text-align: center; }
.route-bar > i { font-size: 0.9rem; opacity: .85; flex-shrink: 0; }
.route-end {
  min-width: 0;
  text-align: center;
}
.route-end strong {
  display: block;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  line-height: 1.2;
}
.route-end span {
  display: block;
  margin-top: 2px;
  font-size: 0.78rem;
  font-weight: 600;
  opacity: 0.88;
}
.panel {
  background: #fff; border-radius: 12px; box-shadow: var(--shadow); overflow: hidden;
  margin-bottom: 1rem;
}
.panel-head {
  background: var(--navy);
  color: #fff; padding: 0.9rem 1.1rem; font-weight: 700;
}
.passengers-page .panel-head { text-align: center; }
.booking-leg .panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.booking-leg-date {
  flex: 0 0 auto;
  font-size: 0.92rem;
  font-weight: 600;
  white-space: nowrap;
}
.panel-body { padding: 1.1rem; }
.train-count { font-size: 1.12rem; color: var(--navy); font-weight: 700; margin: 0 0 1rem; }
.train-card {
  border: 1px solid var(--line); border-radius: 12px; padding: 1rem; margin-bottom: 0.85rem;
}
.train-card:last-child { margin-bottom: 0; }
.train-card h3 { margin: 0 0 0.7rem; color: var(--navy); font-size: 1rem; }
.timeline { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; }
.time-col strong { display: block; font-size: 1.2rem; color: var(--navy); }
.time-col small { color: var(--muted); }
.line {
  flex: 1; height: 3px; background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  position: relative;
}
.line i { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); color: var(--cyan); background: #fff; padding: 0 8px; }
.train-meta { margin-top: 0.75rem; color: var(--muted); font-size: 0.88rem; }
.train-card-top { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; }
.train-card-top h3 { margin-bottom: 0.2rem; }
.train-route { margin: 0; color: var(--muted); font-size: 0.84rem; }
.train-price { text-align: right; flex-shrink: 0; }
.train-price span { display: block; color: var(--muted); font-size: 0.75rem; font-weight: 600; }
.train-price strong { display: block; color: var(--navy); font-size: 1.35rem; line-height: 1.2; }
.time-col-end { text-align: right; }
.day-offset { display: block; color: #9a6b00; font-size: 0.72rem; font-weight: 700; }
.transfer-note { margin: 0.65rem 0 0; color: var(--navy); font-size: 0.88rem; font-weight: 600; }
.transfer-note i { margin-right: 6px; color: #9a6b00; }
.fare-lines { list-style: none; margin: 0.75rem 0 0; padding: 0.65rem 0 0; border-top: 1px solid #eef3f7; }
.fare-lines li { display: flex; justify-content: space-between; gap: 12px; padding: 0.22rem 0; color: var(--muted); font-size: 0.86rem; }
.fare-lines b { color: var(--navy); }
.schedule-results { width: 100%; }
.schedule-actions { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 0.85rem; font-weight: 700; }
.schedule-actions a { color: var(--navy); }
.pax-summary { margin: 0 0 0.4rem; color: var(--muted); font-size: 0.92rem; }
.schedule-leg-title { margin: 1.15rem 0 0.15rem; color: var(--navy); font-size: 1.15rem; }
.schedule-date { margin: 0 0 0.75rem; color: var(--muted); font-size: 0.88rem; }
.fare-note { margin: 0.4rem 0 0; color: var(--muted); font-size: 0.82rem; line-height: 1.5; }
.bf-banner {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 0.85rem; padding: 0.7rem 0.9rem;
  border-radius: 12px; background: #111; color: #fff; font-weight: 700;
}
.bf-banner i { color: var(--cyan); }
.train-badges { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; max-width: 46%; }
.bf-pill, .time-pill {
  display: inline-flex; align-items: center;
  border-radius: 999px; padding: 4px 8px;
  font-size: 0.72rem; font-weight: 700; line-height: 1.2;
}
.bf-pill { background: #111; color: #fff; }
.time-pill { background: var(--ice); color: var(--navy); }
.time-bridge { flex: 1; min-width: 88px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.travel-time {
  background: var(--ice); color: var(--navy); font-size: 0.75rem; font-weight: 700;
  border-radius: 999px; padding: 3px 8px; white-space: nowrap;
}
.time-arrow { position: relative; width: 100%; height: 2px; background: var(--navy); }
.time-arrow::after {
  content: ""; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  border-left: 8px solid var(--navy); border-top: 5px solid transparent; border-bottom: 5px solid transparent;
}
.time-arrow i {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  background: #fff; color: var(--navy); padding: 0 6px; font-size: 0.85rem;
}
.price-summary { margin-top: 0.9rem; background: #faf8f2; border-radius: 12px; padding: 0.75rem 0.85rem 0.45rem; }
.price-route { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; color: var(--navy); font-weight: 700; margin-bottom: 0.35rem; }
.price-route i { font-size: 0.75rem; }
.price-summary .fare-lines { margin-top: 0.2rem; }
.price-row { display: flex; justify-content: space-between; gap: 12px; padding: 0.32rem 0; font-size: 0.9rem; }
.price-row.save b, .summary-row.save b { color: #0d7a32; }
.price-row.total { margin-top: 0.2rem; padding-top: 0.65rem; border-top: 1px solid var(--line); font-weight: 700; color: var(--navy); }
.price-row.total b { font-size: 1.28rem; }
.was, .summary-row b.was { text-decoration: line-through; color: var(--muted) !important; font-weight: 600; }
.reserve-btn {
  width: 100%; height: 48px; margin-top: 0.85rem; border: 0; border-radius: 8px;
  background: var(--cyan); color: var(--navy); font-weight: 800; font-size: 1rem; cursor: pointer;
}
.reserve-btn.is-on { background: var(--navy); color: #fff; }
#proceedBtn:disabled { opacity: 0.55; cursor: not-allowed; }
.seat-note { margin: 0; color: #b42318; font-size: 0.8rem; font-weight: 800; text-align: right; white-space: nowrap; }
.class-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 0.9rem; }
.class-choice {
  border: 1px solid #d5d5d5; background: #fff; border-radius: 10px;
  padding: 0.65rem 0.7rem; text-align: left; cursor: pointer; font: inherit;
}
.class-choice span { display: block; color: var(--muted); font-size: 0.78rem; font-weight: 700; }
.class-choice strong { display: block; margin-top: 2px; color: var(--navy); font-size: 1.12rem; }
.class-choice.is-on { border-color: var(--navy); background: var(--ice); box-shadow: inset 0 0 0 1px var(--navy); }
.class-hint { margin: 0.55rem 0 0; color: #c0392b; font-size: 0.82rem; font-weight: 600; }
.return-wait { margin: 0.2rem 0 1rem; color: var(--navy); font-weight: 600; }
.fare-action { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 0.95rem; }
.fare-total { margin: 0; }
.fare-total span { display: block; color: var(--muted); font-size: 0.75rem; font-weight: 700; }
.fare-total strong { display: block; color: var(--navy); font-size: 1.35rem; line-height: 1.1; }
.fare-action .reserve-btn { width: auto; min-width: 132px; margin-top: 0; padding: 0 1.2rem; }
.pax-contact { display: grid; gap: 0.85rem; margin-top: 0.95rem; }
.price-drop { border-top: 1px solid #eef3f7; }
.price-drop-toggle { width: 100%; border: 0; background: transparent; font: inherit; font-weight: 700; color: var(--navy); cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0.8rem 0; text-align: left; }
.price-drop-title { display: inline-flex; align-items: center; gap: 0.4rem; }
.price-drop-title .chev { font-size: 0.72rem; transition: transform 0.2s ease; }
.price-drop.is-open .chev { transform: rotate(180deg); }
.price-drop-toggle b { font-size: 1.05rem; }
.price-drop .fare-line { margin: 0; padding: 0.28rem 0 0.45rem; color: var(--navy); font-weight: 600; }
.summary-row.grand { border-bottom: 0; }
.summary-row.grand span, .summary-row.grand b { color: var(--navy); font-weight: 800; }
.price-drop .drop-body { padding-bottom: 0.35rem; }
.price-drop .drop-body[hidden] { display: none; }
.total-box .price-drop:first-of-type { border-top: 0; }
#returnLeg { scroll-margin-top: 16px; }
.trip-drop { background: #fff; border-radius: 12px; box-shadow: var(--shadow); margin-bottom: 0.7rem; overflow: hidden; }
.trip-drop summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0.9rem 1rem; font-weight: 700; color: var(--navy); }
.trip-drop summary::-webkit-details-marker { display: none; }
.trip-drop .chev { color: var(--navy); transition: transform 0.2s ease; }
.trip-drop[open] .chev { transform: rotate(180deg); }
.trip-drop .drop-body { padding: 0 1rem 1rem; }
.trip-drop .schedule-date { margin: 0 0 0.75rem; }
.total-box { background: #fff; border-radius: 12px; box-shadow: var(--shadow); padding: 0 0 0.4rem; margin-bottom: 0.85rem; overflow: hidden; }
.total-box h2 { margin: 0 0 0.35rem; padding: 0.9rem 1.1rem; background: #000; color: #fff; font-size: 1rem; font-weight: 700; }
.total-box .price-drop,
.total-box .summary-row { margin-left: 1rem; margin-right: 1rem; }
.booking-page .site-footer, .booking-page .call-bar { display: none; }
.booking-page { overflow-x: hidden; }
.booking-page .details-wrap {
  display: block;
  width: 100%;
  max-width: 1140px;
  box-sizing: border-box;
}
.booking-summary,
.booking-page .panel,
.booking-page .route-bar,
.booking-page .total-box,
.booking-page .reserve-btn {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.booking-page .timeline,
.booking-page .time-col { min-width: 0; }
.book-popup { position: fixed; inset: 0; z-index: 200; background: rgba(0, 0, 0, 0.55); display: flex; align-items: center; justify-content: center; padding: 1rem; }
.book-popup[hidden] { display: none; }
.book-popup-card { position: relative; width: min(400px, 100%); background: #fff; border-radius: 18px; padding: 1.6rem 1.2rem 1.25rem; text-align: center; box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22); }
.book-popup-card img { display: block; width: min(190px, 70%); height: auto; margin: 0 auto 1rem; }
.book-popup-card p { margin: 0 0 1rem; color: var(--navy); font-weight: 600; line-height: 1.45; }
.book-popup-x { position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; border: 0; border-radius: 50%; background: #f3f3f3; color: var(--navy); cursor: pointer; }
.book-call { display: flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; }
.train-card.is-reserved { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(255, 204, 0, 0.35); }
.reserve-hint { margin: 0 0 0.9rem; padding: 0.75rem 0.9rem; background: var(--ice); border-radius: 10px; font-weight: 600; color: var(--navy); }
.booking-summary h1 { margin: 0.2rem 0 0.85rem; color: var(--navy); font-size: 1.5rem; }
.price-leg { margin-top: 0.85rem; padding-top: 0.75rem; border-top: 1px solid var(--line); }
.price-leg h3 { margin: 0 0 0.35rem; color: var(--navy); font-size: 0.98rem; }
.booking-leg .schedule-date { margin-bottom: 0.85rem; }
.grand-total { margin-top: 0.35rem; padding-top: 0.75rem; border-top: 1px solid var(--line); }
.grand-total span, .grand-total b { color: var(--navy); font-size: 1.15rem; }
.grand-total b { font-size: 1.45rem; }
.fare-lines s { color: var(--muted); margin-right: 6px; font-weight: 600; }
.chip { display: inline-block; background: var(--ice); color: var(--navy); border-radius: 999px; padding: 3px 10px; margin-right: 6px; font-size: 0.78rem; font-weight: 600; }
.summary-row { display: flex; justify-content: space-between; gap: 10px; padding: 0.55rem 0; border-bottom: 1px solid #eef3f7; }
.summary-row span { color: var(--muted); }
.summary-row b { color: var(--navy); text-align: right; }
.confirm-find-btn { margin-top: 1.15rem; }
.passengers-page .pax-row { margin-bottom: 0.35rem; }
.confirm-find-btn:disabled { opacity: 0.85; cursor: wait; }
.modify-link {
  display: block; text-align: center; margin-top: 1rem; font-weight: 700; color: var(--cyan-2);
}
.empty-state { padding: 2rem 1rem; text-align: center; color: var(--muted); }

.finding-box {
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 3rem 1.4rem;
  text-align: center;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.finding-box img, .finding-box .train-gif {
  width: min(320px, 90%);
  height: auto;
  margin-bottom: 1rem;
}
.finding-box h2 { margin: 0 0 0.4rem; color: var(--navy); font-size: 1.6rem; }
.finding-box p { margin: 0; color: var(--muted); }

.notice-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--shadow);
  text-align: center;
  padding: 0 1.5rem 1.8rem;
  overflow: hidden;
}
.notice-banner {
  margin: 0 -1.5rem 1.35rem;
  padding: 1rem 1.1rem;
  background: linear-gradient(90deg, #9b1024, #c8102e 45%, #e11d2e);
  color: #fff;
  font-size: clamp(1.05rem, 3.4vw, 1.35rem);
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.12);
}
.notice-card h1 {
  margin: 0 0 0.9rem;
  color: var(--navy);
  font-size: clamp(1.15rem, 3vw, 1.55rem);
  line-height: 1.4;
}
.notice-card p {
  margin: 0 auto 1.25rem;
  max-width: 560px;
  color: var(--muted);
  line-height: 1.7;
}
.notice-card .call-cta { margin-bottom: 1.2rem; }
.notice-apology {
  margin: 0 auto !important;
  font-size: 0.92rem;
  color: #5b6f82 !important;
}

.notice-popup {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 52px;
  z-index: 90;
  background: rgba(0, 0, 0, 0.42);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem 0.7rem;
}
.notice-popup.is-open { display: flex; }
.notice-popup-card {
  width: min(440px, 100%);
  min-height: 340px;
  margin: 0;
  background: #fff;
  border-radius: 22px;
  padding: 2.35rem 1.55rem 1.85rem;
  text-align: center;
  box-shadow: 0 18px 44px rgba(0, 20, 50, 0.2);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.notice-page {
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
  text-align: center;
  margin-bottom: 1rem;
}
.notice-page-head {
  padding: 1.35rem 1.2rem 1.05rem;
  background: #fff;
  border-bottom: 1px solid #eef3f7;
}
.notice-page-head img {
  display: block;
  height: auto;
  width: auto;
  max-width: 240px;
  max-height: 92px;
  margin: 0 auto;
  object-fit: contain;
}
.notice-page-body {
  padding: 1.45rem 1.3rem 1.85rem;
}
.important-notice-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 auto 1rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: var(--ice);
  color: var(--navy);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.important-notice-label i {
  color: #c8102e;
  font-size: 1.05rem;
}
.notice-page-body h1 {
  margin: 0 0 0.75rem;
  color: var(--navy);
  font-size: clamp(1.02rem, 3.2vw, 1.28rem);
  font-weight: 700;
  line-height: 1.4;
  white-space: normal;
}
.notice-page-body p {
  margin: 0 auto 1.25rem;
  max-width: 520px;
  color: var(--navy);
  font-size: 0.98rem;
  line-height: 1.55;
}
.notice-page-body .notice-apology {
  margin: 1rem auto 0 !important;
}
.notice-popup-logo {
  display: block;
  height: auto;
  width: auto;
  max-width: 250px;
  max-height: 140px;
  margin: -0.4rem auto 0.85rem;
  object-fit: contain;
}
.notice-popup-card h1 {
  margin: 0 0 0.7rem;
  color: var(--navy);
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
}
.notice-popup-card p {
  margin: 0 0 1.25rem;
  color: var(--navy);
  font-size: 0.98rem;
  line-height: 1.5;
}
.notice-popup-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 54px;
  border-radius: 999px;
  background: var(--cyan);
  color: var(--navy) !important;
  font-weight: 700;
  font-size: 1.05rem;
}
.notice-popup-btn:hover { color: var(--navy) !important; filter: brightness(1.04); }
.notice-popup-card .notice-apology {
  margin: 1rem auto 0 !important;
  font-size: 0.88rem;
  color: #5b6f82 !important;
}
html.popup-locked,
html.popup-locked body {
  overflow: hidden !important;
  height: 100%;
  overscroll-behavior: none;
}
body.popup-locked {
  position: fixed;
  left: 0;
  right: 0;
  width: 100%;
  overflow: hidden !important;
  touch-action: none;
}
.home-mobile-popup,
.bf-popup,
.maint-popup {
  overscroll-behavior: none;
}
.maint-popup-card,
.bf-popup-card {
  overscroll-behavior: contain;
  touch-action: pan-y;
}
.passengers-page.popup-locked .site-header { z-index: 110; }
.passengers-page .brand,
.passengers-page .brand-uk,
.passengers-page .brand-titles,
.passengers-page .brand-via { display: none !important; }
.passengers-page .site-footer,
.schedules-page .site-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  padding: 0.85rem 1rem;
}
.passengers-page .agent-call-bar { display: none !important; }
.passengers-page .details-wrap { padding-bottom: 2rem; }
.schedules-page .details-wrap { padding-bottom: 4.6rem; }
.schedules-page .call-bar { display: none !important; }
.schedules-page .site-header {
  display: block;
  background: #fff;
}
.agent-call-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 58px;
  padding: 0.85rem 1rem;
  background: var(--cyan);
  color: var(--navy) !important;
  font-weight: 800;
  font-size: 1.08rem;
  box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.12);
}
.agent-call-bar:hover { color: var(--navy) !important; filter: brightness(1.04); }
.agent-call-bar i { font-size: 1.1rem; }
.schedules-page .site-header-inner {
  justify-content: center;
  padding: 0.85rem 1rem;
}
.schedules-page .schedules-brand {
  display: flex;
  justify-content: center;
  width: 100%;
  overflow: visible;
}
.schedules-page .schedules-brand img {
  display: block;
  height: auto;
  width: auto;
  max-width: 220px;
  max-height: 72px;
  object-fit: contain;
}
.schedules-page .notice-page { margin-top: 1rem; }
.schedules-page .notice-page-body { padding-top: 1.6rem; }

.call-agent-card {
  position: relative;
  overflow: hidden;
  text-align: center;
  color: #fff;
  border-radius: 18px;
  padding: 2.2rem 1.4rem 1.7rem;
  background:
    radial-gradient(circle at 90% 0%, rgba(255, 204, 0, 0.28), transparent 42%),
    linear-gradient(145deg, #000000 0%, #1b1b1b 52%, #333333 100%);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}
.call-agent-icon {
  width: 76px;
  height: 76px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.14);
  border: 2px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 0 0 10px rgba(255, 204, 0, 0.18);
  animation: call-pulse 1.8s ease-in-out infinite;
}
.call-agent-icon i { font-size: 2rem; color: #fff; }
.call-agent-card h2 {
  margin: 0 0 0.55rem;
  color: #fff;
  font-size: clamp(1.2rem, 3vw, 1.55rem);
  line-height: 1.35;
}
.call-agent-card p {
  margin: 0 auto 1.15rem;
  max-width: 520px;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.6;
}
.call-phone {
  display: block;
  margin: 0 0 1.1rem;
  color: #fff !important;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}
.call-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 420px;
  min-height: 60px;
  border-radius: 999px;
  background: var(--cyan);
  color: var(--navy) !important;
  font-weight: 700;
  font-size: 1.12rem;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.18);
}
.call-cta:hover { filter: brightness(1.04); color: var(--navy) !important; }
.call-cta i { font-size: 1.15rem; }
@keyframes call-pulse {
  0%, 100% { box-shadow: 0 0 0 8px rgba(255, 204, 0, 0.22); transform: scale(1); }
  50% { box-shadow: 0 0 0 16px rgba(255, 204, 0, 0.08); transform: scale(1.04); }
}

.contact-grid { display: grid; grid-template-columns: 0.9fr 1.2fr; gap: 1.2rem; }
.contact-info {
  background: var(--navy);
  color: #fff; border-radius: 14px; padding: 1.6rem;
}
.contact-info a { color: #fff; }
.contact-form { background: #fff; border-radius: 14px; box-shadow: var(--shadow); padding: 1.5rem; }
.contact-form input, .contact-form textarea, .contact-form select {
  width: 100%; border: 1px solid #c5c5c3; border-radius: 8px; padding: 12px; margin-bottom: 0.8rem; font: inherit;
}
.form-ok { color: #1b7a36; font-weight: 600; }
.form-err { color: #c0392b; font-weight: 600; }

.site-footer { background: var(--navy); color: #eae8e1; padding: 1.4rem 1rem; }
.site-footer-inner { max-width: 1140px; margin: 0 auto; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.site-footer a { color: var(--cyan); margin-right: 0.8rem; }
.call-bar { background: var(--cyan); color: var(--navy); text-align: center; padding: 0.7rem; }
.call-bar a { color: var(--navy); font-weight: 700; }

.station-sheet { display: none; }
@media (max-width: 991px) {
  .cards-3, .cards-4, .explore-grid, .contact-grid { grid-template-columns: 1fr; }
  .header-nav,
  .header-call { display: none !important; }
  .home-page .site-header-inner {
    justify-content: center;
    padding-top: 1.05rem;
    padding-bottom: 1.05rem;
  }
  .home-page .brand {
    justify-content: center;
    width: 100%;
  }
  .home-page .brand-uk,
  .home-page .brand-via,
  .home-page .brand-titles,
  .home-page .brand-name-desktop,
  .home-page .brand-tagline,
  .home-page .brand-name-mobile { display: none !important; }
  .home-page .site-header { overflow: visible; }
  .home-page .brand-via-home {
    display: block !important;
    height: auto !important;
    width: auto !important;
    max-width: 220px;
    max-height: 72px;
    object-fit: contain;
  }
  .hero h1,
  .hero .lead { display: none; }
  .mobile-welcome {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-sizing: border-box;
    min-height: calc(100svh - 104px);
    margin: 0;
    padding: 2.4rem 1.25rem 2.6rem;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.78) 0%, rgba(255, 255, 255, 0.84) 100%),
      url("https://images.unsplash.com/photo-1506905925346-21bda4d32df4?auto=format&fit=crop&w=1400&q=80") center/cover no-repeat;
    color: var(--navy);
  }
  .mw-kicker {
    margin: 0 0 0.55rem;
    color: #8a6a00;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.26em;
    text-transform: uppercase;
  }
  .mw-brand {
    margin: 0 0 1.5rem;
    color: #1b1b1b;
    font-size: clamp(2.15rem, 9vw, 2.7rem);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.03em;
  }
  .mw-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 1.15rem;
    padding: 0.55rem 1.05rem;
    border-radius: 999px;
    background: #ffcc00;
    color: #1b1b1b;
    font-size: 0.98rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }
  .mw-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #c8102e;
    box-shadow: 0 0 0 4px rgba(200, 16, 46, 0.18);
  }
  .mw-offer {
    margin: 0 0 1.35rem;
    color: #1b1b1b;
    font-size: clamp(1.08rem, 4.5vw, 1.32rem);
    font-weight: 600;
    line-height: 1.25;
    white-space: nowrap;
  }
  .mw-offer strong {
    margin-right: 0.28em;
    color: #c8102e;
    font-size: 1.45em;
    letter-spacing: -0.03em;
  }
  .mw-assist {
    margin: 0 0 1.85rem;
    max-width: 20rem;
    color: #3c3c3b;
    font-size: 1.12rem;
    font-weight: 500;
    line-height: 1.6;
  }
  .mw-call {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    width: 100%;
    max-width: 22rem;
    min-height: 76px;
    padding: 0.85rem 1.2rem;
    border-radius: 999px;
    background: #ffcc00;
    color: #1b1b1b !important;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    text-decoration: none;
    box-shadow: none;
  }
  .mw-call-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #1b1b1b;
    color: #ffcc00;
    font-size: 1.15rem;
    flex: 0 0 auto;
  }
  .mobile-form-title {
    display: block;
    margin: 0.15rem 0.4rem 1.05rem;
    color: var(--navy);
    font-size: 1.45rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
  }
  .hero {
    background: #fff;
    color: var(--text);
    padding: 0 0 1.2rem;
  }
  .hero-inner {
    max-width: none;
    width: 100%;
    padding: 0;
  }
  .search-card {
    width: 100%;
    max-width: 100%;
    border-radius: 0 0 22px 22px;
    padding: 1.2rem 0.85rem 1.35rem;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
    border-top: 4px solid var(--cyan);
    touch-action: pan-y;
  }
  .home-page #fromInput,
  .home-page #toInput {
    pointer-events: none;
    caret-color: transparent;
    user-select: none;
    -webkit-user-select: none;
  }
  .search-stack { gap: 1rem; }
  .field,
  .field-control,
  .field input,
  .field select {
    width: 100%;
    max-width: 100%;
  }
  .field-control,
  .field input,
  .field select {
    min-height: 56px;
    border-radius: 12px;
  }
  .search-btn {
    width: 100%;
    min-height: 56px;
    height: 56px;
    border-radius: 12px;
    font-size: 1.06rem;
  }
  .trip-toggle {
    background: var(--mist);
    border-radius: 12px;
    padding: 0.7rem 0.5rem;
    margin-bottom: 1.05rem;
  }
  body.cal-open .hero { padding-bottom: 22rem; }
  .call-bar,
  .footer-links { display: none; }
  .search-card .suggest { display: none !important; }
  body.sheet-open {
    position: fixed;
    left: 0;
    right: 0;
    overflow: hidden;
  }
  .station-sheet {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0;
    z-index: 200;
    background: var(--mist);
    padding-top: env(safe-area-inset-top);
    visibility: hidden;
    pointer-events: none;
    opacity: 0;
  }
  .station-sheet.is-open {
    visibility: visible;
    pointer-events: auto;
    opacity: 1;
  }
  .station-sheet[hidden] { display: flex; }
  .station-sheet-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: var(--navy);
    color: #fff;
  }
  .station-sheet-bar button {
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 1.05rem;
  }
  .station-sheet-bar strong { font-size: 1.05rem; }
  .station-sheet-search {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 12px 14px 10px;
    padding: 0 14px;
    background: #fff;
    border: 1px solid #c5c5c3;
    border-radius: 12px;
  }
  .station-sheet-search i { color: var(--cyan); }
  .station-sheet-search input {
    flex: 1;
    min-width: 0;
    height: 54px;
    border: 0;
    font: inherit;
    font-size: 16px;
    color: var(--navy);
    background: transparent;
  }
  .station-sheet-search input:focus { outline: none; }
  .station-sheet-list {
    flex: 1;
    overflow: auto;
    background: #fff;
    margin: 0 14px 14px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    -webkit-overflow-scrolling: touch;
  }
  .station-sheet-item {
    display: block;
    width: 100%;
    text-align: left;
    border: 0;
    background: #fff;
    border-bottom: 1px solid #eef3f7;
    padding: 14px 16px;
    min-height: 64px;
  }
  .station-sheet-item strong { display: block; color: var(--navy); font-size: 1rem; }
  .station-sheet-item span { color: var(--cyan-2); font-size: 0.82rem; }
  .station-sheet-hint {
    padding: 1.4rem 1rem;
    color: var(--muted);
    text-align: center;
  }
  .site-footer-inner { justify-content: center; text-align: center; }
  .passengers-page .site-header { display: none; }
  .passengers-page .agent-call-bar,
  .passengers-page .site-footer,
  .passengers-page .call-bar { display: none !important; }
  .passengers-page .details-wrap { padding-bottom: 7rem; }
  .passengers-page.keyboard-open .details-wrap { padding-bottom: max(320px, 52vh); }
  .passengers-page #fullName { scroll-margin-bottom: 46vh; }
  .passengers-page #phone { scroll-margin-bottom: 22vh; }
  .passengers-page .pax-row .field,
  .passengers-page .pax-contact .field { scroll-margin-top: 16px; scroll-margin-bottom: 45vh; }
  .passengers-page .route-bar { margin-bottom: 1.25rem; }
  .passengers-page .panel-body { padding-top: 1.45rem; }
  .passengers-page .pax-row {
    margin-top: 0.35rem;
    margin-bottom: 0.7rem;
    row-gap: 1rem;
  }
  .schedules-page {
    min-height: 100svh;
    display: flex;
    flex-direction: column;
  }
  .schedules-page .site-header { display: block !important; }
  .booking-page .site-header { display: none !important; }
  .schedules-page:not(.booking-page) .brand-uk,
  .schedules-page:not(.booking-page) .brand-titles { display: none !important; }
  .schedules-page:not(.booking-page) .brand-via-home {
    display: block !important;
    height: auto !important;
    width: auto !important;
    max-width: 190px;
    max-height: 64px;
    object-fit: contain;
  }
  .schedules-page .schedules-brand img { max-width: 190px; max-height: 64px; }
  .schedules-page .details-wrap {
    flex: 1;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    padding-top: 0.6rem;
    padding-bottom: 4.8rem;
    width: 100%;
  }
  .booking-page .details-wrap {
    display: block;
    flex: 1 1 auto;
    width: 100%;
    max-width: none;
    padding: 0.75rem 0.75rem 1.4rem;
  }
  .booking-page .booking-summary { width: 100%; }
  .schedules-page .finding-box { margin-top: auto; margin-bottom: auto; }
  .schedules-page .finding-box,
  .schedules-page .notice-page {
    width: 100%;
    margin: 0;
  }
  .notice-page-head { padding: 1.15rem 1rem 0.9rem; }
  .notice-page-head img { max-width: 200px; max-height: 78px; }
  .notice-page-body { padding: 1.2rem 1.05rem 1.6rem; }
  .notice-page-body h1 { font-size: 1.02rem; white-space: normal; }
  .notice-popup-card { padding: 2.2rem 1.05rem 1.7rem; min-height: 320px; }
  .notice-popup-logo { max-width: 220px; max-height: 120px; }
  .notice-popup-card h1 {
    white-space: nowrap;
    font-size: clamp(0.78rem, 3.7vw, 1.05rem);
    letter-spacing: -0.02em;
  }
}
@media (max-width: 640px) {
  .schedules-page .timeline,
  .booking-page .timeline { flex-wrap: nowrap; gap: 0.35rem; }
  .schedules-page .time-col strong,
  .booking-page .time-col strong { font-size: 0.92rem; }
  .schedules-page .time-col small,
  .booking-page .time-col small { font-size: 0.68rem; display: block; }
  .schedules-page .travel-time,
  .booking-page .travel-time { font-size: 0.68rem; padding: 2px 6px; }
  .schedules-page .time-bridge,
  .booking-page .time-bridge { min-width: 64px; }
  .seat-note { white-space: normal; max-width: 42%; font-size: 0.72rem; }
  .fare-action { align-items: stretch; }
  .fare-action .reserve-btn { min-width: 108px; }
  .route-bar { padding: 0.8rem 0.55rem; gap: 0.35rem; }
  .route-end strong { font-size: 0.95rem; word-break: break-word; }
  .booking-summary .panel-body { padding-left: 0.8rem; padding-right: 0.8rem; }
  .total-box h2 { padding-left: 0.9rem; padding-right: 0.9rem; }
  .total-box .price-drop,
  .total-box .summary-row { margin-left: 0.8rem; margin-right: 0.8rem; }
  .price-drop-toggle { font-size: 0.92rem; }
  .book-popup {
    padding: 1rem;
    align-items: center;
    justify-content: center;
  }
  .book-popup-card {
    width: min(400px, calc(100% - 0.5rem));
    margin: 0 auto;
    border-radius: 18px;
  }
  .book-popup-card p { font-size: 0.95rem; }
  .brand-titles strong { font-size: 1rem; }
  .home-page .brand-via-home {
    max-width: 190px;
    max-height: 64px;
  }
  .hero { padding: 0 0 1rem; }
  .search-card { padding: 1.1rem 0.75rem 1.25rem; }
  .field label { font-size: 0.9rem; margin-bottom: 8px; }
  .field input,
  .field select,
  .field-control { min-height: 56px; }
  .timeline { flex-wrap: wrap; }
}

.home-mobile-popup,
.bf-popup,
.maint-popup {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.home-mobile-popup[hidden],
.bf-popup[hidden],
.maint-popup[hidden] { display: none !important; }
@media (min-width: 992px) {
  .home-mobile-popup,
  .bf-popup,
  .maint-popup { display: none !important; }
}
.home-mobile-popup-backdrop,
.bf-popup-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 10, 6, 0.62);
  backdrop-filter: blur(4px);
}
.maint-popup-card {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  max-height: min(92svh, 720px);
  overflow: auto;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  text-align: center;
  animation: bf-pop 0.38s cubic-bezier(0.2, 0.8, 0.2, 1);
  -webkit-overflow-scrolling: touch;
}
.maint-popup-head {
  padding: 1.15rem 1.2rem 0.95rem;
  background: #fff;
  border-bottom: 1px solid rgba(27, 27, 27, 0.08);
}
.maint-popup-head img {
  display: block;
  width: auto;
  height: auto;
  max-width: 196px;
  max-height: 68px;
  margin: 0 auto;
  object-fit: contain;
}
.maint-popup-body {
  padding: 1.15rem 1.2rem 1.35rem;
}
.maint-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 auto 0.85rem;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  background: var(--ice);
  color: var(--navy);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.3;
  max-width: 100%;
}
.maint-badge i { color: #c8102e; }
.maint-popup-card h2.maint-badge {
  margin: 0 auto 0.85rem;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.3;
  color: var(--navy);
}
.maint-popup-card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--navy);
}
.maint-popup-card p {
  margin: 0 auto;
  max-width: 34rem;
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.55;
}
.maint-popup-card .bf-enquire { margin: 1.1rem 0 0.85rem; }
.maint-apology {
  color: var(--muted) !important;
  font-size: 0.86rem !important;
  line-height: 1.5 !important;
}
.bf-popup-card {
  position: relative;
  z-index: 1;
  width: min(440px, 100%);
  padding: 1.55rem 1.25rem 1.45rem;
  border-radius: 22px;
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 255, 255, 0.35), transparent 38%),
    linear-gradient(180deg, #ffe566 0%, #ffcc00 42%, #f5b800 100%);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  text-align: center;
  color: #1b1b1b;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: bf-pop 0.38s cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes bf-pop {
  from { opacity: 0; transform: translateY(18px) scale(0.96); }
  to { opacity: 1; transform: none; }
}
.bf-popup-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: #1b1b1b;
  color: #ffcc00;
  font-size: 1.15rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.bf-popup-close:hover { background: #000; }
.bf-popup-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35em;
  width: auto;
  margin: 0.15rem auto 1rem;
  padding: 0.48rem 1.2rem;
  border-radius: 8px;
  background: #1b1b1b;
  color: #fff;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1;
  text-align: center;
}
.bf-popup-logo span { color: #ffcc00; }
.bf-led {
  position: relative;
  width: 100%;
  margin: 0 auto 1.05rem;
  padding: 1.15rem 0.8rem 1rem;
  border-radius: 12px;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.09) 1px, transparent 1.4px) 0 0 / 5px 5px,
    #111;
  box-shadow: inset 0 0 0 3px #1b1b1b, 0 8px 18px rgba(0, 0, 0, 0.22);
  overflow: hidden;
}
.bf-led-leaf {
  position: absolute;
  top: 10px;
  left: 12px;
  color: #e11d2e;
  font-size: 1.15rem;
}
.bf-led-live {
  position: absolute;
  top: 10px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #ffcc00;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}
.bf-led-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e11d2e;
  box-shadow: 0 0 0 0 rgba(225, 29, 46, 0.7);
  animation: bf-pulse 1.4s ease-out infinite;
}
@keyframes bf-pulse {
  0% { box-shadow: 0 0 0 0 rgba(225, 29, 46, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(225, 29, 46, 0); }
  100% { box-shadow: 0 0 0 0 rgba(225, 29, 46, 0); }
}
.bf-led strong {
  display: block;
  margin-top: 0.85rem;
  color: #fff;
  font-size: clamp(1.28rem, 6.2vw, 1.7rem);
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.35);
}
.bf-popup-card h2 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.28rem, 4.6vw, 1.55rem);
  font-weight: 800;
  line-height: 1.2;
  color: #1b1b1b;
}
.bf-off {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: #1b1b1b;
}
.bf-off span {
  display: inline-block;
  margin-right: 4px;
  font-size: clamp(2.4rem, 10vw, 3.2rem);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.04em;
}
.bf-tickets {
  margin: 0.1rem 0 0.85rem;
  font-size: 1.08rem;
  font-weight: 700;
}
.bf-limited {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 1.05rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: #1b1b1b;
  color: #ffcc00;
  font-size: 0.92rem;
  font-weight: 700;
}
.bf-enquire {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 56px;
  border-radius: 999px;
  background: #1b1b1b;
  color: #ffcc00 !important;
  font-size: 1.12rem;
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
}
.bf-enquire:hover { color: #ffe566 !important; background: #000; }
.bf-enquire i {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffcc00;
  color: #1b1b1b;
  font-size: 0.95rem;
}
@media (min-width: 992px) {
  .brand-via,
  .brand-via-home,
  .brand-tagline,
  .brand-name-mobile { display: none !important; }
  .brand-uk {
    display: block !important;
    width: 48px !important;
    height: 48px !important;
  }
  .brand-name-desktop { display: block !important; }
  .passengers-page .brand { display: flex !important; }
  .passengers-page .brand-titles,
  .passengers-page .brand-name-desktop { display: block !important; }
  .passengers-page .agent-call-bar { display: none !important; }
  .schedules-page .site-header-inner,
  .passengers-page .site-header-inner,
  .booking-page .site-header-inner { justify-content: space-between; }
  .booking-page .site-header,
  .passengers-page .site-header,
  .schedules-page .site-header { display: block !important; }
  .header-nav { display: flex !important; }
  .header-call { display: inline-flex !important; }
  .booking-page .call-bar,
  .schedules-page .call-bar,
  .booking-page .site-footer,
  .schedules-page .site-footer,
  .passengers-page .site-footer {
    display: block !important;
    position: static;
    left: auto;
    right: auto;
    bottom: auto;
    z-index: auto;
  }
  .schedules-page .details-wrap,
  .passengers-page .details-wrap { padding-bottom: 2.5rem; }
  .hero-inner,
  .details-wrap,
  .booking-page .details-wrap { max-width: 1140px; }
  #returnField[hidden] { display: none !important; }
  .search-stack {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1.35fr) minmax(240px, 1fr) auto;
    align-items: end;
    gap: 0.85rem;
  }
  .search-stack:has(#returnField:not([hidden])) {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.15fr) minmax(220px, 1fr) minmax(220px, 1fr) auto;
  }
  .search-stack .search-btn { width: auto; min-width: 148px; }
  .cal-popup {
    width: 340px;
    min-width: 340px;
    right: auto;
    left: 0;
    z-index: 80;
  }
  #returnField .cal-popup { left: auto; right: 0; }
  .passengers-page .pax-row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .passengers-page .pax-contact { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .bf-popup,
  .maint-popup,
  .home-mobile-popup { padding: 0.75rem; }
  .bf-popup-card { padding: 1.35rem 1rem 1.25rem; }
  .maint-popup-head { padding: 1rem 1rem 0.8rem; }
  .maint-popup-head img { max-width: 170px; max-height: 58px; }
  .maint-popup-body { padding: 1rem 1rem 1.2rem; }
  .bf-led strong { letter-spacing: 0.1em; }
}
