@font-face {
  font-family: Manrope;
  src: url("/assets/manrope.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f6f8fb;
  --white: #fff;
  --ink: #122b43;
  --navy: #102842;
  --muted: #4d6377;
  --line: #d7e0e8;
  --soft-blue: #e8eff7;
  --blue: #245586;
  --gold: #fac467;
  --gold-hover: #f5b94f;
  --danger: #a52d30;
  --radius: 15px;
  font-family: Manrope, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  scrollbar-color: #92a8be var(--paper);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
::selection { background: var(--gold); color: var(--navy); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.035em; font-weight: 800; }
p { line-height: 1.65; }
a { color: inherit; text-underline-offset: .2em; }
button, select, input { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
input { caret-color: var(--blue); }
img { display: block; max-width: 100%; }
.icon { flex: none; vertical-align: middle; }
.container { width: min(1176px, calc(100% - 64px)); margin-inline: auto; }
.sr-only, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link:focus { position: fixed; z-index: 9; top: 12px; left: 12px; background: var(--white); padding: 12px; }
#finder, #destinations, #saved { scroll-margin-top: 24px; }

.site-header { background: var(--white); position: relative; z-index: 2; }
.header-inner { min-height: 70px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.brand { width: fit-content; display: inline-flex; align-items: center; gap: 9px; font-size: 1.5rem; font-weight: 800; letter-spacing: -.04em; text-decoration: none; color: var(--navy); white-space: nowrap; }
.brand-period { margin-left: -8px; color: #976213; }
.brand-mark { display: grid; place-items: center; width: 33px; height: 33px; border-radius: 9px; color: var(--gold); background: var(--navy); }
.brand-mark .icon { width: 19px; height: 19px; }
.top-nav { display: flex; align-items: center; gap: clamp(16px, 3vw, 38px); }
.top-nav a, .saved-link { min-height: 44px; display: inline-flex; align-items: center; text-decoration: none; color: var(--muted); font-size: .86rem; font-weight: 750; white-space: nowrap; }
.top-nav a { position: relative; }
.top-nav a[aria-current], .top-nav a:hover, .saved-link:hover { color: var(--navy); }
.top-nav a[aria-current]::after { content: ""; position: absolute; height: 2px; left: 0; right: 0; bottom: 5px; border-radius: 2px; background: #c88623; }
.saved-link { justify-self: end; gap: 8px; }
.saved-link .icon { width: 18px; height: 18px; }

.hero {
  min-height: 367px;
  color: white;
  background: linear-gradient(90deg, #0a2445db 0%, #102e54b5 34%, #162f501f 73%, #0f28441c 100%),
    var(--navy) url("/assets/hero.webp") center 56% / cover no-repeat;
}
.hero-inner { padding-top: 69px; }
.hero h1 { font-size: clamp(3.15rem, 5.9vw, 5.35rem); letter-spacing: -.04em; }
.hero p { margin-top: 16px; max-width: 43ch; color: #f0f5fa; font-size: clamp(1rem, 1.5vw, 1.19rem); font-weight: 500; }

.finder { position: relative; z-index: 1; margin-top: -109px; }
.search-form { background: var(--white); padding: 22px; border-radius: 17px; box-shadow: 0 12px 34px #10284219; }
.search-meta { display: flex; align-items: center; gap: 22px; margin-bottom: 16px; }
.trip-switch { background: #eef2f7; border: 0; border-radius: 9px; display: inline-flex; gap: 3px; padding: 3px; margin: 0; min-width: 0; }
.trip-switch label { position: relative; cursor: pointer; }
.trip-switch input { position: absolute; opacity: 0; }
.trip-switch span { display: block; padding: 8px 13px; min-height: 38px; border-radius: 6px; color: var(--muted); font-size: .83rem; font-weight: 800; white-space: nowrap; }
.trip-switch :checked + span { color: var(--navy); background: var(--white); box-shadow: 0 1px 4px #122b4324; }
.trip-switch :focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }
.trip-options { display: flex; gap: 19px; align-items: center; }
.select-inline { position: relative; display: flex; align-items: center; gap: 6px; color: var(--muted); }
.select-inline > .icon { width: 16px; height: 16px; pointer-events: none; }
.select-inline > .icon:last-child { position: absolute; right: 0; }
.select-inline select { width: auto; appearance: none; border: none; background: transparent; border-radius: 4px; cursor: pointer; padding: 8px 19px 8px 2px; color: var(--ink); font-size: .83rem; font-weight: 750; }
.fields { display: grid; align-items: stretch; grid-template-columns: minmax(0, 4fr) minmax(0, 2.65fr) max-content; gap: 12px; }
.airports-pair, .dates { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; position: relative; }
.airports-pair { gap: 18px; }
.dates.one-way { grid-template-columns: 1fr; }
.field { min-width: 0; position: relative; border: 1px solid #cad7e3; border-radius: 9px; padding: 9px 12px 8px; }
.field:focus-within { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue); }
.field label { display: block; color: var(--muted); font-size: .81rem; font-weight: 800; margin-bottom: 2px; }
.field-input { display: flex; align-items: center; gap: 8px; }
.field-input .icon { width: 17px; height: 17px; color: var(--blue); }
.field input { min-width: 0; width: 100%; height: 26px; font-size: .9rem; font-weight: 750; background: transparent; padding: 0; border: 0; outline: none; text-overflow: ellipsis; }
.field input::placeholder { color: #546a7e; opacity: 1; }
.field input[type="date"] { font-variant-numeric: tabular-nums; }
.field input[type="date"]::-webkit-calendar-picker-indicator { opacity: .6; cursor: pointer; margin: 0; }
.phrase-search { margin-top: 12px; }
.phrase-search summary { display: inline-flex; align-items: center; gap: 5px; min-height: 36px; color: var(--blue); font-size: .86rem; font-weight: 800; cursor: pointer; }
.phrase-search summary::-webkit-details-marker { display: none; }
.phrase-search summary .icon { width: 16px; height: 16px; }
.phrase-search[open] summary .icon { rotate: 180deg; }
.phrase-input-row { display: grid; grid-template-columns: minmax(0, 1fr) max-content; gap: 10px; margin-top: 4px; }
.phrase-search p { margin-top: 8px; color: var(--muted); font-size: .83rem; }
.phrase-search #phrase-status { color: var(--ink); font-weight: 750; }
.phrase-search #phrase-status:empty { display: none; }
.phrase-examples { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 9px; }
.phrase-examples .outline-button { min-height: 36px; padding: 6px 9px; font-size: .81rem; }
.swap-button { width: 29px; height: 29px; border-radius: 50%; border: 1px solid #cad7e3; background: var(--white); color: var(--blue); display: grid; place-items: center; padding: 0; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); z-index: 2; }
.swap-button .icon { width: 15px; height: 15px; }
.swap-button:disabled { color: var(--muted); }
.swap-button:not(:disabled):hover { background: var(--soft-blue); }
.airports-pair .field:first-child { padding-right: 17px; }
.airports-pair .field:last-child { padding-left: 17px; }
.airport-field:focus-within { z-index: 3; }
.airport-options { min-width: min(300px, calc(100vw - 52px)); margin: 0; padding: 5px; list-style: none; position: absolute; top: calc(100% + 6px); left: -1px; right: -1px; max-height: 240px; overflow: auto; z-index: 4; border-radius: 9px; background: var(--white); box-shadow: 0 7px 26px #10284236; }
.airport-options li { display: grid; grid-template-columns: 40px minmax(0,1fr); align-items: center; gap: 9px; padding: 8px; border-radius: 6px; cursor: pointer; }
.airport-options li:hover, .airport-options li.is-active { background: var(--soft-blue); }
.airport-options .airport-empty { grid-template-columns: 1fr; cursor: default; font-size: .83rem; }
.option-code { color: var(--blue); font-size: .8rem; font-weight: 800; }
.option-city { display: block; font-size: .87rem; font-weight: 800; }
.option-name { display: block; color: var(--muted); font-size: .75rem; }
.primary-button, .outline-button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; text-align: center; text-decoration: none; border-radius: 8px; min-height: 44px; padding: 9px 15px; font-size: .88rem; font-weight: 800; }
.primary-button { background: var(--gold); color: var(--navy); border: 1px solid transparent; }
.primary-button:hover { background: var(--gold-hover); }
.outline-button { border: 1px solid #aebfd0; background: var(--white); color: var(--navy); }
.outline-button:hover { background: var(--soft-blue); }
.outline-button .icon { width: 16px; height: 16px; }
.search-button { padding-inline: 19px; align-self: stretch; }
.form-feedback { margin-top: 12px; font-size: .875rem; font-weight: 750; color: var(--danger); }
.form-feedback:empty { display: none; }
.finder-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 13px; color: var(--muted); font-size: .82rem; }
.finder-meta a { color: var(--blue); font-weight: 750; }
.search-summary { margin-top: 18px; padding: 18px 22px; border: 1px solid #b7c9da; border-radius: var(--radius); background: #eaf2fa; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; }
.search-summary h2 { font-size: 1.2rem; }
.search-summary p { margin-top: 5px; font-size: .9rem; color: var(--muted); }
.summary-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.explore { padding-block: 47px 56px; }
.section-heading h2 { font-size: clamp(1.9rem, 3.1vw, 2.6rem); }
.section-heading p { margin-top: 8px; color: var(--muted); font-size: .98rem; }
.section-heading-row { display: flex; justify-content: space-between; align-items: end; gap: 14px; }
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; margin-bottom: 20px; }
.filter-bar button { color: var(--navy); font-size: .83rem; font-weight: 800; background: var(--white); border: 1px solid var(--line); border-radius: 7px; padding: 7px 13px; min-height: 38px; }
.filter-bar button:hover { background: var(--soft-blue); }
.filter-bar button[aria-pressed="true"] { background: var(--navy); color: var(--white); border-color: var(--navy); }
.destination-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 17px; }
.destination-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); min-width: 0; overflow: hidden; }
.destination-photo { position: relative; }
.destination-photo img { aspect-ratio: 1.64; object-fit: cover; width: 100%; height: auto; background: #bacddd; }
.airport-code { position: absolute; left: 11px; bottom: 11px; background: #102842; color: #fff; border-radius: 5px; padding: 4px 8px; font-size: .79rem; font-weight: 800; letter-spacing: .055em; }
.destination-copy { display: flex; align-items: center; gap: 8px; justify-content: space-between; padding: 13px 13px 0; }
.destination-copy h3 { font-size: 1.25rem; }
.destination-copy span { font-size: .84rem; color: var(--muted); display: block; margin-top: 3px; }
.route-button { flex: none; display: grid; place-items: center; width: 39px; height: 39px; border: 0; border-radius: 8px; background: var(--soft-blue); color: var(--blue); }
.route-button:hover { background: #dbe9f5; }
.route-button .icon { width: 17px; height: 17px; }
.destination-card > p { margin: 9px 13px 14px; color: var(--muted); font-size: .83rem; }
.more-destinations { text-align: center; margin-top: 22px; }
#more-destinations[aria-expanded="true"] .icon { rotate: 180deg; }

.guides-band { padding-block: 49px 55px; background: #e8eff7; }
.guides-list { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); column-gap: 28px; row-gap: 24px; margin-top: 27px; }
.guide-item { border-top: 1px solid #aebfd0; padding: 15px 0 0; }
.read-time, .article-meta { color: var(--muted); font-size: .82rem; font-weight: 800; }
.guide-item :is(h2,h3) { font-size: 1.28rem; margin: 7px 0; line-height: 1.26; }
.guide-item :is(h2,h3) a { text-decoration: none; }
.guide-item :is(h2,h3) a:hover { color: var(--blue); text-decoration: underline; }
.guide-item p { color: var(--muted); font-size: .9rem; margin-bottom: 10px; }
.saved-section { padding-block: 49px 58px; }
.saved-list { margin-top: 17px; }
.saved-list > p { color: var(--muted); padding: 14px 0; border-top: 1px solid var(--line); }
.saved-item { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 13px 0; border-top: 1px solid var(--line); }
.saved-item h3 { font-size: 1rem; }
.saved-item p { color: var(--muted); font-size: .83rem; margin-top: 3px; }
.saved-item-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.remove-route { border: 0; background: transparent; border-radius: 7px; min-width: 44px; min-height: 44px; color: var(--muted); }
.remove-route:hover { background: var(--soft-blue); color: var(--ink); }

.site-footer { background: var(--navy); color: #e4edf6; padding-block: 28px 19px; }
.site-footer .brand { color: white; }
.site-footer .brand-period { color: var(--gold); }
.site-footer .brand-mark { background: #284360; }
.site-footer a:focus-visible { outline-color: var(--gold); }
.footer-inner { display: flex; justify-content: space-between; gap: 25px; margin-bottom: 19px; }
.footer-inner p { margin-top: 9px; font-size: .85rem; }
.footer-inner nav { display: flex; justify-content: flex-end; align-items: center; gap: 17px; flex-wrap: wrap; font-size: .85rem; }
.footer-bottom { border-top: 1px solid #42607d; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; font-size: .8rem; }
.footer-bottom .icon { width: 15px; height: 15px; margin-right: 3px; }

.article-page, .listing-page { padding-block: 43px 68px; min-height: 65vh; }
.crumbs { display: flex; gap: 9px; color: var(--blue); font-size: .85rem; font-weight: 800; margin-bottom: 21px; }
.article { max-width: 72ch; }
.article-header { margin-bottom: 36px; }
.article-header h1 { font-size: clamp(2.45rem, 5.2vw, 4.05rem); }
.article-header > p { color: var(--muted); margin-top: 12px; font-size: clamp(1.04rem, 2vw, 1.21rem); }
.article-meta { margin-top: 12px; }
.article section { margin: 28px 0; }
.article section h2 { font-size: clamp(1.3rem, 2.5vw, 1.6rem); margin-bottom: 10px; }
.article section p + p { margin-top: 12px; }
.article a:not(.outline-button) { color: var(--blue); }
.article li { line-height: 1.6; margin-bottom: 7px; }
.photo-credits { padding-inline-start: 20px; }
.photo-credits li p { color: var(--muted); font-size: .95rem; }
.article-sources { border-top: 1px solid var(--line); padding-top: 17px; }

@media (max-width: 1060px) {
  .fields { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
  .search-button { grid-column: 1 / -1; justify-self: end; min-height: 46px; }
  .dates .field-input .icon { display: none; }
  .airport-field:last-child .airport-options { left: auto; }
}

@media (max-width: 760px) {
  .container { width: calc(100% - 36px); }
  .header-inner { grid-template-columns: 1fr auto; gap: 0 12px; min-height: 60px; }
  .brand { font-size: 1.34rem; }
  .brand-mark { width: 29px; height: 29px; }
  .top-nav { grid-row: 2; grid-column: 1 / -1; gap: 20px; }
  .top-nav a { min-height: 39px; }
  .saved-link { grid-column: 2; grid-row: 1; }
  .site-header .brand, .saved-link { margin-top: 3px; }
  .hero {
    min-height: 295px;
    background-image: linear-gradient(90deg, #0a2445e0 0%, #102e54bf 56%, #142e51a8 100%), url("/assets/hero.webp");
    background-position: 62% 50%;
  }
  .hero-inner { padding-top: 42px; }
  .hero p { max-width: 36ch; }
  .finder { margin-top: -59px; }
  .search-form { padding: 14px; }
  .phrase-input-row { grid-template-columns: 1fr; }
  .search-meta { gap: 7px 12px; flex-wrap: wrap; margin-bottom: 12px; }
  .trip-options { gap: 13px; }
  .fields { gap: 9px; grid-template-columns: 1fr; }
  .search-button { justify-self: stretch; }
  .destination-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
  .explore, .guides-band, .saved-section { padding-block: 36px; }
  .guides-list { grid-template-columns: 1fr; gap: 15px; }
  .section-heading-row { align-items: flex-start; flex-direction: column; }
  .footer-inner { flex-direction: column; gap: 13px; }
  .footer-inner nav { justify-content: flex-start; gap: 10px 15px; }
}

@media (max-width: 370px) {
  .container { width: calc(100% - 24px); }
  .hero h1 { font-size: 2.65rem; }
  .field-input .icon { display: none; }
  .destination-copy { padding-inline: 9px; }
  .destination-copy h3 { font-size: 1.05rem; }
  .destination-card > p { margin-inline: 9px; }
  .route-button { width: 33px; height: 36px; }
}

@media (max-width: 430px) {
  .airports-pair .field-input .icon { display: none; }
}

.flex-dates { margin-left: auto; display: inline-flex; gap: 7px; align-items: center; color: var(--muted); font-size: .83rem; font-weight: 800; cursor: pointer; min-height: 34px; }
.flex-dates input { width: 16px; height: 16px; margin: 0; accent-color: var(--blue); }
.field:has(input[aria-invalid="true"]) { border-color: var(--danger); }
@media (max-width: 760px) {
  .flex-dates { margin-left: 0; }
}

.date-control { position: relative; display: block; width: 100%; min-width: 0; }
.date-display { display: none; }
@supports selector(input::-webkit-datetime-edit) {
  .date-control input:not(:focus)::-webkit-datetime-edit { color: transparent; }
  .date-control input:not(:focus) + .date-display {
    display: block;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--ink);
    font-size: .87rem;
    font-weight: 750;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
  }
}
@media (max-width: 760px) {
  .finder-meta a { white-space: nowrap; }
}

.finder:has(.search-summary:not([hidden])) .search-button {
  background: var(--white);
  border-color: #aebfd0;
}
.finder:has(.search-summary:not([hidden])) .search-button:hover { background: var(--soft-blue); }
