:root {
  --navy: #0d1b2a;
  --navy-soft: #183149;
  --ink: #16202b;
  --paper: #f6f1e7;
  --white: #fffefa;
  --gold: #c49a43;
  --gold-pale: #eadbb8;
  --green: #2d604f;
  --blue: #3d647a;
  --olive: #68704c;
  --line: rgba(13, 27, 42, 0.14);
  --muted: #687078;
  --ui: "Avenir Next", Avenir, "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--paper); }
body {
  margin: 0;
  color: var(--ink);
  background: radial-gradient(circle at 8% 4%, rgba(196, 154, 67, .13), transparent 28rem), var(--paper);
  font-family: var(--ui);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 0 5vw;
  color: var(--white);
  background: rgba(13, 27, 42, .94);
  border-bottom: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(14px);
}
.brand { display: flex; align-items: center; gap: 12px; font-size: 11px; font-weight: 750; letter-spacing: .13em; }
.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: var(--navy);
  background: var(--gold);
  border-radius: 50%;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: -.02em;
}
.topbar nav { display: flex; align-items: center; gap: 30px; font-size: 13px; font-weight: 650; }
.topbar nav a { opacity: .76; transition: opacity .2s ease; }
.topbar nav a:hover { opacity: 1; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr);
  gap: clamp(44px, 7vw, 100px);
  align-items: center;
  min-height: 590px;
  padding: clamp(70px, 8vw, 110px) 7vw;
  color: var(--white);
  background: linear-gradient(135deg, rgba(255,255,255,.045) 0 1px, transparent 1px 44px), linear-gradient(115deg, var(--navy) 0%, #10283c 68%, #17384a 100%);
  background-size: 44px 44px, auto;
  overflow: hidden;
}
.eyebrow { margin: 0 0 16px; color: var(--gold); font-size: 11px; font-weight: 850; letter-spacing: .18em; text-transform: uppercase; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.route-intro { margin: 0 0 16px; color: var(--gold); font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.quick-route { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; max-width: 760px; }
.quick-route-card { display: grid; gap: 5px; min-height: 108px; padding: 16px; color: var(--white); background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); border-radius: 16px; box-shadow: 0 12px 26px rgba(0,0,0,.08); transition: transform .2s ease, background .2s ease; }
.quick-route-card:hover { transform: translateY(-3px); background: rgba(255,255,255,.14); }
.quick-route-card > span { color: var(--gold); font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.quick-route-card strong { font-family: var(--ui); font-size: 21px; font-weight: 800; line-height: 1.1; letter-spacing: -.025em; }
.quick-route-card small { color: rgba(255,255,255,.78); font-size: 11px; font-weight: 650; }
.quick-route-card em { color: rgba(255,255,255,.52); font-size: 10px; font-style: normal; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 780;
  transition: transform .2s ease, background .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button.primary { color: var(--navy); background: var(--gold); }
.route-button { min-width: 236px; }
.button.secondary { color: var(--white); border-color: rgba(255,255,255,.26); background: rgba(255,255,255,.07); }
.offline-note { display: flex; gap: 9px; align-items: center; margin: 20px 0 0; color: rgba(255,255,255,.55); font-size: 12px; }
.offline-note span { color: #70bd98; }

.passport-card {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 28px;
  color: var(--navy);
  background: var(--white);
  border-radius: 28px;
  box-shadow: 0 38px 90px rgba(0,0,0,.25);
  transform: rotate(2deg);
}
.passport-card::after { content: ""; position: absolute; inset: 12px; border: 1px solid var(--line); border-radius: 20px; pointer-events: none; }
.passport-top { grid-column: 1 / -1; display: flex; justify-content: space-between; padding-bottom: 18px; border-bottom: 1px dashed var(--line); color: var(--muted); font-size: 10px; letter-spacing: .14em; }
.passport-top strong { color: var(--navy); }
.route-stamp { text-align: center; font-family: Georgia, serif; font-size: 42px; font-weight: 700; line-height: .85; }
.route-stamp span { font-family: Inter, sans-serif; color: var(--muted); font-size: 10px; letter-spacing: .12em; }
.route-arrow { color: var(--gold); font-size: 30px; }
.passport-card dl { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 20px 0 0; }
.passport-card dl div { padding: 14px; text-align: center; background: #f3eee4; border-radius: 14px; }
.passport-card dt { color: var(--muted); font-size: 10px; text-transform: uppercase; }
.passport-card dd { margin: 3px 0 0; font-family: Georgia, serif; font-size: 28px; font-weight: 700; }

.section { padding: clamp(72px, 9vw, 124px) 7vw; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 38px; }
.section-heading h2 { margin: 0; color: var(--navy); font-family: Georgia, serif; font-size: clamp(38px, 5vw, 68px); font-weight: 500; letter-spacing: -.045em; }
.text-link { padding-bottom: 6px; color: var(--navy); border-bottom: 1px solid var(--navy); font-size: 13px; font-weight: 720; }

.city-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; }
.city-card { position: relative; display: block; min-height: 360px; padding: 26px; color: var(--white); border-radius: 22px; overflow: hidden; isolation: isolate; background-position: center; background-size: cover; transition: transform .24s ease, box-shadow .24s ease; }
.city-card::before { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(160deg, rgba(6,17,29,.42), rgba(6,17,29,.20) 46%, rgba(6,17,29,.74)); }
.city-card:hover { transform: translateY(-5px); box-shadow: 0 22px 44px rgba(13,27,42,.20); }
.city-card.olive { background-image: url('/images/cities/milan.webp'); }
.city-card.gold { background-image: url('/images/cities/madrid.webp'); }
.city-card.blue { background-image: url('/images/cities/barcelona.webp'); }
.city-card.navy { background-image: url('/images/cities/paris.webp'); }
.city-index { color: currentColor; opacity: .55; font-size: 11px; font-weight: 800; }
.city-code { margin-top: 50px; opacity: .62; font-size: 13px; letter-spacing: .18em; }
.city-card h3 { margin: 6px 0; font-family: Georgia, serif; font-size: clamp(28px, 3vw, 42px); font-weight: 500; letter-spacing: -.04em; }
.city-dates { margin: 0; opacity: .75; font-size: 13px; }
.city-meta { position: absolute; right: 26px; bottom: 24px; left: 26px; display: grid; gap: 6px; padding-top: 15px; border-top: 1px solid currentColor; font-size: 12px; opacity: .9; }
.city-action { display: inline-flex; align-items: center; justify-content: center; width: max-content; margin-top: 7px; padding: 9px 11px; border-radius: 999px; background: var(--gold); color: var(--navy); font-size: 11px; font-weight: 850; letter-spacing: .02em; box-shadow: 0 5px 14px rgba(0,0,0,.18); }
.city-card:hover .city-action { background: #f5df9e; }

.documents-section { color: var(--white); background: var(--navy); }
.documents-section .eyebrow { color: var(--gold); }
.documents-section .section-heading h2 { color: var(--white); }
.small-button { min-height: 44px; color: var(--navy); background: var(--gold); }
.document-list { border-top: 1px solid rgba(255,255,255,.15); }
.document-row { display: grid; grid-template-columns: 150px minmax(0,1fr) auto; gap: 28px; align-items: center; padding: 24px 0; border-bottom: 1px solid rgba(255,255,255,.15); }
.doc-date { color: var(--gold); font-size: 12px; font-weight: 760; }
.doc-main h3 { margin: 0 0 5px; font-family: Georgia, serif; font-size: 21px; font-weight: 500; }
.doc-main p { margin: 0; color: rgba(255,255,255,.55); font-size: 12px; }
.doc-actions { display: flex; gap: 9px; }
.doc-actions a { padding: 10px 13px; border: 1px solid rgba(255,255,255,.22); border-radius: 999px; font-size: 11px; font-weight: 720; white-space: nowrap; }
.doc-actions a:last-child { color: var(--navy); background: var(--white); border-color: var(--white); }
.pending-files { display: flex; gap: 10px; margin-top: 24px; padding: 18px 20px; color: var(--navy); background: var(--gold-pale); border-radius: 14px; font-size: 12px; }

.safe-note { color: var(--green); font-size: 12px; font-weight: 760; }
.ticket-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
.ticket-card { min-height: 210px; padding: 24px; background: var(--white); border: 1px solid var(--line); border-radius: 18px; transition: transform .2s ease, box-shadow .2s ease; }
.ticket-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(13,27,42,.09); }
.ticket-card > div { display: flex; justify-content: space-between; color: var(--muted); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.ticket-card h3 { margin: 44px 0 0; color: var(--navy); font-family: Georgia, serif; font-size: 27px; font-weight: 500; letter-spacing: -.035em; }
.ticket-card p { margin: 20px 0 0; color: var(--green); font-size: 12px; font-weight: 720; }

.highlight-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; }
.highlight-card { display: block; padding: 22px; background: var(--white); border: 1px solid var(--line); border-radius: 18px; transition: transform .2s ease, box-shadow .2s ease; }
.highlight-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(13,27,42,.09); }
.highlight-card h3 { margin: 0 0 14px; color: var(--navy); font-family: Georgia, serif; font-size: 20px; font-weight: 500; letter-spacing: -.02em; }
.highlight-list { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.highlight-list li { position: relative; padding-left: 16px; color: var(--navy); font-size: 13px; line-height: 1.35; }
.highlight-list li::before { content: "•"; position: absolute; left: 0; color: var(--gold); }

footer { display: grid; grid-template-columns: 1fr auto auto; gap: 18px 32px; align-items: center; padding: 38px 7vw; color: rgba(255,255,255,.72); background: #07131f; font-size: 11px; }
footer > div { display: flex; align-items: center; gap: 12px; color: var(--white); }
footer p { margin: 0; }
footer > a { color: var(--gold); font-weight: 760; }
.image-credits { grid-column: 1 / -1; color: rgba(255,255,255,.45); font-size: 10px; }
.image-credits a { color: rgba(255,255,255,.65); text-decoration: underline; text-underline-offset: 2px; }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .passport-card { max-width: 520px; transform: none; }
  .city-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .document-row { grid-template-columns: 120px 1fr; }
  .doc-actions { grid-column: 2; }
  .ticket-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .highlight-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 640px) {
  .topbar { min-height: 64px; padding: 0 18px; }
  .topbar nav { gap: 14px; }
  .topbar nav a:nth-child(2) { display: none; }
  .brand > span:last-child { display: none; }
  .hero { padding: 62px 20px 70px; gap: 48px; }
  .quick-route { grid-template-columns: 1fr; }
  .quick-route-card { min-height: 88px; }
  .hero-actions { display: grid; }
  .button { width: 100%; }
  .passport-card { padding: 22px; border-radius: 22px; }
  .route-stamp { font-size: 34px; }
  .section { padding: 68px 18px; }
  .section-heading { align-items: start; flex-direction: column; margin-bottom: 26px; }
  .city-grid, .ticket-grid, .highlight-grid { grid-template-columns: 1fr; }
  .city-card { min-height: 290px; }
  .document-row { grid-template-columns: 1fr; gap: 10px; }
  .doc-actions { grid-column: auto; display: grid; grid-template-columns: 1fr 1fr; }
  .doc-actions a { text-align: center; white-space: normal; }
  .pending-files { flex-direction: column; }
  .safe-note { margin-top: -16px; }
  footer { grid-template-columns: 1fr; padding: 34px 18px; }
}

@media print {
  .topbar { position: static; }
  .hero { min-height: auto; }
  .button, .doc-actions, .text-link { display: none; }
}
