/* Premium Cabin Scout — styles
   Palette: plum ink, oxblood leather, brass trim, cool cabin grey. */
:root {
  --ink: #2a1e2c;        /* deep plum, primary text and hero */
  --ink-soft: #5b4d5c;   /* secondary text */
  --leather: #7a2e35;    /* oxblood accent, buttons */
  --leather-dark: #5e2228;
  --brass: #b08d57;      /* trim lines, details */
  --cabin: #eef0f3;      /* cool page background */
  --paper: #ffffff;
  --line: #d9dce2;
  --focus: #b08d57;
  --display: "Bodoni Moda", "Didot", Georgia, serif;
  --body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius-s: 4px;
  --radius-l: 14px;
  --wrap: 1120px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cabin);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
}
img, svg { max-width: 100%; }
a { color: var(--leather); text-underline-offset: 3px; }
a:hover { color: var(--leather-dark); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.prose { max-width: 68ch; }

/* Header */
.site-header { background: var(--ink); color: #fff; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.brand { color: #fff; text-decoration: none; font-family: var(--display); font-size: 1.45rem; letter-spacing: .01em; display: flex; align-items: center; gap: 10px; }
.brand:hover { color: #fff; }
.brand svg { width: 26px; height: 26px; }
.nav { display: flex; gap: 22px; flex-wrap: wrap; }
.nav a { color: #e6dfe7; text-decoration: none; font-size: .95rem; }
.nav a:hover, .nav a[aria-current="page"] { color: #fff; text-decoration: underline; text-decoration-color: var(--brass); }

/* Hero */
.hero { background: var(--ink); color: #fff; padding: 56px 0 72px; position: relative; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; align-items: center; }
.hero h1 { font-family: var(--display); font-weight: 500; font-size: clamp(2.4rem, 5.5vw, 4.2rem); line-height: 1.05; margin: 0 0 18px; letter-spacing: -.01em; }
.hero p.lede { color: #e6dfe7; font-size: 1.15rem; max-width: 46ch; margin: 0 0 28px; }
.seatmap { justify-self: end; width: 100%; max-width: 420px; }
.seatmap figcaption { color: #bfb2c1; font-size: .85rem; margin-top: 10px; text-align: right; }

/* Search panel */
.search { background: var(--paper); color: var(--ink); border-radius: var(--radius-l); padding: 22px; box-shadow: 0 18px 40px rgba(20, 10, 22, .35); border-top: 4px solid var(--brass); }
.search .row { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; margin-bottom: 12px; }
.search .row.three { grid-template-columns: 1fr 1fr .8fr; }
.field label { display: block; font-size: .85rem; color: var(--ink-soft); margin-bottom: 4px; }
.field input, .field select {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  padding: 11px 12px; border: 1px solid var(--line); border-radius: var(--radius-s); background: #fff;
}
.field input:focus, .field select:focus { border-color: var(--brass); outline: none; box-shadow: 0 0 0 3px rgba(176, 141, 87, .3); }
.cabin-choice { display: flex; gap: 8px; margin: 4px 0 14px; border: 0; padding: 0; }
.cabin-choice legend { font-size: .85rem; color: var(--ink-soft); margin-bottom: 6px; padding: 0; }
.cabin-choice label { flex: 1; position: relative; }
.cabin-choice input { position: absolute; opacity: 0; inset: 0; }
.cabin-choice span { display: block; text-align: center; padding: 10px 8px; border: 1px solid var(--line); border-radius: var(--radius-s); cursor: pointer; font-weight: 600; }
.cabin-choice input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.cabin-choice input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.trip-type { display: flex; gap: 18px; font-size: .95rem; margin-bottom: 12px; }
.trip-type label { display: flex; gap: 6px; align-items: center; cursor: pointer; }
.btn { display: inline-block; font: inherit; font-weight: 600; font-size: 1.05rem; background: var(--leather); color: #fff; border: 0; border-radius: var(--radius-s); padding: 13px 22px; cursor: pointer; text-decoration: none; }
.btn:hover { background: var(--leather-dark); color: #fff; }
.btn.full { width: 100%; }
.btn.quiet { background: transparent; color: var(--leather); border: 1px solid var(--leather); }
.btn.quiet:hover { background: var(--leather); color: #fff; }
.disclosure-inline { font-size: .82rem; color: var(--ink-soft); margin: 10px 0 0; line-height: 1.45; }
.form-error { color: #9b1c1c; font-size: .9rem; margin: 8px 0 0; min-height: 1.2em; }

/* Sections */
section.band { padding: 64px 0; }
section.band.white { background: var(--paper); }
h2 { font-family: var(--display); font-weight: 500; font-size: clamp(1.8rem, 3.2vw, 2.4rem); line-height: 1.15; margin: 0 0 14px; }
h3 { font-size: 1.15rem; margin: 0 0 6px; }
.section-intro { color: var(--ink-soft); max-width: 60ch; margin: 0 0 32px; }

/* How it works: genuinely a sequence */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: step; }
.steps li { counter-increment: step; border-top: 1px solid var(--brass); padding-top: 14px; }
.steps li::before { content: counter(step); font-family: var(--display); font-size: 2rem; color: var(--brass); display: block; line-height: 1; margin-bottom: 8px; }
.steps p { margin: 0; color: var(--ink-soft); }

/* Route list */
.routes { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.route { display: grid; grid-template-columns: 1fr auto; align-items: start; gap: 12px; padding: 18px 4px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.route:hover { background: var(--cabin); color: var(--ink); }
.route .cities { font-family: var(--display); font-size: 1.3rem; }
.route .meta { color: var(--ink-soft); font-size: .9rem; }
.route .codes { font-weight: 600; color: var(--leather); letter-spacing: .04em; }

/* Two-up */
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 26px; }
.panel.dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.panel.dark p { color: #e6dfe7; }

/* Article pages */
.page-head { background: var(--ink); color: #fff; padding: 48px 0 40px; }
.page-head h1 { font-family: var(--display); font-weight: 500; font-size: clamp(2rem, 4.5vw, 3.2rem); line-height: 1.1; margin: 0 0 10px; }
.page-head p { color: #e6dfe7; margin: 0; max-width: 60ch; }
.crumbs { font-size: .9rem; margin-bottom: 14px; }
.crumbs a { color: #d8c9a6; }
article.content { padding: 48px 0 64px; }
article.content h2 { font-size: 1.7rem; margin-top: 40px; }
article.content p, article.content li { max-width: 68ch; }
.airlines { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; list-style: none; margin: 8px 0 0; }
.airlines li { border: 1px solid var(--line); background: var(--paper); border-radius: 999px; padding: 4px 12px; font-size: .92rem; }
.route-search { margin: 28px 0; }
.note { font-size: .9rem; color: var(--ink-soft); }

/* Footer */
.site-footer { background: var(--ink); color: #cfc3d1; padding: 40px 0; font-size: .92rem; }
.site-footer .wrap { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 28px; }
.site-footer a { color: #fff; }
.site-footer h4 { color: #fff; font-size: 1rem; margin: 0 0 8px; font-weight: 600; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.site-footer .fine { grid-column: 1 / -1; border-top: 1px solid #4a3b4c; padding-top: 16px; color: #a998ab; }

.skip { position: absolute; left: -999px; top: 8px; background: #fff; color: var(--ink); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }

@media (max-width: 860px) {
  .hero .wrap, .two { grid-template-columns: 1fr; }
  .seatmap { display: none; }
  .two > .route-search { order: -1; margin-top: 0; }
  .steps { grid-template-columns: 1fr; }
  .site-footer .wrap { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .search .row, .search .row.three { grid-template-columns: 1fr; }
  .hero { padding: 36px 0 48px; }
  section.band { padding: 48px 0; }
}
@media (prefers-reduced-motion: no-preference) {
  .seat-glow { animation: glow 1.2s ease-out 1; }
  @keyframes glow { from { opacity: .35; } to { opacity: 1; } }
}

.stack { display: grid; gap: 28px; max-width: 68ch; }

/* Search card with Flights / Hotels tabs */
.search-card { background: var(--paper); color: var(--ink); border-radius: var(--radius-l); padding: 22px; box-shadow: 0 18px 40px rgba(20, 10, 22, .35); border-top: 4px solid var(--brass); }
.search-card .card-title { font-size: 1.4rem; margin: 0 0 14px; }
.search-card form.search { background: none; box-shadow: none; border: 0; padding: 0; border-radius: 0; }
.tabs { display: flex; gap: 24px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.tabs [role=tab] { font: inherit; font-weight: 600; font-size: 1rem; background: none; border: 0; padding: 8px 0 10px; color: var(--ink-soft); cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.tabs [role=tab][aria-selected="true"] { color: var(--ink); border-bottom-color: var(--leather); }
.tabs [role=tab][hidden] { display: none; }

/* "Where to stay" box on route pages */
.stay-box { margin-top: 24px; }
.stay-box form.search { border-top-color: var(--ink-soft); box-shadow: 0 6px 18px rgba(20, 10, 22, .12); }
