/* ==========================================================================
   France Rail Pass - "Affiche" theme
   Vintage French railway poster meets departures board: cream paper,
   PLM poster blue, vermilion, ochre, and split-flap amber-on-black.
   ========================================================================== */

:root {
  --paper: #f6efe0;
  --paper-2: #eee3cb;
  --paper-3: #e4d5b5;
  --card: #fffaf0;
  --ink: #1b2233;
  --ink-2: #414a5c;
  --ink-3: #6c7385;
  --blue: #1f4e8c;
  --blue-deep: #122b4f;
  --blue-night: #0c1d36;
  --red: #d2452f;
  --red-deep: #a9331f;
  --ochre: #e2a42b;
  --ochre-soft: #f6dc9a;
  --teal: #267f80;
  --lavender: #7a67a6;
  --green: #3c7a4b;
  --board: #16171a;
  --board-2: #222429;
  --amber: #ffc23d;
  --line: #d9ccae;

  --f-display: 'DM Serif Display', Georgia, serif;
  --f-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --f-mono: 'Space Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 18px;
  --shadow-sm: 0 1px 0 rgba(27,34,51,0.06), 0 2px 6px rgba(27,34,51,0.06);
  --shadow-md: 0 10px 30px rgba(27,34,51,0.12);
  --shadow-lg: 0 24px 60px rgba(12,29,54,0.22);
  --container: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--f-body);
  color: var(--ink);
  background-color: var(--paper);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.045'/%3E%3C/svg%3E");
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
p a, li a, td a { color: var(--blue); text-decoration: underline; text-decoration-color: rgba(31,78,140,0.35); text-underline-offset: 3px; }
p a:hover, li a:hover { text-decoration-color: var(--blue); }
h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 400;
  line-height: 1.1;
  margin: 0 0 0.45em;
  letter-spacing: -0.005em;
  color: var(--ink);
}
h1 { font-size: clamp(34px, 5vw, 58px); }
h2 { font-size: clamp(28px, 3.4vw, 40px); }
h3 { font-size: 22px; }
h4 { font-size: 18px; }
p { margin: 0 0 1em; color: var(--ink-2); }
ul, ol { color: var(--ink-2); }
.icon { width: 1em; height: 1em; flex-shrink: 0; vertical-align: -0.125em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 84px 0; position: relative; }
.section-tight { padding: 48px 0; }
.section-alt { background: var(--paper-2); }
.section-card { background: var(--card); }
.section-navy { background: var(--blue-deep); color: #fff; }
.section-navy h1, .section-navy h2, .section-navy h3, .section-navy h4 { color: #fff; }
.section-navy p { color: rgba(255,255,255,0.78); }

/* Scalloped / ticket-edge dividers between sections */
.edge-top::before {
  content: ""; position: absolute; left: 0; right: 0; top: -11px; height: 12px;
  background: radial-gradient(circle at 12px 12px, var(--edge, var(--paper-2)) 11px, transparent 12px) repeat-x;
  background-size: 24px 12px;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-mono);
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--red);
  margin-bottom: 14px;
}
.eyebrow .icon { width: 16px; height: 16px; }
.eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; opacity: 0.5; }
.lede { font-size: 19px; color: var(--ink-2); max-width: 660px; }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head.center .lede { margin-left: auto; margin-right: auto; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 600; font-size: 15px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  white-space: nowrap;
  font-family: var(--f-body);
  line-height: 1.2;
}
.btn .icon { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 4px 0 var(--red-deep); }
.btn-primary:hover { box-shadow: 0 6px 0 var(--red-deep); }
.btn-gold { background: var(--ochre); color: var(--ink); box-shadow: 0 4px 0 #b47f14; }
.btn-gold:hover { box-shadow: 0 6px 0 #b47f14; }
.btn-blue { background: var(--blue); color: #fff; box-shadow: 0 4px 0 var(--blue-deep); }
.btn-outline { border-color: rgba(255,255,255,0.6); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,0.12); }
.btn-outline-navy { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline-navy:hover { background: var(--ink); color: var(--paper); }
.btn-block { width: 100%; }
.btn-sm { padding: 9px 16px; font-size: 13.5px; }
.btn-sm.btn-primary { box-shadow: 0 3px 0 var(--red-deep); }

/* ---- Header ---- */
.tricolore { height: 5px; background: linear-gradient(90deg, var(--blue) 0 33.3%, #fff 33.3% 66.6%, var(--red) 66.6%); }
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246,239,224,0.94);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-row { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.brand-mark {
  width: 44px; height: 44px; flex-shrink: 0;
  border-radius: 50%;
  background: var(--blue);
  color: var(--ochre-soft);
  display: flex; align-items: center; justify-content: center;
  box-shadow: inset 0 0 0 3px var(--blue), inset 0 0 0 4px var(--ochre-soft);
}
.brand-mark .icon { width: 22px; height: 22px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-family: var(--f-display); font-size: 22px; }
.brand-sub { font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); margin-top: 3px; }
.nav-links { display: flex; align-items: center; gap: 26px; font-size: 15px; font-weight: 500; }
.nav-links a { color: var(--ink-2); padding: 6px 0; border-bottom: 2px solid transparent; }
.nav-links a:hover, .nav-links a.active { color: var(--ink); border-color: var(--red); }
.nav-links a.nav-calc {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--ochre); color: var(--ink);
  padding: 8px 14px; border-radius: 999px; border: none; font-weight: 600;
}
.nav-links a.nav-calc .icon { width: 16px; height: 16px; }
.nav-links a.nav-calc:hover, .nav-links a.nav-calc.active { background: var(--ink); color: var(--ochre); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; width: 42px; height: 42px; color: var(--ink); align-items: center; justify-content: center; }
.nav-toggle .icon { width: 26px; height: 26px; }

/* ---- Poster hero ---- */
.poster-hero { position: relative; padding: 72px 0 88px; overflow: hidden; }
.poster-hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 88% 18%, rgba(226,164,43,0.22), transparent 38%),
    radial-gradient(circle at 5% 95%, rgba(210,69,47,0.12), transparent 35%);
  pointer-events: none;
}
.poster-hero-inner { position: relative; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.poster-hero h1 { font-size: clamp(38px, 5.2vw, 64px); }
.poster-hero h1 em { font-style: italic; color: var(--red); }
.hero-cta-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.hero-trust { margin-top: 34px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.trust-item { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--ink-2); line-height: 1.35; }
.trust-item .icon-dot { width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.trust-item .icon-dot .icon { width: 19px; height: 19px; }
.trust-item strong { color: var(--ink); display: block; }

.poster-stack { position: relative; height: 560px; }
.poster {
  position: absolute;
  background: var(--card);
  padding: 14px 14px 0;
  box-shadow: var(--shadow-lg);
  border-radius: 4px;
}
.poster img { width: 100%; height: calc(100% - 58px); object-fit: cover; border-radius: 2px; }
.poster-band {
  height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink);
}
.poster-band strong { font-family: var(--f-display); font-size: 22px; letter-spacing: 0; text-transform: none; font-weight: 400; }
.poster-main { width: 62%; height: 500px; right: 4%; top: 10px; transform: rotate(2.5deg); z-index: 2; }
.poster-main .poster-band { border-top: 4px solid var(--red); }
.poster-small { width: 48%; height: 330px; left: 0; bottom: 0; transform: rotate(-4deg); z-index: 3; }
.poster-small .poster-band { border-top: 4px solid var(--teal); }
.poster-small strong { font-size: 18px; }

/* Rubber stamp */
.stamp {
  position: absolute; z-index: 4;
  width: 150px; height: 150px;
  left: 30%; top: -24px;
  color: var(--red);
  transform: rotate(-14deg);
  opacity: 0.92;
  mix-blend-mode: multiply;
}
.stamp svg { width: 100%; height: 100%; }

/* ---- Notice bar ---- */
.notice-bar { background: var(--blue-deep); color: rgba(255,255,255,0.88); font-size: 14px; }
.notice-bar .container { display: flex; align-items: center; gap: 12px; padding-top: 12px; padding-bottom: 12px; }
.notice-bar .icon { width: 18px; height: 18px; color: var(--ochre); }
.notice-bar strong { color: #fff; }
.notice-bar a { color: var(--ochre-soft); text-decoration: underline; }

/* ---- Departures board ---- */
.board {
  background: var(--board);
  border-radius: var(--r-lg);
  padding: 22px 22px 14px;
  box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(255,255,255,0.05);
  color: var(--amber);
  font-family: var(--f-mono);
  overflow: hidden;
}
.board-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; padding: 0 6px; }
.board-title { display: flex; align-items: center; gap: 12px; font-size: 15px; letter-spacing: 0.18em; text-transform: uppercase; color: #fff; }
.board-title .icon { color: var(--amber); width: 22px; height: 22px; }
.board-title small { color: rgba(255,255,255,0.45); font-size: 11px; letter-spacing: 0.14em; }
.board-clock { font-size: 26px; letter-spacing: 0.08em; color: var(--amber); background: var(--board-2); padding: 4px 12px; border-radius: 6px; }
.board-table-wrap { overflow-x: auto; }
.board table { width: 100%; border-collapse: separate; border-spacing: 0 6px; min-width: 720px; }
.board th { text-align: left; font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255,255,255,0.45); font-weight: 400; padding: 4px 10px; }
.board td { background: var(--board-2); padding: 11px 10px; font-size: 14.5px; text-transform: uppercase; letter-spacing: 0.06em; white-space: nowrap; }
.board td:first-child { border-radius: 6px 0 0 6px; color: #fff; }
.board td:last-child { border-radius: 0 6px 6px 0; }
.board .flap { display: inline-block; min-width: 0.62em; }
.board .pill { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 11.5px; letter-spacing: 0.08em; }
.pill-green { background: #1e4d2e; color: #8ff0a4; }
.pill-amber { background: #4d3b12; color: var(--amber); }
.pill-red { background: #551f18; color: #ff9f8c; }
.board-foot { font-size: 11px; color: rgba(255,255,255,0.4); letter-spacing: 0.06em; padding: 8px 6px 2px; font-family: var(--f-body); }

/* ---- Ticket cards (passes) ---- */
.ticket {
  position: relative;
  display: grid; grid-template-columns: 1fr 150px;
  background: var(--card);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  --notch: var(--paper);
}
.ticket::before, .ticket::after {
  content: ""; position: absolute; right: 139px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--notch); z-index: 2;
}
.ticket::before { top: -11px; }
.ticket::after { bottom: -11px; }
.ticket-main { padding: 26px 28px 26px 30px; border-right: 2px dashed var(--line); position: relative; }
.ticket-main::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 8px; background: var(--accent, var(--blue)); }
.ticket-kicker { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent, var(--blue)); display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.ticket-kicker .icon { width: 16px; height: 16px; }
.ticket h3 { font-size: 28px; margin-bottom: 6px; }
.ticket-features { list-style: none; padding: 0; margin: 16px 0 20px; display: grid; gap: 9px; }
.ticket-features li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--ink-2); }
.ticket-features .icon { width: 18px; height: 18px; color: var(--accent, var(--blue)); margin-top: 2px; }
.ticket-stub {
  padding: 22px 16px; text-align: center;
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 4px;
  background: repeating-linear-gradient(-45deg, transparent 0 10px, rgba(27,34,51,0.025) 10px 20px);
}
.ticket-stub .from { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.ticket-stub .amount { font-family: var(--f-display); font-size: 44px; line-height: 1; color: var(--ink); }
.ticket-stub .per { font-size: 12px; color: var(--ink-3); line-height: 1.35; }
.ticket-stub .class-badge { margin-top: 10px; font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.1em; border: 1.5px solid var(--ink); padding: 3px 8px; border-radius: 3px; transform: rotate(-3deg); }
.ticket-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.ticket-note { font-size: 13px; color: var(--ink-3); margin-top: 14px; display: flex; gap: 8px; align-items: flex-start; }
.ticket-note .icon { width: 16px; height: 16px; margin-top: 2px; color: var(--teal); }

/* ---- Grids / cards ---- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.card h3 { font-size: 22px; }
.pass-card { display: flex; flex-direction: column; height: 100%; border-top: 5px solid var(--line); }
.pass-card.accent-blue { border-top-color: var(--blue); }
.pass-card.accent-gold { border-top-color: var(--ochre); }
.pass-card.accent-red { border-top-color: var(--red); }
.pass-card .price { font-family: var(--f-display); font-size: 32px; color: var(--ink); margin: 10px 0 2px; }
.pass-card .price small { font-size: 13px; color: var(--ink-3); font-family: var(--f-body); }
.pass-card ul { list-style: none; padding: 0; margin: 16px 0; flex-grow: 1; }
.pass-card ul li { display: flex; gap: 10px; font-size: 14.5px; margin-bottom: 10px; }
.pass-card ul li::before { content: "✓"; color: var(--green); font-weight: 700; }

.tag {
  display: inline-flex; align-items: center; gap: 6px; align-self: flex-start;
  font-family: var(--f-mono); font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 4px; margin-bottom: 14px;
}
.tag-interrail { background: var(--blue); color: #fff; }
.tag-eurail { background: var(--red); color: #fff; }
.tag-country { background: var(--ochre); color: var(--ink); }

.icon-feature { display: flex; gap: 16px; align-items: flex-start; }
.icon-badge {
  width: 52px; height: 52px; flex-shrink: 0;
  border-radius: 14px;
  background: var(--paper-2); color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  transform: rotate(-3deg);
  box-shadow: 3px 3px 0 rgba(27,34,51,0.08);
}
.icon-badge .icon { width: 24px; height: 24px; }
.icon-badge-blue { background: #dbe6f5; color: var(--blue); }
.icon-badge-red { background: #f8dcd5; color: var(--red-deep); }
.icon-badge-gold { background: var(--ochre-soft); color: #7a5608; }
.icon-badge-green { background: #d8ead9; color: var(--green); }
.icon-badge-teal { background: #d3ebea; color: var(--teal); }
.icon-badge-lavender { background: #e6e0f1; color: var(--lavender); }
.icon-feature h4 { font-size: 19px; margin-bottom: 4px; }
.icon-feature p { font-size: 14.5px; margin: 0; }

/* ---- Tables ---- */
.table-wrap { overflow-x: auto; border-radius: var(--r-md); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
table.compare { width: 100%; border-collapse: collapse; background: var(--card); min-width: 620px; }
table.compare th, table.compare td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); font-size: 14.5px; }
table.compare thead th { background: var(--blue-deep); color: #fff; font-family: var(--f-mono); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 400; }
table.compare tbody tr:nth-child(even) td { background: rgba(238,227,203,0.35); }
table.compare tbody tr:last-child td { border-bottom: none; }
table.compare td.yes { color: var(--green); font-weight: 600; }
table.compare td.no { color: var(--ink-3); }

/* ---- Callouts ---- */
.callout {
  display: block;
  border: 1.5px dashed var(--ochre);
  background: #fbf2dc;
  border-radius: var(--r-md);
  padding: 18px 22px;
  font-size: 14.5px; color: var(--ink-2);
  margin: 28px 0;
}
.callout:has(> .icon) { display: flex; gap: 14px; align-items: flex-start; }
.callout > .icon { width: 22px; height: 22px; color: #a3740c; margin-top: 1px; }
.callout strong { color: var(--ink); }
.callout-info { border-color: var(--blue); background: #e7eef8; }
.callout-info > .icon { color: var(--blue); }

/* ---- Photo banner (inner pages) ---- */
.page-banner {
  position: relative; min-height: 340px;
  display: flex; align-items: flex-end;
  background-size: cover; background-position: center;
  color: #fff;
  border-bottom: 6px solid var(--red);
}
.page-banner::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(12,29,54,0.94) 0%, rgba(12,29,54,0.6) 50%, rgba(12,29,54,0.15) 100%);
}
.page-banner .container { position: relative; padding-top: 40px; padding-bottom: 36px; }
.page-banner h1, .page-banner p { color: #fff; }
.page-banner h1 { max-width: 880px; }
.page-banner .lede { color: rgba(255,255,255,0.88); max-width: 760px; }
.page-banner .eyebrow { color: var(--ochre); }
.banner-caption {
  position: absolute; right: 24px; top: 22px; z-index: 1;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  background: rgba(246,239,224,0.92); color: var(--ink);
  padding: 6px 12px; border-radius: 3px;
  display: inline-flex; gap: 8px; align-items: center;
}
.banner-caption .icon { width: 14px; height: 14px; color: var(--red); }

/* ---- Destination gallery (postcards) ---- */
.photo-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 250px; grid-auto-flow: dense; gap: 18px; }
.photo-card {
  position: relative; display: block;
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--paper-3);
}
.photo-card.tall { grid-row: span 2; }
.photo-card.wide { grid-column: span 2; }
.photo-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.photo-card:hover img { transform: scale(1.06); }
.photo-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(12,29,54,0.88) 0%, rgba(12,29,54,0.1) 50%, transparent 70%);
}
.photo-card-label { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 18px; color: #fff; }
.photo-card-label .place { font-family: var(--f-display); font-size: 23px; display: block; line-height: 1.1; }
.photo-card-label .tagline { font-size: 13px; color: rgba(255,255,255,0.8); display: block; margin-top: 4px; }
.photo-card-chip {
  position: absolute; top: 14px; left: 14px; z-index: 1;
  background: var(--paper); color: var(--ink);
  font-family: var(--f-mono); font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 5px 9px; border-radius: 3px;
  display: inline-flex; align-items: center; gap: 6px;
}
.photo-card-chip .icon { width: 13px; height: 13px; color: var(--red); }
.photo-card-vibe {
  position: absolute; top: 12px; right: 12px; z-index: 1;
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; background: rgba(255,255,255,0.18); backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.35);
}
.photo-card-vibe .icon { width: 19px; height: 19px; }

/* ---- Itinerary cards ---- */
.itinerary {
  background: var(--card); border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--shadow-md); display: flex; flex-direction: column;
}
.itinerary-img { position: relative; height: 210px; }
.itinerary-img img { width: 100%; height: 100%; object-fit: cover; }
.itinerary-img .verdict { position: absolute; left: 16px; bottom: -16px; }
.itinerary-body { padding: 30px 24px 24px; display: flex; flex-direction: column; flex-grow: 1; }
.itinerary-body h3 { font-size: 24px; margin-bottom: 8px; }
.itinerary-stops { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-family: var(--f-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-2); margin-bottom: 14px; }
.itinerary-stops .icon { width: 13px; height: 13px; color: var(--red); }
.itinerary-maths { font-size: 14px; border-top: 1.5px dashed var(--line); padding-top: 14px; margin-top: auto; margin-bottom: 16px; display: grid; gap: 4px; }
.itinerary-maths div { display: flex; justify-content: space-between; }
.itinerary-maths span:last-child { font-weight: 600; color: var(--ink); }

.verdict {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-mono); font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 8px 14px; border-radius: 999px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.18);
}
.verdict .icon { width: 16px; height: 16px; }
.verdict-pass { background: var(--green); color: #fff; }
.verdict-tickets { background: var(--blue); color: #fff; }
.verdict-close { background: var(--ochre); color: var(--ink); }

/* ---- Route line (how it works) ---- */
.route-line { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding-top: 10px; }
.route-line::before {
  content: ""; position: absolute; top: 37px; left: 12%; right: 12%; height: 6px;
  background: repeating-linear-gradient(90deg, var(--ink) 0 18px, transparent 18px 26px);
  border-radius: 3px; opacity: 0.85;
}
.station { position: relative; text-align: center; padding: 0 8px; }
.station-dot {
  width: 58px; height: 58px; margin: 0 auto 16px; border-radius: 50%;
  background: var(--card); border: 5px solid var(--ink);
  display: flex; align-items: center; justify-content: center;
  color: var(--red); position: relative; z-index: 1;
}
.station-dot .icon { width: 24px; height: 24px; }
.station:nth-child(2) .station-dot { color: var(--blue); }
.station:nth-child(3) .station-dot { color: var(--green); }
.station:nth-child(4) .station-dot { color: #a3740c; }
.station-num { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.14em; color: var(--ink-3); text-transform: uppercase; }
.station h4 { font-size: 20px; margin: 4px 0 6px; }
.station p { font-size: 14.5px; }

/* legacy .steps used on older pages */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { position: relative; padding-left: 56px; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 0; width: 40px; height: 40px; border-radius: 50%;
  background: var(--ink); color: var(--ochre); font-family: var(--f-mono); font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

/* ---- FAQ ---- */
.faq-item { border-bottom: 1.5px dashed var(--line); }
.faq-q {
  width: 100%; text-align: left; background: none; border: none;
  padding: 22px 0; font-family: var(--f-display); font-size: 21px; color: var(--ink);
  display: flex; justify-content: space-between; align-items: center; gap: 16px; cursor: pointer;
}
.faq-q .plus {
  width: 32px; height: 32px; flex-shrink: 0; border-radius: 50%;
  background: var(--paper-2); color: var(--red);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-body); font-size: 20px; transition: transform .2s, background .2s;
}
.faq-item.is-open .faq-q .plus { transform: rotate(45deg); background: var(--red); color: #fff; }
.faq-a { display: none; padding-bottom: 22px; color: var(--ink-2); font-size: 15.5px; max-width: 780px; }
.faq-item.is-open .faq-a { display: block; }

/* ---- Big CTA poster ---- */
.cta-poster {
  position: relative; overflow: hidden;
  background: var(--blue-deep); color: #fff;
  border-radius: var(--r-lg);
  padding: 56px;
  display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 32px; align-items: center;
  box-shadow: var(--shadow-lg);
}
.cta-poster::before {
  content: ""; position: absolute; right: -80px; top: -80px; width: 340px; height: 340px; border-radius: 50%;
  background: var(--ochre); opacity: 0.95;
}
.cta-poster::after {
  content: ""; position: absolute; right: 60px; bottom: -120px; width: 260px; height: 260px; border-radius: 50%;
  background: var(--red); opacity: 0.9;
}
.cta-poster > * { position: relative; z-index: 1; }
.cta-poster h2 { color: #fff; }
.cta-poster p { color: rgba(255,255,255,0.8); }
.cta-poster .cta-icon { justify-self: center; color: var(--blue-deep); }
.cta-poster .cta-icon .icon { width: 150px; height: 150px; stroke-width: 1.4; }

/* ---- Calculator ---- */
.calc-shell { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 28px; align-items: start; }
.calc-panel { background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow-md); padding: 28px; border: 1px solid var(--line); }
.calc-step { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; }
.calc-step-num { width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: var(--ochre); font-family: var(--f-mono); font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.calc-step h3 { margin: 0; font-size: 22px; }
.calc-block + .calc-block { margin-top: 28px; padding-top: 24px; border-top: 1.5px dashed var(--line); }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg label { cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 14px; border-radius: 999px; border: 1.5px solid var(--line);
  font-size: 14px; font-weight: 500; background: var(--paper); transition: .15s;
}
.seg span .icon { width: 16px; height: 16px; }
.seg input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.seg input:focus-visible + span { outline: 3px solid var(--ochre); outline-offset: 2px; }
.presets { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.preset-btn {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--f-mono); font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase;
  background: var(--paper-2); border: 1.5px dashed var(--paper-3); color: var(--ink);
  padding: 7px 11px; border-radius: 6px; cursor: pointer;
}
.preset-btn:hover { border-color: var(--red); color: var(--red); }
.preset-btn .icon { width: 14px; height: 14px; }
.legs { display: grid; gap: 10px; }
.leg {
  display: grid; grid-template-columns: 30px 1fr 110px 38px; gap: 10px; align-items: center;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); padding: 10px 12px;
}
.leg-num { font-family: var(--f-mono); font-weight: 700; color: var(--red); text-align: center; }
.leg select, .leg input[type=number] {
  width: 100%; padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px;
  font-family: var(--f-body); font-size: 14.5px; background: #fff; color: var(--ink);
}
.leg-meta { grid-column: 2 / 4; font-size: 12.5px; color: var(--ink-3); display: flex; gap: 14px; flex-wrap: wrap; }
.leg-meta span { display: inline-flex; align-items: center; gap: 5px; }
.leg-meta .icon { width: 13px; height: 13px; }
.leg-meta label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.leg-remove { background: none; border: none; color: var(--ink-3); cursor: pointer; padding: 6px; border-radius: 6px; }
.leg-remove:hover { color: var(--red); background: #f8dcd5; }
.leg-remove .icon { width: 18px; height: 18px; }
.leg-price-label { font-size: 10.5px; font-family: var(--f-mono); letter-spacing: 0.08em; color: var(--ink-3); text-transform: uppercase; display: block; margin-bottom: 2px; }
.add-leg { margin-top: 12px; }

.result-card { position: sticky; top: 100px; }
.result-verdict {
  border-radius: var(--r-lg); padding: 26px; color: #fff; background: var(--ink);
  box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
}
.result-verdict.is-pass { background: var(--green); }
.result-verdict.is-tickets { background: var(--blue); }
.result-verdict.is-close { background: #a3740c; }
.result-verdict h3 { color: #fff; font-size: 30px; margin-bottom: 6px; }
.result-verdict p { color: rgba(255,255,255,0.88); margin-bottom: 0; }
.result-kicker { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.85; display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.result-kicker .icon { width: 16px; height: 16px; }
.result-bars { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; margin-top: 16px; box-shadow: var(--shadow-sm); }
.bar-row { margin-bottom: 16px; }
.bar-row:last-child { margin-bottom: 0; }
.bar-label { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 6px; }
.bar-label strong { font-family: var(--f-display); font-size: 22px; font-weight: 400; }
.bar { height: 14px; background: var(--paper-2); border-radius: 999px; overflow: hidden; }
.bar > span { display: block; height: 100%; border-radius: 999px; transition: width .4s ease; }
.bar-pass > span { background: var(--green); }
.bar-tickets > span { background: repeating-linear-gradient(45deg, var(--blue) 0 8px, #2d62a8 8px 16px); }
.bar-sub { font-size: 12.5px; color: var(--ink-3); margin-top: 5px; }
.result-actions { display: grid; gap: 10px; margin-top: 16px; }
.result-small { font-size: 12.5px; color: var(--ink-3); margin-top: 14px; line-height: 1.5; }

/* ---- Footer ---- */
.site-footer { background: var(--blue-night); color: rgba(255,255,255,0.72); padding: 0 0 28px; position: relative; }
.footer-rail { height: 14px; background: repeating-linear-gradient(90deg, #3a4a66 0 6px, transparent 6px 22px), linear-gradient(#56657f, #56657f) 0 3px / 100% 2px no-repeat, linear-gradient(#56657f, #56657f) 0 9px / 100% 2px no-repeat; margin-bottom: 52px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 40px; }
.site-footer h4 { color: var(--ochre); font-size: 12px; text-transform: uppercase; letter-spacing: 0.14em; font-family: var(--f-mono); font-weight: 400; margin-bottom: 16px; }
.site-footer a { color: rgba(255,255,255,0.72); font-size: 14.5px; }
.site-footer a:hover { color: #fff; }
.footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { display: inline-flex; align-items: center; gap: 8px; }
.footer-links .icon { width: 15px; height: 15px; opacity: 0.6; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 13px; color: rgba(255,255,255,0.5); }
.footer-brand .brand { color: #fff; margin-bottom: 16px; }
.footer-brand .brand-sub { color: rgba(255,255,255,0.5); }
.footer-brand p { color: rgba(255,255,255,0.62); font-size: 14px; max-width: 340px; }
.photo-credits { font-size: 11.5px; color: rgba(255,255,255,0.38); line-height: 1.7; margin: 18px 0 0; }
.photo-credits a { color: rgba(255,255,255,0.52); font-size: 11.5px; }
.photo-credits a:hover { color: rgba(255,255,255,0.85); }

/* ---- Forms ---- */
.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; color: var(--ink); }
.form-field input, .form-field textarea, .form-field select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-sm);
  font-family: var(--f-body); font-size: 15px; background: #fff; color: var(--ink);
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus, .leg select:focus, .leg input:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(31,78,140,0.18);
}
.alert { padding: 14px 18px; border-radius: var(--r-sm); font-size: 14.5px; margin-bottom: 20px; }
.alert-success { background: #dcefdf; color: var(--green); }
.alert-error { background: #f8dcd5; color: var(--red-deep); }

/* ---- Admin ---- */
.admin-shell { background: var(--paper); min-height: 100vh; }
.admin-topbar { background: var(--blue-deep); color: #fff; padding: 16px 0; }
.admin-topbar .container { display: flex; justify-content: space-between; align-items: center; }
.admin-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin: 28px 0; }
.stat-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: 20px; }
.stat-card .num { font-family: var(--f-display); font-size: 32px; color: var(--ink); }
.stat-card .label { font-size: 12px; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.08em; font-family: var(--f-mono); }
table.admin { width: 100%; border-collapse: collapse; background: var(--card); }
table.admin th, table.admin td { padding: 12px 14px; border-bottom: 1px solid var(--line); font-size: 14px; text-align: left; vertical-align: middle; }
table.admin th { background: var(--paper-2); }
.badge { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700; }
.badge-on { background: #dcefdf; color: var(--green); }
.badge-off { background: #eee; color: var(--ink-3); }
.badge-aff { background: var(--ochre-soft); color: #7a5608; }
.login-box { max-width: 400px; margin: 80px auto; background: var(--card); padding: 36px; border-radius: var(--r-lg); box-shadow: var(--shadow-md); }

/* ---- Utilities ---- */
.text-center { text-align: center; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.gap-12 { gap: 12px; }
.mt-0 { margin-top: 0; }
.mb-40 { margin-bottom: 40px; }
.center-row { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* ---- Responsive ---- */
@media (max-width: 1080px) {
  .nav-links { gap: 18px; font-size: 14.5px; }
  .photo-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 960px) {
  .poster-hero-inner, .calc-shell, .cta-poster { grid-template-columns: 1fr; }
  .poster-stack { height: 460px; max-width: 560px; margin: 0 auto; width: 100%; }
  .poster-main { height: 400px; }
  .poster-small { height: 260px; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
  .route-line { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
  .route-line::before { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
  .admin-stats { grid-template-columns: repeat(2, 1fr); }
  .result-card { position: static; }
  .cta-poster .cta-icon { display: none; }
}
@media (max-width: 860px) {
  .nav-links, .nav-actions .btn { display: none; }
  .nav-toggle { display: flex; }
  .nav-row.is-open .nav-links {
    display: flex; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--paper); flex-direction: column; align-items: flex-start;
    padding: 20px 24px; border-bottom: 1px solid var(--line); gap: 16px;
  }
}
@media (max-width: 720px) {
  .section { padding: 56px 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .photo-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 190px; }
  .photo-card.wide { grid-column: span 2; }
  .photo-card.tall { grid-row: span 1; }
  .ticket { grid-template-columns: 1fr; }
  .ticket::before, .ticket::after { display: none; }
  .ticket-main { border-right: none; border-bottom: 2px dashed var(--line); }
  .ticket-stub { flex-direction: row; flex-wrap: wrap; gap: 10px; }
  .ticket-stub .class-badge { margin-top: 0; }
  .route-line { grid-template-columns: 1fr; }
  .hero-trust { grid-template-columns: 1fr; }
  .cta-poster { padding: 36px 26px; }
  .leg { grid-template-columns: 26px 1fr 38px; }
  .leg-price { grid-column: 2 / 3; }
  .leg-meta { grid-column: 2 / 3; }
  .page-banner { min-height: 280px; }
  .banner-caption { display: none; }
  .stamp { width: 110px; height: 110px; }
  .board-clock { font-size: 18px; }
}
