:root { --route-blue: #1157ad; --route-navy: #122b4c; --route-red: #e5222d; --route-muted: #717784; }
* { box-sizing: border-box; }
body { margin: 0; background: #f4f6f9; color: #20242c; font-family: "Poppins", sans-serif; }
.route-flight-page { min-height: 72vh; padding-top: 76px; }
.route-flight-shell { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.route-flight-hero { padding: 48px 0 42px; background: linear-gradient(135deg, #0f294b, #0d579e); color: #fff; }
.route-flight-eyebrow { color: #ff747b; font-size: .74rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.route-flight-hero h1 { margin: 7px 0 8px; font-size: clamp(1.85rem, 4vw, 2.8rem); line-height: 1.16; }
.route-flight-hero > div > p { margin: 0; color: #d6e5f7; font-size: .9rem; }
.route-flight-search { display: grid; grid-template-columns: 1fr auto 1fr 1fr auto; align-items: center; gap: 13px; margin-top: 30px; padding: 12px; border-radius: 18px; background: #fff; box-shadow: 0 18px 38px rgba(0,0,0,.18); color: #20242c; }
.route-airport-picker { position: relative; min-width: 0; }
.route-airport-picker__label { position: absolute; z-index: 1; top: 7px; left: 51px; color: #7b8493; font-size: .61rem; pointer-events: none; }
.route-airport-picker__native { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }
.route-airport-picker__trigger { display: grid; width: 100%; min-height: 60px; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 16px 11px 5px; border: 1px solid transparent; border-radius: 11px; background: #f6f8fb; color: #202c40; cursor: pointer; font: inherit; text-align: left; transition: border-color .2s ease, background .2s ease, box-shadow .2s ease; }
.route-airport-picker__trigger:hover, .route-airport-picker.is-open .route-airport-picker__trigger { border-color: #b9d6f3; background: #fff; box-shadow: 0 7px 18px rgba(13, 87, 158, .1); }
.route-airport-picker__pin { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 9px; background: #e9f4ff; color: var(--route-blue); font-size: .75rem; }
.route-airport-picker__value { display: flex; min-width: 0; align-items: baseline; gap: 6px; }
.route-airport-picker__value strong { overflow: hidden; font-size: .84rem; text-overflow: ellipsis; white-space: nowrap; }
.route-airport-picker__value small { color: var(--route-blue); font-size: .66rem; font-weight: 700; }
.route-airport-picker__chevron { color: #7b8493; font-size: .65rem; transition: transform .2s ease; }
.route-airport-picker.is-open .route-airport-picker__chevron { transform: rotate(180deg); }
.route-airport-picker__panel { position: absolute; z-index: 100; top: calc(100% + 10px); left: 0; width: 340px; padding: 10px; border: 1px solid #e2e8f0; border-radius: 17px; background: #fff; color: #20242c; box-shadow: 0 22px 50px rgba(12, 35, 66, .2); }
.route-airport-picker--destination .route-airport-picker__panel { right: 0; left: auto; }
.route-airport-picker__search { display: flex; min-height: 43px; align-items: center; gap: 9px; padding: 0 12px; border: 1px solid #dbe3ec; border-radius: 11px; background: #f8fafc; color: #8791a2; }
.route-airport-picker__search:focus-within { border-color: #8bbce9; background: #fff; box-shadow: 0 0 0 3px rgba(17, 87, 173, .09); }
.route-airport-picker__search input { width: 100%; border: 0; outline: 0; background: transparent; color: #25334a; font: inherit; font-size: .76rem; }
.route-airport-picker__options { max-height: 278px; overflow-y: auto; padding: 7px 2px 1px; scrollbar-width: thin; }
.route-airport-picker__quick { padding: 9px 3px 2px; border-bottom: 1px solid #edf0f4; }
.route-airport-picker__quick > div { margin-bottom: 8px; }
.route-airport-picker__quick > div > span { display: block; margin: 0 4px 6px; color: #8791a2; font-size: .59rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.route-airport-picker__quick > div > div { display: flex; flex-wrap: wrap; gap: 6px; }
.route-airport-picker__quick button { padding: 6px 9px; border: 1px solid #dde8f2; border-radius: 999px; background: #f8fbff; color: #33435a; cursor: pointer; font: inherit; font-size: .63rem; font-weight: 600; }
.route-airport-picker__quick button:hover { border-color: #8ebce7; background: #eaf4ff; color: #0b559f; }
.route-airport-picker__quick button b { margin-left: 3px; color: var(--route-blue); }
.route-airport-picker__options > button { display: grid; width: 100%; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 9px; border: 0; border-radius: 11px; background: transparent; color: #25334a; cursor: pointer; font: inherit; text-align: left; }
.route-airport-picker__options > button:hover { background: #f0f7ff; }
.route-airport-picker__options > button[aria-selected="true"] { background: #eaf4ff; color: #0b559f; }
.route-airport-picker__options > button > span:nth-child(2) { display: grid; gap: 1px; }
.route-airport-picker__options strong { font-size: .77rem; }
.route-airport-picker__options small { color: #8791a2; font-size: .62rem; }
.route-airport-picker__options > button > i:last-child { color: var(--route-blue); font-size: .75rem; opacity: 0; }
.route-airport-picker__options > button[aria-selected="true"] > i:last-child { opacity: 1; }
.route-airport-picker__option-icon { display: grid; width: 31px; height: 31px; place-items: center; border-radius: 9px; background: #fff0f1; color: var(--route-red); font-size: .72rem; }
.route-airport-picker__empty { margin: 14px 5px; color: #8791a2; font-size: .73rem; text-align: center; }
.route-airport-picker__skeleton { display: grid; gap: 6px; padding: 8px 2px 1px; }
.route-airport-picker__skeleton[hidden], .route-airport-picker__quick[hidden], .route-airport-picker__options[hidden], .route-airport-picker__recent[hidden], .route-airport-picker__empty[hidden] { display: none !important; }
.route-airport-picker__skeleton > span { display: grid; grid-template-columns: 31px 1fr 34px; align-items: center; gap: 10px; padding: 9px; }
.route-airport-picker__skeleton i, .route-airport-picker__skeleton b, .route-airport-picker__skeleton em { display: block; height: 12px; border-radius: 7px; background: linear-gradient(90deg, #edf1f5 25%, #fafbfc 50%, #edf1f5 75%); background-size: 200% 100%; animation: route-picker-shimmer 1.05s linear infinite; }
.route-airport-picker__skeleton i { width: 31px; height: 31px; border-radius: 9px; }
.route-airport-picker__skeleton em { width: 34px; height: 9px; }
@keyframes route-picker-shimmer { to { background-position: -200% 0; } }
.route-flight-swap { display: grid; width: 31px; height: 31px; min-height: 0 !important; padding: 0 !important; place-items: center; border: 1px solid #bfd7f0 !important; border-radius: 50% !important; background: #fff !important; color: var(--route-blue) !important; font-size: .67rem !important; transition: transform .2s ease, background .2s ease !important; }
.route-flight-swap:hover { background: #edf6ff !important; transform: rotate(180deg); }
.route-flight-date { position: relative; display: grid; min-width: 0; min-height: 60px; align-content: center; padding: 7px 14px; border-radius: 11px; background: #f6f8fb; }
.route-flight-date > span { color: #7b8493; font-size: .65rem; }
.route-flight-date input { width: 100%; border: 0; outline: 0; background: transparent; color: #202c40; font: inherit; font-size: .82rem; font-weight: 600; }
.route-flight-submit { min-height: 60px; padding: 0 22px; border: 0; border-radius: 12px; background: var(--route-blue); color: #fff; cursor: pointer; font: inherit; font-size: .8rem; font-weight: 700; white-space: nowrap; }
.route-flight-submit:hover { background: var(--route-navy); }
.route-flight-form-message { grid-column: 1 / -1; margin: -2px 4px 2px; color: #c81f29; font-size: .72rem; font-weight: 600; }
.route-flight-results { padding: 42px 0 70px; }
.route-flight-results__heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.route-flight-results__heading span { color: var(--route-red); font-size: .74rem; font-weight: 700; letter-spacing: .08em; }
.route-flight-results__heading h2 { margin: 5px 0 0; font-size: clamp(1.35rem, 3vw, 2rem); }
.route-flight-results__heading > strong { color: var(--route-muted); font-size: .78rem; }
.route-flight-list { display: grid; gap: 14px; }
.route-flight-card { display: grid; grid-template-columns: minmax(230px, 1.4fr) .7fr .8fr .7fr auto; align-items: center; gap: 24px; padding: 22px 25px; border: 1px solid #e5e8ec; border-radius: 18px; background: #fff; box-shadow: 0 7px 23px rgba(20,38,68,.07); transition: transform .2s ease, box-shadow .2s ease; }
.route-flight-card:hover { transform: translateY(-2px); box-shadow: 0 13px 30px rgba(20,38,68,.12); }
.route-flight-airline { display: flex; align-items: center; gap: 14px; min-width: 0; }
.route-flight-airline__logo { position: relative; display: grid; width: 58px; height: 58px; flex: 0 0 58px; overflow: hidden; place-items: center; border: 1px solid #e4e8ee; border-radius: 12px; background: #fff; box-shadow: 0 5px 14px rgba(20,38,68,.08); }
.route-flight-airline__logo img { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; padding: 7px; background: #fff; object-fit: contain; opacity: 0; transition: opacity .2s ease; }
.route-flight-airline__logo img.is-loaded { opacity: 1; }
.route-flight-airline__fallback { display: grid; width: 100%; height: 100%; place-items: center; background: linear-gradient(145deg, #214da8, #102f78); color: #fff; font-size: 1rem; font-weight: 700; letter-spacing: .04em; }
.route-flight-airline h3 { overflow: hidden; margin: 0; font-size: 1.08rem; text-overflow: ellipsis; white-space: nowrap; }
.route-flight-airline p { margin: 4px 0 0; color: var(--route-muted); font-size: .85rem; }
.route-flight-time { display: grid; gap: 4px; text-align: center; }
.route-flight-time strong { font-size: 1.28rem; }
.route-flight-time span { color: var(--route-muted); font-size: .84rem; }
.route-flight-duration { display: grid; justify-items: center; color: var(--route-muted); text-align: center; }
.route-flight-duration strong { font-size: .8rem; font-weight: 500; }
.route-flight-duration i { width: 75px; height: 1px; margin: 7px 0 5px; background: #8f949c; }
.route-flight-duration span { font-size: .78rem; }
.route-flight-card > a { display: inline-flex; min-height: 40px; align-items: center; justify-content: center; gap: 7px; padding: 0 14px; border-radius: 10px; background: #fff0f1; color: #bd1d26; font-size: .75rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.route-flight-card > a:hover { background: var(--route-red); color: #fff; }
.route-flight-empty { padding: 48px 20px; border: 1px solid #e3e7ed; border-radius: 18px; background: #fff; text-align: center; box-shadow: 0 7px 23px rgba(20,38,68,.06); }
.route-flight-empty > i { color: var(--route-red); font-size: 2rem; }
.route-flight-empty h2 { margin: 13px 0 5px; font-size: 1.2rem; }
.route-flight-empty p { margin: 0; color: var(--route-muted); font-size: .84rem; }
.route-flight-note { margin: 17px 3px 0; color: var(--route-muted); font-size: .72rem; }

@media (max-width: 900px) {
  .route-flight-search { grid-template-columns: 1fr auto 1fr; }
  .route-flight-date { grid-column: 1 / 3; }
  .route-flight-submit { grid-column: 3; grid-row: 2; }
  .route-flight-card { grid-template-columns: 1.25fr .55fr .7fr .55fr; gap: 15px; }
  .route-flight-card > a { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  .route-flight-page { padding-top: 65px; }
  .route-flight-shell { width: min(100% - 24px, 1120px); }
  .route-flight-hero { padding: 32px 0; }
  .route-flight-search { grid-template-columns: 1fr auto 1fr; gap: 7px; margin-top: 22px; padding: 9px; border-radius: 14px; }
  .route-airport-picker__trigger { min-height: 55px; gap: 6px; padding-right: 7px; padding-left: 7px; }
  .route-airport-picker__label { left: 43px; }
  .route-airport-picker__pin { width: 27px; height: 27px; }
  .route-airport-picker__value { display: grid; gap: 0; }
  .route-airport-picker__value strong { font-size: .72rem; }
  .route-airport-picker__panel { position: fixed; z-index: 2147483640; top: auto; right: 10px; bottom: 12px; left: 10px; width: auto; max-height: min(70vh, 520px); border-radius: 19px; }
  .route-airport-picker__options { max-height: min(52vh, 390px); }
  .route-flight-date { grid-column: 1 / -1; }
  .route-flight-submit { grid-column: 1 / -1; grid-row: auto; min-height: 48px; }
  .route-flight-results { padding: 30px 0 48px; }
  .route-flight-card { grid-template-columns: 1fr 1fr 1fr; gap: 15px 8px; padding: 16px 13px; }
  .route-flight-airline { grid-column: 1 / -1; padding-bottom: 13px; border-bottom: 1px solid #edf0f4; }
  .route-flight-airline__logo { width: 48px; height: 48px; flex-basis: 48px; }
  .route-flight-time strong { font-size: 1.05rem; }
  .route-flight-duration i { width: 48px; }
  .route-flight-card > a { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  .route-airport-picker__skeleton i, .route-airport-picker__skeleton b, .route-airport-picker__skeleton em { animation: none; }
}
