/* LiveFlights - shared styles
   Restyle quickly by changing the colour tokens below. */
:root {
  --fl-brand: #0b4f9c;          /* LiveFlights blue */
  --fl-brand-dark: #083a73;
  --fl-accent: #f5a623;         /* highlight / focus */
  --fl-bg: #f4f7fb;
  --fl-surface: #ffffff;
  --fl-text: #1a2332;
  --fl-muted: #5a6578;
  --fl-border: #d8dee8;
  --fl-ok: #047857;
  --fl-warn: #b45309;
  --fl-bad: #b91c1c;
  --fl-radius: 10px;
  --fl-font: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --fl-max: 1120px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--fl-font); color: var(--fl-text); background: var(--fl-bg); line-height: 1.5; }
a { color: var(--fl-brand); }
a:hover { color: var(--fl-brand-dark); }
:focus-visible { outline: 3px solid var(--fl-accent); outline-offset: 2px; }
code { background: #eef1f7; padding: 0 .3em; border-radius: 4px; font-size: .92em; }
.fl-wrap { max-width: var(--fl-max); margin: 0 auto; padding: 0 1rem; }
.fl-skip { position: absolute; left: -999px; top: 0; background: #fff; padding: .5rem 1rem; z-index: 2000; }
.fl-skip:focus { left: 1rem; }

/* Header */
.fl-header { background: var(--fl-brand); color: #fff; position: sticky; top: 0; z-index: 1100; box-shadow: 0 2px 8px rgba(8,58,115,.25); }
html { scroll-padding-top: 76px; }
.fl-header__inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; min-height: 60px; gap: .5rem; }
.fl-brand { display: inline-flex; align-items: center; flex: 0 0 auto; min-width: 0; color: #fff; text-decoration: none; padding: .4rem 0; }
.fl-brand:hover { color: #fff; }
.fl-brand__logo { display: block; height: 32px; width: auto; max-width: 100%; }
.fl-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem; }
.fl-nav a { display: block; padding: .5rem .75rem; color: #fff; text-decoration: none; border-radius: 6px; }
.fl-nav a:hover, .fl-nav a[aria-current="page"] { background: rgba(255,255,255,.18); }
.fl-menu-btn { display: none; background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.6); border-radius: 6px; padding: .4rem .8rem; font: inherit; cursor: pointer; }
@media (max-width: 720px) {
  .fl-menu-btn { display: inline-block; }
  .fl-nav { display: none; width: 100%; padding-bottom: .5rem; }
  .fl-nav.is-open { display: block; }
  .fl-nav ul { flex-direction: column; }
}

/* Alert / news ticker (under the header, hidden when there is nothing to show) */
.fl-ticker[hidden] { display: none !important; }
.fl-ticker {
  background: #10182a;
  color: #e5e7eb;
  font-size: 0.8125rem;
  line-height: 1.35;
  border-bottom: 1px solid #1c2740;
}
.fl-ticker__inner {
  display: flex;
  align-items: stretch;
  min-height: 2.25rem;
  max-width: none;
}
.fl-ticker__label {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  padding: 0.4rem 0.85rem;
  background: #7f1d1d;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.7rem;
  white-space: nowrap;
}
.fl-ticker__viewport {
  flex: 1 1 auto;
  overflow: hidden;
  min-width: 0;
}
.fl-ticker__viewport:hover .fl-ticker__track,
.fl-ticker__viewport:focus-within .fl-ticker__track {
  animation-play-state: paused;
}
.fl-ticker__track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: fl-ticker-scroll var(--fl-ticker-duration, 40s) linear infinite;
  will-change: transform;
}
.fl-ticker__list {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}
.fl-ticker__item {
  display: flex;
  align-items: center;
  white-space: nowrap;
  padding: 0.4rem 0 0.4rem 1.25rem;
  color: #e5e7eb;
}
.fl-ticker__item:not(:last-child)::after {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-left: 1.25rem;
  border-radius: 50%;
  background: #6b7280;
  flex: 0 0 auto;
}
.fl-ticker__item a {
  color: inherit;
  text-decoration: none;
}
.fl-ticker__item a:hover,
.fl-ticker__item a:focus-visible {
  text-decoration: underline;
}
.fl-ticker__item--delay,
.fl-ticker__item--delay a {
  color: #fecaca;
  font-weight: 600;
}
.fl-ticker__item--news,
.fl-ticker__item--news a {
  color: #e5e7eb;
  font-weight: 400;
}
.fl-ticker__source {
  color: #9ca3af;
  font-weight: 500;
  font-size: 0.7rem;
  margin-left: 0.45rem;
}
@keyframes fl-ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.fl-ticker.is-static .fl-ticker__viewport {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}
.fl-ticker.is-static .fl-ticker__track {
  animation: none;
  will-change: auto;
}
.fl-ticker__sr { /* fallback if a page has no .fl-sr helper */ }
@media (prefers-reduced-motion: reduce) {
  .fl-ticker__track {
    animation: none;
    will-change: auto;
  }
  .fl-ticker__viewport {
    overflow-x: auto;
  }
}

/* Main / footer */
.fl-main { padding: 1.5rem 0 2.5rem; min-height: 60vh; }
h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: .25rem 0 .5rem; }
.fl-lead { font-size: 1.1rem; color: var(--fl-muted); margin-top: 0; }
.fl-small { font-size: .875rem; color: var(--fl-muted); }
.fl-footer { background: #111827; color: #cbd5e1; padding: 1.5rem 0; font-size: .875rem; }
.fl-footer a { color: #fff; }

/* Cards (landing) */
.fl-hero { padding: 2rem 0 .5rem; }
.fl-hero h1 { font-size: clamp(2rem, 4vw, 2.8rem); letter-spacing: -0.03em; margin-bottom: .4rem; }
.fl-hero .fl-lead { max-width: 38rem; font-size: 1.15rem; }
.fl-cards { list-style: none; padding: 0; margin: 1rem 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1rem; }
.fl-card__link { position: relative; display: flex; flex-direction: column; gap: .4rem; height: 100%; padding: 1.25rem; background: var(--fl-surface); border: 1px solid var(--fl-border); border-radius: var(--fl-radius); text-decoration: none; color: var(--fl-text); transition: box-shadow .15s, transform .15s; }
.fl-card__link:hover { box-shadow: 0 6px 20px rgba(0,0,0,.08); transform: translateY(-2px); color: var(--fl-text); }
.fl-card__title { font-weight: 700; font-size: 1.15rem; color: var(--fl-brand-dark); }
.fl-card__text { color: var(--fl-muted); }
.fl-card__icon { width: 40px; height: 40px; border-radius: 10px; background: var(--fl-brand) center/24px no-repeat; }
.fl-icon--map { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M21 16v-2l-8-5V3.5a1.5 1.5 0 0 0-3 0V9l-8 5v2l8-2.5V19l-2 1.5V22l3.5-1 3.5 1v-1.5L13 19v-5.5z'/%3E%3C/svg%3E"); }
.fl-icon--board { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M3 4h18v16H3zM5 6v3h14V6zm0 5v3h14v-3zm0 5v2h14v-2z'/%3E%3C/svg%3E"); }
.fl-icon--status { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm1 5v5.4l4 2.4-.8 1.3L11 13V7z'/%3E%3C/svg%3E"); }
.fl-icon--fares { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M21.4 11.6l-9-9A2 2 0 0 0 11 2H4a2 2 0 0 0-2 2v7c0 .6.2 1.1.6 1.4l9 9a2 2 0 0 0 2.8 0l7-7a2 2 0 0 0 0-2.8zM6.5 8A1.5 1.5 0 1 1 6.5 5a1.5 1.5 0 0 1 0 3z'/%3E%3C/svg%3E"); }
.fl-badge { align-self: flex-start; font-size: .75rem; font-weight: 600; background: #fef3c7; color: #92400e; padding: .15rem .5rem; border-radius: 999px; }

/* Homepage urgent flight-status box */
.fl-home-status {
  margin: 1.15rem 0 1.5rem;
  padding: 1.2rem 1.3rem 1.3rem;
  background: #fff;
  border: 1px solid var(--fl-border);
  border-left: 5px solid var(--fl-brand);
  border-radius: var(--fl-radius);
  box-shadow: 0 6px 18px rgba(11, 79, 156, .07);
}
.fl-home-status__head {
  display: flex;
  align-items: flex-start;
  gap: .85rem;
  margin-bottom: 1rem;
}
.fl-home-status__icon {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--fl-brand) center/24px no-repeat;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M21 16v-2l-8-5V3.5a1.5 1.5 0 0 0-3 0V9l-8 5v2l8-2.5V19l-2 1.5V22l3.5-1 3.5 1v-1.5L13 19v-5.5z'/%3E%3C/svg%3E");
}
.fl-home-status__intro { min-width: 0; }
.fl-home-status h2 {
  margin: 0 0 .15rem;
  font-size: 1.3rem;
  line-height: 1.25;
  color: var(--fl-brand-dark);
}
.fl-home-status__lead {
  margin: 0;
  color: var(--fl-muted);
  font-size: 1rem;
}
.fl-form.fl-form--home-status {
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0;
}
.fl-form--home-status .fl-field--flight {
  flex: 1 1 16rem;
  min-width: 12rem;
}
.fl-form--home-status .fl-field--dates {
  flex: 0 1 auto;
  min-width: 0;
}
.fl-home-status__date-label {
  display: flex;
  align-items: flex-end;
  min-height: var(--fl-label-h);
  height: var(--fl-label-h);
  line-height: 1.2;
  font-weight: 600;
  font-size: .925rem;
  margin: 0;
}
.fl-date-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .4rem;
  min-height: var(--fl-control-h);
}
.fl-date-chip {
  position: relative;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: var(--fl-control-h);
  padding: 0 .9rem;
  margin: 0;
  border: 1px solid #b9c0cf;
  border-radius: 8px;
  background: #fff;
  color: var(--fl-text);
  font: inherit;
  font-weight: 600;
  font-size: .9rem;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
}
.fl-date-chip input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.fl-date-chip:has(input:checked) {
  background: var(--fl-brand);
  border-color: var(--fl-brand);
  color: #fff;
}
.fl-date-chip:hover {
  border-color: var(--fl-brand);
}
.fl-date-chip:has(input:focus-visible) {
  outline: 3px solid var(--fl-accent);
  outline-offset: 2px;
}
.fl-form--home-status .fl-btn {
  box-sizing: border-box;
  height: var(--fl-control-h);
  min-height: var(--fl-control-h);
  padding: 0 1.3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  margin: 0;
  width: auto;
  min-width: 9.5rem;
}
@media (max-width: 720px) {
  .fl-hero { padding-top: 1.25rem; }
  .fl-form--home-status {
    display: grid;
    grid-template-columns: 1fr;
    gap: .85rem;
  }
  .fl-form--home-status .fl-field,
  .fl-form--home-status .fl-field--flight,
  .fl-form--home-status .fl-field--dates,
  .fl-form--home-status .fl-field--action {
    min-width: 0;
    width: 100%;
    flex: 1 1 auto;
  }
  .fl-form--home-status .fl-field--action .fl-field__label-slot { display: none; }
  .fl-form--home-status .fl-btn { width: 100%; }
  .fl-date-chips { width: 100%; }
  .fl-date-chip { flex: 1 1 0; padding: 0 .5rem; }
}

/* Notices */
.fl-notice { padding: .9rem 1rem; border-radius: var(--fl-radius); border: 1px solid; margin: 1rem 0; }
.fl-notice--info { background: #eff6ff; border-color: #bfdbfe; color: #1e3a8a; }
.fl-notice--error { background: #fef2f2; border-color: #fecaca; color: #7f1d1d; }
.fl-notice--empty { background: var(--fl-surface); border-color: var(--fl-border); color: var(--fl-muted); text-align: center; }
.fl-loading { color: var(--fl-muted); padding: 1rem 0; }

/* Forms
   Labels share one baseline; inputs, selects and the submit button share
   the same top and height. Help text sits under the whole row so it does
   not push individual controls down. */
.fl-form {
  --fl-label-h: 1.375rem;
  --fl-control-h: 2.75rem;
  --fl-field-gap: .3rem;
  display: flex;
  flex-wrap: wrap;
  align-items: start;
  gap: .75rem 1rem;
  background: var(--fl-surface);
  border: 1px solid var(--fl-border);
  border-radius: var(--fl-radius);
  padding: 1rem;
  margin: 1rem 0;
}
.fl-form--inline { align-items: start; }
.fl-field {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: var(--fl-field-gap);
  min-width: 150px;
  flex: 1 1 160px;
}
.fl-field--narrow { flex: 0 1 160px; min-width: 140px; }
.fl-field--action { flex: 0 0 auto; min-width: 0; }
.fl-field--check {
  flex-direction: row;
  align-items: center;
  gap: .4rem;
  flex: 0 0 auto;
  min-width: 0;
  margin-top: calc(var(--fl-label-h) + var(--fl-field-gap));
  min-height: var(--fl-control-h);
  padding-bottom: 0;
}
.fl-field:not(.fl-field--check) > label,
.fl-field__label-slot {
  display: flex;
  align-items: flex-end;
  min-height: var(--fl-label-h);
  height: var(--fl-label-h);
  line-height: 1.2;
  font-weight: 600;
  font-size: .925rem;
  margin: 0;
}
.fl-field--check > label {
  font-weight: 600;
  font-size: .925rem;
  margin: 0;
  line-height: 1.2;
}
.fl-field__label-slot { visibility: hidden; pointer-events: none; }
.fl-form__full { flex-basis: 100%; width: 100%; margin: 0; }
.fl-hint { font-size: .8rem; color: var(--fl-muted); }
.fl-form .fl-hint.fl-form__full { margin-top: .15rem; }
.fl-form input[type="text"],
.fl-form input[type="date"],
.fl-form input[type="number"],
.fl-form select {
  font: inherit;
  box-sizing: border-box;
  height: var(--fl-control-h);
  min-height: var(--fl-control-h);
  padding: 0 .7rem;
  border: 1px solid #b9c0cf;
  border-radius: 8px;
  background: #fff;
  color: var(--fl-text);
  width: 100%;
  line-height: 1.25;
  margin: 0;
}
.fl-form input[type="date"],
.fl-form input[type="number"],
.fl-form select { display: block; }
input[type="text"] { text-transform: uppercase; }
.fl-form input[type="number"],
.fl-combo input[type="text"] { text-transform: none; }
.fl-field--pax { flex: 0 1 110px; min-width: 96px; }
.fl-form .fl-field[hidden] { display: none !important; }
input[type="checkbox"] { width: 1.1rem; height: 1.1rem; margin: 0; }
.fl-btn { font: inherit; font-weight: 600; background: var(--fl-brand); color: #fff; border: 0; border-radius: 8px; padding: .6rem 1.1rem; cursor: pointer; text-decoration: none; display: inline-block; }
.fl-form--inline .fl-btn {
  box-sizing: border-box;
  height: var(--fl-control-h);
  min-height: var(--fl-control-h);
  padding: 0 1.15rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  margin: 0;
  width: 100%;
}
.fl-btn:hover { background: var(--fl-brand-dark); color: #fff; }
.fl-btn--small { padding: .35rem .75rem; font-size: .875rem; height: auto; min-height: 0; }
@media (max-width: 720px) {
  .fl-form--inline {
    display: grid;
    grid-template-columns: 1fr;
    align-items: start;
    gap: .85rem;
  }
  .fl-field,
  .fl-field--narrow,
  .fl-field--pax,
  .fl-field--action { min-width: 0; flex: 1 1 auto; width: 100%; }
  .fl-field--action .fl-field__label-slot { display: none; }
  .fl-field--check { margin-top: 0; min-height: 0; }
  .fl-form--inline .fl-btn { width: 100%; }
}

/* Place-name combobox */
.fl-combo { position: relative; width: 100%; }
.fl-combo input[type="text"] {
  display: block;
}
.fl-combo__list {
  position: absolute;
  z-index: 30;
  top: calc(100% + 4px);
  left: 0;
  right: auto;
  min-width: 100%;
  width: max(100%, 22rem);
  max-width: min(30rem, 90vw);
  margin: 0;
  padding: .25rem 0;
  list-style: none;
  background: #fff;
  border: 1px solid var(--fl-border);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .12);
  max-height: 16.5rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.fl-combo__option {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: .55rem .75rem;
  font: inherit;
  font-size: .9rem;
  line-height: 1.3;
  text-align: left;
  color: var(--fl-text);
  background: transparent;
  border: 0;
  cursor: pointer;
}
.fl-combo__option[aria-selected="true"],
.fl-combo__option:hover {
  background: #e8eef8;
  color: var(--fl-brand-dark);
}
.fl-combo__code {
  font-weight: 700;
  margin-right: .35rem;
}
.fl-combo__empty {
  padding: .55rem .75rem;
  color: var(--fl-muted);
  font-size: .875rem;
}

/* Clear (✕) button inside text inputs */
.fl-clearable { position: relative; width: 100%; }
.fl-form .fl-clearable input[type="text"],
.fl-form .fl-clearable input[type="search"],
.fl-form .fl-combo--clearable input[type="text"],
.fl-form .fl-combo--clearable input[type="search"] {
  padding-right: 2.7rem;
}
.fl-clearable input[type="search"]::-webkit-search-cancel-button,
.fl-clearable input[type="search"]::-webkit-search-decoration,
.fl-combo--clearable input[type="search"]::-webkit-search-cancel-button,
.fl-combo--clearable input[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
  appearance: none;
}
.fl-clear {
  position: absolute;
  top: 0;
  right: 2px;
  box-sizing: border-box;
  width: 32px;
  height: var(--fl-control-h, 2.75rem);
  margin: 0;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #5b6472;
  cursor: pointer;
  z-index: 2;
}
.fl-clear svg { display: block; }
.fl-clear:hover,
.fl-clear:active {
  color: var(--fl-text);
}
.fl-clear:hover svg,
.fl-clear:active svg {
  background: #e5e7eb;
  border-radius: 999px;
}
.fl-clear:focus {
  outline: none;
}
.fl-clear:focus-visible {
  outline: 2px solid var(--fl-brand);
  outline-offset: -4px;
}
.fl-clear[hidden] { display: none !important; }

/* Cheap fares form: grouped sections */
.fl-form--fares {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: .85rem;
  background: transparent;
  border: 0;
  padding: 0;
  margin: 1rem 0 1.15rem;
}
.fl-fares-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .85rem;
  align-items: stretch;
}
.fl-form--fares .fl-fieldset {
  margin: 0;
  min-inline-size: 0;
  min-width: 0;
  background: var(--fl-surface);
  border: 1px solid var(--fl-border);
  border-radius: 10px;
  padding: .7rem 1rem 1rem;
}
.fl-form--fares .fl-fieldset legend {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--fl-muted);
  padding: 0 .4rem;
}
.fl-form--fares .fl-fieldset .fl-hint {
  margin: .65rem 0 0;
}
.fl-route {
  display: flex;
  flex-direction: column;
  gap: .15rem;
}
.fl-form--fares .fl-field--place {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
}
.fl-swap-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: -.1rem 0;
}
.fl-swap {
  box-sizing: border-box;
  width: 2.25rem;
  height: 2.25rem;
  margin: 0;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--fl-border);
  border-radius: 999px;
  background: #fff;
  color: var(--fl-brand);
  cursor: pointer;
  transform: rotate(90deg);
}
.fl-swap:hover {
  background: #e8eef8;
  border-color: var(--fl-brand);
  color: var(--fl-brand-dark);
}
.fl-swap:focus {
  outline: none;
}
.fl-swap:focus-visible {
  outline: 2px solid var(--fl-brand);
  outline-offset: 2px;
}
.fl-form--fares .fl-field--trip {
  width: 100%;
  max-width: none;
  margin-bottom: .7rem;
}
.fl-date-groups {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
}
.fl-date-group {
  flex: 1 1 0;
  min-width: 11rem;
  background: #f7f9fc;
  border: 1px solid var(--fl-border);
  border-radius: 10px;
  padding: .5rem .65rem .65rem;
}
.fl-form--fares .fl-date-group[hidden],
.fl-form--fares .fl-field[hidden] {
  display: none !important;
}
.fl-date-group__label {
  margin: 0 0 .35rem;
  font-size: .8rem;
  font-weight: 600;
  color: var(--fl-muted);
  line-height: 1.2;
}
.fl-date-group__fields {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  align-items: start;
}
.fl-date-group__fields .fl-field {
  flex: 1 1 7rem;
  min-width: 0;
}
.fl-pax-row,
.fl-opts-row {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem .75rem;
  align-items: start;
}
.fl-form--fares .fl-pax-row .fl-field--pax {
  flex: 1 1 5.5rem;
  min-width: 4.8rem;
}
.fl-opts-row .fl-field {
  flex: 1 1 8rem;
  min-width: 0;
}
.fl-fares-actions {
  display: flex;
  justify-content: flex-end;
}
.fl-form--fares .fl-btn {
  box-sizing: border-box;
  height: var(--fl-control-h);
  min-height: var(--fl-control-h);
  padding: 0 1.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  margin: 0;
  min-width: 10rem;
}
@media (max-width: 720px) {
  .fl-fares-grid { grid-template-columns: 1fr; }
  .fl-form--fares .fl-field--trip { max-width: none; flex: 1 1 auto; width: 100%; }
  .fl-date-groups { flex-direction: column; }
  .fl-date-group { flex: 0 0 auto; min-width: 0; }
  .fl-date-group__fields { flex-direction: column; }
  .fl-date-group__fields .fl-field { flex: 1 1 auto; width: 100%; }
  .fl-fares-actions .fl-btn { width: 100%; }
}

/* Tabs */
.fl-tabs { display: flex; gap: .25rem; border-bottom: 2px solid var(--fl-border); margin-top: 1rem; }
.fl-tabs button { font: inherit; font-weight: 600; padding: .6rem 1.1rem; border: 0; background: transparent; color: var(--fl-muted); cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -2px; }
.fl-tabs button[aria-selected="true"] { color: var(--fl-brand-dark); border-bottom-color: var(--fl-brand); }

/* Tables */
.fl-table-wrap { overflow-x: auto; background: var(--fl-surface); border: 1px solid var(--fl-border); border-radius: 0 0 var(--fl-radius) var(--fl-radius); }
.fl-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.fl-table caption { text-align: left; padding: .75rem 1rem; color: var(--fl-muted); font-size: .875rem; }
.fl-table th, .fl-table td { padding: .6rem .8rem; text-align: left; border-top: 1px solid var(--fl-border); vertical-align: top; }
.fl-table thead th { background: #f1f4fa; font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; color: var(--fl-muted); border-top: 0; }
.fl-table tbody tr:nth-child(even) { background: #fafbfd; }
.fl-time-old { text-decoration: line-through; color: var(--fl-muted); margin-right: .3rem; }
.fl-sub { display: block; color: var(--fl-muted); font-size: .8rem; }
@media (max-width: 640px) {
  .fl-table .fl-hide-sm { display: none; }
  .fl-table th, .fl-table td { padding: .5rem; }
}

/* Board status filters and sortable headers */
.fl-board-filters {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  padding: .7rem 1rem;
  background: var(--fl-surface);
  border: 1px solid var(--fl-border);
  border-top: 0;
}
.fl-filter-chip {
  font: inherit;
  font-size: .8rem;
  font-weight: 600;
  line-height: 1.2;
  border-radius: 999px;
  padding: .28rem .7rem;
  border: 1px solid transparent;
  background: #e5e7eb;
  color: #374151;
  cursor: pointer;
  white-space: nowrap;
}
.fl-filter-chip--ok { background: #d1fae5; color: var(--fl-ok); }
.fl-filter-chip--warn { background: #fef3c7; color: var(--fl-warn); }
.fl-filter-chip--bad { background: #fee2e2; color: var(--fl-bad); }
.fl-filter-chip--info { background: #dbeafe; color: var(--fl-brand-dark); }
.fl-filter-chip[aria-pressed="true"] {
  box-shadow: 0 0 0 2px var(--fl-brand);
  border-color: var(--fl-brand);
}
.fl-filter-chip:focus-visible { outline-offset: 2px; }
.fl-table th .fl-sort {
  font: inherit;
  font-weight: 700;
  font-size: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  color: inherit;
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: .28rem;
  text-align: left;
  border-radius: 4px;
}
.fl-table th .fl-sort:hover { color: var(--fl-brand-dark); }
.fl-table th[aria-sort="ascending"] .fl-sort,
.fl-table th[aria-sort="descending"] .fl-sort { color: var(--fl-brand-dark); }
.fl-sort__arrow { font-size: .7rem; line-height: 1; display: inline-block; min-width: 0.7em; }
.fl-table__empty { text-align: center; color: var(--fl-muted); padding: 1.2rem .8rem !important; }
@media (max-width: 640px) {
  .fl-board-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }
  .fl-filter-chip { flex: 0 0 auto; }
}

/* Status pills */
.fl-pill { display: inline-block; padding: .1rem .55rem; border-radius: 999px; font-size: .8rem; font-weight: 600; background: #e5e7eb; color: #374151; white-space: nowrap; }
.fl-pill--ok { background: #d1fae5; color: var(--fl-ok); }
.fl-pill--warn { background: #fef3c7; color: var(--fl-warn); }
.fl-pill--bad { background: #fee2e2; color: var(--fl-bad); }
.fl-pill--info { background: #dbeafe; color: var(--fl-brand-dark); }

/* Status cards */
.fl-status-card { background: var(--fl-surface); border: 1px solid var(--fl-border); border-radius: var(--fl-radius); padding: 1.25rem; margin: 1rem 0; }
.fl-status-card__head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.fl-status-card__head h2 { margin: 0; font-size: 1.3rem; }
.fl-legs { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 640px) { .fl-legs { grid-template-columns: 1fr; } }
.fl-leg { background: #f8fafc; border-radius: 8px; padding: 1rem; }
.fl-leg h3 { margin: 0 0 .25rem; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--fl-muted); }
.fl-leg__airport { font-weight: 700; font-size: 1.1rem; }
.fl-leg__time { font-size: 1.6rem; font-weight: 700; margin: .25rem 0; }
.fl-leg dl { display: grid; grid-template-columns: auto 1fr; gap: .15rem .75rem; margin: .5rem 0 0; font-size: .9rem; }
.fl-leg dt { color: var(--fl-muted); }
.fl-leg dd { margin: 0; }

/* Map */
.fl-page-map .fl-main { padding-bottom: 1rem; }
.fl-map-bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin: .5rem 0; flex-wrap: wrap; }
.fl-map-status { color: var(--fl-muted); font-size: .9rem; }
.fl-map { height: clamp(380px, 68vh, 760px); border-radius: var(--fl-radius); border: 1px solid var(--fl-border); background: #dde4ee; }
.fl-plane-icon { background: none; border: 0; }
.fl-plane-icon svg { width: 24px; height: 24px; display: block; filter: drop-shadow(0 1px 1px rgba(0,0,0,.45)); transition: transform .3s; }
.fl-popup dl { display: grid; grid-template-columns: auto 1fr; gap: .1rem .6rem; margin: .3rem 0 0; }
.fl-popup dt { color: var(--fl-muted); }
.fl-popup dd { margin: 0; font-weight: 600; }
.fl-popup strong { font-size: 1.05rem; }

/* Fares */
.fl-price { font-weight: 700; font-size: 1.05rem; white-space: nowrap; }
.fl-price .fl-sub { font-weight: 500; white-space: normal; }
.fl-fares-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .65rem 1rem;
  padding: .85rem 1rem .7rem;
  background: var(--fl-surface);
  border: 1px solid var(--fl-border);
  border-bottom: 0;
  border-radius: var(--fl-radius) var(--fl-radius) 0 0;
}
.fl-fares-toolbar + .fl-table-wrap { border-radius: 0 0 var(--fl-radius) var(--fl-radius); }
.fl-fares-airlines {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  align-items: center;
  flex: 1 1 auto;
}
.fl-fares-airlines__label {
  font-weight: 600;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: var(--fl-muted);
  margin-right: .15rem;
}
.fl-fares-count { margin: 0; flex: 1 1 100%; }
@media (max-width: 640px) {
  .fl-fares-airlines { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
  .fl-fares-airlines .fl-filter-chip { flex: 0 0 auto; }
}


/* Status flight map (shown under an in-air result) */
.fl-status-map-wrap { margin-top: 1.1rem; }
.fl-status-map-bar { display: flex; justify-content: space-between; align-items: baseline; gap: .75rem; flex-wrap: wrap; margin: 0 0 .45rem; }
.fl-status-map-bar h3 { margin: 0; font-size: .95rem; }
.fl-status-map { height: clamp(260px, 42vh, 420px); border-radius: var(--fl-radius); border: 1px solid var(--fl-border); background: #dde4ee; }
.fl-status-map-note { font-size: .875rem; color: var(--fl-muted); margin: .45rem 0 0; }
.fl-airport-icon { background: none; border: 0; }
.fl-airport-icon span {
  display: inline-block; min-width: 2.2rem; padding: .12rem .35rem;
  background: var(--fl-brand); color: #fff; font: 700 .7rem/1.2 var(--fl-font);
  text-align: center; border-radius: 4px; box-shadow: 0 1px 2px rgba(0,0,0,.25);
}
.fl-airport-icon--arr span { background: #0f766e; }

/* Board: nearest-airport hint and "Nearest to me" control */
.fl-nearest-hint { color: var(--fl-muted); font-size: .9rem; margin: -.25rem 0 1rem; }
.fl-airport-tools { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .35rem 1.25rem; }
.fl-link-btn {
  background: none; border: 0; padding: 0; margin: 0;
  font: inherit; font-weight: 600; color: var(--fl-brand);
  cursor: pointer; text-decoration: underline; text-underline-offset: 2px;
}
.fl-link-btn:hover { color: var(--fl-brand-dark); }
.fl-link-btn:disabled { opacity: .7; cursor: wait; text-decoration: none; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
.fl-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
input::placeholder { text-transform: none; }

/* Back link */
.fl-back { margin: 1rem 0 0; }
.fl-back__link { display: inline-flex; align-items: center; gap: .35rem; font-size: .95rem; font-weight: 600; text-decoration: none; color: var(--fl-brand); padding: .3rem .7rem .3rem .55rem; border: 1px solid var(--fl-border); border-radius: 999px; background: var(--fl-surface); }
.fl-back__link:hover { color: var(--fl-brand-dark); border-color: var(--fl-brand); }
.fl-page-map .fl-back { margin: .6rem 0; }
