:root {
  --ink: #071b33;
  --muted: #667589;
  --paper: #f5f7f9;
  --white: #ffffff;
  --coral: #ff6b52;
  --coral-dark: #e8533c;
  --aqua: #43d3c5;
  --line: #dce2e8;
  --shadow: 0 20px 55px rgba(7, 27, 51, 0.11);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; background: var(--ink); }
body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
}
main { background: var(--paper); }
button, select, input { font: inherit; }
button, select { cursor: pointer; }
button:focus-visible, select:focus-visible, input:focus-visible, a:focus-visible { outline: 3px solid rgba(67, 211, 197, .65); outline-offset: 3px; }
.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; }

.site-header {
  min-height: calc(76px + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) clamp(24px, 5vw, 78px) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--ink);
  color: var(--white);
}
.brand { display: inline-flex; gap: 10px; align-items: center; color: inherit; text-decoration: none; font-size: 20px; font-weight: 850; letter-spacing: -.7px; }
.brand > span > span { color: var(--coral); }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid rgba(255,255,255,.18); border-radius: 10px; background: rgba(255,255,255,.06); }
.brand-mark svg { width: 24px; fill: var(--coral); }
.brand-mark .brand-cut { fill: white; }
.header-actions { display: flex; align-items: center; gap: 16px; }
.text-button { display: flex; align-items: center; gap: 8px; padding: 8px 12px; color: #d9e2ec; border: 0; background: transparent; }
.text-button svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.text-button span { display: grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 20px; color: var(--ink); background: var(--aqua); font-weight: 800; font-size: 12px; }
.text-button .saved-label { display: inline; min-width: 0; height: auto; padding: 0; color: inherit; background: transparent; border-radius: 0; font-size: inherit; }
.header-select { height: 38px; padding: 0 10px; border: 1px solid rgba(255,255,255,.22); border-radius: 10px; color: white; background: rgba(255,255,255,.08); font-size: 12px; font-weight: 800; }
.header-select option { color: var(--ink); background: white; }
.language-select { min-width: 116px; }
.header-select:hover { background: rgba(255,255,255,.15); }
.avatar-button { width: 38px; height: 38px; border: 0; border-radius: 50%; color: white; background: var(--coral); font-size: 13px; font-weight: 800; }

.search-shell {
  position: relative;
  z-index: 3;
  min-height: 440px;
  padding: 60px clamp(24px, 5vw, 78px) 46px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: visible;
  color: white;
  background: linear-gradient(90deg, rgba(7,27,51,.97) 0%, rgba(7,27,51,.89) 35%, rgba(7,27,51,.2) 76%), url('assets/coastal-city.png') center 56% / cover no-repeat;
}
.search-shell::after { content: ""; position: absolute; inset: auto 0 0; height: 110px; background: linear-gradient(transparent, rgba(7,27,51,.25)); pointer-events: none; }
.search-copy, .search-workspace { position: relative; z-index: 1; }
.search-copy { max-width: 730px; margin-bottom: 30px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--aqua); font-size: 12px; font-weight: 850; letter-spacing: 1.7px; text-transform: uppercase; }
.search-copy h1 { max-width: 700px; margin: 10px 0 12px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(42px, 5.5vw, 72px); line-height: .98; letter-spacing: -3px; font-weight: 500; }
.search-copy p { max-width: 590px; margin: 0; color: #d7e1eb; font-size: 17px; }
.search-workspace { width: 100%; max-width: 1320px; }
.trip-tabs { display: inline-flex; gap: 5px; padding: 5px; margin-bottom: 10px; border: 1px solid rgba(255,255,255,.18); border-radius: 12px; background: rgba(7,27,51,.72); backdrop-filter: blur(12px); }
.trip-tab { padding: 9px 15px; border: 0; border-radius: 8px; color: #cbd6e1; background: transparent; font-size: 14px; font-weight: 780; }
.trip-tab:hover { color: white; }
.trip-tab.active { color: var(--ink); background: white; }
.search-card { position: relative; z-index: 5; display: grid; grid-template-columns: minmax(250px, 1.65fr) minmax(170px, .9fr) minmax(160px, .85fr) minmax(120px, .65fr) auto; overflow: visible; padding: 7px; border: 1px solid rgba(255,255,255,.5); border-radius: 18px; background: rgba(255,255,255,.98); box-shadow: 0 24px 70px rgba(0,0,0,.25); color: var(--ink); }
.search-card.oneway { grid-template-columns: minmax(280px, 1.7fr) minmax(190px, 1fr) minmax(145px, .75fr) auto; }
.field { min-width: 0; padding: 8px 14px; border-right: 1px solid var(--line); }
.field > span:first-child { display: block; margin: 0 0 3px 29px; color: #718095; font-size: 11px; font-weight: 800; letter-spacing: .7px; text-transform: uppercase; }
.field > .field-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 3px 29px; }
.field-heading > span:first-child { color: #718095; font-size: 11px; font-weight: 800; letter-spacing: .7px; text-transform: uppercase; }
.input-row { display: flex; align-items: center; gap: 9px; }
.input-row svg { width: 20px; fill: none; stroke: var(--coral); stroke-width: 1.8; flex: 0 0 auto; }
.field select, .field input { min-width: 0; width: 100%; padding: 2px 8px 2px 0; border: 0; outline: 0; color: var(--ink); background: transparent; font-weight: 750; }
.airport-entry { position: relative; display: block; flex: 1; min-width: 0; }
.airport-suggestions { position: absolute; z-index: 100; top: calc(100% + 12px); left: -40px; width: min(540px, calc(100vw - 48px)); max-height: 330px; overflow-y: auto; padding: 7px; border: 1px solid var(--line); border-radius: 13px; background: white; box-shadow: 0 22px 55px rgba(7,27,51,.22); }
.airport-option { width: 100%; padding: 10px 11px; display: grid; grid-template-columns: 44px 1fr; gap: 10px; border: 0; border-radius: 9px; color: var(--ink); background: transparent; text-align: left; }
.airport-option:hover, .airport-option.active { background: #edf9f7; }
.airport-code { display: grid; place-items: center; min-height: 34px; border-radius: 7px; color: white; background: var(--ink); font-size: 12px; font-weight: 900; letter-spacing: .6px; }
.airport-copy { min-width: 0; }
.airport-copy strong, .airport-copy small { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.airport-copy strong { font-size: 14px; }
.airport-copy small { color: var(--muted); font-size: 12px; font-weight: 600; }
.airport-empty { display: block; padding: 12px; color: var(--muted); font-size: 13px; }
.field input[type="date"] { min-height: 28px; }
.date-row { flex-wrap: nowrap; }
.date-row > input[type="date"] { flex: 1 1 130px; }
.date-row > input[type="date"]::-webkit-date-and-time-value { min-height: 1.5em; margin: 0; text-align: left; }
.date-row > input[type="date"]:disabled { color: #8b98a7; opacity: .55; }
.flexible-toggle { display: inline-flex; align-items: center; gap: 5px; flex: 0 0 auto; padding: 3px 7px; border: 1px solid var(--line); border-radius: 999px; color: #526276; background: #f7f9fa; font-size: 10px; font-weight: 850; letter-spacing: 0; text-transform: none; cursor: pointer; }
.flexible-toggle input { width: 14px; height: 14px; margin: 0; accent-color: var(--coral); cursor: pointer; }
.flexible-toggle:has(input:checked) { color: #125f57; border-color: #93ddd5; background: #e4faf7; }
.search-button { display: flex; align-items: center; justify-content: center; gap: 9px; align-self: stretch; min-width: 154px; padding: 0 22px; border: 0; border-radius: 12px; color: white; background: var(--coral); font-weight: 820; transition: transform .2s, background .2s; }
.search-button:hover { background: var(--coral-dark); transform: translateY(-1px); }
.search-button svg { width: 20px; fill: none; stroke: currentColor; stroke-width: 2; }
.form-error { margin: 9px 0 0; padding: 9px 13px; border-radius: 8px; color: #7d1e14; background: #ffe5e0; font-size: 14px; font-weight: 700; }

.deals-section { position: relative; z-index: 1; max-width: 1380px; margin: 0 auto; padding: 64px clamp(20px, 5vw, 72px) 48px; }
.section-heading { display: flex; justify-content: space-between; gap: 24px; align-items: end; }
.section-kicker { margin: 0 0 8px; color: #718095; font-size: 12px; font-weight: 800; letter-spacing: .75px; text-transform: uppercase; }
.section-kicker span { display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: var(--aqua); box-shadow: 0 0 0 4px rgba(67,211,197,.16); }
.section-heading h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(32px, 4vw, 48px); font-weight: 500; letter-spacing: -1.5px; line-height: 1.1; }
.section-heading h2 span { color: var(--coral); font-style: italic; }
.section-heading p:last-child { margin: 8px 0 0; color: var(--muted); }
.sort-control { display: flex; align-items: center; gap: 10px; white-space: nowrap; color: var(--muted); font-size: 14px; }
.sort-control select { padding: 10px 34px 10px 12px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: white; font-weight: 700; }
.filter-row { display: flex; gap: 10px; align-items: center; margin: 32px 0 26px; overflow-x: auto; padding-bottom: 5px; scrollbar-width: thin; }
.filter-chip { flex: 0 0 auto; padding: 10px 15px; border: 1px solid var(--line); border-radius: 999px; color: #4e5e72; background: white; font-size: 14px; font-weight: 700; transition: .2s; }
.filter-chip:hover, .filter-chip.active { color: white; border-color: var(--ink); background: var(--ink); }
.price-filter { min-width: 190px; margin-left: auto; padding-left: 18px; border-left: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.price-filter span { display: flex; justify-content: space-between; }
.price-filter strong { color: var(--ink); }
.price-filter input { width: 100%; accent-color: var(--coral); }

.deal-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.deal-card { position: relative; overflow: hidden; border: 1px solid #d8e0e7; border-radius: 22px; background: white; box-shadow: 0 8px 28px rgba(7,27,51,.07); transition: transform .25s, box-shadow .25s; animation: cardIn .45s both; }
.deal-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
@keyframes cardIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.deal-image { position: relative; height: 190px; overflow: hidden; background: #bfd6e5; }
.deal-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.deal-card:hover .deal-image img { transform: scale(1.04); }
.deal-card:nth-child(2n) .deal-image img { object-position: 70% center; }
.deal-card:nth-child(3n) .deal-image img { object-position: 90% center; }
.deal-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 45%, rgba(7,27,51,.55)); }
.deal-badge { position: absolute; z-index: 1; top: 14px; left: 14px; padding: 6px 9px; border-radius: 7px; color: var(--ink); background: var(--aqua); font-size: 11px; font-weight: 900; letter-spacing: .45px; text-transform: uppercase; }
.save-button { position: absolute; z-index: 2; top: 12px; right: 12px; display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 50%; color: white; background: rgba(7,27,51,.48); backdrop-filter: blur(8px); }
.save-button svg { width: 18px; fill: transparent; stroke: currentColor; stroke-width: 2; }
.save-button.saved { color: var(--coral); background: white; }
.save-button.saved svg { fill: currentColor; }
.city-overlay { position: absolute; z-index: 1; left: 18px; bottom: 14px; color: white; }
.city-overlay h3 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 30px; font-weight: 500; letter-spacing: -.8px; }
.city-overlay p { margin: 0; color: rgba(255,255,255,.84); font-size: 13px; }
.deal-content { padding: 18px; }
.route-line { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.route { display: flex; align-items: center; gap: 9px; color: #53657a; font-size: 13px; font-weight: 750; }
.route-code { color: var(--ink); font-weight: 900; }
.route span[aria-hidden] { color: var(--coral); }
.direct { padding: 4px 7px; border-radius: 6px; color: #247d72; background: #e2f8f5; font-size: 11px; font-weight: 850; }
.flight-facts { margin: 15px 0 17px; padding: 4px 12px; border: 1px solid #e5eaee; border-radius: 12px; background: #f7f9fa; }
.flight-fact { min-width: 0; padding: 9px 0; display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; border-bottom: 1px solid #e2e7eb; }
.flight-fact:last-child { border-bottom: 0; }
.flight-fact span, .flight-fact strong { display: block; }
.flight-fact span { flex: 0 0 auto; padding-top: 2px; color: #7a8797; font-size: 10px; font-weight: 850; letter-spacing: .45px; text-transform: uppercase; }
.flight-fact strong { min-width: 0; color: #263b51; font-size: 13px; line-height: 1.35; text-align: right; overflow-wrap: anywhere; }
.deal-bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding-top: 15px; border-top: 1px solid #edf0f3; }
.price-label { color: var(--muted); font-size: 11px; text-transform: uppercase; font-weight: 800; }
.price { display: flex; align-items: baseline; gap: 5px; }
.price strong { font-size: 28px; letter-spacing: -1px; }
.price span { color: var(--muted); font-size: 12px; }
.saving { text-align: right; color: #247d72; font-size: 12px; font-weight: 750; }
.saving s { display: block; color: #9aa5b1; font-weight: 500; }
.deal-actions { display: grid; justify-items: end; gap: 7px; }
.booking-link { padding: 6px 9px; border-radius: 7px; color: white; background: var(--ink); text-decoration: none; font-size: 12px; font-weight: 800; }
.booking-link:hover { background: var(--coral); }
.empty-state { padding: 58px 20px; text-align: center; border: 1px dashed #bdc7d1; border-radius: 18px; background: white; }
.empty-state > span { display: block; color: var(--coral); font-size: 30px; }
.empty-state h3 { margin: 8px 0 3px; font-family: Georgia, serif; font-size: 26px; }
.empty-state p { margin: 0 0 18px; color: var(--muted); }
.empty-state button { padding: 10px 16px; border: 0; border-radius: 9px; color: white; background: var(--ink); font-weight: 750; }
.loading-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.loading-grid span { height: 360px; border-radius: 18px; background: linear-gradient(100deg, #e6eaee 20%, #f7f9fa 40%, #e6eaee 60%); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
@keyframes shimmer { to { background-position-x: -200%; } }

.provider-note { max-width: 1236px; margin: 8px auto 34px; padding: 18px 22px; display: flex; align-items: center; justify-content: space-between; gap: 22px; border: 1px solid #cfe2e0; border-radius: 16px; background: #edfaf8; }
.provider-note > div { display: flex; align-items: center; gap: 14px; }
.provider-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; color: white; background: #167c71; font-size: 20px; font-weight: 900; }
.provider-note strong { display: block; }
.provider-note p { margin: 2px 0 0; color: #55706d; font-size: 14px; }
.provider-pill { flex: 0 0 auto; padding: 7px 11px; border-radius: 999px; color: #7c5b14; background: #fff1c8; font-size: 12px; font-weight: 850; }
.provider-pill.live { color: #16695f; background: #cbf4ed; }

footer { padding: 30px clamp(24px, 6vw, 96px); display: flex; justify-content: space-between; align-items: center; gap: 24px; border-top: 1px solid var(--line); color: var(--muted); background: white; font-size: 13px; }
.brand-footer { color: var(--ink); }
footer p { margin: 0; text-align: center; }
.toast { position: fixed; z-index: 10; left: 50%; bottom: 24px; max-width: calc(100% - 32px); padding: 12px 18px; border-radius: 10px; color: white; background: var(--ink); box-shadow: var(--shadow); font-weight: 700; opacity: 0; pointer-events: none; transform: translate(-50%, 20px); transition: .25s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 1180px) {
  .search-card { grid-template-columns: 1fr 1fr; }
  .field { border-bottom: 1px solid var(--line); }
  .search-button { min-height: 64px; justify-content: center; }
  .deal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .provider-note { margin-inline: 24px; }
}
@media (max-width: 680px) {
  .site-header { min-height: calc(66px + env(safe-area-inset-top)); padding: env(safe-area-inset-top) max(10px, env(safe-area-inset-right)) 0 max(10px, env(safe-area-inset-left)); }
  .site-header .brand { gap: 6px; font-size: 16px; letter-spacing: -.5px; }
  .site-header .brand-mark { width: 31px; height: 31px; border-radius: 9px; }
  .site-header .brand-mark svg { width: 21px; }
  .text-button { gap: 4px; padding: 4px; font-size: 0; }
  .text-button .saved-label { display: none; }
  .header-actions { min-width: 0; gap: 4px; }
  .header-select { width: 68px; height: 34px; padding: 0 5px; font-size: 11px; }
  .language-select { width: 88px; }
  .text-button span { font-size: 12px; }
  .search-shell { min-height: 630px; padding: 54px 18px 28px; background-position: 64% center; }
  .search-shell::before { content: ""; position: absolute; inset: 0; background: rgba(7,27,51,.2); }
  .search-copy { margin-bottom: 28px; }
  .search-copy h1 { font-size: 44px; letter-spacing: -2px; }
  .search-copy p { font-size: 15px; }
  .search-card { grid-template-columns: 1fr; border-radius: 15px; }
  .search-card.oneway { grid-template-columns: 1fr; }
  .trip-tabs { width: 100%; }
  .trip-tab { flex: 1; padding-inline: 7px; font-size: 13px; }
  .field { border-right: 0; }
  .field:last-of-type { border-bottom: 0; }
  .search-button { min-height: 54px; }
  .field > .field-heading { justify-content: flex-start; gap: 10px; margin-left: 29px; }
  .date-row > input[type="date"] { text-align: left; }
  .deals-section { padding-top: 44px; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .sort-control { width: 100%; justify-content: space-between; }
  .filter-row { margin-top: 24px; }
  .price-filter { min-width: 160px; }
  .deal-grid { grid-template-columns: 1fr; }
  .loading-grid { grid-template-columns: 1fr; }
  .loading-grid span:nth-child(n+2) { display: none; }
  .provider-note { margin: 0 18px 28px; align-items: flex-start; flex-direction: column; }
  .deal-image { height: 220px; }
  .deal-bottom { align-items: stretch; flex-direction: column; gap: 12px; }
  .deal-actions { justify-items: stretch; }
  .saving { text-align: left; }
  .booking-link { padding: 11px 14px; text-align: center; font-size: 13px; }
  footer { flex-direction: column; text-align: center; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; } }
