/* Sky Booking Engine */

@font-face {
    font-family: 'Material Icons';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/material-icons/MaterialIcons-Regular.ttf') format('truetype');
}
@font-face {
    font-family: 'Material Icons Outlined';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/material-icons/MaterialIconsOutlined-Regular.otf') format('opentype');
}
.mi {
    font-family: 'Material Icons';
    font-weight: normal;
    font-style: normal;
    font-size: inherit;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    direction: ltr;
    -webkit-font-smoothing: antialiased;
    vertical-align: middle;
}
.mi-outlined {
    font-family: 'Material Icons Outlined';
}

/* ─── Lufthansa fonts ──────────────────────────────────────────────────── */

@font-face {
    font-family: 'LufthansaText';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url('../fonts/LufthansaTextWeb-Light.woff2') format('woff2');
}
@font-face {
    font-family: 'LufthansaText';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/LufthansaTextWeb-Regular.woff2') format('woff2');
}
@font-face {
    font-family: 'LufthansaText';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/LufthansaTextWeb-Bold.woff2') format('woff2');
}
@font-face {
    font-family: 'LufthansaHead';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url('../fonts/LufthansaHeadWeb-Light.woff2') format('woff2');
}
@font-face {
    font-family: 'LufthansaHead';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/LufthansaHeadWeb-Bold.woff2') format('woff2');
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
/* overflow-x:hidden on <html> alone is ignored by WebKit (all iOS browsers
   use it), so the clip must also live on <body>. position:relative + width:100%
   make the clip actually take effect on iOS Safari/Chrome. */
html, body { overflow-x: hidden; }
body { position: relative; width: 100%; }

input, button, select, textarea { font-family: inherit; }

:root {
    --navy:   #05164d;
    --teal:   #0086a3;
    --amber:  #f59e0c;
    --amber-h:#d97706;
    --light:  #f5f7fa;
    --border: #e0e4ea;
    --text:   #2c3540;
    --muted:  #7a8595;
    --active:   #FFF;
    --ok:     #27ae60;
    --warn:   #e67e22;
    --no:     var(--muted);
}

/* ─── Buttons ─────────────────────────────────────────────────────────────── */
.sky-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    color: #fff;
    background: var(--navy);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0,0,0,.12), 0 1px 2px rgba(0,0,0,.08);
    transition: background .15s, box-shadow .15s, opacity .15s;
}
.sky-btn:hover {
    background: #0a2370;
    box-shadow: 0 2px 6px rgba(0,0,0,.15), 0 1px 3px rgba(0,0,0,.1);
}
.sky-btn:active {
    background: #061a5c;
    box-shadow: 0 1px 2px rgba(0,0,0,.1);
}
.sky-btn:disabled {
    cursor: not-allowed;
    opacity: .5;
}
.sky-btn--amber {
    background: var(--amber);
    color: #fff;
}
.sky-btn--amber:hover { background: var(--amber-h); }
.sky-btn--amber:active { background: #b45309; }

.sky-btn--outline {
    background: transparent;
    color: var(--navy);
    border: 1px solid var(--border);
    box-shadow: none;
}
.sky-btn--outline:hover { background: var(--light); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.sky-btn--outline:active { background: #e8ecf1; }

.sky-btn--sm { padding: 5px 12px; font-size: 12px; border-radius: 5px; }

body {
    font-family: 'LufthansaText', Helvetica, Arial, sans-serif;
    font-weight: 300;
    background: var(--light);
    color: var(--text);
    font-size: 14px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
body > main { flex: 1 0 auto; }

.container {
    width: min(98vw, 1600px);
    margin: 0 auto;
    padding: 0 clamp(16px, 3vw, 64px);
}
@media (min-width: 1280px) {
    .container { width: min(90vw, 1600px); }
}

/* ─── Header ─────────────────────────────────────────────────────────────── */

.site-header {
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 0;
}

.site-header .container {
    display: flex;
    align-items: center;
    height: 76px;
}

.logo {
    text-decoration: none;
    display: flex;
    align-items: center;
    min-width: 0; /* let the logo yield when the nav row runs out of room */
}
.logo-img {
    max-height: 36px;
    width: auto;
    height: auto;
    max-width: 100%; /* shrink proportionally instead of pushing the hamburger off-screen */
}

.site-nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }

.nav-link {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--muted);
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 2px;
    transition: color 0.15s, background 0.15s;
}
.nav-link:hover { color: var(--navy); background: var(--light); }
.nav-link.active { color: var(--navy); }

.nav-icon-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--navy);
    text-decoration: none;
    padding: 6px;
    border-radius: 2px;
    transition: color 0.15s, background 0.15s;
}
.nav-icon-link .mi { font-size: 20px; }
.nav-icon-link:hover { background: var(--light); }

.nav-btn {
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    cursor: pointer;
    border-radius: 2px;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    padding: 8px 18px;
    border: 1.5px solid var(--navy);
    background: transparent;
    color: var(--navy);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.nav-btn .mi { font-size: 18px; }
.nav-btn:hover {
    background: var(--navy);
    color: #fff;
}
.nav-btn--ghost {
    background: transparent;
    color: var(--muted);
    border: 1px solid var(--border);
}
.nav-btn--ghost:hover { background: var(--light); color: var(--navy); }

.lang-picker-wrap {
    position: relative;
    display: inline-block;
}

.lang-picker-trigger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: none;
    padding: 6px 8px;
    cursor: pointer;
    color: var(--navy);
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    border-radius: 2px;
    transition: color 0.15s, background 0.15s;
}
.lang-picker-trigger:hover,
.lang-picker-wrap--open .lang-picker-trigger {
    color: var(--teal);
    background: var(--light);
}
.lang-picker-trigger:focus { outline: none; }
.lang-picker-icon { font-size: 20px; }

.lang-picker-menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 160px;
    margin: 0;
    padding: 6px 0;
    list-style: none;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 4px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    display: none;
    z-index: 100;
}
.lang-picker-wrap--open .lang-picker-menu { display: block; }

.lang-picker-option {
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    cursor: pointer;
    transition: background 0.12s;
}
.lang-picker-option:hover { background: var(--light); }
.lang-picker-option--current { color: var(--navy); }

/* Hamburger — hidden on desktop */
.nav-hamburger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    background: none;
    border: none;
    border-radius: 2px;
    cursor: pointer;
    margin-left: 4px;
    color: var(--navy);
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    transition: opacity 0.15s;
}
.nav-hamburger:hover { opacity: 0.7; }

.nav-hamburger-bars {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    width: 18px;
}
.nav-hamburger-bars span {
    display: block;
    height: 2px;
    background: var(--navy);
    border-radius: 1px;
}

.nav-hamburger-label { display: inline; }

/* Slide-in nav drawer */
.nav-drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(5, 22, 77, 0.45);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
    z-index: 1000;
}
.nav-drawer-backdrop.open { opacity: 1; visibility: visible; }

.nav-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 320px;
    max-width: 85vw;
    background: #fff;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.12);
    z-index: 1001;
    flex-direction: column;
    padding: 16px 0;
    display: none;
}
.nav-drawer.open {
    display: flex;
    animation: nav-drawer-in 0.25s ease forwards;
}
.nav-drawer.closing {
    animation: nav-drawer-out 0.25s ease forwards;
}
@keyframes nav-drawer-in {
    from { transform: translateX(100%); }
    to   { transform: translateX(0); }
}
@keyframes nav-drawer-out {
    from { transform: translateX(0); }
    to   { transform: translateX(100%); }
}

.nav-drawer-close {
    align-self: flex-end;
    margin-right: 14px;
    background: none;
    border: none;
    font-size: 32px;
    line-height: 1;
    color: var(--muted);
    cursor: pointer;
    padding: 4px 10px;
    transition: color 0.15s;
}
.nav-drawer-close:hover { color: var(--navy); }

.nav-drawer-list {
    display: flex;
    flex-direction: column;
    margin-top: 8px;
}
.nav-drawer-link {
    font-size: 15px;
    font-weight: 600;
    color: var(--navy);
    text-decoration: none;
    padding: 14px 24px;
    border-bottom: 1px solid var(--border);
    transition: background 0.15s;
}
.nav-drawer-link:hover,
.nav-drawer-link.active { background: var(--light); }

body.nav-drawer-locked { overflow: hidden; }

@media (max-width: 799px) {
    .site-header .container { height: 64px; }
    .site-nav .nav-btn-label { display: none; }
    .site-nav .nav-btn { padding: 6px; gap: 0; border-color: transparent; background: transparent; }
    .site-nav .nav-btn:hover { background: var(--light); color: var(--navy); }
    .nav-hamburger-label { display: none; }
    .nav-hamburger { padding: 6px; }
    .logo-img { max-height: 28px; }
    .lang-picker-code { display: none; }
    .lang-picker-trigger { gap: 0; padding: 6px; }
    .nav-icon-link .mi,
    .lang-picker-icon { font-size: 18px; }
    .nav-btn .mi { font-size: 16px; }
}

/* ─── Auth modal ──────────────────────────────────────────────────────────── */

.auth-overlay {
    position: fixed;
    inset: 0;
    background: rgba(5, 22, 77, 0.45);
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.auth-modal {
    background: #fff;
    border-radius: 8px;
    width: 100%;
    max-width: 380px;
    padding: 32px 32px 28px;
    position: relative;
    box-shadow: 0 12px 40px rgba(0,0,0,0.18);
}

.auth-close {
    position: absolute;
    top: 12px;
    right: 14px;
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: var(--muted);
    line-height: 1;
    padding: 2px 6px;
}
.auth-close:hover { color: var(--text); }

.auth-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 28px;
    border-bottom: 2px solid var(--border);
}

.auth-tab {
    background: none;
    border: none;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--muted);
    cursor: pointer;
    padding: 8px 16px 10px;
    margin-bottom: -2px;
    border-bottom: 2px solid transparent;
    transition: color 0.15s, border-color 0.15s;
}
.auth-tab:hover { color: var(--navy); }
.auth-tab.active { color: var(--navy); border-bottom-color: var(--navy); }

.auth-field { margin-bottom: 18px; }

.auth-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--muted);
    margin-bottom: 6px;
}

.auth-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 400;
    color: var(--text);
    background: #fff;
    outline: none;
    transition: border-color 0.15s;
}
.auth-input:focus { border-color: var(--teal); }

.auth-error {
    font-size: 12px;
    color: #d32f2f;
    min-height: 18px;
    margin-bottom: 10px;
}

.auth-submit {
    width: 100%;
    padding: 11px;
    background: var(--navy);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    cursor: pointer;
    transition: background 0.15s;
}
.auth-submit:hover:not(:disabled) { background: #0a2370; }
.auth-submit:disabled,
.auth-submit--loading { opacity: 0.7; cursor: default; }

/* ─── Search section ─────────────────────────────────────────────────────── */

.search-section {
    padding: 40px 0 48px;
    background: #f5f3ee;
    border-bottom: 1px solid var(--border);
}

.search-section-title {
    color: var(--navy);
    font-size: 28px;
    font-weight: 300;
    text-align: center;
    margin-bottom: 28px;
    letter-spacing: 0.5px;
}

/* ─── Hero search (destination photo behind the search form) ──────────────── */
.search-section--hero {
    position: relative;
    padding: 72px 0 60px;
    background-color: var(--navy);
    background-size: cover;
    background-position: center;
    border-bottom: none;
    overflow: hidden;
}
/* Full-viewport hero with the form centered (home page only) */
.search-section--full {
    min-height: calc(100vh - 76px);   /* fill the viewport below the 76px header */
    display: flex;
    align-items: center;
    padding: 80px 0 96px;             /* bottom room for the scroll cue */
}
.search-section--full .container { width: min(98vw, 1600px); margin: 0 auto; }
/* Collapsed: after a search runs, drop the photo/height and become a compact bar */
.search-section--full.is-collapsed {
    min-height: 0;
    display: block;
    padding: 22px 0 26px;
    background-color: #f5f3ee;
}
.search-section--full.is-collapsed .search-hero-rotator,
.search-section--full.is-collapsed .search-hero-scroll,
.search-section--full.is-collapsed .search-section-title { display: none; }
.search-section--full.is-collapsed::after { display: none; }
/* Bouncing scroll-down cue */
.search-hero-scroll {
    position: absolute;
    left: 50%; bottom: 24px;
    z-index: 2;
    display: flex; align-items: center; justify-content: center;
    width: 46px; height: 46px;
    border: none; border-radius: 50%;
    color: #fff; cursor: pointer;
    background: rgba(255, 255, 255, 0.16);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.28);
    animation: hero-scroll-bounce 1.8s ease-in-out infinite;
}
.search-hero-scroll:hover { background: rgba(255, 255, 255, 0.30); }
.search-hero-scroll .mi { font-size: 30px; }
@keyframes hero-scroll-bounce {
    0%, 100% { transform: translate(-50%, 0); }
    50%      { transform: translate(-50%, 8px); }
}
@media (prefers-reduced-motion: reduce) {
    .search-hero-scroll { animation: none; }
}
/* Crossfading photo layers (home page rotation) */
.search-hero-rotator { position: absolute; inset: 0; z-index: 0; }
.search-hero-layer {
    position: absolute; inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.2s ease;
    will-change: opacity;
}
.search-hero-layer.is-active { opacity: 1; }
/* Readability scrim over the photo */
.search-section--hero::after {
    content: "";
    position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(180deg,
        rgba(5, 22, 77, 0.42) 0%, rgba(5, 22, 77, 0.18) 45%, rgba(5, 22, 77, 0.48) 100%);
}
.search-section--hero .container { position: relative; z-index: 2; }
.search-section--hero .search-section-title {
    color: #fff;
    font-size: clamp(26px, 3.2vw, 40px);
    font-weight: 300;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
}
.search-section--hero .trip-type-opt {
    box-shadow: 0 1px 4px rgba(5, 22, 77, 0.18);
}
@media (max-width: 700px) {
    .search-section--hero { padding: 44px 0 40px; }
}

.search-box {
    background: #fff;
    border-radius: 4px;
    padding: 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    overflow: visible;
}

/* Trip type tabs */
.trip-type {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.trip-type-opt {
    display: flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    color: var(--navy);
    padding: 8px 16px;
    border-radius: 50px;
    border: 1.5px solid var(--border);
    background: #fff;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.trip-type-opt:hover {
    border-color: var(--navy);
}

.trip-type-opt input { display: none; }
.trip-type-opt:has(input:checked) {
    background: var(--navy);
    color: #fff;
    border-color: var(--navy);
}

/* Search row */
.search-row {
    display: flex;
    align-items: stretch;
    flex-wrap: wrap;
}

.field-group {
    display: flex;
    align-items: stretch;
}

.airports-group { flex: 3; min-width: 300px; border-right: 1px solid var(--border); }
.dates-group    { flex: 2; min-width: 200px; border-right: 1px solid var(--border); }
.pax-group      { flex: 1; min-width: 160px; border-right: 1px solid var(--border); }

.field {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    position: relative;
    padding: 12px 16px;
    border-right: 1px solid var(--border);
}

.field:last-child { border-right: none; }

.field label {
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 4px;
}
.field label .mi {
    font-size: 14px;
}

.field input[type="text"],
.field input[type="date"],
.pax-toggle {
    border: none;
    padding: 0;
    font-size: 16px;
    font-family: inherit;
    font-weight: 700;
    outline: none;
    width: 100%;
    background: transparent;
    cursor: pointer;
    text-align: left;
    color: var(--text);
}

.field input[type="date"] { color: var(--text); }

.pax-toggle {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}
.pax-cabin-label {
    font-size: 12px;
    font-weight: 400;
    color: var(--muted);
}

.field input::placeholder { color: #bbb; font-weight: 300; }

/* ─── Date field (CalendarPicker) ──────────────────────────────────────── */

.date-field { cursor: pointer; transition: background 0.15s; }
.date-field--active { background: var(--light); }
.cal-field-value {
    font-size: 16px;
    font-family: inherit;
    font-weight: 700;
    color: var(--text);
    white-space: nowrap;
}
.cal-field-sub {
    font-size: 12px;
    font-weight: 400;
    color: var(--muted);
}
.cal-field-placeholder {
    font-size: 16px;
    font-weight: 400;
    color: #bbb;
}

/* ─── Calendar dropdown (desktop) ──────────────────────────────────────── */

.cal-dropdown {
    display: none;
    position: absolute;
    z-index: 2000;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 12px 48px rgba(0,0,0,0.18);
    padding: 0;
    min-width: 600px;
    overflow: hidden;
}
.cal-dropdown.open { display: block; }

/* ─── Calendar modal (mobile) ──────────────────────────────────────────── */

.cal-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: #fff;
    flex-direction: column;
}
.cal-modal.open { display: flex; }

.cal-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 20px 12px;
}
.cal-modal-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--navy);
}
.cal-modal-close {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 24px;
    color: var(--text);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}
.cal-modal-close:hover { background: var(--light); }

/* ─── Tabs (departure / return) ────────────────────────────────────────── */

.cal-header {
    display: flex;
    padding: 0 20px;
    gap: 8px;
}

.cal-tab {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    text-align: left;
    transition: border-color 0.15s;
}
.cal-tab--active {
    border-color: var(--navy);
}

.cal-tab-label {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--navy);
}
.cal-tab-value {
    font-size: 15px;
    color: var(--text);
}
.cal-tab--active .cal-tab-value { color: var(--navy); font-weight: 500; }
.cal-tab:not(.cal-tab--active) .cal-tab-value { color: #bbb; }


/* ─── Desktop nav (2 months side-by-side) ──────────────────────────────── */

.cal-nav {
    display: flex;
    align-items: flex-start;
    padding: 16px 8px;
    position: relative;
}

.cal-nav-btn {
    position: absolute;
    top: 20px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: 1px solid var(--border);
    border-radius: 50%;
    cursor: pointer;
    color: var(--text);
    z-index: 2;
    transition: background 0.15s;
}
.cal-nav-btn:hover { background: var(--light); }
.cal-nav-prev { left: 12px; }
.cal-nav-next { right: 12px; }

/* ─── Month block ──────────────────────────────────────────────────────── */

.cal-month {
    flex: 1;
    padding: 0 12px;
    min-width: 0;
}

.cal-month-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--navy);
    text-align: center;
    padding: 8px 0 12px;
}

.cal-day-names {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    margin-bottom: 4px;
}

.cal-day-name {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--muted);
    padding: 4px 0;
}

/* ─── Calendar grid ────────────────────────────────────────────────────── */

.cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px 0;
}

.cal-cell {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    cursor: pointer;
    border-radius: 0;
    position: relative;
    transition: background 0.1s;
}
.cal-cell:hover:not(.cal-cell--disabled):not(.cal-cell--empty):not(.cal-cell--start):not(.cal-cell--end) {
    background: var(--light);
}
.cal-cell--start:hover::before,
.cal-cell--end:hover::before {
    background: #1a2e6e;
}
.cal-cell--empty { cursor: default; }

.cal-cell--disabled {
    color: #ccc;
    cursor: default;
}

.cal-cell--today::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--navy);
}

/* Selection: start & end */
.cal-cell--start,
.cal-cell--end {
    color: #fff;
    z-index: 1;
    position: relative;
}
.cal-cell--start::before,
.cal-cell--end::before {
    content: '';
    position: absolute;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--navy);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
}
.cal-cell--start.cal-cell--today::after,
.cal-cell--end.cal-cell--today::after {
    background: #fff;
}

/* Range between start and end */
.cal-cell--range {
    background: rgba(5, 22, 77, 0.08);
    color: var(--navy);
}

/* ─── Mobile scroll area ───────────────────────────────────────────────── */

.cal-mobile-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 8px 12px 40px;
    -webkit-overflow-scrolling: touch;
}

.cal-mobile-scroll .cal-month {
    padding: 0 4px;
    margin-bottom: 24px;
}

.cal-mobile-scroll .cal-month-title {
    text-align: left;
    padding: 16px 0 12px;
}

.cal-mobile-scroll .cal-cell {
    height: 48px;
    font-size: 15px;
}

/* Swap button */
.swap-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    color: var(--navy);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 8px;
    flex-shrink: 0;
    opacity: 0.5;
    transition: opacity 0.15s;
}
.swap-btn:hover { opacity: 1; }

/* Airport field */
.airport-field { position: relative; }

.airport-input-row {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}
.airport-input-row .airport-input {
    flex: 1;
    min-width: 0;
}

.airport-field-sub {
    font-size: 12px;
    font-weight: 400;
    color: var(--muted);
}

.airport-code-badge {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--navy);
    background: #e8edf5;
    border-radius: 4px;
    padding: 3px 8px;
    white-space: nowrap;
    flex-shrink: 0;
}

.ac-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 360px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    z-index: 1000;
    display: none;
    overflow: hidden;
}

.ac-item {
    padding: 10px 16px;
    cursor: pointer;
    border-bottom: 1px solid var(--light);
    font-size: 13px;
    transition: background 0.1s;
}
.ac-item:last-child { border-bottom: none; }
.ac-item:hover { background: var(--light); }
.ac-item strong { color: var(--navy); font-weight: 600; }

/* Metro area groups */
.ac-dropdown { max-height: 420px; overflow-y: auto; }

.ac-metro { border-bottom: 1px solid var(--light); }
.ac-metro:last-child { border-bottom: none; }

.ac-metro-header {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    cursor: pointer;
    gap: 10px;
    transition: background 0.1s;
}
.ac-metro-header:hover { background: var(--light); }

.ac-metro-icon {
    width: 36px; height: 36px;
    background: #e8f0fe;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--navy);
    font-size: 15px;
    flex-shrink: 0;
}

.ac-metro-info { flex: 1; min-width: 0; }
.ac-metro-name { font-weight: 600; color: var(--navy); font-size: 13px; }
.ac-metro-codes { font-size: 11px; color: #888; margin-top: 1px; }

.ac-metro-code {
    font-weight: 600;
    color: var(--navy);
    font-size: 13px;
    flex-shrink: 0;
}

.ac-metro-chevron {
    color: #999;
    font-size: 11px;
    flex-shrink: 0;
    transition: transform 0.2s;
}
.ac-metro.collapsed .ac-metro-chevron { transform: rotate(180deg); }
.ac-metro.collapsed .ac-metro-children { display: none; }

.ac-child {
    display: flex;
    align-items: center;
    padding: 8px 14px;
    cursor: pointer;
    gap: 10px;
    border-top: 1px solid #c9dfff;
    transition: background 0.1s;
}
.ac-child:hover { background: var(--light); }
.ac-metro-children .ac-child { padding-left: 30px; }

.ac-child-icon {
    width: 30px; height: 30px;
    background: #f3f4f6;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    font-size: 12px;
    flex-shrink: 0;
}

.ac-child-info { flex: 1; min-width: 0; }
.ac-child-name { font-weight: 600; font-size: 13px; color: #333; }
.ac-child-sub { font-size: 11px; color: #888; margin-top: 1px; }

.ac-child-code {
    font-weight: 600;
    color: var(--teal);
    font-size: 13px;
    flex-shrink: 0;
}

/* Passengers dropdown */
.pax-group { position: relative; }

.pax-dropdown {
    position: absolute;
    top: calc(100% + 2px);
    right: 0;
    width: 340px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 12px 48px rgba(0,0,0,0.18);
    z-index: 100;
    padding: 20px 24px;
    display: none;
}
.pax-dropdown.open { display: block; }

.pax-dropdown-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 8px;
}

.pax-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid var(--light);
}
.pax-row:last-child { border-bottom: none; }

.pax-info { display: flex; flex-direction: column; }
.pax-info span { font-weight: 700; font-size: 15px; color: var(--text); }
.pax-info small { color: var(--muted); font-size: 12px; margin-top: 2px; }

.pax-ctrl {
    display: flex;
    align-items: center;
    gap: 14px;
}

.pax-btn {
    width: 36px; height: 36px;
    border: 1.5px solid var(--border);
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    font-size: 18px;
    display: flex; align-items: center; justify-content: center;
    color: var(--navy);
    transition: background 0.1s, border-color 0.1s;
}
.pax-btn:hover { background: var(--light); border-color: var(--navy); }

.pax-count { font-weight: 700; font-size: 16px; min-width: 20px; text-align: center; color: var(--navy); }

/* ─── Cabin class radios ───────────────────────────────────────────────── */

.pax-cabin-section {
    border-top: 1px solid var(--border);
    margin-top: 8px;
    padding-top: 8px;
}

.pax-cabin-title {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--muted);
    padding: 8px 0;
}

.pax-cabin-opt {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 8px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 15px;
    color: var(--text);
    transition: background 0.1s;
}
.pax-cabin-opt:hover { background: var(--light); }

.pax-cabin-opt input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    border: 2px solid var(--border);
    border-radius: 50%;
    flex-shrink: 0;
    position: relative;
    cursor: pointer;
    transition: border-color 0.15s;
}
.pax-cabin-opt input[type="radio"]:checked {
    border-color: var(--navy);
}
.pax-cabin-opt input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--navy);
}
.pax-cabin-opt:has(input:checked) {
    background: rgba(5, 22, 77, 0.05);
    font-weight: 700;
}

/* ─── Pax mobile modal ────────────────────────────────────────────────── */

.pax-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: #fff;
    flex-direction: column;
}
.pax-modal.open { display: flex; }

.pax-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 20px 12px;
    border-bottom: 1px solid var(--border);
}
.pax-modal-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--navy);
}
.pax-modal-close {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 24px;
    color: var(--text);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}
.pax-modal-close:hover { background: var(--light); }

.pax-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 8px 20px 20px;
    -webkit-overflow-scrolling: touch;
}

.pax-modal-body .pax-row {
    padding: 18px 0;
}

.pax-modal-body .pax-info span {
    font-size: 17px;
    font-weight: 700;
}
.pax-modal-body .pax-info small {
    font-size: 13px;
}

.pax-modal-body .pax-btn {
    width: 40px;
    height: 40px;
    font-size: 20px;
}

.pax-modal-body .pax-count {
    font-size: 18px;
    min-width: 24px;
}

.pax-modal-body .pax-cabin-section {
    margin-top: 12px;
    padding-top: 12px;
}

.pax-modal-body .pax-cabin-opt {
    padding: 14px 8px;
    font-size: 16px;
}

.pax-modal-footer {
    flex-shrink: 0;
    padding: 12px 20px calc(12px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--border);
    background: #fff;
}
.pax-modal-done {
    width: 100%;
    padding: 16px;
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #fff;
    background: var(--navy);
    border: none;
    border-radius: 2px;
    cursor: pointer;
    transition: filter 0.15s;
}
.pax-modal-done:active { filter: brightness(1.25); }

/* Search button */
.search-btn {
    background: var(--amber);
    color: #fff;
    border: none;
    border-radius: 0 4px 4px 0;
    padding: 0 32px;
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    white-space: nowrap;
    letter-spacing: 0.5px;
    transition: background 0.15s;
    align-self: stretch;
    min-height: 56px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.search-btn:hover { background: var(--amber-h); }

/* ─── Results section ────────────────────────────────────────────────────── */

.results-section { padding: 32px 0 60px; background: #f5f3ee; }

.results-layout {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

/* ─── Filters ────────────────────────────────────────────────────────────── */
.filters-panel {
    width: 280px;
    flex-shrink: 0;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 2px;
    padding: 20px;
    position: static;
    align-self: flex-start;
}

.results-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
}

.filters-toggle-btn {
    display: none;
    align-items: center;
    gap: 6px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 2px;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 600;
    color: var(--navy);
    cursor: pointer;
}

.filters-toggle-btn.active {
    background: var(--navy);
    color: #fff;
    border-color: var(--navy);
}

.filter-group {
    margin-bottom: 18px;
    padding-bottom: 18px;
    border-bottom: 1px dashed var(--border);
}
.filter-group:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

/* Group adjacent toggle-only filters (baggage/change/cancel) into one block */
.filters-panel .filter-group[data-filter="baggage"],
.filters-panel .filter-group[data-filter="change"] {
    margin-bottom: 0;
    padding-bottom: 8px;
    border-bottom: none;
}

/* Group per-direction filter rows under a single direction heading */
.filters-panel .filter-dir-section {
    margin-bottom: 0;
    padding-bottom: 8px;
    border-bottom: none;
}
.filters-panel .filter-dir-row {
    margin-bottom: 0;
    padding-bottom: 14px;
    border-bottom: none;
}
.filters-panel .filter-dir-row:last-child {
    padding-bottom: 0;
}

.filter-label {
    display: block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--muted);
    margin-bottom: 10px;
}

/* Price */
.filter-label-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 10px;
}
.filter-price-display { font-size: 12px; font-weight: 600; color: var(--navy); }

.price-range {
    position: relative;
    height: 20px;
    display: flex;
    align-items: center;
}
.price-range-track {
    position: absolute;
    left: 0; right: 0;
    height: 4px;
    border-radius: 2px;
    background: var(--light);
    pointer-events: none;
}
.price-range input[type="range"] {
    position: absolute;
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    pointer-events: none;
    height: 4px;
    margin: 0;
}
.price-range input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px; height: 16px;
    border-radius: 50%;
    background: var(--navy);
    border: 2px solid #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,.25);
    pointer-events: all;
    cursor: pointer;
}
.price-range input[type="range"]::-moz-range-thumb {
    width: 16px; height: 16px;
    border-radius: 50%;
    background: var(--navy);
    border: 2px solid #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,.25);
    pointer-events: all;
    cursor: pointer;
}

/* Toggles */
.filter-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    cursor: pointer;
    user-select: none;
}
.ftoggle-icon {
    flex-shrink: 0;
    width: 22px; height: 22px;
    border-radius: 50%;
    border: 2px solid #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, border-color 0.15s;
}
.ftoggle-icon::after {
    content: '✓';
    font-size: 12px;
    color: transparent;
    transition: color 0.15s;
}
.filter-toggle--active .ftoggle-icon {
    background: var(--navy);
    border-color: var(--navy);
}
.filter-toggle--active .ftoggle-icon::after { color: #fff; }
.ftoggle-label {
    font-size: 13px;
    color: var(--muted);
    transition: color 0.15s, font-weight 0.15s;
}
.filter-toggle--active .ftoggle-label {
    font-weight: 600;
    color: var(--navy);
}

/* Airlines */
.airlines-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 8px;
}
.airline-item {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    padding: 3px 0;
}
.airline-item input[type="checkbox"] { display: none; }
.airline-item-check {
    flex-shrink: 0;
    width: 18px; height: 18px;
    border-radius: 50%;
    border: 2px solid #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
}
.airline-item-check::after { content: '✓'; font-size: 10px; color: transparent; }
.airline-item-check--on {
    background: var(--navy);
    border-color: var(--navy);
}
.airline-item-check--on::after { color: #fff; }
.airline-item img { max-height: 16px; max-width: 32px; object-fit: contain; flex-shrink: 0; }
.airline-item-name {
    font-size: 11px;
    color: var(--navy);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

/* Per-direction sections */
.filter-dir-heading {
    font-size: 13px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 12px;
}
.filter-range-row { margin-bottom: 12px; }
.filter-range-label {
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 6px;
}
.filter-range-label strong { color: var(--navy); }

.dir-range-wrap {
    position: relative;
    height: 20px;
    display: flex;
    align-items: center;
}
.dir-range-track {
    position: absolute;
    left: 0; right: 0;
    height: 4px;
    border-radius: 2px;
    background: var(--light);
    pointer-events: none;
}
.dir-slider {
    position: absolute;
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    pointer-events: none;
    height: 4px;
    margin: 0;
}
.dir-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px; height: 14px;
    border-radius: 50%;
    background: var(--navy);
    border: 2px solid #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,.2);
    pointer-events: all;
    cursor: pointer;
}
.dir-slider::-moz-range-thumb {
    width: 14px; height: 14px;
    border-radius: 50%;
    background: var(--navy);
    border: 2px solid #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,.2);
    pointer-events: all;
    cursor: pointer;
}
.filter-range-vals {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--muted);
    margin-top: 4px;
}

/* Stops buttons */
.dir-stops-group { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 2px; }
.dir-stops-btn {
    font-size: 11px;
    padding: 3px 8px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
    color: var(--muted);
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.dir-stops-btn--active {
    background: var(--navy);
    border-color: var(--navy);
    color: #fff;
}

/* Flights grid */
.flights-grid { flex: 1; min-width: 0; width: 100%; background: #f5f3ee; }

.grid-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    padding: 0 4px;
}

#results-count { font-weight: 400; color: var(--muted); font-size: 13px; }

.sort-controls { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }

.sort-btn {
    border: 1px solid var(--border);
    background: #fff;
    border-radius: 2px;
    padding: 4px 10px;
    cursor: pointer;
    font-size: 12px;
    font-family: inherit;
    font-weight: 400;
    transition: all 0.15s;
}
.sort-btn:hover { border-color: var(--navy); color: var(--navy); }
.sort-btn.active { background: var(--navy); color: #fff; border-color: var(--navy); }

/* Flight card */
.flight-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 2px;
    margin-bottom: 8px;
    overflow: hidden;
    transition: box-shadow 0.15s, border-color 0.15s;
}
.flight-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.08); border-color: #c5ccd8; }

.flight-main {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    cursor: pointer;
}

.flight-airline {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 60px;
}
.airline-code { font-size: 20px; font-weight: 600; color: var(--navy); }
.airline-provider { font-size: 10px; color: var(--muted); margin-top: 2px; }

.flight-legs { flex: 1; display: flex; flex-direction: column; gap: 6px; }

.leg {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
}
.leg-time { font-weight: 600; font-size: 16px; color: var(--navy); }
.leg-from, .leg-to { color: var(--muted); font-size: 12px; }
.leg-arrow { color: #ccc; font-size: 11px; flex: 1; text-align: center; }

.flight-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: center;
    min-width: 90px;
}

.non-stop { color: #22c55e; font-size: 12px; font-weight: 600; }
.stops    { color: var(--amber); font-size: 12px; font-weight: 600; }

.badge {
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 2px;
}
.badge-green { background: #dcfce7; color: #16a34a; }
.badge-blue  { background: #dbeafe; color: #2563eb; }

.flight-price {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 100px;
}

.price { font-size: 22px; font-weight: 600; color: var(--navy); }

.select-btn {
    background: var(--amber);
    color: #fff;
    border: none;
    border-radius: 2px;
    padding: 7px 16px;
    font-size: 12px;
    font-family: inherit;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: background 0.15s;
    white-space: nowrap;
}
.select-btn:hover { background: var(--amber-h); }

/* Flight details */
.flight-details {
    border-top: 1px solid var(--border);
    background: var(--light);
}

.details-inner { padding: 16px 20px; }

.detail-leg {
    margin-bottom: 12px;
}
.detail-leg strong { display: block; margin-bottom: 8px; color: var(--navy); font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; }

.segment {
    display: flex;
    gap: 16px;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid var(--border);
    font-size: 12px;
}
.segment:last-child { border-bottom: none; }
.seg-flight { font-weight: 600; color: var(--navy); }
.seg-aircraft { color: var(--muted); }
.seg-route { color: var(--text); }

.no-results {
    text-align: center;
    padding: 60px 20px;
    color: var(--muted);
    font-size: 15px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 2px;
}

/* ─── Loading overlay ────────────────────────────────────────────────────── */

.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(5, 22, 77, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
}

.loading-box {
    background: #fff;
    border-radius: 4px;
    padding: 40px 60px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.25);
}

.spinner {
    width: 44px; height: 44px;
    border: 3px solid var(--border);
    border-top-color: var(--amber);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 16px;
}

@keyframes spin { to { transform: rotate(360deg); } }

.loading-box p { color: var(--muted); margin-bottom: 4px; font-size: 13px; }
.loading-timer { font-size: 22px; font-weight: 600; color: var(--navy); }

/* ─── Settings page ─────────────────────────────────────────────────────── */

.settings-section {
    padding: 48px 0 80px;
    min-height: calc(100vh - 64px);
    background: var(--light);
}

.settings-card {
    max-width: 560px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 4px;
}

.settings-header {
    padding: 28px 32px 24px;
    border-bottom: 1px solid var(--border);
}

.settings-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 4px;
}

.settings-subtitle {
    font-size: 13px;
    color: var(--muted);
    font-weight: 300;
}

.settings-body { padding: 8px 0 16px; }

.settings-group { padding: 24px 32px 8px; }

.settings-group-title {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--teal);
    margin-bottom: 20px;
}

.settings-field {
    margin-bottom: 24px;
}

.settings-label {
    display: block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--muted);
    margin-bottom: 6px;
}

.settings-input-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1.5px solid var(--border);
    transition: border-color 0.15s;
}

.settings-input-wrap:focus-within {
    border-bottom-color: var(--teal);
}

/* sky-comp TextComponent renders into the div; the container div must stretch */
.settings-input-wrap > div { flex: 1; min-width: 0; }

.settings-input-wrap .sky-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 8px 0;
    font-size: 15px;
    font-family: inherit;
    font-weight: 400;
    color: var(--text);
    background: transparent;
    width: 100%;
}

.settings-input-wrap .sky-input::placeholder { color: #bbb; font-weight: 300; }
.settings-input-wrap .sky-input--invalid { color: #d32f2f; }

.settings-saved {
    font-size: 11px;
    font-weight: 600;
    color: #22c55e;
    opacity: 0;
    transition: opacity 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
}

.settings-saved.visible { opacity: 1; }

.settings-hint {
    font-size: 12px;
    color: var(--muted);
    font-weight: 300;
    margin-top: 5px;
}

/* ─── Icon component ─────────────────────────────────────────────────────── */

.icon-component{
    margin-left:6px;
    font-size: 90%;
}

/* ─── Tabs component ─────────────────────────────────────────────────────── */

.sky-tabs-bar {
    display: flex;
    border-bottom: 1px solid var(--border);
    background: #fff;
    border-radius: 12px 12px 0 0;
    padding: 10px 18px;
}

.sky-tab {
    padding: 14px 20px 14px 2px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--muted);
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    cursor: pointer;
    transition: color 0.15s, border-color 0.15s;
    font-family: inherit;
}

.sky-tab:hover { color: var(--text); }

.sky-tab.active {
    color: var(--navy);
    border-bottom-color: var(--teal);
}

.sky-tabs-panel > .tbl-card,
.sky-tabs-panel > .settings-card {
    border-radius: 0 0 12px 12px;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
}

/* ─── Admin / TblComponent ───────────────────────────────────────────────── */

.tbl-section {
    padding: 18px 0 80px;
    min-height: calc(100vh - 64px);
    background: var(--light);
}

.tbl-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
    overflow: hidden;
}

.tbl-header {
    padding: 28px 32px 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.tbl-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.tbl-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 4px;
}

.tbl-subtitle {
    font-size: 13px;
    color: var(--muted);
    font-weight: 300;
}

/* ─── Company console (/company) ─────────────────────────────────────────── */
.company-head {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
    padding: 28px 32px;
    margin-bottom: 18px;
}
.company-head .tbl-title { font-size: 22px; }
.company-kpis {
    display: flex;
    gap: 40px;
    margin: 20px 0 6px;
    flex-wrap: wrap;
}
.company-kpi-val {
    font-size: 26px;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.1;
}
.company-kpi-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--muted);
    margin-top: 4px;
}
.company-head-links { margin-top: 8px; }
.company-head-links .sky-link { font-size: 13px; color: var(--teal); text-decoration: none; }
.company-head-links .sky-link:hover { text-decoration: underline; }
.company-head-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.company-profile {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 14px 24px;
    margin: 20px 0 4px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
}
.company-profile-item dt {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--muted);
}
.company-profile-item dd {
    margin: 2px 0 0;
    font-size: 14px;
    color: var(--text);
}

.tbl-wrap { overflow-x: auto; }

.sky-tbl {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.sky-tbl thead th {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--muted);
    padding: 10px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.sky-tbl th.sky-tbl-sort { cursor: pointer; user-select: none; }
.sky-tbl th.sky-tbl-sort:hover { color: var(--text, #222); }
.sky-tbl-sort-ind {
    display: inline-block;
    width: 12px;
    font-size: 8px;
    line-height: 1;
    text-align: left;
}
.sky-tbl-sort-ind:empty { display: none; }

.sky-tbl th:first-child { padding-left: 26px; }
.sky-tbl td:first-child { padding-left: 18px; }
.sky-tbl th:last-child  { padding-right: 26px; }
.sky-tbl td:last-child  { padding-right: 18px; }

.sky-tbl tbody tr { border-bottom: 1px solid var(--border); }
.sky-tbl tbody tr:last-child { border-bottom: none; }
.sky-tbl tbody tr:hover { background: var(--light); }
.sky-tbl tbody tr.sky-ticket-row:hover,
.sky-tbl tbody tr.sky-ticket-row tr:hover { background: transparent; }

.sky-tbl td {
    padding: 2px 8px;
    vertical-align: middle;
}

.sky-tbl td > div { display: flex; }
.sky-tbl td a { color: var(--teal); text-decoration: underline; }
.sky-tbl td a:hover { color: var(--navy); }

.sky-tbl td .sky-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 8px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 300;
    color: var(--text);
    outline: none;
    min-width: 80px;
}

.sky-tbl td textarea.sky-input { height: 70px; resize: vertical; }
.sky-tbl td .sky-input:focus { background: var(--light); border-radius: 4px; }
.sky-tbl td .sky-input--invalid { color: #d32f2f; }
.sky-tbl td .sky-input:disabled { color: var(--muted); cursor: default; }

.sky-tbl td .sky-select {
    flex: 1;
    min-width: 80px;
    border: none;
    background: transparent;
    padding: 7px 4px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 300;
    color: var(--text);
    outline: none;
    cursor: pointer;
}
.sky-tbl td .sky-select:focus { background: var(--light); border-radius: 4px; }
.sky-tbl td .sky-select:disabled { color: var(--muted); cursor: default; }

.sky-rowmenu {
    display: flex;
    align-items: center;
    padding: 4px 6px;
    gap: 6px;
    position: relative;
}

.sky-rowmenu-icon {
    color: var(--border);
    font-size: 12px;
    cursor: default;
    flex-shrink: 0;
}

.sky-rowmenu-actions {
    display: none;
    gap: 2px;
}
.sky-rowmenu:hover .sky-rowmenu-actions,
.sky-rowmenu--confirming .sky-rowmenu-actions { display: flex; }

/* hide hamburger when actions or confirm are showing */
.sky-rowmenu:hover .sky-rowmenu-icon,
.sky-rowmenu--confirming .sky-rowmenu-icon { display: none; }

.sky-rowmenu-confirm {
    display: none;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 200;
    gap: 4px;
    align-items: center;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 4px 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.12);
    white-space: nowrap;
}
.sky-rowmenu--confirming .sky-rowmenu-confirm { display: flex; }

.sky-rowmenu-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 3px 5px;
    border-radius: 3px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1;
    transition: color 0.1s, background 0.1s;
}
.sky-rowmenu-del:hover { color: #d32f2f; background: #fef2f2; }

.sky-rowmenu-ok,
.sky-rowmenu-cancel {
    font-family: inherit;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 10px;
    border-radius: 3px;
    cursor: pointer;
    border: none;
    white-space: nowrap;
}
.sky-rowmenu-ok         { background: #d32f2f; color: #fff; }
.sky-rowmenu-ok:hover   { background: #b71c1c; }
.sky-rowmenu-cancel     { background: var(--light); color: var(--muted); }
.sky-rowmenu-cancel:hover { color: var(--navy); }

.sky-dd {
    padding: 8px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 300;
    color: var(--text);
    cursor: pointer;
    user-select: none;
    flex: 1;
    border-radius: 4px;
    transition: background 0.1s;
}
.sky-dd:hover  { background: var(--light); }
.sky-dd--open  { background: var(--light); }
.sky-dd--empty { color: var(--muted); }

.sky-dd-popup {
    position: absolute;
    z-index: 9999;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 4px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    overflow: hidden;
    min-width: 100px;
}

.sky-dd-opt {
    padding: 9px 14px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 300;
    color: var(--text);
    cursor: pointer;
    transition: background 0.1s;
}
.sky-dd-opt:hover      { background: var(--light); }
.sky-dd-opt--active    { font-weight: 600; color: var(--navy); }

.sky-textarea {
    resize: vertical;
    min-height: unset;
    line-height: 1.5;
    white-space: pre;
    font-family: monospace;
    font-size: 12px;
}

.sky-cb {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 8px;
    user-select: none;
}
.sky-cb .fa-circle { font-size: 16px; color: var(--muted); }
.sky-cb .fa-circle-check { font-size: 16px; color: var(--navy); }

.sky-subtbl-toggle {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--muted);
    font-size: 10px;
    padding: 4px 8px;
    line-height: 1;
}
.sky-subtbl-toggle:hover { color: var(--navy); }

.sky-subtbl-div {
    margin-top:-3px;
}
.sky-subtbl-row > td {
    padding: 0;
    background: var(--light);
    border-bottom: 2px solid var(--border);
}
.sky-subtbl-row .tbl-card {
    border-radius: 0;
    border: 1px solid var(--border);
    border-top: 1px solid var(--active);
}

/* ─── Trip list header ───────────────────────────────────────────────────── */

.trips-header {
    display: flex;
    align-items: center;
    padding: 0 20px;
    min-height: 48px;
    margin-bottom: 4px;
    border: 1px solid var(--border);
    border-bottom: 2px solid var(--border);
    background: #fff;
}

.trow-hdr-mobile { display: none; }

.trow-hdr {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--muted);
    white-space: nowrap;
}
.trow-hdr-sort {
    cursor: pointer;
    user-select: none;
    transition: color 0.15s;
}
.trow-hdr-sort:hover {
    color: var(--navy);
}
.trow-hdr-sort--icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    padding: 2px 4px;
    border-radius: 4px;
}
.trow-hdr--active {
    color: var(--navy) !important;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.trow-hdr-sort--icon.trow-hdr--active {
    background: var(--navy);
    color: #fff !important;
    text-decoration: none;
}

/* ─── Trip row ───────────────────────────────────────────────────────────── */

.trip-row {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 6px;
    margin-bottom: 6px;
    overflow: hidden;
    transition: box-shadow 0.15s, border-color 0.15s;
}
.trip-row:hover         { box-shadow: 0 2px 12px rgba(0,0,0,0.07); border-color: #c5ccd8; }
.trip-row--open         { border-color: var(--teal); }

.trip-row-main {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    cursor: pointer;
}

.trips-header,
.trip-row-main { gap: 0; }

/* Carrier column */
.trow-carrier {
    width: 150px;
    flex-shrink: 0;
    overflow: hidden;
}
.trow-carrier-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 0;
}
.trow-airline-logo {
    flex-shrink: 0;
    max-height: 40px;
    max-width: 80px;
    object-fit: contain;
    display: block;
}
.trow-airline-name {
    font-size: 11px;
    font-weight: 500;
    color: var(--muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
    text-align: center;
}

/* Legs area */
.trow-legs {
    flex: 1;
    display: flex;
    align-items: center;
    min-width: 0;
}

.trow-leg {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 2px;
    min-width: 0;
}

.trow-dir-sep {
    width: 1px;
    height: 44px;
    background: var(--border);
    margin: 0 20px;
    flex-shrink: 0;
}

/* Endpoint (time + airport) */
.trow-endpoint {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    min-width: 52px;
}

.trow-time {
    font-size: 20px;
    font-weight: 600;
    color: var(--navy);
    line-height: 1;
}

.trow-apt {
    font-size: 11px;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Middle (duration + stops) */
.trow-mid {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 80px;
    color: var(--muted);
    font-size: 13px;
}

.trow-dur-line {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--muted);
    white-space: nowrap;
}
.trow-dur-line::before,
.trow-dur-line::after {
    content: '';
    flex: 1;
    border-top: 1px dashed #d1d5db;
}

.trow-direct { font-size: 11px; font-weight: 600; color: #22c55e; }
.trow-stops  { font-size: 11px; font-weight: 600; color: var(--teal); }

/* Price column */
.trow-price-col {
    width: 150px;
    flex-shrink: 0;
    display: flex;
    justify-content: flex-end;
}

.trow-price-btn {
    background: none;
    color: var(--navy);
    border: none;
    border-radius: 2px;
    padding: 6px 12px;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    min-width: 100px;
}
.trow-price-btn:hover { opacity: 0.8; }

.trow-from-lbl {
    font-size: 10px;
    color: var(--muted);
    letter-spacing: 0.3px;
}

.trow-price-val {
    font-size: 20px;
    font-weight: 700;
    color: var(--navy);
}

.trow-fare-count {
    font-size: 11px;
    font-weight: 600;
    color: var(--teal);
}

/* ─── Trip expand ─────────────────────────────────────────────────────────── */

.trip-expand {
    border-top: 1px solid var(--border);
    background: #fff;
}

/* Detail panels */
.trip-detail-panels {
    display: flex;
    border-bottom: 1px solid var(--border);
}

.trip-detail-panel {
    flex: 1;
    padding: 20px 24px;
    border-right: 1px solid var(--border);
}
.trip-detail-panel:last-child { border-right: none; }

.trip-detail-hdr {
    font-size: 13px;
    font-weight: 700;
    color: var(--teal);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 3px solid var(--teal);
}
.detail-route { color: var(--navy); }
.detail-date  { color: var(--navy); }

/* Segment block */
.seg-block {
    margin-bottom: 4px;
}

.seg-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.seg-airline-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--navy);
}

.seg-equip-badge {
    font-size: 10px;
    color: var(--muted);
    border: 1px solid var(--border);
    border-radius: 2px;
    padding: 2px 8px;
    white-space: nowrap;
}

.seg-operated-by {
    font-size: 11px;
    font-style: italic;
    color: var(--muted);
}

/* Timeline */
.seg-tl {
    position: relative;
    padding-left: 6px;
}

.seg-tl-point {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.seg-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 4px;
}
.seg-dot--blue { background: var(--teal); }
.seg-dot--gold { background: var(--amber); }

.seg-tl-content {
    flex: 1;
    min-width: 0;
}

.seg-tl-time {
    font-size: 17px;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.2;
}

.seg-tl-place {
    font-size: 13px;
    color: var(--muted);
    margin-top: 1px;
    line-height: 1.3;
}

.seg-tl-line {
    border-left: 2px dashed #d1d5db;
    margin-left: 5px;
    padding: 6px 0 6px 18px;
}

.seg-tl-dur {
    font-size: 13px;
    font-weight: 500;
    color: var(--muted);
}

/* Layover box */
.seg-layover {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1.5px dashed var(--amber);
    border-radius: 8px;
    padding: 10px 16px;
    margin: 10px 0 14px;
    background: #fffbeb;
    font-size: 13px;
    color: var(--text);
}
.seg-layover i {
    color: var(--amber);
    font-size: 15px;
    flex-shrink: 0;
}

/* ─── Offer section ───────────────────────────────────────────────────────── */

.offer-section {
    padding: 12px 24px 16px;
    background: var(--light);
}

.offer-row {
    display: flex;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}
.offer-row:last-child { border-bottom: none; }
.offer-row--dimmed { opacity: 0.45; transition: opacity 0.15s; }
.offer-row--dimmed:hover { opacity: 1; }


.offer-fare-col {
    flex: 1;
    min-width: 0;
}

.offer-route {
    font-size: 11px;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.offer-brand {
    font-size: 15px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 8px;
}

.offer-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.offer-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border: 1.5px solid;
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}
.offer-badge i { font-size: 13px; }

.offer-badge--yes { border-color: #22c55e; color: #16a34a; }
.offer-badge--fee { border-color: var(--amber); color: #b45309; }
.offer-badge--no  { border-color: #d1d5db; color: var(--muted); }

.offer-center-col {
    width: 170px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 0 16px;
}

.offer-price-big {
    font-size: 20px;
    font-weight: 700;
    color: var(--navy);
}

.offer-select-btn {
    background: var(--navy);
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 8px 28px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
    white-space: nowrap;
}
.offer-select-btn:hover { background: #0a2670; }

/* ─── Destination sections ──────────────────────────────────────────────── */

/* Popular-destinations grid (home) + Top-destinations grid (deal pages) */
.dest-grid-wrap { margin: 72px 0 0; }
.dest-grid-title {
    color: var(--navy);
    font-size: clamp(20px, 2.2vw, 28px);
    font-weight: 300;
    letter-spacing: 0.5px;
    text-align: center;
    margin: 0 0 48px;
}
/* Text + price destination offers (home grid + deal-page "top destinations") */
.dest-offers {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 0 36px;
}
.dest-offer {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
    padding: 13px 6px;
    text-decoration: none;
    border-bottom: 1px solid var(--border);
    transition: padding-left 0.12s ease, background 0.12s ease;
}
.dest-offer:hover { background: #fff; padding-left: 12px; }
.dest-offer-city {
    font-size: 16px;
    font-weight: 600;
    color: var(--navy);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.dest-offer-price { font-size: 15px; font-weight: 600; color: var(--teal); white-space: nowrap; }

/* ─── Homepage marketing stack (trust strip → why → corporate CTA → destinations) ─
   Even vertical rhythm: the trust bar sits flush under the hero; each following
   block adds a 72px top gap; the section closes 80px above the footer. */
.promo-section { padding-bottom: 80px; }

/* ─── Homepage trust strip (licensed · real people · secure) ─────────────── */
.trust-strip {
    background: #fff;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.trust-items {
    list-style: none;
    margin: 0;
    padding: 20px 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 14px 52px;
}
.trust-item {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    font-weight: 600;
    color: var(--navy);
}
.trust-item-icon { font-size: 24px; color: var(--navy); }

/* ─── Homepage "Why book with us" (3 value props) ───────────────────────── */
.why-section { margin-top: 72px; }
.why-title {
    color: var(--navy);
    font-size: clamp(20px, 2.2vw, 28px);
    font-weight: 300;
    letter-spacing: 0.5px;
    text-align: center;
    margin: 0 0 48px;
}
.why-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}
.why-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 36px 32px;
    text-align: center;
    transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.why-card:hover {
    box-shadow: 0 8px 24px rgba(5, 22, 77, 0.08);
    transform: translateY(-2px);
}
.why-card-icon {
    width: 68px;
    height: 68px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 34px;
    color: var(--navy);
    background: rgba(5, 22, 77, 0.06);
    margin-bottom: 20px;
}
.why-card-title {
    margin: 0 0 12px;
    font-size: 18px;
    font-weight: 700;
    color: var(--navy);
}
.why-card-text {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: var(--muted);
}
@media (max-width: 860px) {
    .promo-section { padding-bottom: 56px; }
    .why-section { margin-top: 56px; }
    .why-title { margin-bottom: 32px; }
    .why-grid { grid-template-columns: 1fr; gap: 16px; max-width: 480px; margin: 0 auto; }
    .why-card {
        display: grid;
        grid-template-columns: auto 1fr;
        column-gap: 18px;
        align-items: start;
        text-align: left;
        padding: 24px;
    }
    .why-card-icon { grid-row: span 2; width: 52px; height: 52px; font-size: 26px; margin-bottom: 0; }
    .why-card-title { align-self: center; }
}
@media (max-width: 700px) {
    .trust-items { gap: 12px 32px; padding: 16px 0; }
    .trust-item { font-size: 14px; }
}

/* ─── Homepage corporate CTA (quiet "for companies" door) ───────────────── */
.corp-cta { margin-top: 72px; }
.corp-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 28px 48px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 36px 40px;
}
.corp-cta-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--teal);
}
.corp-cta-eyebrow .mi { font-size: 18px; }
.corp-cta-title {
    margin: 0 0 8px;
    font-size: clamp(20px, 2vw, 26px);
    font-weight: 400;
    color: var(--navy);
}
.corp-cta-text {
    margin: 0;
    max-width: 560px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--muted);
}
.corp-cta-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    flex-shrink: 0;
}
.corp-cta-btn { padding: 12px 26px; font-size: 15px; border-radius: 8px; }
.corp-cta-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--teal);
    text-decoration: none;
}
.corp-cta-link .mi { font-size: 18px; transition: transform 0.15s; }
.corp-cta-link:hover .mi { transform: translateX(3px); }
@media (max-width: 700px) {
    .corp-cta { margin-top: 56px; }
    .corp-cta-inner { padding: 28px 24px; gap: 22px; }
    .corp-cta-actions { align-self: stretch; }
    .corp-cta-btn { justify-content: center; }
}

/* Deal landing page */
.deal-section { padding: 28px 0 80px; }
.deal-hero {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: 300px;
    border-radius: 10px;
    overflow: hidden;
    background-color: var(--navy);
    background-size: cover;
    background-position: center;
    margin-bottom: 28px;
}
.deal-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(5, 22, 77, 0.72) 0%, rgba(5, 22, 77, 0.15) 55%, rgba(5, 22, 77, 0) 100%);
}
.deal-hero-title {
    position: relative;
    z-index: 1;
    color: #fff;
    font-size: clamp(26px, 3.4vw, 40px);
    font-weight: 300;
    letter-spacing: 0.5px;
    margin: 0;
    padding: clamp(20px, 3vw, 36px);
}
.deal-title {
    color: var(--navy);
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 300;
    margin: 8px 0 24px;
}
.deal-fares-title,
.deal-top-title {
    color: var(--navy);
    font-size: clamp(18px, 2vw, 24px);
    font-weight: 400;
    margin: 32px 0 16px;
}
.deal-table-wrap { overflow-x: auto; }
.deal-fares {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}
.deal-fares th,
.deal-fares td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}
.deal-fares thead th {
    background: var(--light);
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}
.deal-fares tbody tr:last-child td { border-bottom: none; }
.deal-fares tbody tr:hover { background: #f9fafc; }
.deal-col-price { text-align: right; font-weight: 600; color: var(--navy); }
.deal-col-found { color: var(--muted); }
.deal-note {
    margin: 12px 2px 0;
    font-size: 12px;
    color: var(--muted);
}
.deal-empty {
    padding: 20px;
    background: var(--light);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--muted);
}


/* ─── Business-travel promo banner (Lufthansa-style) ─────────────────────── */

.promo-banner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-height: 440px;
    overflow: hidden;
    background: #1a2a4a; /* fallback if the image is missing */
    text-decoration: none;
}
.promo-banner-media {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.promo-card {
    position: relative;
    z-index: 1;
    margin-right: clamp(16px, 6vw, 120px);
    max-width: 560px;
    padding: 44px 52px;
    background: rgba(5, 22, 77, 0.82); /* --navy with alpha */
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    border-radius: 2px;
    color: #fff;
}
.promo-eyebrow {
    display: block;
    font-size: 18px;
    font-weight: 300;
    opacity: 0.9;
    margin-bottom: 14px;
}
.promo-title {
    margin: 0 0 30px;
    font-size: clamp(26px, 2.8vw, 38px);
    font-weight: 800;
    line-height: 1.08;
    color: #fff;
}
.promo-cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
}
.promo-cta .mi { font-size: 22px; transition: transform 0.15s; }
.promo-banner:hover .promo-cta .mi { transform: translateX(4px); }

@media (max-width: 700px) {
    .promo-banner {
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        min-height: 0;
    }
    .promo-banner-media { position: relative; height: 200px; }
    .promo-card { margin-right: 0; max-width: none; padding: 28px 24px; background: var(--navy); }
    .promo-title { margin-bottom: 20px; }
}

/* ─── Responsive ─────────────────────────────────────────────────────────── */

/* ─── Mobile filter pills + bottom-sheet ──────────────────────────────── */

.filter-pills { display: none; }
.filter-sheet, .filter-sheet-overlay { display: none; }

@media (max-width: 1199px) {
    .filters-panel { display: none !important; }
    .filters-toggle-btn { display: none !important; }

    .filter-pills {
        display: flex;
        gap: 8px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding: 8px 0;
        margin: 0 0 8px;
        scrollbar-width: none;
    }
    .filter-pills::-webkit-scrollbar { display: none; height: 0; width: 0; }

    .filter-pill {
        flex-shrink: 0;
        background: #fff;
        border: 1px solid var(--border);
        border-radius: 999px;
        padding: 8px 16px;
        font-size: 13px;
        font-weight: 600;
        color: var(--navy);
        cursor: pointer;
        white-space: nowrap;
        transition: background 0.15s, border-color 0.15s;
    }
    .filter-pill:hover { background: var(--light); border-color: var(--navy); }
    .filter-pill--active {
        background: var(--navy);
        color: #fff;
        border-color: var(--navy);
    }
    .filter-pill--active:hover {
        background: var(--navy);
        color: #fff;
    }

    .filter-sheet-overlay {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.4);
        z-index: 9998;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.2s;
    }
    .filter-sheet-overlay.open { opacity: 1; pointer-events: auto; }

    .filter-sheet {
        display: flex;
        flex-direction: column;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: #fff;
        border-radius: 16px 16px 0 0;
        box-shadow: 0 -8px 32px rgba(0,0,0,0.18);
        z-index: 9999;
        max-height: 80vh;
        transform: translateY(100%);
        transition: transform 0.25s ease-out;
    }
    .filter-sheet.open { transform: translateY(0); }

    .filter-sheet-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 16px 20px 8px;
        border-bottom: 1px solid var(--border);
        flex-shrink: 0;
    }
    .filter-sheet-title {
        font-size: 18px;
        font-weight: 700;
        color: var(--navy);
    }
    .filter-sheet-close {
        background: none;
        border: none;
        cursor: pointer;
        font-size: 22px;
        color: var(--text);
        width: 36px;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
    }
    .filter-sheet-close:hover { background: var(--light); }

    .filter-sheet-body {
        flex: 1;
        overflow-y: auto;
        padding: 16px 20px 24px;
        -webkit-overflow-scrolling: touch;
    }
    .filter-sheet-body .filter-group {
        margin-bottom: 0;
        padding-bottom: 0;
        border-bottom: none;
    }
}

@media (max-width: 900px) {
    .results-layout { flex-direction: column; }
    .filters-panel { width: 100%; position: static; }
    .flight-main { flex-wrap: wrap; }
}

@media (max-width: 800px) {
    .trip-detail-panels { flex-direction: column; }
    .trip-detail-panel { border-right: none; border-bottom: 1px solid var(--border); }
    .trip-detail-panel:last-child { border-bottom: none; }
    .results-layout { gap: 0; }
    .trip-row-main { padding: 8px 4px; width: 100%; box-sizing: border-box; }
    .trow-carrier { width: 8%; min-width: 28px; max-width: 52px; }
    .trow-airline-logo { max-height: 24px; max-width: 40px; }
    .trow-airline-name { display: none; }
    .trip-row--oneway .trow-carrier { width: 22%; min-width: 80px; max-width: 140px; }
    .trip-row--oneway .trow-airline-name { display: inline; }
    .trow-legs {flex: 1;min-width: 0;padding-right: 8px;}
    .trow-dir-sep { margin: 0 2%; }
    .trow-dir-sep-head { margin: 0 6%; }
    .trow-endpoint { min-width: 14%; }
    .trow-time { font-size: 14px; }
    .trow-mid { min-width: 18%; font-size: 10px; }
    .trow-dur-line { font-size: 10px; }
    .trow-price-col {width: 16%;min-width: 64px;max-width: 100px;}
    .pricing-trip-card .trow-price-col { width: 8%; min-width: 28px; max-width: 52px; }
    .pricing-toggle .mi { font-size: 22px; }
    .trow-price-btn { min-width: 0; width: 100%; padding: 6px 4px; }
    .trow-price-val { font-size: 13px; }
    .trow-from-lbl { font-size: 9px; }
    .trow-fare-count { font-size: 9px; }
    .trips-header {display: flex;padding: 2px 16px 2px 16px;}
    .trow-hdr-desktop { display: none; }
    .trow-hdr-mobile { display: inline; }
    .trip-detail-panel { padding: 12px 10px; }
    .trip-detail-hdr { font-size: 11px; margin-bottom: 10px; padding-bottom: 6px; border-bottom-width: 2px; }
    .seg-header { gap: 8px; margin-bottom: 8px; }
    .seg-airline-name { font-size: 12px; }
    .seg-equip-badge { font-size: 9px; padding: 1px 6px; }
    .seg-operated-by { font-size: 10px; }
    .seg-tl-point { gap: 8px; }
    .seg-dot { width: 10px; height: 10px; margin-top: 3px; }
    .seg-tl-time { font-size: 14px; }
    .seg-tl-place { font-size: 11px; }
    .seg-tl-line { padding: 4px 0 4px 14px; margin-left: 4px; }
    .seg-tl-dur { font-size: 11px; }
    .seg-layover { font-size: 11px; padding: 8px 10px; margin: 6px 0 10px; }
    .seg-layover i { font-size: 13px; }
    .seg-block { margin-bottom: 2px; }
    .offer-section { padding: 8px 12px; background: transparent; }
    .offer-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
        gap: 0 16px;
        padding: 14px;
        background: #fff;
        border: 1px solid var(--border);
        border-radius: 10px;
        margin-bottom: 10px;
        border-bottom: 1px solid var(--border);
    }
    .offer-row:last-child { margin-bottom: 0; border-bottom: 1px solid var(--border); }
    .offer-fare-col {
        grid-row: 1;
        min-width: 0;
    }
    .offer-fare-col:first-child { grid-column: 1; }
    .offer-fare-col:last-child { grid-column: 2; }
    .offer-row--pricing .offer-fare-col:only-child { grid-column: 1 / -1; }
    .offer-row--pricing {
        background: transparent;
        border: none;
        border-radius: 0;
        padding: 0;
        margin-bottom: 0;
    }
    .offer-route { font-size: 10px; margin-bottom: 1px; }
    .offer-brand { font-size: 14px; margin-bottom: 8px; }
    .offer-badges {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    .offer-badge {
        font-size: 11px;
        padding: 4px 10px;
        border-radius: 6px;
        border-width: 1px;
    }
    .offer-center-col {
        grid-row: 2;
        grid-column: 1 / -1;
        width: auto;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 12px 0 0;
        border-top: 1px solid var(--border);
        margin-top: 10px;
    }
    .offer-price-big { font-size: 20px; }
    .offer-select-btn {
        border-radius: 8px;
        padding: 10px 28px;
        font-size: 14px;
    }
}

@media (max-width: 600px) {
    .filters-panel { display: none; }
    .filters-panel.open { display: block; margin-bottom: 8px; }
    .filters-toggle-btn { display: flex; }
    .results-section { padding-left: 0; padding-right: 0; }
    .results-section .container { width: 100%; padding-left: 0; padding-right: 0; }
}

@media (max-width: 900px) {
    .search-row { flex-direction: column; }
    .airports-group, .dates-group, .pax-group { min-width: 100%; border-right: none; border-bottom: 1px solid var(--border); }
    .search-btn { width: 100%; min-height: 48px; border-radius: 0 0 4px 4px; }
    .search-section-title { font-size: 20px; }
    .airports-group { flex-wrap: wrap; position: relative; }
    .airports-group .field { min-width: 100%; border-right: none; border-bottom: none; }
    .airports-group .field:first-child { border-bottom: 1px solid var(--border); }
    .airports-group .swap-btn {
        position: absolute;
        right: 16px;
        top: 50%;
        transform: translateY(-50%);
        width: 36px;
        height: 36px;
        border-radius: 50%;
        border: 1px solid var(--border);
        background: #fff;
        padding: 0;
        z-index: 1;
        font-size: 16px;
    }
    .airports-group .swap-btn .mi { transform: rotate(90deg); }
}

/* ─── Mobile airport modal ───────────────────────────────────────────────── */

.airport-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: #fff;
    z-index: 9999;
    flex-direction: column;
}

.airport-modal.open { display: flex; }

.airport-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 20px 12px;
    flex-shrink: 0;
}

.airport-modal-close {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 24px;
    color: var(--text);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}
.airport-modal-close:hover { background: var(--light); }

.airport-modal-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--navy);
}

.airport-modal-search {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 20px;
    padding: 12px 16px;
    border: 2px solid var(--navy);
    border-radius: 8px;
    flex-shrink: 0;
}

.airport-modal-search-icon {
    font-size: 20px;
    color: var(--muted);
    flex-shrink: 0;
}

.airport-modal-search input {
    width: 100%;
    border: none;
    outline: none;
    font-size: 16px;
    font-family: inherit;
    font-weight: 400;
    color: var(--text);
}

.airport-modal-search input::placeholder { color: #bbb; font-weight: 300; }

.airport-modal-results {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 8px 0;
}

.airport-modal-results .ac-child {
    padding: 14px 20px;
}

.airport-modal-results .ac-metro-header {
    padding: 14px 20px;
}

.airport-modal-results .ac-child-name {
    font-size: 16px;
    font-weight: 700;
}

.airport-modal-results .ac-child-sub {
    font-size: 13px;
    color: var(--muted);
}

.airport-modal-results .ac-child-code {
    font-size: 14px;
    font-weight: 700;
    color: var(--navy);
}

.airport-modal-results .ac-metro-name {
    font-size: 16px;
    font-weight: 700;
}

.airport-modal-results .ac-metro-code {
    font-size: 14px;
    font-weight: 700;
}

/* ─── Pricing section ──────────────────────────────────────────────────────── */

.pricing-section { padding: 20px 0 40px; background: #fff; }

.pricing-bar { margin-bottom: 18px; }

.ticket-actions { display: flex; gap: 10px; }
.ticket-action-btn { border: none; padding: 8px 20px; font-size: 14px; border-radius: 4px; cursor: pointer; font-weight: 600; }
.ticket-action-btn--primary { background: var(--navy); color: #fff; }
.ticket-action-btn--primary:hover { opacity: 0.88; }
.ticket-action-btn--secondary { background: var(--border); color: var(--text); }
.ticket-action-btn--secondary:hover { background: #d0d4da; }

.back-btn {
    background: none;
    border: none;
    color: var(--navy);
    font-size: 14px;
    cursor: pointer;
    padding: 0;
    font-weight: 600;
}
.back-btn:hover { text-decoration: underline; }

/* Pricing card — mirrors the expanded results-page trip layout */
.pricing-trip-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 6px;
    margin-bottom: 18px;
    overflow: hidden;
}
.pricing-trip-card .trip-row-main { cursor: pointer; }

.pricing-toggle {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 100%;
}
.pricing-toggle .mi {
    font-size: 28px;
    color: var(--muted);
    transition: transform 0.15s;
    transform: rotate(180deg);
}
.pricing-trip-card--collapsed .pricing-toggle .mi { transform: rotate(0); }

.pricing-details-slot { border-top: 1px solid var(--border); }

.pricing-offer-slot {
    border-top: 1px solid var(--border);
    padding: 4px 24px;
    background: var(--light);
}
.pricing-offer-slot .offer-row--pricing { padding: 10px 0; }

/* Per-direction fare detail rows (carry-on / checked / change / cancel) */
.fare-details {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 8px;
}
.fare-detail-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--text);
}
.fare-detail-row .mi { font-size: 18px; flex-shrink: 0; }
.fare-detail-row--yes     .mi { color: #16a34a; }
.fare-detail-row--fee     .mi { color: var(--amber); }
.fare-detail-row--no      .mi { color: var(--muted); }
.fare-detail-row--pending .mi { color: var(--muted); opacity: 0.55; }
.fare-detail-row--pending .fare-detail-text { color: var(--muted); opacity: 0.7; }

/* Price table */
.pricing-price-wrap { margin-top: 28px; }

.pricing-spinner { display: flex; justify-content: center; padding: 24px 0; }

.pricing-price-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.pricing-price-table th {
    text-align: left;
    padding: 7px 12px;
    background: var(--light);
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.pricing-price-table td {
    padding: 7px 12px;
    border-bottom: 1px solid var(--light);
}
.pricing-price-table tfoot td {
    border-top: 2px solid var(--navy);
    border-bottom: none;
}
.ppt-num { text-align: right; font-variant-numeric: tabular-nums; }
.ppt-total { color: var(--navy); }

.pricing-error { color: #c0392b; font-size: 14px; padding: 12px 0; }

/* CTA */
.pricing-actions { margin-top: 24px; }
.pricing-book-btn {
    background: var(--navy);
    color: #fff;
    border: none;
    padding: 12px 32px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.15s;
}
.pricing-book-btn:hover:not(:disabled) { opacity: 0.88; }
.pricing-book-btn:disabled { opacity: 0.45; cursor: default; }

/* ─── Booking form ───────────────────────────────────────────────────────────── */

.bform { margin-top: 32px; }

.bform-section {
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 20px;
    overflow: hidden;
}

.bform-section-title {
    margin: 0;
    padding: 12px 18px;
    font-size: 15px;
    font-weight: 700;
    color: var(--teal);
    background: #f0f8fb;
    border-bottom: 1px solid var(--border);
}

/* Passenger block */
.bform-pax {
    padding: 14px 18px;
    border-bottom: 1px dashed var(--border);
}
.bform-pax:last-child { border-bottom: none; }

.bform-pax-heading {
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 12px;
}

.bform-pax-links {
    display: flex;
    gap: 24px;
    margin-top: 8px;
}

.bform-link {
    font-size: 12px;
    color: var(--teal);
    text-decoration: none;
}
.bform-link:hover { text-decoration: underline; }

/* Field grid row */
.bform-row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 10px 16px;
    margin-bottom: 10px;
}

.bform-field {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.bform-field-label {
    font-size: 11px;
    color: var(--muted);
    white-space: nowrap;
}

.bform-input,
.bform-select {
    border: none;
    border-bottom: 1px solid var(--border);
    padding: 4px 0;
    font-size: 13px;
    color: var(--text);
    background: transparent;
    outline: none;
    font-family: inherit;
    width: 100%;
}
.bform-input:focus,
.bform-select:focus { border-bottom-color: var(--teal); }
.bform-input--invalid { border-bottom-color: #d32f2f; color: #d32f2f; }
.bform-input--invalid:focus { border-bottom-color: #d32f2f; }

.traveler-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 200;
    background: #fff;
    border: 1px solid var(--border);
    border-top: none;
    border-radius: 0 0 2px 2px;
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 180px;
    overflow-y: auto;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.traveler-dropdown-item {
    padding: 8px 12px;
    font-size: 13px;
    cursor: pointer;
    color: var(--navy);
}
.traveler-dropdown-item:hover { background: var(--light); }

/* Buyer fields */
.bform-buyer-tabs {
    display: flex;
    padding: 0 18px;
    border-bottom: 1px solid var(--border);
}

.bform-tab {
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    padding: 10px 14px 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
    cursor: pointer;
    margin-bottom: -1px;
}
.bform-tab--active {
    color: var(--navy);
    border-bottom-color: var(--navy);
}

.bform-buyer-fields { padding: 14px 18px 2px; }

/* Payment */
.bform-payment-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 20px;
    padding: 12px 18px;
    border-top: 1px dashed var(--border);
    font-size: 13px;
}

.bform-radio {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    cursor: pointer;
}

/* Price detail */
.bform-details {
    padding: 10px 18px 12px;
    border-top: 1px dashed var(--border);
    font-size: 13px;
}

.bform-detail-line {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 4px;
    padding: 2px 0;
}

.bform-detail-breakdown { color: var(--muted); font-size: 12px; }

.bform-detail-total {
    margin-top: 6px;
    font-size: 14px;
    font-weight: 600;
}

/* Terms */
.bform-terms-row {
    padding: 10px 18px 14px;
    border-top: 1px dashed var(--border);
    font-size: 13px;
}

.bform-terms {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.bform-terms-link {
    color: var(--teal);
    text-decoration: underline;
    cursor: pointer;
}
.bform-terms-link:hover { color: var(--navy); }

.disclaimer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(5, 22, 77, 0.45);
    z-index: 9500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.disclaimer-modal {
    background: #fff;
    border-radius: 8px;
    width: 100%;
    max-width: 680px;
    max-height: 80vh;
    padding: 24px 28px 22px;
    position: relative;
    box-shadow: 0 12px 40px rgba(0,0,0,0.18);
    display: flex;
    flex-direction: column;
}
.disclaimer-close {
    position: absolute;
    top: 10px;
    right: 12px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--muted);
    line-height: 1;
    padding: 2px 8px;
}
.disclaimer-close:hover { color: var(--text); }
.disclaimer-title {
    margin: 0 0 14px;
    font-size: 17px;
    color: var(--navy);
}
.disclaimer-body {
    overflow-y: auto;
    font-size: 13px;
    color: var(--text);
}
.disclaimer-pre {
    white-space: pre-wrap;
    font-family: inherit;
    margin: 0;
    line-height: 1.45;
}
.disclaimer-empty { color: var(--muted); font-style: italic; margin: 0; }

/* Other */
.bform-other-body {
    padding: 14px 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.bform-textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 8px 10px;
    font-size: 13px;
    font-family: inherit;
    resize: vertical;
    outline: none;
    box-sizing: border-box;
    color: var(--text);
}
.bform-textarea:focus { border-color: var(--teal); }

/* Confirm button */
.bform-confirm-btn {
    display: block;
    width: 100%;
    background: var(--amber);
    color: #fff;
    border: none;
    padding: 16px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.08em;
    cursor: pointer;
    border-radius: 6px;
    margin-top: 4px;
    transition: background 0.15s;
}
.bform-confirm-btn:hover { background: var(--amber-h); }
.bform-confirm-btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* ─── Booking confirmation ────────────────────────────────────────────────── */
.booking-confirm { text-align: center; padding: 60px 20px; max-width: 480px; margin: 0 auto; }
.booking-confirm-icon { font-size: 56px; color: var(--ok); margin-bottom: 16px; }
.booking-confirm-title { font-size: 24px; font-weight: 700; color: var(--navy); margin-bottom: 20px; }
.booking-confirm-pnr { font-size: 20px; margin-bottom: 6px; }
.booking-confirm-status { color: var(--muted); margin-bottom: 16px; text-transform: capitalize; font-size: 13px; }
.booking-confirm-route { font-size: 18px; font-weight: 700; color: var(--navy); margin-bottom: 20px; }
.booking-confirm-pax { list-style: none; padding: 0; margin: 0 0 16px; text-align: left; }
.booking-confirm-pax li { padding: 6px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.bconf-pax-type { color: var(--muted); font-size: 12px; }
.booking-confirm-tickets { color: var(--muted); font-size: 13px; margin-bottom: 16px; }
.booking-confirm-price { font-size: 22px; font-weight: 700; color: var(--navy); margin-top: 20px; }


/* ─── Seat map ────────────────────────────────────────────────────────────── */
.seat-overlay { position:fixed; top:0; left:0; width:100%; height:100%; background:rgba(0,0,0,0.5); z-index:1000; display:flex; align-items:center; justify-content:center; }
.seat-popup { background:#fff; border-radius:8px; max-width:520px; width:95%; max-height:85vh; overflow-y:auto; position:relative; padding:20px; }
.seat-popup-close { position:absolute; top:10px; right:15px; font-size:22px; cursor:pointer; background:none; border:none; color:#333; }
.seat-popup-title { font-size:16px; font-weight:700; margin-bottom:12px; color:var(--navy); }
.seat-tabs { display:flex; gap:5px; margin-bottom:15px; }
.seat-tab { padding:8px 16px; cursor:pointer; border:1px solid #ccc; border-radius:4px; font-size:13px; background:#fff; }
.seat-tab--active { background:#0068dc; color:#fff; border-color:#0068dc; }
.seat-airplane { padding:10px 0; }
.seat-row { display:flex; justify-content:center; margin:2px 0; position:relative; }
.seat-aisle { width:30px; }
.seat-icon { width:38px; height:38px; margin:1px; border-radius:4px; cursor:pointer; display:flex; flex-direction:column; align-items:center; justify-content:center; font-size:10px; color:#fff; position:relative; transition:outline 0.15s; }
.seat-icon:hover { outline:2px solid #333; z-index:1; }
.seat-label { font-weight:bold; font-size:11px; line-height:1; }
.seat-price { font-size:9px; line-height:1; margin-top:1px; }
.seat-selected { outline:3px solid #22c55e !important; z-index:2; }
.seat-selected-other { outline:3px solid #f59e0b !important; pointer-events:none; }
.seat-sign { position:absolute; font-size:9px; font-weight:bold; color:#999; white-space:nowrap; }
.seat-exit-l { left:-38px; top:50%; transform:translateY(-50%); }
.seat-exit-r { right:-38px; top:50%; transform:translateY(-50%); }
.seat-wing-l { left:-38px; top:50%; transform:translateY(-50%); color:#bbb; }
.seat-wing-r { right:-38px; top:50%; transform:translateY(-50%); color:#bbb; }
.seat-loading { display:flex; font-size:15px; font-weight:bold; justify-content:center; align-items:center; height:200px; color:var(--muted); }
.seat-tooltip { position:absolute; bottom:calc(100% + 6px); left:50%; transform:translateX(-50%); background:#333; color:#fff; padding:4px 8px; border-radius:4px; font-size:11px; white-space:nowrap; z-index:10; pointer-events:none; }

/* Service selection popup */
.svc-popup { position:absolute; z-index:100; background:#fff; border:1px solid #ddd; border-radius:8px; box-shadow:0 4px 16px rgba(0,0,0,0.15); width:420px; max-height:350px; overflow-y:auto; }
.svc-search { width:100%; padding:10px 12px; border:none; border-bottom:1px solid #eee; font-size:14px; outline:none; box-sizing:border-box; }
.svc-search::placeholder { color:#aaa; }
.svc-item { display:flex; align-items:center; padding:10px 12px; cursor:pointer; border-bottom:1px solid #f5f5f5; font-size:14px; }
.svc-item:hover { background:#f8f8f8; }
.svc-item--selected { background:#e8f0fe; color:#0068dc; }
.svc-item--selected:hover { background:#d6e4fa; }
.svc-item--disabled { opacity:0.4; pointer-events:none; }
.svc-check { width:16px; height:16px; margin-right:10px; flex-shrink:0; border:2px solid #999; border-radius:3px; }
.svc-item--selected .svc-check { background:#0068dc; border-color:#0068dc; }
.svc-selected-list { font-size:12px; color:#555; margin-top:4px; line-height:1.6; }

/* ─── Reservations page ───────────────────────────────────────────────────── */

.fin-form { max-width: 700px; padding: 20px 0; }
.fin-section { margin-bottom: 24px; border: 1px solid #e0e0e0; border-radius: 6px; overflow: hidden; }
.fin-section-title { padding: 10px 16px; font-weight: 700; font-size: 13px; background: #f5f6fa; border-bottom: 1px solid #e0e0e0; color: #05164d; }
.fin-row { display: flex; align-items: center; border-bottom: 1px solid #f0f0f0; }
.fin-row:last-child { border-bottom: none; }
.fin-label { width: 220px; flex-shrink: 0; padding: 8px 16px; font-size: 13px; color: #444; }
.fin-value { flex: 1; padding: 4px 12px 4px 0; }
.fin-value .fin-input { width: 100%; border: none; background: transparent; font-size: 13px; color: #1a1a2e; padding: 4px 0; outline: none; }
.fin-value .fin-input:focus { background: #f8f9fb; border-radius: 4px; padding: 4px 6px; }
.fin-value .fin-cb { width: 16px; height: 16px; cursor: pointer; }

.res-section-page { padding: 30px 0; }
.res-page-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.res-page-title { font-size: 22px; font-weight: 600; color: #05164d; margin: 0; }
.res-page-count { font-size: 12px; color: #888; font-weight: 500; }
.res-empty { text-align: center; padding: 40px 20px; color: #888; font-size: 15px; }

/* Filter bar — search input + status select */
.res-filter-bar { display: flex; gap: 10px; margin-bottom: 14px; align-items: center; flex-wrap: wrap; }
.res-filter-field { position: relative; flex: 1 1 280px; min-width: 200px; }
.res-filter-icon { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: #999; font-size: 18px; pointer-events: none; }
.res-filter-input {
    width: 100%; padding: 8px 32px 8px 36px;
    border: 1px solid #d8d8e0; border-radius: 6px;
    font-size: 14px; color: #222; background: #fff;
    outline: none; transition: border-color 0.15s;
    font-family: inherit;
}
.res-filter-input:focus { border-color: #05164d; }
.res-filter-clear {
    position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
    width: 22px; height: 22px; border: none; background: transparent;
    color: #999; font-size: 18px; line-height: 1; cursor: pointer;
    border-radius: 11px;
}
.res-filter-clear:hover { background: #f0f0f0; color: #333; }
.res-filter-status {
    padding: 8px 28px 8px 12px;
    border: 1px solid #d8d8e0; border-radius: 6px;
    font-size: 14px; color: #222; background: #fff;
    outline: none; cursor: pointer; font-family: inherit;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23666'%3E%3Cpath d='M5 8l5 5 5-5H5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 6px center;
    background-size: 16px;
    min-width: 160px;
}
.res-filter-status:focus { border-color: #05164d; }

@media (max-width: 720px) {
    .res-filter-bar { gap: 8px; }
    .res-filter-status { flex: 1 1 auto; min-width: 0; }
}

.res-card { border: 1px solid #e0e0e0; border-radius: 8px; margin-bottom: 12px; background: #fff; overflow: hidden; transition: box-shadow 0.15s; }
.res-card:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.res-card--open { box-shadow: 0 2px 12px rgba(0,0,0,0.12); }
.res-card--open .res-chevron { transform: rotate(180deg); }

.res-header { display: flex; align-items: center; gap: 10px; padding: 11px 16px; cursor: pointer; flex-wrap: nowrap; }
.res-header:hover { background: #f8f9fb; }
.res-header-main { flex: 1; min-width: 0; }
.res-dir { display: flex; align-items: baseline; gap: 12px; margin-bottom: 3px; }
.res-dir:last-of-type { margin-bottom: 0; }
.res-dir-route { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: #1a1a2e; }
.res-dir-airport { letter-spacing: 0.3px; }
.res-dir-airport-name { font-weight: 400; color: #666; font-size: 12px; letter-spacing: 0; }
.res-dir-arrow { color: #05164d; font-size: 10px; }
.res-dir-when { display: flex; align-items: baseline; gap: 6px; }
.res-dir-date { font-size: 13px; font-weight: 600; color: #333; }
.res-dir-time { font-size: 12px; color: #666; }
.res-meta { display: flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 11px; color: #666; flex-wrap: wrap; }
.res-meta-sep { color: #ccc; }
.res-airline { font-weight: 600; color: #05164d; }
.res-pnr { font-weight: 600; color: #555; }
.res-pax { font-weight: 600; color: #333; text-transform: uppercase; letter-spacing: 0.3px; }
.res-price { font-weight: 700; font-size: 14px; color: #05164d; white-space: nowrap; flex-shrink: 0; }
.res-chevron { color: #aaa; transition: transform 0.2s; font-size: 12px; flex-shrink: 0; }

.res-badge { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px; flex-shrink: 0; }
.res-badge--ticketed { background: #d4edda; color: #155724; }
.res-badge--reserved { background: #fff3cd; color: #856404; }
.res-badge--cancelled { background: #f8d7da; color: #721c24; }
.res-badge--paying { background: #d1ecf1; color: #0c5460; }
.res-badge--pay_fail { background: #f8d7da; color: #721c24; }
.res-badge--unbooked { background: #e2e3e5; color: #383d41; }

.res-body { padding: 6px 16px 16px; }
.res-body .ticket_header { display: none; }
.res-actions { display: flex; gap: 8px; padding: 8px 0 14px; flex-wrap: wrap; }
.res-actions .ticket-action-btn { padding: 6px 14px; font-size: 13px; display: inline-flex; align-items: center; gap: 6px; }
.res-actions .ticket-action-btn .mi { font-size: 16px; }

/* Mobile — restructure header so badge + price sit on the top row and
   directions/meta stack below the full width. Uses flex order on the
   existing markup, no HTML change needed. */
@media (max-width: 720px) {
    .res-header { flex-wrap: wrap; gap: 8px 10px; padding: 10px 12px; align-items: flex-start; }
    .res-badge       { order: 1; }
    .res-price       { order: 2; margin-left: auto; }
    .res-chevron     { order: 3; align-self: center; }
    .res-header-main { order: 4; flex: 1 1 100%; min-width: 0; margin-top: 4px; }

    .res-dir { flex-direction: column; gap: 1px; margin-bottom: 6px; }
    .res-dir-route { font-size: 14px; flex-wrap: wrap; }
    .res-dir-when  { font-size: 12px; }
    .res-meta { margin-top: 2px; }
}

/* ─── Footer ─────────────────────────────────────────────────────────────── */

.site-footer {
    background: #fff;
    border-top: 1px solid var(--border);
    margin-top: auto;
}

.footer-top {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
    gap: 48px;
    padding: 56px 0;
}

.footer-col-title {
    margin: 0 0 18px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--navy);
}

.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-link {
    font-size: 14px;
    color: var(--text);
    text-decoration: none;
    transition: color 0.15s;
}
.footer-link:hover { color: var(--navy); }

.footer-brand { min-width: 220px; }
.footer-contact {
    font-style: normal;
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-width: 260px;
}
.footer-contact-line {
    font-size: 14px;
    color: var(--text);
    text-decoration: none;
    transition: color 0.15s;
}
a.footer-contact-line:hover { color: var(--navy); }
.footer-license {
    font-size: 13px;
    line-height: 1.5;
    color: var(--muted);
}

.footer-bottom {
    background: var(--navy);
    color: rgba(255, 255, 255, 0.65);
}
.footer-bottom .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px 32px;
    flex-wrap: wrap;
    padding-top: 20px;
    padding-bottom: 20px;
}
.footer-copy { font-size: 13px; }
.footer-legal {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 28px;
}
.footer-legal a {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    transition: color 0.15s;
}
.footer-legal a:hover { color: #fff; }

.footer-lang {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
}
.footer-lang a {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    transition: color 0.15s;
}
.footer-lang a:hover { color: #fff; }
.footer-lang a.footer-lang--current { color: #fff; font-weight: 600; }

@media (max-width: 900px) {
    .footer-top {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 40px;
        padding: 40px 0;
    }
    .footer-brand {
        grid-column: span 2;
        border-top: 1px solid var(--border);
        padding-top: 28px;
    }
}

@media (max-width: 560px) {
    .footer-top {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .footer-brand { grid-column: auto; }
    .footer-bottom .container {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

@media print {
    .site-header,
    .site-footer,
    .search-section,
    .promo-section,
    .pricing-bar,
    .ticket-actions,
    .res-page-head,
    .res-filter-bar,
    .res-empty,
    .res-actions { display: none !important; }

    /* On /reservations: print only the card whose print button was
       clicked (marked with --printing by the JS handler), not every
       expanded accordion. */
    .res-card { border: none !important; box-shadow: none !important; margin: 0 !important; page-break-inside: avoid; }
    .res-card:not(.res-card--printing) { display: none !important; }
    .res-card--printing .res-header { display: none !important; }
    .res-card--printing .res-body { display: block !important; padding: 0 !important; }
}

/* ──────────────────────────────────────────────────────────────────────────────
   Content editor modal
   ────────────────────────────────────────────────────────────────────────────── */

.content-modal-overlay {
    position: fixed; inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1500;
    display: flex; align-items: flex-start; justify-content: center;
    padding: 40px 16px;
    overflow-y: auto;
}
.content-modal {
    background: #fff;
    border-radius: 8px;
    width: 100%; max-width: 920px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    display: flex; flex-direction: column;
}
.content-modal-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border);
}
.content-modal-title { margin: 0; font-size: 18px; }
.content-modal-close {
    background: none; border: 0; font-size: 28px; line-height: 1; cursor: pointer; color: #666;
}
.content-modal-close:hover { color: #000; }
.content-modal-body { padding: 18px 20px; }
.content-modal-row { margin-bottom: 14px; }
.content-modal-row--inline { display: flex; align-items: center; gap: 24px; }
.content-modal-label {
    display: block; font-size: 12px; font-weight: 600; color: #444; margin-bottom: 6px;
    text-transform: uppercase; letter-spacing: 0.4px;
}
.content-modal-input {
    width: 100%; padding: 8px 10px;
    border: 1px solid var(--border); border-radius: 4px; font-size: 14px;
    font-family: inherit;
}
.content-modal-input--narrow { width: 80px; }
.content-modal-checkbox {
    display: inline-flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer;
    margin-top: 22px;
}
.content-modal-img { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.content-modal-img img {
    max-width: 220px; max-height: 120px; border: 1px solid var(--border); border-radius: 4px;
    object-fit: cover;
}
.content-modal-langtabs {
    display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin: 18px 0 14px;
}
.content-modal-langtab {
    background: none; border: 0; padding: 8px 14px; cursor: pointer; font-family: inherit; font-size: 14px;
    color: #666; border-bottom: 2px solid transparent;
}
.content-modal-langtab.active { color: var(--navy); border-bottom-color: var(--navy); font-weight: 600; }
.content-modal-langpane { padding-top: 4px; }
.content-modal-body-editor {
    min-height: 320px; padding: 14px;
    border: 1px solid var(--border); border-radius: 4px;
    font-size: 15px; line-height: 1.6; outline: none;
    background: #fff;
}
.content-modal-body-editor:focus { border-color: var(--navy); }
.content-modal-body-editor img { max-width: 100%; }
/* In the editor, keep FAQ accordions fully expanded so both question and
   answer stay visible and editable regardless of open state. */
.content-modal-body-editor details { border: 1px dashed var(--border); border-radius: 4px; padding: 8px 12px; margin: 10px 0; }
.content-modal-body-editor details > *:not(summary) { display: block !important; }
.content-modal-body-editor summary { font-weight: 700; color: var(--navy); cursor: text; margin-bottom: 6px; }
.content-modal-footer {
    display: flex; justify-content: flex-end; gap: 10px;
    padding: 14px 20px; border-top: 1px solid var(--border);
}
.content-modal-btn {
    padding: 8px 16px; border-radius: 4px; cursor: pointer; font-family: inherit; font-size: 14px;
    border: 1px solid transparent;
}
.content-modal-btn--ghost { background: #fff; border-color: var(--border); color: #333; }
.content-modal-btn--ghost:hover { background: var(--light); }
.content-modal-btn--primary { background: var(--navy); color: #fff; }
.content-modal-btn--primary:hover { opacity: 0.9; }

/* ──────────────────────────────────────────────────────────────────────────────
   styleable.js — floating toolbar & inline image controls
   ────────────────────────────────────────────────────────────────────────────── */

.styleable_menu {
    position: absolute;
    background: #1f2937;
    color: #fff;
    border-radius: 4px;
    padding: 4px 6px;
    display: inline-flex; align-items: center; gap: 2px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    z-index: 2000;
    white-space: nowrap;
}
.styleable_menu_item {
    display: inline-flex; align-items: center; justify-content: center;
    width: 28px; height: 28px;
    cursor: pointer;
    color: #fff;
    border-radius: 3px;
}
.styleable_menu_item:hover { background: rgba(255, 255, 255, 0.15); }
.styleable_menu_item i { font-size: 18px; }
.styleable_menu_separator {
    display: inline-block; width: 1px; height: 18px;
    background: rgba(255, 255, 255, 0.25);
    margin: 0 4px;
}
.styleable_menu_lnktxt,
.styleable_menu_grptxt {
    padding: 6px 8px; border-radius: 3px; border: 0;
    font-size: 13px; color: #111; background: #fff;
}
.styleable_menu_loading {
    padding: 6px 10px; cursor: pointer; font-size: 13px;
    color: #fff; background: rgba(255, 255, 255, 0.15); border-radius: 3px;
    margin-left: 4px;
}
.styleable_menu_loading:hover { background: rgba(255, 255, 255, 0.3); }

.styleable_image { max-width: 100%; border-radius: 2px; }
.styleable_image_float   { float: left;  margin: 0 14px 8px 0; max-width: 50%; }
.styleable_image_float_r { float: right; margin: 0 0 8px 14px; max-width: 50%; }
.styleable_image_menu {
    position: absolute; z-index: 1900;
    background: #1f2937; color: #fff;
    padding: 4px; border-radius: 4px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}
.styleable_image_menu_cont { display: inline-flex; gap: 2px; }
.styleable_image_control {
    width: 28px; height: 28px;
    display: inline-flex; align-items: center; justify-content: center;
    cursor: pointer; color: #fff; border-radius: 3px;
}
.styleable_image_control:hover { background: rgba(255, 255, 255, 0.15); }
.styleable_image_control i { font-size: 16px; }

.itemGroupContainer {
    border: 1px dashed #94a3b8; padding: 10px 12px 8px; border-radius: 4px; margin: 8px 0;
    position: relative;
}
.itemGroup {
    position: absolute; top: -10px; left: 10px; background: #fff; padding: 0 6px;
    color: #475569; font-size: 12px; font-weight: 600;
}

/* ──────────────────────────────────────────────────────────────────────────────
   Public static page (rendered at /page/<slug>)
   ────────────────────────────────────────────────────────────────────────────── */

.page-section { padding-bottom: 60px; }
.page-hero {
    width: 100%; height: 320px;
    background-size: cover; background-position: center;
    background-color: #eef1f5;
    margin-bottom: 0;
}
/* One shared column so title, jump bar and body all align at the same width. */
.page-inner { max-width: 1140px; margin: 0 auto; padding-top: 36px; }
.page-title { font-size: 32px; font-weight: 700; margin: 0 0 8px; color: var(--navy); }
.page-body { font-size: 16px; line-height: 1.7; color: #333; }
.page-body img { max-width: 100%; height: auto; }
.page-body iframe { max-width: 100%; }
.page-body .page-extlink { color: var(--teal); font-weight: 600; text-decoration: none; }
.page-body .page-extlink::after { content: " \2197"; } /* ↗ */
.page-body .page-extlink:hover { color: var(--navy); }

/* Section headings double as anchors; offset so they clear the sticky jump bar. */
.page-body h2, .page-body h3 { color: var(--navy); scroll-margin-top: 80px; }
.page-body h3 { margin: 24px 0 12px; }
.page-body h2 {
    font-size: 26px;
    font-weight: 700;
    margin: 40px 0 16px;
    padding-top: 28px;
    border-top: 1px solid var(--border);
}
.page-body > h2:first-child { border-top: none; padding-top: 0; margin-top: 0; }

/* ─── Section jump bar ───────────────────────────────────────────────────── */
.page-jumpbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--light); /* match the page background */
    border-bottom: 1px solid var(--border);
    margin: 12px 0 28px;
}
.page-jumpbar-inner { display: flex; flex-wrap: wrap; }
.page-jumplink {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 0;
    margin-right: 28px;
    font-size: 14px;
    font-weight: 600;
    color: var(--muted);
    text-decoration: none;
    transition: color 0.15s;
}
.page-jumplink-arrow { font-size: 18px; flex: 0 0 auto; }
.page-jumplink:hover,
.page-jumplink.active { color: var(--navy); }

/* Stack vertically when the row would otherwise be cramped. */
@media (max-width: 760px) {
    .page-jumpbar-inner { flex-direction: column; }
    .page-jumplink { margin-right: 0; padding: 12px 2px; border-bottom: 1px solid var(--border); }
    .page-jumplink:last-child { border-bottom: none; }
}

/* ─── FAQ accordion (native <details>) ───────────────────────────────────── */
.page-body details.faq-item {
    border-bottom: 1px solid var(--border);
    scroll-margin-top: 80px;
}
/* Avoid a double line where the last accordion meets the next section's
   top border (or the end of the content). */
.page-body details.faq-item:last-child,
.page-body details.faq-item:has(+ h2) { border-bottom: none; }
.page-body details.faq-item > summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 4px;
    font-size: 17px;
    font-weight: 700;
    color: var(--navy);
}
.page-body details.faq-item > summary::-webkit-details-marker { display: none; }
.page-body details.faq-item > summary::after {
    content: '';
    flex: 0 0 auto;
    width: 9px; height: 9px;
    margin-left: auto;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.2s;
}
.page-body details.faq-item[open] > summary::after { transform: rotate(-135deg); }
.page-body details.faq-item[open] > summary { color: var(--navy); }
.page-body details.faq-item > summary:hover { color: var(--teal); }
.page-body details.faq-item > *:not(summary) {
    padding: 0 4px 24px;
    color: #333;
}
.page-body details.faq-item:target > summary { color: var(--teal); }

/* Inline diagrams inside page content (e.g. baggage dimensions). */
.page-body .bag-figure {
    margin: 8px 0 20px;
    padding: 16px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 6px;
}
.page-body .bag-figure svg { display: block; width: 100%; height: auto; max-width: 460px; margin: 0 auto; }
.page-body .bag-figure figcaption {
    margin-top: 10px;
    font-size: 13px;
    color: var(--muted);
    text-align: center;
}

@media (max-width: 600px) {
    .page-body h2 { font-size: 22px; }
    .page-body details.faq-item > summary { font-size: 16px; }
}


/* ──────────────────────────────────────────────────────────────────────────────
   Multi-city search — leg rows + leg-by-leg results
   ────────────────────────────────────────────────────────────────────────────── */

#multi-legs { border-bottom: 1px solid var(--border); }

.multi-leg-row {
    display: flex;
    align-items: stretch;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--border);
    position: relative;
}
.multi-leg-row:last-child { border-bottom: none; }
.multi-leg-row .airports-group { flex: 3; min-width: 300px; }
.multi-leg-row .dates-group    { flex: 2; min-width: 200px; border-right: none; }

.multi-leg-remove {
    align-self: center;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--muted);
    padding: 8px 14px;
}
.multi-leg-remove:hover { color: var(--navy); }
.multi-leg-remove--disabled { opacity: 0.25; pointer-events: none; }
.multi-leg-remove .mi { font-size: 18px; }

.multi-legs-actions { padding: 10px 16px; }
.add-leg-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: 1.5px dashed var(--border);
    border-radius: 50px;
    padding: 7px 16px;
    font-size: 12px;
    font-weight: 600;
    color: var(--navy);
    cursor: pointer;
    font-family: inherit;
}
.add-leg-btn:hover { border-color: var(--navy); }
.add-leg-btn .mi { font-size: 16px; }

/* Breadcrumbs above the results list */
.multi-breadcrumbs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}
.multi-crumb {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    background: #fff;
    padding: 8px 14px;
    font-family: inherit;
    text-align: left;
    cursor: default;
}
.multi-crumb--done { cursor: pointer; border-color: var(--navy); }
.multi-crumb--done:hover { background: #f4f7fb; }
.multi-crumb--active { border-color: var(--gold, #c9a227); box-shadow: 0 0 0 2px rgba(201,162,39,0.15); }
.multi-crumb--pending { opacity: 0.55; }
.multi-crumb-step {
    width: 22px; height: 22px;
    border-radius: 50%;
    background: var(--navy);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
}
.multi-crumb--pending .multi-crumb-step { background: var(--muted); }
.multi-crumb-body { display: flex; flex-direction: column; gap: 1px; }
.multi-crumb-route { font-size: 13px; font-weight: 700; color: var(--text); }
.multi-crumb-sub   { font-size: 11px; color: var(--muted); }
.multi-crumb-edit  { font-size: 15px; color: var(--muted); }
.multi-crumb--done:hover .multi-crumb-edit { color: var(--navy); }

/* Select button inside an expanded group row */
.multi-pick-wrap { padding: 12px 16px; text-align: right; }
.multi-pick-btn--big {
    background: var(--navy);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 10px 22px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
}
.multi-pick-btn--big:hover { opacity: 0.92; }

@media (max-width: 700px) {
    .multi-leg-row { flex-direction: column; }
    .multi-leg-row .airports-group,
    .multi-leg-row .dates-group { min-width: 100%; border-right: none; }
    .multi-leg-remove {
        position: absolute;
        top: 4px; right: 4px;
        padding: 6px;
    }
    .multi-breadcrumbs { gap: 6px; }
    .multi-crumb { padding: 6px 10px; }
}

/* ── Set-password / invite-acceptance page ───────────────────────────────── */
.auth-page { padding: 60px 0; }
.auth-page-card {
    max-width: 420px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 32px 28px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}
.auth-page-title { font-size: 22px; color: var(--navy); margin: 0 0 12px; }
.auth-page-msg { font-size: 14px; color: var(--muted); margin: 0 0 22px; line-height: 1.5; }
.auth-submit--link { display: block; text-align: center; text-decoration: none; }
