:root {
  color-scheme: light;
  --navy: #08283d;
  --navy-2: #0f3f5c;
  --teal: #12a99b;
  --teal-soft: #daf4ee;
  --cream: #f6f2e8;
  --paper: #fffefa;
  --ink: #102736;
  --muted: #61717b;
  --line: #dce3df;
  --amber: #f2a43b;
  --amber-soft: #fff0d3;
  --red: #c94f4f;
  --red-soft: #fae2df;
  --shadow: 0 24px 70px rgba(5, 35, 54, .13);
  --radius-xl: 28px;
  --radius-lg: 19px;
  --radius-md: 13px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--cream);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }

.ambient {
  position: absolute;
  border-radius: 999px;
  filter: blur(2px);
  pointer-events: none;
  opacity: .72;
  z-index: -1;
}
.ambient-one { width: 390px; height: 390px; right: -100px; top: 100px; background: radial-gradient(circle, rgba(18,169,155,.2), transparent 68%); }
.ambient-two { width: 330px; height: 330px; left: -150px; top: 580px; background: radial-gradient(circle, rgba(242,164,59,.16), transparent 70%); }

.site-header {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 30px 0 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.brand {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--navy);
  font-size: .78rem;
  font-weight: 850;
  letter-spacing: .16em;
}
.brand-mark { width: 32px; height: 32px; display: grid; gap: 4px; grid-template-columns: 1fr 1fr; transform: skewX(-9deg); }
.brand-mark span:first-child { background: var(--teal); border-radius: 4px 1px 1px 4px; }
.brand-mark span:last-child { background: var(--navy); border-radius: 1px 4px 4px 1px; }
.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid rgba(8,40,61,.12);
  border-radius: 999px;
  background: rgba(255,254,250,.65);
  color: var(--navy-2);
  font-size: .78rem;
  font-weight: 700;
}
.live-pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px rgba(18,169,155,.13); }

main { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }
.hero {
  min-height: 585px;
  padding: 68px 0 80px;
  display: grid;
  grid-template-columns: minmax(0, .93fr) minmax(490px, 1.07fr);
  gap: 76px;
  align-items: center;
}
.eyebrow { margin: 0 0 15px; color: var(--teal); font-size: .73rem; font-weight: 850; letter-spacing: .17em; }
.hero h1 {
  margin: 0;
  max-width: 620px;
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.25rem, 6vw, 5.8rem);
  font-weight: 500;
  letter-spacing: -.055em;
  line-height: .96;
}
.hero h1 em { color: var(--teal); font-weight: 500; }
.lede { margin: 27px 0 25px; max-width: 580px; color: #4f626d; font-size: 1.1rem; line-height: 1.7; }
.trust-row { display: flex; gap: 17px; flex-wrap: wrap; color: var(--navy-2); font-size: .78rem; font-weight: 750; }

.search-card {
  position: relative;
  padding: 27px;
  border: 1px solid rgba(8,40,61,.08);
  border-radius: var(--radius-xl);
  background: rgba(255,254,250,.94);
  box-shadow: var(--shadow);
}
.search-card::before { content: ""; position: absolute; inset: 0 30px auto; height: 3px; background: linear-gradient(90deg, var(--teal), #47c6ad, var(--amber)); border-radius: 0 0 4px 4px; }
.quick-routes { display: flex; gap: 8px; margin-bottom: 22px; }
.route-preset {
  flex: 1;
  min-height: 40px;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #f4f7f5;
  color: #5e6d75;
  cursor: pointer;
  font-size: .78rem;
  font-weight: 750;
  transition: .18s ease;
}
.route-preset:hover, .route-preset:focus-visible { border-color: var(--teal); color: var(--navy); }
.route-preset.active { border-color: rgba(18,169,155,.25); background: var(--teal-soft); color: #08766e; }
.route-grid { display: grid; grid-template-columns: 1fr 42px 1fr; gap: 10px; align-items: end; }
.field { position: relative; }
.field label { display: block; margin: 0 0 7px 3px; color: #60717a; font-size: .7rem; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.field input {
  width: 100%;
  min-height: 54px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  outline: none;
  background: #fbfcfa;
  color: var(--navy);
  font-size: .94rem;
  font-weight: 720;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.field input:hover { border-color: #bdcbc5; }
.field input:focus { border-color: var(--teal); background: white; box-shadow: 0 0 0 4px rgba(18,169,155,.11); }
.swap-button {
  width: 42px;
  height: 42px;
  margin-bottom: 6px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: white;
  color: var(--navy);
  cursor: pointer;
  font-size: 1.2rem;
  transition: transform .2s, border-color .2s, color .2s;
}
.swap-button:hover, .swap-button:focus-visible { transform: rotate(180deg); border-color: var(--teal); color: var(--teal); }
.date-time-grid { display: grid; grid-template-columns: 1.25fr .75fr .75fr; gap: 10px; margin-top: 17px; }
.suggestions {
  position: absolute;
  top: calc(100% + 7px);
  left: 0;
  right: 0;
  z-index: 20;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  box-shadow: 0 17px 40px rgba(8,40,61,.15);
}
.suggestion { width: 100%; padding: 11px 13px; border: 0; border-bottom: 1px solid #edf0ed; background: white; color: var(--navy); text-align: left; cursor: pointer; }
.suggestion:last-child { border-bottom: 0; }
.suggestion:hover, .suggestion:focus { background: var(--teal-soft); outline: none; }
.suggestion strong, .suggestion small { display: block; }
.suggestion small { margin-top: 2px; color: var(--muted); }
.form-error { margin-top: 15px; padding: 10px 12px; border-radius: 10px; background: var(--red-soft); color: #943838; font-size: .86rem; font-weight: 700; }
.primary-button {
  width: 100%;
  min-height: 58px;
  margin-top: 21px;
  padding: 0 20px;
  border: 0;
  border-radius: 15px;
  background: var(--navy);
  box-shadow: 0 12px 25px rgba(8,40,61,.18);
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-weight: 830;
  letter-spacing: .01em;
  transition: transform .17s, background .17s, box-shadow .17s;
}
.primary-button:hover, .primary-button:focus-visible { transform: translateY(-1px); background: #0d3852; box-shadow: 0 15px 32px rgba(8,40,61,.23); }
.primary-button:disabled { cursor: wait; transform: none; opacity: .76; }
.button-arrow { color: #51d9c7; font-size: 1.2rem; }
.form-note { margin: 13px 3px 0; color: #77868c; font-size: .72rem; text-align: center; }

.results-section { padding: 65px 0 90px; border-top: 1px solid rgba(8,40,61,.1); }
.results-header { display: flex; justify-content: space-between; align-items: end; gap: 25px; margin-bottom: 25px; }
.results-header h2, .how-it-works h2 { margin: 0; color: var(--navy); font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.25rem, 4vw, 3.7rem); font-weight: 500; letter-spacing: -.035em; line-height: 1.05; }
.results-meta { margin: 10px 0 0; color: var(--muted); }
.summary-chips { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.summary-chip { padding: 8px 11px; border-radius: 999px; font-size: .76rem; font-weight: 820; }
.summary-chip.single { color: #08736a; background: var(--teal-soft); }
.summary-chip.pair { color: #8b5d0c; background: var(--amber-soft); }
.summary-chip.none { color: #7c4b4b; background: var(--red-soft); }
.results { display: grid; gap: 13px; }
.loading-card, .empty-card, .error-card {
  min-height: 126px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255,254,250,.85);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  text-align: center;
  color: var(--navy);
}
.loading-card small { display: block; margin-top: 3px; color: var(--muted); }
.spinner { width: 24px; height: 24px; border: 3px solid #cde9e4; border-top-color: var(--teal); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.result-card {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr) auto;
  gap: 25px;
  align-items: center;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-left: 5px solid #c8d1cd;
  border-radius: var(--radius-lg);
  background: rgba(255,254,250,.94);
  box-shadow: 0 8px 25px rgba(8,40,61,.055);
}
.result-card.single { border-left-color: var(--teal); }
.result-card.pair { border-left-color: var(--amber); }
.result-card.unknown { border-left-color: #8d9aa0; }
.time-block { min-width: 0; }
.time-row { display: flex; align-items: baseline; gap: 7px; color: var(--navy); font-size: 1.35rem; font-weight: 860; letter-spacing: -.025em; }
.time-row span { color: #91a09f; font-weight: 500; }
.time-block small { display: block; margin-top: 5px; color: var(--muted); }
.journey-detail { min-width: 0; }
.journey-topline { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.journey-detail h3 { margin: 0; color: var(--navy); font-size: 1rem; }
.availability-badge { padding: 5px 9px; border-radius: 999px; font-size: .68rem; font-weight: 850; text-transform: uppercase; letter-spacing: .055em; }
.availability-badge.single { background: var(--teal-soft); color: #08766e; }
.availability-badge.pair { background: var(--amber-soft); color: #8a5a08; }
.availability-badge.none { background: var(--red-soft); color: #964447; }
.availability-badge.unknown { background: #e9eeec; color: #64747b; }
.seat-line { margin: 9px 0 0; color: #324d5d; font-size: .9rem; }
.seat-line strong { color: var(--navy); }
.seat-chips { display: inline-flex; gap: 5px; flex-wrap: wrap; margin-left: 4px; vertical-align: middle; }
.seat-chip { display: inline-flex; align-items: center; min-height: 27px; padding: 3px 8px; border-radius: 8px 8px 4px 4px; background: #e2f5f1; color: #08766e; font-size: .76rem; font-weight: 850; }
.seat-chip.pair { background: #fff0d7; color: #875c12; }
.pair-detail { margin-top: 8px; }
.pair-detail summary { color: var(--muted); cursor: pointer; font-size: .78rem; font-weight: 700; }
.pair-list { margin: 8px 0 0; padding: 0; list-style: none; display: flex; gap: 6px; flex-wrap: wrap; }
.pair-list li { padding: 5px 8px; border-radius: 8px; background: #f0f3f1; color: #4d606a; font-size: .73rem; }
.card-actions { min-width: 135px; text-align: right; }
.price { display: block; margin-bottom: 9px; color: var(--navy); font-size: .8rem; font-weight: 800; }
.book-link { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 14px; border-radius: 11px; background: var(--navy); color: white; text-decoration: none; font-size: .78rem; font-weight: 820; }
.book-link:hover, .book-link:focus-visible { background: var(--teal); }

.how-it-works {
  padding: 85px 0 95px;
  border-top: 1px solid rgba(8,40,61,.1);
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 80px;
}
.method-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.method-grid article { padding: 22px; border-radius: var(--radius-lg); background: rgba(255,254,250,.68); border: 1px solid rgba(8,40,61,.08); }
.method-number { color: var(--teal); font-size: .7rem; font-weight: 900; letter-spacing: .1em; }
.method-grid h3 { margin: 20px 0 8px; color: var(--navy); font-size: 1rem; }
.method-grid p { margin: 0; color: var(--muted); font-size: .83rem; line-height: 1.65; }
footer { width: min(1180px, calc(100% - 48px)); margin: 0 auto; padding: 30px 0 40px; border-top: 1px solid rgba(8,40,61,.1); display: flex; justify-content: space-between; gap: 20px; color: #708087; font-size: .72rem; }
footer p { margin: 0; }
footer a:hover { color: var(--teal); }

@media (max-width: 950px) {
  .hero { grid-template-columns: 1fr; gap: 42px; padding-top: 45px; }
  .hero-copy { text-align: center; }
  .hero h1, .lede { margin-left: auto; margin-right: auto; }
  .trust-row { justify-content: center; }
  .search-card { max-width: 680px; width: 100%; margin: 0 auto; }
  .how-it-works { grid-template-columns: 1fr; gap: 35px; }
  .result-card { grid-template-columns: 145px minmax(0,1fr) auto; }
}

@media (max-width: 690px) {
  .ambient { display: none; }
  .site-header, main, footer { width: min(100% - 28px, 1180px); }
  .site-header { padding-top: 20px; }
  .live-pill { font-size: 0; width: 37px; height: 37px; justify-content: center; padding: 0; }
  .hero { padding: 45px 0 58px; min-height: auto; }
  .hero h1 { font-size: clamp(3.05rem, 15vw, 4.5rem); }
  .lede { font-size: 1rem; }
  .trust-row { gap: 9px 14px; }
  .search-card { padding: 21px 16px; border-radius: 22px; }
  .route-grid { grid-template-columns: 1fr 36px 1fr; gap: 6px; }
  .field input { min-height: 52px; padding: 0 10px; font-size: .82rem; }
  .swap-button { width: 36px; height: 36px; }
  .date-time-grid { grid-template-columns: 1fr 1fr; }
  .date-field { grid-column: 1 / -1; }
  .results-section { padding: 55px 0 65px; }
  .results-header { align-items: flex-start; flex-direction: column; }
  .summary-chips { justify-content: flex-start; }
  .result-card { grid-template-columns: 1fr auto; gap: 15px; padding: 18px; }
  .time-block { grid-column: 1 / -1; border-bottom: 1px solid #e7ebe8; padding-bottom: 12px; }
  .time-row { font-size: 1.22rem; }
  .journey-detail { grid-column: 1 / -1; }
  .card-actions { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; text-align: left; }
  .price { margin: 0; }
  .method-grid { grid-template-columns: 1fr; }
  .how-it-works { padding: 65px 0; }
  footer { flex-direction: column; }
}

@media (max-width: 430px) {
  .quick-routes { flex-direction: column; }
  .route-grid { grid-template-columns: 1fr; }
  .swap-button { margin: -2px auto -4px; transform: rotate(90deg); }
  .swap-button:hover, .swap-button:focus-visible { transform: rotate(270deg); }
  .date-time-grid { grid-template-columns: 1fr 1fr; }
}
