:root {
  --navy-950: #06121d;
  --navy-900: #091c2b;
  --navy-800: #102b3f;
  --cream: #f6f0e5;
  --paper: #fffdf8;
  --gold: #d6a95e;
  --gold-bright: #efc878;
  --ink: #10202b;
  --muted: #64717a;
  --line: #dcd7cc;
  --shadow: 0 24px 65px rgba(4, 18, 29, .22);
}

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

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 5;
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 5vw, 76px);
  color: white;
  border-bottom: 1px solid rgba(255,255,255,.16);
}
.brand { display: inline-flex; align-items: center; gap: 11px; color: inherit; text-decoration: none; font-family: Georgia, serif; font-size: 1.35rem; letter-spacing: -.02em; }
.brand-mark { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--gold-bright); border-radius: 50%; color: var(--gold-bright); font: 700 .72rem/1 Inter, sans-serif; letter-spacing: .08em; }
.header-nav { display: flex; align-items: center; gap: 24px; }
.header-nav a { color: rgba(255,255,255,.78); text-decoration: none; font-size: .82rem; font-weight: 700; }
.header-nav a:hover, .header-nav a:focus-visible { color: var(--gold-bright); }
.beta-badge { padding: 7px 11px; border: 1px solid rgba(239,200,120,.6); border-radius: 999px; color: var(--gold-bright); font-size: .72rem; font-weight: 700; letter-spacing: .12em; }

.search-stage { position: relative; min-height: 860px; padding: 142px clamp(20px, 5vw, 76px) 92px; overflow: hidden; color: white; }
.hero-image, .hero-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-image { object-fit: cover; object-position: 57% 50%; }
.hero-shade { background: linear-gradient(90deg, rgba(4,16,27,.97) 0%, rgba(4,16,27,.82) 38%, rgba(4,16,27,.28) 72%, rgba(4,16,27,.12) 100%), linear-gradient(0deg, rgba(4,16,27,.7), transparent 52%); }
.hero-copy, .search-card { position: relative; z-index: 1; }
.hero-copy { max-width: 720px; margin-bottom: 36px; }
.eyebrow { margin: 0 0 12px; color: var(--gold-bright); font-size: .76rem; font-weight: 800; letter-spacing: .17em; }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; font-weight: 500; letter-spacing: -.035em; }
h1 { max-width: 690px; margin: 0; font-size: clamp(3rem, 6vw, 5.8rem); line-height: .96; }
.intro { max-width: 590px; margin: 22px 0 0; color: rgba(255,255,255,.76); font-size: clamp(1rem, 1.5vw, 1.16rem); }

.search-card { max-width: 1180px; padding: 18px; background: rgba(250,247,239,.96); color: var(--ink); border: 1px solid rgba(255,255,255,.3); border-radius: 18px; box-shadow: var(--shadow); backdrop-filter: blur(14px); }
.mode-switch { display: inline-flex; margin: 0 0 16px; padding: 4px; border: 0; border-radius: 11px; background: #e8e4db; }
.mode-switch label { position: relative; cursor: pointer; }
.mode-switch input { position: absolute; opacity: 0; pointer-events: none; }
.mode-switch span { display: block; padding: 8px 13px; border-radius: 8px; color: #5c666c; font-size: .84rem; font-weight: 700; }
.mode-switch input:checked + span { color: var(--navy-900); background: white; box-shadow: 0 3px 10px rgba(9,28,43,.1); }
.search-grid { display: grid; grid-template-columns: 1.3fr 42px 1.3fr 1fr 1fr; gap: 9px; align-items: end; }
.field { display: grid; gap: 6px; }
.field span, .budget-row label { color: #6d7374; font-size: .74rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.field input, .field select { width: 100%; min-width: 0; height: 55px; padding: 0 14px; color: var(--navy-900); background: white; border: 1px solid var(--line); border-radius: 10px; outline: 0; }
.field input:focus, .field select:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(214,169,94,.18); }
.field input:disabled { color: #8c9295; background: #efede7; }
.airport-picker { position: relative; }
.airport-options { position: absolute; z-index: 20; top: calc(100% + 7px); left: 0; width: min(430px, 92vw); max-height: 320px; overflow-y: auto; padding: 6px; background: white; border: 1px solid var(--line); border-radius: 11px; box-shadow: 0 18px 40px rgba(4,18,29,.22); }
.airport-option { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 11px 12px; color: var(--navy-900); background: transparent; border: 0; border-radius: 8px; cursor: pointer; text-align: left; }
.airport-option:hover, .airport-option.active { background: #f3eee4; }
.airport-option > span { min-width: 0; display: grid; gap: 1px; color: inherit; font-size: inherit; font-weight: inherit; letter-spacing: 0; text-transform: none; }
.airport-option strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .91rem; }
.airport-option small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #778086; font-size: .74rem; }
.airport-option b { flex: 0 0 auto; padding: 4px 7px; color: #80591d; background: #fbf4e4; border-radius: 5px; font-size: .75rem; letter-spacing: .08em; }
.airport-empty { padding: 13px; color: var(--muted); font-size: .82rem; }
.swap { height: 42px; margin-bottom: 6px; color: var(--navy-800); background: transparent; border: 0; border-radius: 50%; cursor: pointer; font-size: 1.25rem; }
.swap:hover { background: #e9e4d8; }
.preference-grid { display: grid; grid-template-columns: 1fr 1.25fr 1.65fr 1fr; gap: 10px; align-items: end; margin-top: 15px; }
.bag-option, .trip-length { min-height: 55px; display: flex; align-items: center; gap: 11px; padding: 9px 13px; background: white; border: 1px solid var(--line); border-radius: 10px; }
.bag-option { cursor: pointer; }
.bag-option input { width: 18px; height: 18px; flex: 0 0 auto; accent-color: var(--gold); }
.bag-option span { display: grid; gap: 1px; }
.bag-option strong, .trip-length strong { color: var(--navy-900); font-size: .86rem; }
.bag-option small { color: #7b8386; font-size: .72rem; }
.trip-length { justify-content: space-between; }
.trip-length > span { color: #6d7374; font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.budget-row { display: grid; grid-template-columns: auto 1fr auto; gap: 9px 18px; align-items: center; margin: 19px 2px 17px; }
.budget-row output { grid-column: 3; color: var(--navy-900); font-weight: 800; }
.budget-row input { grid-column: 1 / -1; width: 100%; accent-color: var(--gold); cursor: pointer; }
.range-labels { grid-column: 1 / -1; display: flex; justify-content: space-between; margin-top: -7px; color: #8a9092; font-size: .73rem; }
.search-button { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 15px 19px; color: #071522; background: var(--gold-bright); border: 0; border-radius: 10px; cursor: pointer; font-weight: 800; }
.search-button:hover { background: #f7d58f; }

.results-section { max-width: 1280px; margin: 0 auto; padding: 84px clamp(20px, 5vw, 70px) 104px; }
.results-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; }
.eyebrow.dark { color: #9a6c22; }
.results-heading h2, .promise h2 { margin: 0; color: var(--navy-900); font-size: clamp(2.25rem, 4vw, 4rem); line-height: 1.03; }
.results-heading > p { max-width: 370px; margin: 0 0 6px; color: var(--muted); text-align: right; font-size: .9rem; }
.notice { margin: 22px 0; padding: 12px 15px; color: #62522f; background: #fbf4e4; border-left: 3px solid var(--gold); font-size: .86rem; }
.results-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 17px; }
.deal-card { position: relative; overflow: hidden; min-height: 440px; display: flex; flex-direction: column; justify-content: space-between; padding: 23px; color: white; background: var(--navy-900); border-radius: 15px; }
.deal-card::after { content: ""; position: absolute; width: 210px; height: 210px; right: -80px; top: -90px; border: 1px solid rgba(239,200,120,.28); border-radius: 50%; box-shadow: 0 0 0 28px rgba(239,200,120,.04), 0 0 0 55px rgba(239,200,120,.03); }
.deal-top, .deal-bottom { position: relative; z-index: 1; }
.route-code { color: var(--gold-bright); font-size: .78rem; font-weight: 800; letter-spacing: .16em; }
.deal-card h3 { margin: 8px 0 5px; font-size: 2rem; }
.country { margin: 0; color: rgba(255,255,255,.62); }
.fit { display: inline-block; margin-top: 14px; padding: 5px 8px; color: #f3d89d; background: rgba(214,169,94,.11); border: 1px solid rgba(214,169,94,.28); border-radius: 6px; font-size: .75rem; font-weight: 700; }
.affordability { float: right; padding: 5px 8px; border-radius: 999px; font-size: .7rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.affordability.fits { color: #bdf3d5; background: rgba(53,177,112,.16); border: 1px solid rgba(94,216,151,.3); }
.affordability.close { color: #ffe0a2; background: rgba(214,169,94,.15); border: 1px solid rgba(239,200,120,.28); }
.affordability.over { color: #ffc1bd; background: rgba(209,77,67,.15); border: 1px solid rgba(232,112,103,.28); }
.cost-breakdown { display: grid; gap: 6px; margin: 20px 0 14px; padding: 13px 0; border-top: 1px solid rgba(255,255,255,.14); border-bottom: 1px solid rgba(255,255,255,.14); }
.cost-line { display: flex; justify-content: space-between; gap: 15px; color: rgba(255,255,255,.65); font-size: .78rem; }
.cost-line strong { color: rgba(255,255,255,.9); font-weight: 700; }
.price-label { margin: 0; color: rgba(255,255,255,.58); font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; }
.price { margin: 3px 0 14px; font-family: Georgia, serif; font-size: 2.7rem; letter-spacing: -.05em; }
.price small { margin-left: 5px; color: rgba(255,255,255,.56); font: .78rem Inter, sans-serif; letter-spacing: 0; }
.budget-delta { margin: -6px 0 14px; font-size: .78rem; font-weight: 700; }
.budget-delta.positive { color: #9be1ba; }
.budget-delta.negative { color: #f3aaa4; }
.result-actions { display: grid; border-top: 1px solid rgba(255,255,255,.17); }
.result-link { display: flex; justify-content: space-between; align-items: center; padding: 11px 0; color: white; text-decoration: none; font-size: .88rem; font-weight: 700; }
.result-link + .result-link { border-top: 1px solid rgba(255,255,255,.1); }
.result-link:hover { color: var(--gold-bright); }
.empty-state { padding: 60px 20px; text-align: center; border: 1px dashed var(--line); border-radius: 14px; }
.empty-state h3 { margin: 0; font-size: 1.8rem; }
.empty-state p { color: var(--muted); }

.promise { padding: 100px clamp(20px, 12vw, 170px); color: white; background: var(--navy-950); }
.promise h2 { max-width: 920px; color: white; }
.promise > p:last-child { max-width: 610px; margin: 24px 0 0; color: rgba(255,255,255,.62); font-size: 1.02rem; }
footer { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 34px clamp(20px, 5vw, 76px); color: #9da7ac; background: #030b11; font-size: .74rem; letter-spacing: .04em; }
.footer-brand { color: white; font-size: 1rem; letter-spacing: 0; }
.footer-brand .brand-mark { width: 29px; height: 29px; font-size: .6rem; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 11px 18px; }
.footer-links a { color: #c5ccd0; text-decoration: none; }
.footer-links a:hover, .footer-links a:focus-visible { color: var(--gold-bright); }

.internal-page { background: var(--cream); }
.internal-page .site-header { position: static; color: white; background: var(--navy-950); }
.content-hero { padding: 78px clamp(20px, 10vw, 150px) 64px; color: white; background: var(--navy-900); }
.content-hero h1 { max-width: 820px; font-size: clamp(2.8rem, 6vw, 5.2rem); }
.content-hero p:last-child { max-width: 680px; margin: 20px 0 0; color: rgba(255,255,255,.7); font-size: 1.05rem; }
.content-page { max-width: 920px; margin: 0 auto; padding: 70px 24px 96px; }
.content-page section + section { margin-top: 44px; padding-top: 38px; border-top: 1px solid var(--line); }
.content-page h2 { margin: 0 0 14px; color: var(--navy-900); font-size: clamp(1.65rem, 3vw, 2.35rem); }
.content-page h3 { margin: 25px 0 8px; color: var(--navy-900); font-size: 1.25rem; }
.content-page p, .content-page li { color: #4e5d66; font-size: 1rem; line-height: 1.75; }
.content-page ul { padding-left: 22px; }
.content-page a { color: #80591d; text-underline-offset: 3px; }
.content-page .callout { padding: 22px 24px; background: white; border-left: 3px solid var(--gold); border-radius: 0 10px 10px 0; }
.content-page .updated { margin-bottom: 34px; color: var(--muted); font-size: .88rem; }
.contact-card { display: grid; gap: 8px; max-width: 650px; padding: 28px; background: white; border: 1px solid var(--line); border-radius: 14px; }
.contact-card strong { color: var(--navy-900); font-family: Georgia, serif; font-size: 1.45rem; font-weight: 500; }

@media (max-width: 900px) {
  .search-stage { min-height: 1020px; }
  .search-grid { grid-template-columns: 1fr 38px 1fr; }
  .search-grid .field:nth-of-type(3), .search-grid .field:nth-of-type(4) { grid-column: span 1; }
  .preference-grid { grid-template-columns: repeat(2, 1fr); }
  .results-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 650px) {
  .site-header { height: 70px; }
  .brand { font-size: 1.13rem; }
  .brand-mark { width: 32px; height: 32px; }
  .beta-badge { font-size: .62rem; }
  .header-nav { gap: 10px; }
  .header-nav a { display: none; }
  .search-stage { min-height: 0; padding-top: 120px; padding-bottom: 54px; }
  .hero-image { object-position: 67% center; }
  .hero-shade { background: linear-gradient(180deg, rgba(4,16,27,.72), rgba(4,16,27,.96) 53%, #04101b); }
  .hero-copy { margin-bottom: 27px; }
  h1 { font-size: clamp(2.9rem, 14vw, 4.2rem); }
  .intro { font-size: .98rem; }
  .search-card { padding: 13px; border-radius: 14px; }
  .mode-switch { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .mode-switch span { text-align: center; padding-inline: 8px; }
  .search-grid { grid-template-columns: 1fr; }
  .preference-grid { grid-template-columns: 1fr; }
  .swap { display: none; }
  .budget-row { margin-top: 15px; }
  .results-section { padding-top: 58px; padding-bottom: 70px; }
  .results-heading { display: block; }
  .results-heading > p { margin-top: 13px; text-align: left; }
  .results-grid { grid-template-columns: 1fr; }
  .deal-card { min-height: 420px; }
  .promise { padding-block: 75px; }
  footer { flex-direction: column; align-items: flex-start; }
  .footer-links { justify-content: flex-start; }
  .content-hero { padding-top: 58px; padding-bottom: 52px; }
  .content-page { padding-top: 52px; }
}

@media (prefers-reduced-motion: no-preference) {
  .deal-card { transition: transform .2s ease, box-shadow .2s ease; }
  .deal-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(7,21,34,.16); }
}
