/**
 * Amadeus Flight Booking — Frontend Styles
 *
 * Design tokens use CSS custom properties so themes can override them
 * by simply redefining the variables on :root or .afb-widget.
 *
 * Layout follows a mobile-first approach with a two-column layout
 * (sidebar + main) at ≥ 768 px.
 */

/* ── Design Tokens ─────────────────────────────────────────────────────────── */
:root {
    --afb-primary:       #0066cc;
    --afb-primary-dark:  #004999;
    --afb-secondary:     #f5f5f5;
    --afb-accent:        #ff6b00;
    --afb-text:          #1a1a2e;
    --afb-text-light:    #555;
    --afb-border:        #dde2e8;
    --afb-radius:        8px;
    --afb-radius-lg:     14px;
    --afb-shadow:        0 2px 12px rgba(0,0,0,.08);
    --afb-shadow-hover:  0 6px 24px rgba(0,102,204,.18);
    --afb-success:       #16a34a;
    --afb-error:         #dc2626;
    --afb-warning:       #d97706;
    --afb-font:          -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --afb-transition:    .18s ease;
}

/* ── Base Widget Wrapper ────────────────────────────────────────────────────── */
.afb-widget {
    font-family: var(--afb-font);
    color: var(--afb-text);
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
}

.afb-widget * { box-sizing: border-box; }

.afb-widget-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0 0 1.2rem;
    color: var(--afb-text);
}

/* ── Search Card ────────────────────────────────────────────────────────────── */
.afb-search-card {
    background: #fff;
    border-radius: var(--afb-radius-lg);
    box-shadow: var(--afb-shadow);
    padding: 28px 28px 20px;
    margin-bottom: 24px;
}

/* ── Trip-type toggle ───────────────────────────────────────────────────────── */
.afb-trip-type {
    display: flex;
    gap: 20px;
    margin-bottom: 18px;
    font-size: .95rem;
}
.afb-trip-type label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-weight: 500;
}
.afb-trip-type input[type="radio"] { accent-color: var(--afb-primary); }

/* ── Form Rows / Groups ─────────────────────────────────────────────────────── */
.afb-form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 14px;
    align-items: flex-end;
}
.afb-form-group {
    flex: 1 1 160px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.afb-form-group label {
    font-size: .82rem;
    font-weight: 600;
    color: var(--afb-text-light);
    text-transform: uppercase;
    letter-spacing: .04em;
}
.afb-input {
    border: 1.5px solid var(--afb-border);
    border-radius: var(--afb-radius);
    padding: 9px 12px;
    font-size: .95rem;
    font-family: inherit;
    color: var(--afb-text);
    background: #fff;
    transition: border-color var(--afb-transition), box-shadow var(--afb-transition);
    width: 100%;
}
.afb-input:focus {
    outline: none;
    border-color: var(--afb-primary);
    box-shadow: 0 0 0 3px rgba(0,102,204,.12);
}

/* ── Swap button ────────────────────────────────────────────────────────────── */
.afb-swap-btn {
    background: #eef1f5;
    border: none;
    border-radius: 50%;
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.2s ease;
    flex-shrink: 0;
    color: #6a7181;
}
.afb-swap-btn:hover { background: #10244c; color: #fff; transform: rotate(180deg); }

/* ── Autocomplete ───────────────────────────────────────────────────────────── */
.afb-autocomplete-wrap { position: relative; }

/*
 * Theme prototype uses .search-widget { overflow: hidden } (rounded card), which
 * clips position:absolute dropdowns. Allow them to paint outside for Amadeus UI.
 */
#afb-flight-search .search-widget,
#afb-flight-search .search-widget__fields,
#afb-flight-search .search-widget__grid,
#afb-flight-search .search-widget__field.afb-autocomplete-wrap,
.hero__search .search-widget,
.hero__search .search-widget__fields,
.hero__search .search-widget__grid,
.hero__search .search-widget__field.afb-autocomplete-wrap {
    overflow: visible;
}

.afb-autocomplete-results {
    position: absolute;
    top: calc(100% + 0.375rem);
    left: 0;
    min-width: 100%;
    width: max-content;
    max-width: 28rem;
    z-index: 1000;
    background: #fff;
    border: 1px solid #eef1f5;
    border-radius: 0.75rem;
    box-shadow: 0 8px 32px rgba(21, 28, 40, 0.12), 0 2px 8px rgba(21, 28, 40, 0.06);
    max-height: 260px;
    overflow: hidden;
    overflow-y: auto;
}
@media (max-width: 767px) {
    .afb-autocomplete-results {
        position: fixed;
        left: 1rem;
        right: 1rem;
        top: auto;
        width: auto;
        max-width: none;
        min-width: 0;
        max-height: 50vh;
        border-radius: 0.75rem;
    }
}
.afb-autocomplete-results:empty { display: none; }
.afb-autocomplete-item {
    padding: 0.625rem 0.875rem;
    cursor: pointer;
    font-size: 0.8125rem;
    font-weight: 500;
    display: flex;
    gap: 0.625rem;
    align-items: center;
    border-bottom: none;
    color: #151c28;
    transition: background 0.15s ease;
}
.afb-autocomplete-item:hover,
.afb-autocomplete-item.is-active {
    background: #10244c;
    color: #fff;
}
.afb-autocomplete-item:hover .afb-autocomplete-code,
.afb-autocomplete-item.is-active .afb-autocomplete-code {
    color: #ef6a39;
}
.afb-autocomplete-item:hover .afb-autocomplete-city,
.afb-autocomplete-item.is-active .afb-autocomplete-city {
    color: rgba(255, 255, 255, 0.6);
}
.afb-autocomplete-code {
    font-family: "Space Grotesk", sans-serif;
    font-weight: 700;
    font-size: 0.875rem;
    color: #10244c;
    min-width: 2.25rem;
    transition: color 0.15s ease;
}
.afb-autocomplete-city {
    font-size: 0.75rem;
    color: #6a7181;
    transition: color 0.15s ease;
}
.afb-autocomplete-header {
    padding: 0.5rem 0.875rem 0.375rem;
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #6a7181;
}

/* ── Buttons ────────────────────────────────────────────────────────────────── */
.afb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 24px;
    border-radius: var(--afb-radius);
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    border: none;
    transition: background var(--afb-transition), box-shadow var(--afb-transition), transform var(--afb-transition);
    text-decoration: none;
}
.afb-btn--primary {
    background: var(--afb-primary);
    color: #fff;
}
.afb-btn--primary:hover {
    background: var(--afb-primary-dark);
    box-shadow: var(--afb-shadow-hover);
    transform: translateY(-1px);
}
.afb-btn--secondary {
    background: var(--afb-secondary);
    color: var(--afb-text);
    border: 1.5px solid var(--afb-border);
}
.afb-btn--secondary:hover { background: #e8edf3; }
.afb-btn--accent { background: var(--afb-accent); color: #fff; }
.afb-btn--accent:hover { background: #e05e00; }
.afb-btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }

/* ── Spinner ────────────────────────────────────────────────────────────────── */
.afb-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: afb-spin .7s linear infinite;
}
@keyframes afb-spin { to { transform: rotate(360deg); } }

/* ── Results Layout ─────────────────────────────────────────────────────────── */
.afb-results-wrap {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 20px;
    align-items: start;
}
.afb-results-wrap[hidden] {
    display: none;
}
@media (max-width: 768px) {
    .afb-results-wrap { grid-template-columns: 1fr; }
}

/* ── Sidebar Filters ────────────────────────────────────────────────────────── */
.afb-filters {
    background: #fff;
    border: 1.5px solid var(--afb-border);
    border-radius: var(--afb-radius-lg);
    padding: 20px;
}
.afb-filters-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--afb-border);
}
.afb-filters-title svg {
    flex-shrink: 0;
}
.afb-filter-group {
    margin-bottom: 18px;
}
.afb-filter-group h4 {
    font-size: .82rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--afb-text-light);
    font-weight: 700;
    margin: 0 0 8px;
}
.afb-filter-group label {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: .9rem;
    cursor: pointer;
    padding: 3px 0;
}
.afb-filter-group input[type="checkbox"] { accent-color: var(--afb-primary); }
.afb-price-range input[type="range"] { width: 100%; accent-color: var(--afb-primary); }
.afb-price-labels {
    display: flex;
    justify-content: space-between;
    font-size: .82rem;
    color: var(--afb-text-light);
    margin-top: 4px;
}

/* ── Sort Bar ───────────────────────────────────────────────────────────────── */
.afb-sort-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    font-size: .9rem;
    color: var(--afb-text-light);
    flex-wrap: wrap;
    gap: 10px;
}
.afb-sort-select { max-width: 210px; }

/* ── Flight Card ────────────────────────────────────────────────────────────── */
.afb-flight-card {
    background: #fff;
    border: 1.5px solid var(--afb-border);
    border-radius: var(--afb-radius-lg);
    padding: 20px 22px;
    margin-bottom: 12px;
    transition: box-shadow var(--afb-transition), border-color var(--afb-transition);
    cursor: default;
}
.afb-flight-card:hover {
    border-color: var(--afb-primary);
    box-shadow: var(--afb-shadow-hover);
}
.afb-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
}
.afb-airline-logo-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}
.afb-airline-logo {
    width: 36px;
    height: 36px;
    object-fit: contain;
}
.afb-airline-name { font-size: .9rem; color: var(--afb-text-light); }

/* ── Flight Segment Info ────────────────────────────────────────────────────── */
.afb-segment {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    min-width: 0;
    flex-wrap: wrap;
}
.afb-time-block { text-align: center; }
.afb-time { font-size: 1.3rem; font-weight: 700; line-height: 1; }
.afb-airport { font-size: .8rem; color: var(--afb-text-light); margin-top: 2px; }
.afb-flight-line {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 80px;
}
.afb-flight-duration { font-size: .82rem; color: var(--afb-text-light); }
.afb-flight-bar {
    width: 100%;
    height: 2px;
    background: var(--afb-border);
    border-radius: 2px;
    position: relative;
}
.afb-flight-bar::before,
.afb-flight-bar::after {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--afb-primary);
}
.afb-flight-bar::before { left: 0; }
.afb-flight-bar::after { right: 0; }
.afb-stops-badge {
    font-size: .78rem;
    font-weight: 600;
    color: var(--afb-text-light);
}
.afb-stops-badge.nonstop { color: var(--afb-success); }

/* ── Amenities / Fare Details ───────────────────────────────────────────────── */
.afb-card-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 12px;
    align-items: center;
}
.afb-badge {
    font-size: .75rem;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 20px;
    background: var(--afb-secondary);
    color: var(--afb-text-light);
}
.afb-badge-cabin   { background: #e0f0ff; color: var(--afb-primary); }
.afb-badge-bag     { background: #fff7ed; color: #9a3412; }
.afb-badge-refund  { background: #f0fdf4; color: var(--afb-success); }
.afb-badge-nonref  { background: #fef2f2; color: var(--afb-error); }

/* ── Price Block ────────────────────────────────────────────────────────────── */
.afb-price-block {
    text-align: right;
    flex-shrink: 0;
}
.afb-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--afb-text);
    line-height: 1;
}
.afb-price-note { font-size: .78rem; color: var(--afb-text-light); margin-top: 2px; }
.afb-card-actions {
    margin-top: 14px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

/* ── Accordion Details ──────────────────────────────────────────────────────── */
.afb-card-details {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px dashed var(--afb-border);
    display: none;
}
.afb-card-details.is-open { display: block; }
.afb-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
    font-size: .87rem;
}
.afb-detail-item label {
    display: block;
    font-size: .78rem;
    color: var(--afb-text-light);
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: 3px;
    font-weight: 600;
}

/* ── Modal ──────────────────────────────────────────────────────────────────── */
.afb-modal { position: fixed; inset: 0; z-index: 99999; }
.afb-modal[hidden] { display: none; }
.afb-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10,20,40,.55);
    backdrop-filter: blur(3px);
}
.afb-modal-inner {
    position: relative;
    background: #fff;
    border-radius: var(--afb-radius-lg);
    max-width: 660px;
    width: 94%;
    margin: 5vh auto;
    padding: 32px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,.3);
}
.afb-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--afb-secondary);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    font-size: 1rem;
    cursor: pointer;
    line-height: 1;
    transition: background var(--afb-transition);
}
.afb-modal-close:hover { background: var(--afb-border); }

/* ── Booking Form ───────────────────────────────────────────────────────────── */
.afb-booking-form h3 { font-size: 1.1rem; font-weight: 700; margin: 0 0 14px; }
.afb-traveler-section {
    border: 1px solid var(--afb-border);
    border-radius: var(--afb-radius);
    padding: 16px;
    margin-bottom: 16px;
}
.afb-traveler-section h4 {
    font-size: .9rem;
    font-weight: 700;
    margin: 0 0 12px;
    color: var(--afb-text-light);
}
.afb-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
@media (max-width: 480px) { .afb-form-grid { grid-template-columns: 1fr; } }

/* ── Offer Summary (in modal) ───────────────────────────────────────────────── */
.afb-offer-summary {
    background: var(--afb-secondary);
    border-radius: var(--afb-radius);
    padding: 14px 16px;
    margin-bottom: 20px;
    font-size: .92rem;
}
.afb-offer-summary-price {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--afb-primary);
    margin-top: 6px;
}

/* ── Price change alert ─────────────────────────────────────────────────────── */
.afb-price-alert {
    background: #fffbeb;
    border: 1px solid #f59e0b;
    border-radius: var(--afb-radius);
    padding: 10px 14px;
    font-size: .88rem;
    color: #92400e;
    margin-bottom: 14px;
}

/* ── Confirmation Screen ────────────────────────────────────────────────────── */
.afb-confirmation {
    text-align: center;
    padding: 40px 24px;
    background: #fff;
    border-radius: var(--afb-radius-lg);
    box-shadow: var(--afb-shadow);
}
.afb-confirmation[hidden] { display: none; }
.afb-confirmation-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--afb-success);
    color: #fff;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
}
.afb-confirmation h2 { font-size: 1.7rem; margin-bottom: 8px; }
.afb-confirmation-details {
    background: var(--afb-secondary);
    border-radius: var(--afb-radius);
    padding: 16px;
    margin: 20px auto;
    max-width: 460px;
    text-align: left;
    font-size: .92rem;
}

/* ── My Bookings Table ──────────────────────────────────────────────────────── */
.afb-my-bookings-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .9rem;
}
.afb-my-bookings-table th,
.afb-my-bookings-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--afb-border);
    text-align: left;
}
.afb-my-bookings-table th {
    background: var(--afb-secondary);
    font-weight: 700;
    font-size: .82rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--afb-text-light);
}

/* ── Status Badges ──────────────────────────────────────────────────────────── */
.afb-status-confirmed { background: #dcfce7 !important; color: #166534 !important; }
.afb-status-cancelled { background: #fee2e2 !important; color: #991b1b !important; }

/* ── Loading / Empty ────────────────────────────────────────────────────────── */
.afb-loading { color: var(--afb-text-light); font-style: italic; }
.afb-notice  { color: var(--afb-text-light); }

/* ── Skeleton loader (search results placeholder) ──────────────────────────── */
@keyframes afb-shimmer {
    0%   { background-position: -400px 0; }
    100% { background-position: 400px 0; }
}
.afb-skeleton-card {
    background: #fff;
    border: 1px solid var(--afb-border, #e5e7eb);
    border-radius: 1.25rem;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1rem;
}
.afb-skeleton-line {
    height: 14px;
    border-radius: 6px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 37%, #f0f0f0 63%);
    background-size: 800px 100%;
    animation: afb-shimmer 1.4s ease infinite;
}
.afb-skeleton-line--lg   { height: 20px; width: 55%; margin-bottom: 14px; }
.afb-skeleton-line--md   { height: 14px; width: 80%; margin-bottom: 10px; }
.afb-skeleton-line--sm   { height: 12px; width: 40%; margin-bottom: 10px; }
.afb-skeleton-line--btn  { height: 38px; width: 120px; border-radius: 8px; margin-top: 8px; margin-left: auto; }
.afb-skeleton-row {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 6px;
}
.afb-skeleton-row .afb-skeleton-line { flex: 1; }
@media (max-width: 767px) {
    .afb-skeleton-card {
        padding: 1rem;
    }
    .afb-skeleton-row {
        flex-wrap: wrap;
        gap: 0.75rem;
    }
    .afb-skeleton-line--lg { width: 70%; }
    .afb-skeleton-line--btn {
        width: 100%;
        margin-left: 0;
    }
}
.afb-skeleton-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    flex-shrink: 0;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 37%, #f0f0f0 63%);
    background-size: 800px 100%;
    animation: afb-shimmer 1.4s ease infinite;
}
.afb-no-results { text-align: center; padding: 36px; color: var(--afb-text-light); }
.afb-no-results-hint { margin-top: 12px; font-size: .92rem; max-width: 36rem; margin-left: auto; margin-right: auto; }
.afb-error-msg {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    border-radius: var(--afb-radius);
    padding: 12px 16px;
    color: var(--afb-error);
    font-size: .92rem;
    margin: 14px 0;
}

/* ── Advanced search toggle ─────────────────────────────────────────────────── */
.afb-advanced { font-size: .9rem; }

/* ── Responsive tweaks ──────────────────────────────────────────────────────── */
@media (max-width: 480px) {
    .afb-search-card { padding: 18px 14px; }
    .afb-card-top    { flex-direction: column; align-items: flex-start; }
    .afb-price-block { text-align: left; }
    .afb-card-actions { justify-content: flex-start; }
    .afb-modal-inner { padding: 20px 16px; }
}

/* ── Theme page integration (wptheme) ───────────────────────────────────────── */
.page-main--afb-search .container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 1.5rem 1rem 2.5rem;
}

.page-main--afb-search .afb-widget {
    max-width: 100%;
}

.page-main--afb-details .afb-flow-details,
.page-main--afb-enquiry .afb-flow-enquiry {
    padding: 1.25rem 0 2.5rem;
}

.afb-notice {
    padding: 1rem 1.25rem;
    background: #fffbeb;
    border: 1px solid #fcd34d;
    border-radius: var(--afb-radius, 8px);
    margin: 1rem 0;
}

.afb-notice p {
    margin: 0;
}

.flight-details__back-wrap {
    margin: 0 0 1rem;
}

.flight-details__back {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    text-decoration: none;
    color: inherit;
    font-weight: 600;
    opacity: 0.85;
}

.flight-details__back:hover {
    opacity: 1;
}

a.book-btn.fd-book-btn {
    display: inline-block;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    border: none;
    font: inherit;
}

#afb-flight-list.afb-loading-disabled {
    opacity: 0.55;
    pointer-events: none;
}
/* ── Full-page redirect overlay ────────────────────────────────────────── */
.afb-redirect-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    animation: afb-overlay-in 0.3s ease forwards;
}
@keyframes afb-overlay-in {
    to { opacity: 1; }
}
.afb-redirect-overlay__spinner {
    width: 44px;
    height: 44px;
    border: 3.5px solid #eef1f5;
    border-top-color: #10244c;
    border-radius: 50%;
    animation: afb-redirect-spin 0.8s linear infinite;
}
@keyframes afb-redirect-spin {
    to { transform: rotate(360deg); }
}
.afb-redirect-overlay__text {
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #151c28;
    letter-spacing: 0.01em;
}
.afb-redirect-overlay__sub {
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 0.8125rem;
    color: #6a7181;
    margin-top: -1rem;
}

/* ── Travelglance theme / search.html alignment ───────────────────────────── */
.afb-widget#afb-flight-search {
    max-width: none;
}
.search-results__search-bar .afb-search-page-title {
    color: #fff;
    font-family: "Space Grotesk", "Segoe UI", sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    margin: 0 0 1rem;
    padding-top: 0.5rem;
}
.afb-visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}
/* Trip toggle uses theme .search-widget__trip-toggle button / .active (see search.html). */
.afb-results-wrap.search-results__layout {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    grid-template-columns: unset;
    padding: 2rem 0;
}
.afb-results-wrap.search-results__layout[hidden] {
    display: none;
}
@media (min-width: 768px) {
    .afb-results-wrap.search-results__layout {
        flex-direction: row;
        align-items: flex-start;
    }
}
/* ── Mobile filter collapse toggle ──────────────────────────────────────── */
#afb-flight-search .afb-filter-toggle {
    display: none;
}
@media (max-width: 767px) {
    #afb-flight-search #afb-filters.search-results__sidebar {
        background: #fff;
        border-radius: 0.75rem;
        border: 1px solid #eef1f5;
        box-shadow: 0 1px 3px rgba(21, 28, 40, 0.06);
        overflow: hidden;
    }
    #afb-flight-search .afb-filter-toggle {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        width: 100%;
        padding: 0.75rem 1rem;
        background: transparent;
        border: none;
        border-radius: 0;
        font-size: 0.875rem;
        font-weight: 600;
        color: #151c28;
        cursor: pointer;
    }
    #afb-flight-search .afb-filter-toggle svg {
        transition: transform 0.2s ease;
    }
    #afb-flight-search .afb-filter-toggle.is-open svg {
        transform: rotate(180deg);
    }
    #afb-flight-search #afb-filters .search-results__sidebar-inner {
        display: none;
        border-top: 1px solid #eef1f5;
        background: none;
        border-radius: 0;
        box-shadow: none;
        position: static;
        padding: 1rem;
    }
    #afb-flight-search #afb-filters h3 {
        display: none;
    }
    #afb-flight-search #afb-filters.afb-filters-open .search-results__sidebar-inner {
        display: block;
    }
}
/* ── Filter sidebar overrides ───────────────────────────────────────────── */
@media (min-width: 768px) {
    #afb-flight-search #afb-filters.search-results__sidebar {
        background: transparent;
        border: none;
        padding: 0;
        box-shadow: none;
        border-radius: 0;
    }
}
#afb-flight-search #afb-filters .search-results__sidebar-inner {
    padding: 1.25rem;
}
#afb-flight-search #afb-filters h3 {
    font-size: 0.9375rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.625rem;
    border-bottom: 1px solid #eef1f5;
}
/* Section labels */
#afb-flight-search #afb-filters .search-results__sidebar-group > label {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6a7181;
    margin-bottom: 0.375rem;
}
/* Stops pills — label on top, buttons in a row */
#afb-flight-search #afb-filters .afb-sidebar-stops {
    flex-wrap: wrap;
    flex-direction: row;
    gap: 0.375rem;
}
#afb-flight-search #afb-filters .afb-sidebar-stops > label {
    width: 100%;
    margin-bottom: 0.125rem;
}
#afb-flight-search #afb-filters .afb-sidebar-stops .search-results__sidebar-btn {
    padding: 0.375rem 0.875rem;
    font-size: 0.75rem;
    border-radius: 0.5rem;
    background: #f7f9fb;
    border: 1px solid #eef1f5;
    color: #151c28;
    font-weight: 500;
}
#afb-flight-search #afb-filters .afb-sidebar-stops .search-results__sidebar-btn:hover {
    background: #eef1f5;
}
#afb-flight-search #afb-filters .afb-sidebar-stops .search-results__sidebar-btn.active {
    background: #10244c;
    border-color: #10244c;
    color: #fff;
}
/* Checkbox lists */
#afb-flight-search #afb-filters .afb-filter-checkbox-list {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}
#afb-flight-search #afb-filters .afb-filter-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #151c28;
    cursor: pointer;
    margin: 0;
    padding: 0.3rem 0;
    border-radius: 0.375rem;
    transition: background 0.15s ease;
}
#afb-flight-search #afb-filters .afb-filter-row:hover {
    background: #f7f9fb;
}
#afb-flight-search #afb-filters .afb-filter-row input[type="checkbox"] {
    accent-color: #10244c;
    width: 0.875rem;
    height: 0.875rem;
    flex-shrink: 0;
    margin: 0;
}
/* Price range */
#afb-flight-search #afb-filters .afb-price-range {
    margin-top: 0.25rem;
}
#afb-flight-search #afb-filters .afb-price-range input[type="range"] {
    width: 100%;
    accent-color: #10244c;
    height: 4px;
}
#afb-flight-search #afb-filters .afb-price-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.6875rem;
    color: #6a7181;
    margin-top: 0.25rem;
    font-weight: 500;
}
/* Reset button */
#afb-flight-search #afb-filters .afb-sidebar-reset {
    margin-top: 0.75rem;
    width: 100%;
    text-align: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.75rem;
    padding: 0.5rem;
    background: #f7f9fb;
    border: 1px solid #eef1f5;
    border-radius: 0.5rem;
    color: #6a7181;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}
#afb-flight-search #afb-filters .afb-sidebar-reset:hover {
    background: #eef1f5;
    color: #151c28;
}
/* Sidebar group spacing */
#afb-flight-search #afb-filters .search-results__sidebar-group {
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #f3f5f8;
}
#afb-flight-search #afb-filters .search-results__sidebar-group:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
}
#afb-flight-search .afb-results-route:empty {
    display: none;
}
/* Theme hides .view-btn until card hover; booking CTA must stay visible. */
#afb-flight-search .flight-card__price .view-btn.afb-continue-booking-btn {
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    border: none;
    width: 100%;
    max-width: 12rem;
    opacity: 1;
}
/* When price is in the body wrapper (not inside __inner), remove it from __inner */
#afb-flight-search .flight-card__body .flight-card__inner {
    justify-content: flex-start;
}
/* ── Round-trip card: body layout with legs + price side-by-side ────────── */
#afb-flight-search .flight-card__body {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
@media (min-width: 768px) {
    #afb-flight-search .flight-card__body {
        flex-direction: row;
        align-items: center;
    }
}
#afb-flight-search .flight-card__legs {
    flex: 1;
    min-width: 0;
}
#afb-flight-search .flight-card__body > .flight-card__price {
    border-left: 1px solid #eef1f5;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 0.5rem;
    min-width: 180px;
}
@media (max-width: 767px) {
    #afb-flight-search .flight-card__body > .flight-card__price {
        border-left: none;
        border-top: 1px solid #eef1f5;
        flex-direction: column;
        align-items: flex-end;
        justify-content: flex-start;
        padding: 1rem;
        min-width: 0;
        gap: 0.5rem;
    }
    #afb-flight-search .flight-card__body > .flight-card__price .view-btn {
        max-width: none;
    }
}
/* Return leg row */
#afb-flight-search .flight-card__return {
    border-top: 1px dashed #dde2ea;
}
#afb-flight-search .flight-card__return .flight-card__airline .icon {
    transform: scaleX(-1);
}
#afb-flight-search .afb-card-secondary-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.75rem;
    align-items: center;
    padding: 0 1rem 0.75rem;
}
@media (min-width: 768px) {
    #afb-flight-search .afb-card-secondary-actions {
        padding: 0 1.5rem 0.75rem;
    }
}
#afb-flight-search .afb-card-secondary-actions .afb-details-btn {
    background: none;
    border: none;
    padding: 0.25rem 0;
    font-size: 0.75rem;
    font-weight: 600;
    color: #6a7181;
    cursor: pointer;
    font-family: inherit;
    transition: color 0.15s ease;
}
#afb-flight-search .afb-card-secondary-actions .afb-details-btn:hover {
    color: #10244c;
}
#afb-flight-search .afb-flight-card .afb-card-details {
    margin: 0 0.75rem 1rem;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 0.75rem;
    border: 1px solid #eef1f5;
    border-top: none;
    overflow-x: auto;
}
@media (min-width: 768px) {
    #afb-flight-search .afb-flight-card .afb-card-details {
        margin: 0 1.5rem 1.25rem;
        padding: 1.25rem 1.5rem;
        overflow-x: visible;
    }
}
#afb-flight-search .afb-details-leg {
    margin-bottom: 1rem;
}
#afb-flight-search .afb-details-leg:last-child {
    margin-bottom: 0;
}
#afb-flight-search .afb-details-leg-title {
    font-weight: 600;
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #6a7181;
    margin-bottom: 0.625rem;
}
/* ── Segment timeline layout ────────────────────────────────────────────── */
/* ── Segment timeline layout ────────────────────────────────────────────── */
#afb-flight-search .afb-seg-timeline {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    padding: 0.5rem 0;
}
@media (min-width: 768px) {
    #afb-flight-search .afb-seg-timeline {
        gap: 1.25rem;
    }
}
#afb-flight-search .afb-seg-timeline__meta {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    width: 5.5rem;
    flex-shrink: 0;
}
@media (min-width: 768px) {
    #afb-flight-search .afb-seg-timeline__meta {
        width: 8.5rem;
    }
}
#afb-flight-search .afb-seg-timeline__flight {
    font-weight: 700;
    font-size: 0.8125rem;
    color: #151c28;
}
#afb-flight-search .afb-seg-timeline__carrier {
    font-size: 0.6875rem;
    color: #6a7181;
    font-weight: 500;
}
#afb-flight-search .afb-seg-timeline__aircraft {
    font-size: 0.625rem;
    color: #9aa1af;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 8.5rem;
}
#afb-flight-search .afb-seg-timeline__cabin {
    font-size: 0.625rem;
    font-weight: 600;
    color: #10244c;
    background: #e8edf3;
    padding: 0.1rem 0.4rem;
    border-radius: 0.25rem;
    width: fit-content;
    margin-top: 0.2rem;
}
#afb-flight-search .afb-seg-timeline__route {
    display: flex;
    align-items: center;
    gap: 0;
    flex: 1;
    min-width: 0;
}
#afb-flight-search .afb-seg-timeline__point {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    flex-shrink: 0;
}
#afb-flight-search .afb-seg-timeline__dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    border: 2px solid #10244c;
    background: #f9fafb;
}
#afb-flight-search .afb-seg-timeline__dot--end {
    background: #10244c;
}
#afb-flight-search .afb-seg-timeline__time {
    font-family: "Space Grotesk", sans-serif;
    font-weight: 700;
    font-size: 0.875rem;
    color: #151c28;
    white-space: nowrap;
}
#afb-flight-search .afb-seg-timeline__code {
    font-size: 0.625rem;
    font-weight: 600;
    color: #6a7181;
    letter-spacing: 0.02em;
}
#afb-flight-search .afb-seg-timeline__line {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    padding: 0 0.5rem;
    min-width: 2rem;
}
@media (min-width: 768px) {
    #afb-flight-search .afb-seg-timeline__line {
        padding: 0 1rem;
        min-width: 3rem;
    }
}
#afb-flight-search .afb-seg-timeline__line::after {
    content: '';
    display: block;
    width: 100%;
    height: 1px;
    background: #dde2ea;
}
#afb-flight-search .afb-seg-timeline__dur {
    font-size: 0.625rem;
    color: #9aa1af;
    font-weight: 500;
    white-space: nowrap;
}
/* Layover banner between segments */
#afb-flight-search .afb-seg-layover {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0;
    margin: 0.125rem 0;
}
#afb-flight-search .afb-seg-layover__line {
    flex: 1;
    height: 1px;
    background: #dde2ea;
}
#afb-flight-search .afb-seg-layover__text {
    font-size: 0.625rem;
    font-weight: 600;
    color: #6a7181;
    white-space: nowrap;
    letter-spacing: 0.02em;
    background: #eef1f5;
    padding: 0.2rem 0.625rem;
    border-radius: 0.25rem;
}
/* ── Shared custom select (pill + dropdown) ─────────────────────────────── */
.afb-custom-select {
    position: relative;
}
.afb-custom-select__trigger {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    background: #eef1f5;
    border: none;
    border-radius: 0.8rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: #151c28;
    cursor: pointer;
    white-space: nowrap;
    transition: box-shadow 0.2s ease;
    font-family: inherit;
}
.afb-custom-select__trigger:hover {
    box-shadow: 0 0 0 2px rgba(16, 36, 76, 0.3);
}
.afb-custom-select__trigger svg {
    flex-shrink: 0;
    color: #6a7181;
    transition: transform 0.2s ease;
}
.afb-custom-select.is-open .afb-custom-select__trigger svg:last-child {
    transform: rotate(180deg);
}
.afb-custom-select__menu {
    display: none;
    position: absolute;
    top: calc(100% + 0.375rem);
    left: 0;
    z-index: 1000;
    background: #fff;
    border-radius: 0.75rem;
    box-shadow: 0 8px 32px rgba(21, 28, 40, 0.12), 0 2px 8px rgba(21, 28, 40, 0.06);
    padding: 0;
    min-width: 100%;
    border: 1px solid #eef1f5;
    max-height: 15rem;
    overflow: hidden;
    overflow-y: auto;
}
.afb-custom-select.is-open .afb-custom-select__menu {
    display: block;
}
.afb-custom-select__option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.875rem;
    border-radius: 0;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #151c28;
    cursor: pointer;
    transition: background 0.15s ease;
    white-space: nowrap;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    font-family: inherit;
}
.afb-custom-select__option:hover {
    background: #eef1f5;
}
.afb-custom-select__option.is-selected {
    background: #10244c;
    color: #fff;
}
.afb-custom-select__option.is-selected:hover {
    background: #1a3566;
}
.afb-custom-select__option.is-highlighted {
    background: #eef1f5;
    outline: 2px solid #10244c;
    outline-offset: -2px;
}
.afb-custom-select__option.is-selected.is-highlighted {
    outline-color: #fff;
}
.afb-custom-select select {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
    overflow: hidden !important;
}

/* ── Travellers pill + dropdown ──────────────────────────────────────────── */
.afb-pax-wrap {
    position: relative;
}
.afb-pax-pill {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    background: #eef1f5;
    border: none;
    border-radius: 0.8rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #151c28;
    cursor: pointer;
    white-space: nowrap;
    transition: box-shadow 0.2s ease;
    font-family: inherit;
}
.afb-pax-pill:hover {
    box-shadow: 0 0 0 2px rgba(16, 36, 76, 0.3);
}
.afb-pax-pill svg {
    flex-shrink: 0;
    color: #6a7181;
}
.afb-pax-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    z-index: 1000;
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 8px 32px rgba(21, 28, 40, 0.12), 0 2px 8px rgba(21, 28, 40, 0.06);
    padding: 1rem;
    min-width: 260px;
    border: 1px solid #eef1f5;
}
.afb-pax-dropdown.is-open {
    display: block;
}
.afb-pax-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 0;
}
.afb-pax-row__info {
    display: flex;
    flex-direction: column;
}
.afb-pax-row__title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #151c28;
}
.afb-pax-row__sub {
    font-size: 0.6875rem;
    color: #6a7181;
}
.afb-pax-row__controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.afb-pax-btn {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    border: 1.5px solid #dde2ea;
    background: #fff;
    color: #151c28;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.15s ease, background 0.15s ease;
    line-height: 1;
    padding: 0;
    font-family: inherit;
}
.afb-pax-btn:hover {
    border-color: #10244c;
    background: #f0f3f8;
}
.afb-pax-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}
.afb-pax-btn:disabled:hover {
    border-color: #dde2ea;
    background: #fff;
}
.afb-pax-count {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #151c28;
    min-width: 1.25rem;
    text-align: center;
}
.afb-pax-divider {
    display: none;
}
/* ── Search extras row (below grid) ─────────────────────────────────────── */
.afb-search-extras {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-top: 0.75rem;
}
/* ── Non-stop checkbox ──────────────────────────────────────────────────── */
.afb-nonstop-check {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #151c28;
    cursor: pointer;
    white-space: nowrap;
}
.afb-nonstop-check input[type="checkbox"] {
    accent-color: #10244c;
    width: 0.9375rem;
    height: 0.9375rem;
    margin: 0;
    cursor: pointer;
}
/* ── Max Price input ───────────────────────────────────────────────────── */
.afb-maxprice-pill {
    display: flex;
    align-items: center;
    position: relative;
}
.afb-maxprice-pill__symbol {
    position: absolute;
    left: 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #6a7181;
    pointer-events: none;
    z-index: 1;
}
.afb-maxprice-pill input {
    width: 11rem;
    padding: 0.75rem 1rem 0.75rem 1.5rem;
    background: #eef1f5;
    border: none;
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    font-family: inherit;
    color: #151c28;
    outline: none;
    transition: box-shadow 0.3s ease;
}
.afb-maxprice-pill input:focus {
    box-shadow: 0 0 0 2px #10244c;
}
.afb-maxprice-pill input::placeholder {
    color: rgba(106, 113, 129, 0.5);
}
.afb-pax-done {
    display: block;
    width: 100%;
    margin-top: 0.5rem;
    padding: 0.5rem;
    background: #10244c;
    color: #fff;
    border: none;
    border-radius: 0.6rem;
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s ease;
}
.afb-pax-done:hover {
    background: #1a3566;
}
/* ── Sort Tabs Bar (Best / Cheapest / Fastest) ──────────────────────────── */
#afb-flight-search .afb-sort-tabs {
    display: flex;
    align-items: stretch;
    margin-bottom: 1rem;
    gap: 0;
}
#afb-flight-search .afb-sort-tabs__info {
    display: flex;
    align-items: center;
    padding: 0 1rem 0 0;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #151c28;
    white-space: nowrap;
}
#afb-flight-search .afb-sort-tabs__options {
    display: flex;
    flex: 1;
    align-items: stretch;
    gap: 0.5rem;
}
#afb-flight-search .afb-sort-tab {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 0.75rem 1.25rem;
    background: #fff;
    border: 1px solid #dde2ea;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: box-shadow 0.2s ease, background 0.2s ease;
    text-align: left;
    min-width: 0;
}
#afb-flight-search .afb-sort-tab:hover {
    background: #f0f3f8;
}
#afb-flight-search .afb-sort-tab.active {
    background: #fff;
    box-shadow: inset 0 0 0 2px #10244c;
}
#afb-flight-search .afb-sort-tab__label {
    font-size: 0.8125rem;
    font-weight: 700;
    color: #151c28;
    line-height: 1.2;
}
#afb-flight-search .afb-sort-tab__price {
    font-family: "Space Grotesk", sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #151c28;
    line-height: 1.2;
    margin-top: 0.125rem;
}
#afb-flight-search .afb-sort-tab__meta {
    font-size: 0.6875rem;
    color: #6a7181;
    line-height: 1.2;
}
/* Sort dropdown — dark pill variant */
#afb-flight-search .afb-sort-select {
    align-self: center;
}
#afb-flight-search .afb-sort-select .afb-custom-select__trigger {
    background: #10244c;
    color: #fff;
    border-radius: 0.5rem;
    padding: 0.5rem 0.875rem;
}
#afb-flight-search .afb-sort-select .afb-custom-select__trigger:hover {
    background: #1a3566;
    box-shadow: none;
}
#afb-flight-search .afb-sort-select .afb-custom-select__trigger svg {
    color: rgba(255, 255, 255, 0.7);
}
#afb-flight-search .afb-sort-select .afb-custom-select__menu {
    right: 0;
    left: auto;
    min-width: 11rem;
}
/* ── Best tab info tooltip ─────────────────────────────────────────────── */
#afb-flight-search .afb-sort-tab__info {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 0.3rem;
    cursor: help;
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    border: 1.5px solid #6a7181;
    color: #6a7181;
    font-size: 0.625rem;
    font-weight: 700;
    font-style: normal;
    line-height: 1;
    vertical-align: middle;
    flex-shrink: 0;
}
#afb-flight-search .afb-sort-tab__tooltip {
    display: none;
    position: absolute;
    bottom: calc(100% + 0.5rem);
    left: 50%;
    transform: translateX(-50%);
    background: #151c28;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 400;
    line-height: 1.45;
    padding: 0.625rem 0.875rem;
    border-radius: 0.5rem;
    width: 15rem;
    white-space: normal;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    z-index: 100;
    pointer-events: none;
}
#afb-flight-search .afb-sort-tab__tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #151c28;
}
#afb-flight-search .afb-sort-tab__info:hover .afb-sort-tab__tooltip,
#afb-flight-search .afb-sort-tab__info:focus .afb-sort-tab__tooltip {
    display: block;
}
@media (max-width: 640px) {
    #afb-flight-search .afb-sort-tabs {
        flex-direction: column;
        gap: 0.5rem;
    }
    #afb-flight-search .afb-sort-tabs__info {
        padding: 0 0 0.25rem;
    }
    #afb-flight-search .afb-sort-tabs__options {
        flex-wrap: wrap;
        gap: 0.5rem;
        position: relative;
    }
    #afb-flight-search .afb-sort-tab {
        flex: 1 1 calc(50% - 0.25rem);
        min-height: 44px;
        padding: 0.625rem 0.75rem;
    }
    #afb-flight-search .afb-sort-tab__dropdown {
        flex-basis: 100%;
        justify-content: center;
        padding: 0.5rem 1.75rem 0.5rem 0.75rem;
    }
}

.afb-flight-card.flight-card {
    border-radius: 1.25rem;
    border: 1px solid transparent;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
    padding: 0;
    margin-bottom: 1rem;
    cursor: default;
    background: #fff;
}
.afb-flight-card.flight-card:hover {
    box-shadow: 0 4px 16px rgba(21, 28, 40, 0.1), 0 8px 32px rgba(21, 28, 40, 0.06);
    border-color: rgba(239, 106, 57, 0.2);
}

/* ── Empty state (before search) ────────────────────────────────────────── */
.afb-empty-state {
    padding: 4rem 1rem 6rem;
}
.afb-empty-state__inner {
    max-width: 32rem;
    margin: 0 auto;
    text-align: center;
}
.afb-empty-state__icon {
    width: 5rem;
    height: 5rem;
    margin: 0 auto 1.5rem;
    background: #e4f2f9;
    border-radius: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.afb-empty-state__icon svg {
    color: #10244c;
}
.afb-empty-state__inner h3 {
    font-family: "Space Grotesk", sans-serif;
    font-weight: 700;
    font-size: 1.375rem;
    color: #151c28;
    margin-bottom: 0.5rem;
}
.afb-empty-state__inner p {
    color: #6a7181;
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}
.afb-empty-state__features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}
.afb-empty-state__features span {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #151c28;
}
.afb-empty-state__features svg {
    color: #2bab6f;
    flex-shrink: 0;
}
