:root {
  --ink: #14233a;
  --muted: #5b6b7f;
  --paper: #f6efe4;
  --paper-2: #efe4d4;
  --navy: #12324c;
  --sea: #1c7c8c;
  --coral: #c45c3a;
  --gold: #d7a35a;
  --white: #fffaf4;
  --line: rgba(20, 35, 58, 0.12);
  --shadow: 0 18px 50px rgba(18, 50, 76, 0.16);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: Outfit, system-ui, sans-serif;
  color: var(--ink);
  background: radial-gradient(1200px 600px at 10% -10%, #fde7c8 0%, transparent 55%),
              radial-gradient(900px 500px at 110% 10%, #cfe7e8 0%, transparent 50%),
              var(--paper);
}

.bg-glow {
  position: fixed; inset: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.045'/%3E%3C/svg%3E");
}

.hero, .toolbar, main { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.hero { padding: 42px 0 18px; }
.hero-top { display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.eyebrow {
  letter-spacing: .16em; text-transform: uppercase; font-size: 12px;
  color: var(--coral); margin: 0; font-weight: 600;
}
h1 {
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(36px, 6vw, 64px);
  line-height: .95; margin: 14px 0 12px; letter-spacing: -.03em;
}
.lede { font-size: 18px; color: var(--muted); max-width: 46rem; margin: 0 0 22px; }
.lede strong { color: var(--ink); font-weight: 650; }

.stats { display: flex; flex-wrap: wrap; gap: 10px; }
.stat {
  background: var(--white); border: 1px solid var(--line);
  border-radius: 999px; padding: 8px 14px; font-size: 14px;
  box-shadow: 0 6px 18px rgba(18,50,76,.06);
}
.stat b { font-weight: 700; }

.ghost-btn, .text-btn, .primary {
  font: inherit; cursor: pointer; border-radius: 999px;
}
.ghost-btn {
  border: 1px solid var(--navy); background: var(--navy); color: var(--white);
  padding: 10px 16px; font-weight: 600;
}
.ghost-btn:disabled { opacity: .6; cursor: wait; }
.text-btn {
  border: 0; background: transparent; color: var(--sea); padding: 0; font-weight: 650;
}
.primary {
  background: var(--coral); color: white; border: 0; padding: 10px 16px; font-weight: 650;
  text-decoration: none; display: inline-flex; align-items: center;
}

.toolbar {
  display: flex; justify-content: space-between; gap: 16px; align-items: center;
  padding: 8px 0 22px; flex-wrap: wrap;
}
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1px solid var(--line); background: var(--white); color: var(--ink);
  border-radius: 999px; padding: 8px 14px; cursor: pointer; font: inherit;
}
.chip.active { background: var(--navy); color: white; border-color: var(--navy); }
.sort { display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: 14px; }
.sort select {
  font: inherit; border-radius: 10px; border: 1px solid var(--line);
  background: var(--white); padding: 8px 10px;
}

.grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 22px;
}
.card {
  background: var(--white); border-radius: 22px; overflow: hidden;
  box-shadow: var(--shadow); display: flex; flex-direction: column;
  border: 1px solid rgba(255,255,255,.6);
}
.photo {
  height: 210px; background: #9bb7c2 center/cover no-repeat; position: relative;
}
.photo-badges {
  position: absolute; left: 12px; right: 12px; top: 12px;
  display: flex; justify-content: space-between; gap: 8px;
}
.badge {
  background: rgba(20,35,58,.82); color: white; border-radius: 999px;
  padding: 6px 10px; font-size: 12px; font-weight: 650; backdrop-filter: blur(8px);
}
.badge.meal { background: rgba(196,92,58,.9); }
.card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.where { color: var(--muted); font-size: 13px; letter-spacing: .04em; text-transform: uppercase; margin: 0; }
.card h2 { font-family: Fraunces, serif; font-size: 26px; margin: 0; line-height: 1.15; }
.meta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.meta div, .ticket {
  background: var(--paper); border-radius: 14px; padding: 10px 12px; font-size: 13px;
}
.meta span, .ticket span { display: block; color: var(--muted); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.benefits { margin: 0; padding-left: 18px; color: var(--muted); font-size: 14px; }
.tickets { display: flex; flex-direction: column; gap: 8px; }
.ticket { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.ticket b { font-size: 15px; }
.empty-flight { color: var(--coral); font-size: 14px; margin: 0; }
.price-row { display: flex; justify-content: space-between; align-items: end; gap: 12px; margin-top: auto; }
.price small { display: block; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.price strong { font-family: Fraunces, serif; font-size: 28px; }
.spark { width: 92px; height: 36px; }
.actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }

.footnote { color: var(--muted); font-size: 13px; line-height: 1.55; max-width: 52rem; }
.map-wrap {
  margin: 28px 0 64px; background: var(--white); border-radius: 24px;
  overflow: hidden; box-shadow: var(--shadow);
}
.map-head { padding: 22px 22px 8px; }
.map-head h2 { font-family: Fraunces, serif; margin: 0 0 6px; }
.map-head p { margin: 0; color: var(--muted); }
#map { height: 460px; }

.drawer {
  display: none;
  position: fixed; inset: 0; z-index: 80;
  background: rgba(20,35,58,.38);
  place-items: end;
}
.drawer.is-open { display: grid; }
.drawer[hidden] { display: none !important; }
.drawer-panel {
  position: relative;
  background: var(--white); width: min(640px, 100%); height: 100%;
  overflow: auto; padding: 28px; box-shadow: -20px 0 50px rgba(0,0,0,.18);
}
.close {
  position: sticky; top: 0; float: right; z-index: 2;
  border: 0; background: var(--navy); color: white;
  border-radius: 999px; padding: 10px 16px; cursor: pointer; font: inherit; font-weight: 650;
}
.drawer h3 { font-family: Fraunces, serif; font-size: 30px; margin: 8px 0 6px; }
.drawer pre, .cond {
  white-space: pre-wrap; font-family: inherit; background: var(--paper);
  padding: 14px; border-radius: 14px; line-height: 1.5;
}
.history-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.history-table th, .history-table td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); }

@media (max-width: 700px) {
  .hero-top { align-items: flex-start; flex-direction: column; }
  .meta { grid-template-columns: 1fr; }
  #map { height: 340px; }
}
