/* Sky Booking Engine */


*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

: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);
}

body {
    font-family: Helvetica, Arial, sans-serif;
    font-weight: 300;
    background: var(--light);
    color: var(--text);
    font-size: 14px;
}

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

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

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

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

.logo {
    font-size: 26px;
    font-weight: 600;
    color: #13177d;
    letter-spacing: 3px;
    text-decoration: none;
}

.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-btn {
    font-family: Helvetica, Arial, sans-serif;
    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;
    padding: 6px 16px;
    border: none;
    background: var(--navy);
    color: #fff;
}
.nav-btn:hover { background: #0a2370; }
.nav-btn--ghost {
    background: transparent;
    color: var(--muted);
    border: 1px solid var(--border);
}
.nav-btn--ghost:hover { background: var(--light); color: var(--navy); }

/* Hamburger — hidden on desktop */
.nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    padding: 6px;
    background: none;
    border: 1px solid var(--border);
    border-radius: 2px;
    cursor: pointer;
    margin-left: 8px;
}
.nav-hamburger span {
    display: block;
    height: 2px;
    background: var(--muted);
    border-radius: 1px;
    transition: background 0.15s;
}
.nav-hamburger:hover span { background: var(--navy); }

/* Accordion — hidden by default, shown on mobile */
.nav-accordion {
    display: none;
    flex-direction: column;
    border-top: 1px solid var(--border);
    background: #fff;
}
.nav-accordion.open { display: flex; }
.nav-accordion-link {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--muted);
    text-decoration: none;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border);
}
.nav-accordion-link:hover,
.nav-accordion-link.active { color: var(--navy); background: var(--light); }

@media (max-width: 640px) {
    .nav-links-desktop { display: none; }
    .nav-hamburger { display: flex; }
}

/* ─── 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: Helvetica, Arial, sans-serif;
    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: Helvetica, Arial, sans-serif;
    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: Helvetica, Arial, sans-serif;
    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 {
    background-image: url('../img/skyline.jpg');
    background-size: cover;
    background-position: center 30%;
    background-repeat: no-repeat;
    padding: 60px 0 80px;
    position: relative;
}

.search-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(5, 22, 77, 0.45);
}

.search-section .container {
    position: relative;
    z-index: 10;
}

.search-section-title {
    color: #fff;
    font-size: 28px;
    font-weight: 300;
    text-align: center;
    margin-bottom: 28px;
    text-shadow: 0 2px 12px rgba(0,0,0,0.4);
    letter-spacing: 0.5px;
}

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

/* Trip type tabs */
.trip-type {
    display: flex;
    gap: 0;
    border-bottom: 1px solid var(--border);
    padding: 0 20px;
}

.trip-type-opt {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 14px 16px 12px;
    border-bottom: 2px solid transparent;
    transition: color 0.15s, border-color 0.15s;
}

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

/* 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: 4px;
    flex: 1;
    position: relative;
    padding: 14px 16px;
    border-right: 1px solid var(--border);
}

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

.field label {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--teal);
}

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

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

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

/* 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; }

.ac-dropdown {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 2px;
    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);
    left: 0;
    width: 260px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 2px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    z-index: 100;
    padding: 12px 16px;
    display: none;
}
.pax-dropdown.open { display: block; }

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

.pax-info { display: flex; flex-direction: column; }
.pax-info span { font-weight: 400; font-size: 13px; }
.pax-info small { color: var(--muted); font-size: 11px; }

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

.pax-btn {
    width: 28px; height: 28px;
    border: 1.5px solid var(--border);
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    font-size: 16px;
    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: 600; min-width: 16px; text-align: center; color: var(--navy); }

.cabin-row { flex-direction: column; align-items: stretch; gap: 6px; }
.cabin-row label { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.8px; color: var(--teal); }
.cabin-row select {
    border: none;
    padding: 0;
    font-size: 14px;
    font-family: Helvetica, Arial, sans-serif;
    outline: none;
    background: transparent;
    color: var(--text);
    cursor: pointer;
}

/* Search button */
.search-btn {
    background: var(--amber);
    color: #fff;
    border: none;
    border-radius: 0;
    padding: 0 32px;
    font-size: 14px;
    font-weight: 600;
    font-family: Helvetica, Arial, sans-serif;
    cursor: pointer;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background 0.15s;
    align-self: stretch;
    min-height: 56px;
}
.search-btn:hover { background: var(--amber-h); }

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

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

.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: sticky;
    top: 20px;
    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; }

.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: #fff; }

.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: Helvetica, Arial, sans-serif;
    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: Helvetica, Arial, sans-serif;
    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: Helvetica, Arial, sans-serif;
    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: Helvetica, Arial, sans-serif;
}

.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);
}

.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;
}

.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: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 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: Helvetica, Arial, sans-serif;
    font-size: 13px;
    font-weight: 300;
    color: var(--text);
    outline: none;
    min-width: 80px;
}

.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-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: Helvetica, Arial, sans-serif;
    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: Helvetica, Arial, sans-serif;
    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: Helvetica, Arial, sans-serif;
    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 10px;
    margin-bottom: 4px;
    border: 1px solid var(--border);
    border-bottom: 2px solid var(--border);
}

.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: 160px;
    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: Helvetica, Arial, sans-serif;
    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: 12px;
    color: var(--muted);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2px 12px;
    white-space: nowrap;
}

/* 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-fare-col {
    flex: 1;
    min-width: 0;
}

.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: Helvetica, Arial, sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
    white-space: nowrap;
}
.offer-select-btn:hover { background: #0a2670; }

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

@media (max-width: 900px) {
    .results-layout { flex-direction: column; }
    .filters-panel { width: 100%; position: static; }
    .flight-main { flex-wrap: wrap; }
    .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; }
    .offer-row { flex-direction: column; gap: 12px; align-items: stretch; }
    .offer-center-col { width: 100%; flex-direction: row; justify-content: center; gap: 16px; padding: 8px 0; }
    .offer-fare-col { padding: 0; }
}

@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; }
    .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-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;}
    .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: 14px 12px; }
    .offer-section { padding: 10px 12px; }
    .offer-badges { gap: 4px; }
    .offer-badge { font-size: 11px; padding: 3px 8px; }
    .offer-price-big { font-size: 18px; }
}

@media (max-width: 700px) {
    .airports-group, .dates-group, .pax-group { border-right: none; border-bottom: 1px solid var(--border); }
    .search-btn { width: 100%; min-height: 48px; }
    .search-section-title { font-size: 20px; }
}

@media (max-width: 600px) {
    .search-row { flex-direction: column; }
    .airports-group, .dates-group, .pax-group { min-width: 100%; }
}

/* ─── 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;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.airport-modal-back {
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: var(--navy);
    padding: 0;
    line-height: 1;
    display: flex;
    align-items: center;
}

.airport-modal-title {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--teal);
}

.airport-modal-search {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.airport-modal-search input {
    width: 100%;
    border: none;
    outline: none;
    font-size: 18px;
    font-family: Helvetica, Arial, sans-serif;
    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;
}

.airport-modal-results .ac-item {
    padding: 14px 16px;
    font-size: 15px;
    border-bottom: 1px solid var(--light);
}

/* ─── 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-header { margin-bottom: 22px; }
.pricing-header h2 { font-size: 17px; font-weight: 700; margin-bottom: 4px; }
.pricing-offer-meta { font-size: 13px; color: var(--muted); }

/* Direction grid — 1 col one-way, 2 col return */
.pricing-directions { display: grid; grid-template-columns: 1fr; gap: 0; }
.pricing-directions--return { grid-template-columns: 1fr 1fr; }

.pricing-dir {
    padding: 0 24px 0 0;
    border-right: 1px dashed var(--light);
}
.pricing-dir:last-child {
    border-right: none;
    padding-right: 0;
    padding-left: 24px;
}
.pricing-directions:not(.pricing-directions--return) .pricing-dir {
    padding: 0;
}

.pdir-header {
    font-weight: 700;
    font-size: 13px;
    padding: 8px 0;
    border-bottom: 1px dashed var(--light);
    margin-bottom: 14px;
}
.pdir-date { font-weight: 400; color: var(--muted); }

/* Segment — timeline layout */
.pdir-segment { margin-bottom: 14px; }

.pdir-segment-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}
.pdir-segment-logo {
    width: 28px;
    height: 28px;
    object-fit: contain;
    flex-shrink: 0;
}
.pdir-segment-meta { font-size: 12px; color: var(--muted); }

.pdir-timeline {
    margin-left: 38px;
    border-left: 2px solid var(--border);
    padding-left: 12px;
}
.pdir-tl-row {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 0;
    font-size: 13px;
    border-bottom: 1px solid var(--border);
}
.pdir-tl-dep { border-top: 1px solid var(--border); }
.pdir-tl-time { font-weight: 700; font-size: 14px; }
.pdir-tl-date { font-size: 12px; color: var(--muted); }
.pdir-tl-sep     { color: var(--muted); }
.pdir-tl-airport { font-size: 11px; color: var(--muted); }
.pdir-tl-mid {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 0;
    font-size: 12px;
    color: var(--muted);
    border-bottom: 1px solid var(--border);
}

/* Stop row */
.pdir-stop {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--muted);
    margin: 2px 0 10px 42px;
}
.pdir-stop-square {
    width: 12px;
    height: 12px;
    background: #e74c3c;
    flex-shrink: 0;
}

/* Fare box */
.pdir-farebox {
    background: var(--light);
    border-radius: 6px;
    padding: 10px 14px;
    margin-top: 14px;
    font-size: 13px;
}
.farebox-loading { color: var(--muted); font-size: 12px; }
.farebox-class { font-weight: 700; margin-bottom: 8px; }
.farebox-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 3px 0;
    color: var(--dark);
}
.farebox-row img { width: 18px; height: 18px; object-fit: contain; opacity: 0.75; }
.farebox-row i { font-size: 15px; width: 18px; text-align: center; }
.fi-ok   { color: var(--ok); }
.fi-warn { color: var(--warn); }
.fi-no   { color: var(--no); }

/* 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); }

.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;
}

/* 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-title { font-size: 22px; font-weight: 600; margin-bottom: 20px; color: #05164d; }
.res-empty { text-align: center; padding: 40px 20px; color: #888; font-size: 15px; }

.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: 12px; padding: 14px 18px; 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: 14px; margin-bottom: 5px; }
.res-dir:last-of-type { margin-bottom: 2px; }
.res-dir-route { display: flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 700; color: #1a1a2e; white-space: nowrap; }
.res-dir-airport { letter-spacing: 0.3px; }
.res-dir-arrow { color: #05164d; font-size: 10px; }
.res-dir-when { display: flex; align-items: baseline; gap: 8px; }
.res-dir-date { font-size: 14px; font-weight: 600; color: #333; }
.res-dir-time { font-size: 13px; color: #666; }
.res-meta { display: flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 12px; 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-price { font-weight: 700; font-size: 15px; 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: 3px 10px; border-radius: 12px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; 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-body { padding: 8px 18px 18px; }
.res-body .ticket_header { display: none; }

@media (max-width: 640px) {
    .res-header { gap: 8px; padding: 12px 14px; flex-wrap: wrap; }
    .res-dir { flex-wrap: wrap; gap: 6px; }
    .res-dir-route { font-size: 14px; }
}

@media print {
    .site-header,
    .search-section,
    .pricing-bar,
    .ticket-actions { display: none !important; }
}
