/* Custom Styles for Flight Search Application */

:root {
    --primary-color: #545cd5;
    --primary-dark: #3f46b8;
    --primary-light: #eceefe;
    --accent-color: #f94703;
    --accent-dark: #d93c02;
    --secondary-color: #5c6370;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #07b9fd;
    --surface: #f7f8fd;
    --ink: #1a1a2e;
}

body {
    font-family: 'DM Sans', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--surface);
    min-height: 100vh;
    color: var(--ink);
}

/* Navigation */
.navbar-brand {
    font-weight: 600;
    font-size: 1.5rem;
}

/* Cards */
.card {
    border: none;
    border-radius: 10px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

.card-header {
    border-radius: 10px 10px 0 0 !important;
    font-weight: 600;
}

/* Form Elements */
.form-label {
    font-weight: 500;
    color: #495057;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(84, 92, 213, 0.12);
}

/* Buttons */
.btn {
    border-radius: 999px;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%) !important;
    border: none !important;
    color: white !important;
    box-shadow: 0 10px 24px rgba(84, 92, 213, 0.28) !important;
}

/* Flight Search Widget Form Enhancements */
.widget-input-wrap input[name="origin"],
.widget-input-wrap input[name="destination"],
#origin,
#destination {
    text-transform: uppercase;
}


/* Modern Compact Flight Result Card */
.flight-card {
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    margin-bottom: 0.85rem;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    overflow: hidden;
}

.flight-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 8px 22px rgba(84, 92, 213, 0.12) !important;
    transform: translateY(-1px);
}

.flight-card.is-expanded {
    border-color: var(--primary-color);
    box-shadow: 0 8px 24px rgba(84, 92, 213, 0.14) !important;
}

.flight-card-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.95rem 1.25rem;
    gap: 1.25rem;
}

.flight-legs {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-width: 0;
}

.flight-leg {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #f1f5f9;
}

.flight-leg:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.leg-main {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    width: 100%;
}

.leg-details-under {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding-left: 2.75rem;
    font-size: 0.76rem;
    color: #64748b;
    flex-wrap: wrap;
}

.leg-under-item {
    display: inline-flex;
    align-items: center;
    font-weight: 500;
}

.leg-tag-badge {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.12rem 0.45rem;
    border-radius: 4px;
    white-space: nowrap;
}

.leg-tag-badge.tag-outbound {
    background: #eef2ff;
    color: var(--primary-dark);
    border: 1px solid #e0e7ff;
}

.leg-tag-badge.tag-return {
    background: #f0fdf4;
    color: #15803d;
    border: 1px solid #dcfce7;
}

.leg-airline {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    min-width: 0;
}

.airline-logo-sm {
    width: 32px;
    height: 32px;
    object-fit: contain;
    border-radius: 6px;
    background: #f8fafc;
    flex-shrink: 0;
    border: 1px solid #f1f5f9;
}

.airline-meta {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    line-height: 1.2;
}

.airline-name-text {
    font-weight: 700;
    font-size: 0.875rem;
    color: var(--ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.flight-num-text {
    font-size: 0.72rem;
    color: var(--secondary-color);
    white-space: nowrap;
}

.leg-schedule {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-width: 240px;
    flex: 1;
}

.time-point {
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.time-dep {
    text-align: right;
}

.time-arr {
    text-align: left;
}

.leg-time {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--ink);
    line-height: 1.1;
    white-space: nowrap;
}

.leg-code {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--secondary-color);
    letter-spacing: 0.05em;
}

.badge-next-day {
    display: inline-block;
    vertical-align: super;
    font-size: 0.65rem;
    font-weight: 800;
    color: #ea580c;
    background: #fff7ed;
    border: 1px solid #ffedd5;
    padding: 0 4px;
    border-radius: 4px;
    margin-left: 3px;
    line-height: 1.2;
}

.leg-route-visual {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 0.5rem;
    min-width: 90px;
}

.leg-duration {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 2px;
    white-space: nowrap;
}

.leg-line {
    position: relative;
    width: 100%;
    height: 2px;
    background: #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 2px 0;
}

.leg-line.direct {
    background: linear-gradient(90deg, #94a3b8 0%, var(--primary-color) 50%, #94a3b8 100%);
}

.leg-line.has-stops {
    background: #f59e0b;
}

.leg-plane-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.7rem;
    color: var(--primary-color);
    background: #ffffff;
    padding: 0 4px;
}

.leg-stops-text {
    font-size: 0.72rem;
    white-space: nowrap;
}

.stop-text-direct {
    color: #16a34a;
    font-weight: 700;
}

.stop-text-stops {
    color: #d97706;
    font-weight: 700;
}

.leg-amenities {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    align-items: flex-start;
    flex-shrink: 0;
}

.amenity-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.72rem;
    font-weight: 600;
    color: #475569;
    background: #f1f5f9;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    white-space: nowrap;
}

.amenity-pill i {
    font-size: 0.75rem;
    color: var(--primary-color);
}

.flight-action {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    padding-left: 1.25rem;
    border-left: 1px solid #f1f5f9;
    min-width: 165px;
    flex-shrink: 0;
    gap: 0.35rem;
}

.flight-price-wrap {
    text-align: right;
}

.flight-price-main {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent-dark);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.flight-price-type {
    font-size: 0.72rem;
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 600;
}

.flight-seats-alert {
    display: inline-flex;
    align-items: center;
    font-size: 0.7rem;
    font-weight: 700;
    color: #dc2626;
    background: #fef2f2;
    padding: 2px 6px;
    border-radius: 4px;
    margin-top: 2px;
}

.flight-action .btn-book {
    padding: 0.45rem 1.2rem;
    font-size: 0.875rem;
    font-weight: 700;
    border-radius: 999px;
    white-space: nowrap;
    width: 100%;
}

.btn-toggle-details {
    background: transparent;
    border: none;
    color: var(--primary-color);
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 2px 0;
    transition: color 0.15s ease;
}

.btn-toggle-details:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Expandable Flight Details Drawer */
.flight-card-drawer {
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
    padding: 1.25rem;
    animation: fadeIn 0.25s ease-out;
}

.drawer-heading {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.drawer-segment {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 0.85rem 1rem;
    margin-bottom: 0.5rem;
}

.drawer-segment-route {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.drawer-point {
    flex: 1;
}

.drawer-time {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.1;
}

.drawer-airport {
    font-size: 0.825rem;
    color: #334155;
}

.drawer-date {
    font-size: 0.75rem;
    color: var(--secondary-color);
}

.drawer-arrow {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--secondary-color);
    font-size: 0.8rem;
    flex-shrink: 0;
}

.drawer-duration {
    font-size: 0.72rem;
    font-weight: 600;
}

.drawer-segment-meta {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    font-size: 0.75rem;
    color: var(--secondary-color);
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px dashed #f1f5f9;
}

.flight-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
    margin-top: 10px;
    padding-top: 10px;
}

.detail-item {
    display: flex;
    align-items: start;
    gap: 8px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.6rem 0.75rem;
}

.detail-icon {
    color: var(--primary-color);
    font-size: 1rem;
    margin-top: 1px;
}

.detail-content {
    flex: 1;
}

.detail-label {
    font-size: 0.72rem;
    color: #64748b;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.03em;
    margin-bottom: 2px;
}

.detail-value {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--ink);
}

.price-breakdown {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 1rem 1.25rem;
    margin-top: 12px;
}

.price-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    font-size: 0.875rem;
}

.price-row.total {
    font-size: 1.05rem;
    font-weight: 700;
    padding-top: 8px;
    border-top: 2px solid #e2e8f0;
    margin-top: 8px;
    color: var(--ink);
}

/* Responsive Flight Card */
@media (max-width: 991px) {
    .leg-main {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.65rem;
    }
    
    .leg-airline {
        max-width: 100%;
    }
    
    .leg-schedule {
        width: 100%;
        min-width: 0;
    }
    
    .leg-details-under {
        padding-left: 0;
    }
}

@media (max-width: 640px) {
    .flight-card-body {
        flex-direction: column;
        align-items: stretch;
        padding: 0.85rem 1rem;
    }
    
    .flight-action {
        border-left: none;
        border-top: 1px dashed #e2e8f0;
        padding-left: 0;
        padding-top: 0.75rem;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
    
    .flight-action .btn-book {
        width: auto;
    }
}

/* ==========================================================================
   Grouped Flight Results (Expandable Alternative Flight Times)
   ========================================================================== */
.flight-group-wrap {
    margin-bottom: 0.85rem;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    overflow: hidden;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.flight-group-wrap:hover {
    border-color: #cbd5e1;
    box-shadow: 0 6px 18px rgba(84, 92, 213, 0.08);
}

.flight-group-wrap.is-open {
    border-color: var(--primary-color);
    box-shadow: 0 8px 24px rgba(84, 92, 213, 0.14) !important;
}

.flight-group-wrap .flight-card.flight-card--primary {
    border: none !important;
    border-radius: 0 !important;
    margin-bottom: 0 !important;
    box-shadow: none !important;
}

.flight-group-bar {
    background: #f8fafc;
    border-top: 1px dashed #e2e8f0;
    padding: 0.65rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.flight-group-wrap.is-open .flight-group-bar {
    background: #f0f4ff;
    border-top-color: #c7d2fe;
}

.flight-group-bar-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.flight-group-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: #e0e7ff;
    color: var(--primary-dark);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    white-space: nowrap;
}

.flight-group-meta {
    font-size: 0.8125rem;
    color: #475569;
}

.btn-group-toggle {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: var(--primary-color);
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 999px;
    padding: 0.35rem 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.btn-group-toggle:hover {
    background: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-color);
    box-shadow: 0 2px 6px rgba(84, 92, 213, 0.25);
}

.flight-group-wrap.is-open .btn-group-toggle {
    background: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-color);
}

.btn-group-toggle .group-chevron {
    transition: transform 0.2s ease;
}

.flight-group-drawer {
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    padding: 1rem 1.25rem 1.25rem;
    animation: fadeIn 0.25s ease-out;
}

.group-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 0.85rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.group-drawer-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #334155;
}

.group-drawer-badge {
    font-size: 0.72rem;
    font-weight: 700;
    color: #64748b;
    background: #e2e8f0;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
}

.group-cards-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.flight-card.flight-card--group-alt {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
    margin-bottom: 0;
}

.flight-card.flight-card--group-alt:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(84, 92, 213, 0.1) !important;
}

.flight-card.flight-card--group-alt .flight-card-body {
    padding: 0.75rem 1rem;
}

.flight-card.flight-card--group-alt .flight-price-main {
    font-size: 1.35rem;
}

@media (max-width: 640px) {
    .flight-group-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 0.6rem;
        padding: 0.65rem 1rem;
    }
    
    .btn-group-toggle {
        width: 100%;
        justify-content: center;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.flight-card {
    animation: fadeIn 0.4s ease-out;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Layover Info */
.layover-info {
    background: #fff3cd;
    border-left: 4px solid var(--warning-color);
    padding: 10px 15px;
    margin: 10px 0;
    border-radius: 4px;
    font-size: 0.9rem;
}

/* Direct Flight Badge */
.direct-flight {
    background: var(--success-color);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* CO2 Emissions */
.co2-info {
    background: #d1ecf1;
    border-left: 4px solid var(--info-color);
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    color: #0c5460;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

/* Collapse Animation */
.collapse {
    transition: height 0.3s ease;
}

/* Font Monospace */
.font-monospace {
    font-family: 'Courier New', Courier, monospace;
}


/* ==========================================================================
   Filter Sidebar Styles (Compact View)
   ========================================================================== */
@media (min-width: 992px) {
    .filter-sidebar-col {
        width: 280px;
        flex: 0 0 280px;
        max-width: 280px;
        padding-right: 0.5rem;
    }
    .filter-results-col {
        flex: 1 1 0;
        min-width: 0;
        max-width: calc(100% - 280px);
        padding-left: 0.5rem;
    }
}

.sticky-filters.card,
.card.sticky-filters,
.sticky-filters {
    padding: 0 !important;
    position: sticky;
    top: calc(var(--header-height, 58px) + 0.75rem);
    max-height: calc(100vh - var(--header-height, 58px) - 1.5rem);
    overflow-y: auto;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.sticky-filters.card:hover,
.card.sticky-filters:hover,
.sticky-filters:hover {
    transform: none !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
}

.sticky-filters .card-header {
    padding: 0.55rem 0.75rem;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    border-radius: 11px 11px 0 0 !important;
    margin: 0 !important;
}

.sticky-filters .card-header h6 {
    font-size: 0.8rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.sticky-filters #clearFiltersBtn {
    font-size: 0.72rem;
    padding: 0;
    color: var(--primary-color, #545cd5);
    font-weight: 600;
    text-decoration: none;
}

.sticky-filters #clearFiltersBtn:hover {
    text-decoration: underline !important;
}

.filter-sidebar {
    padding: 0.45rem 0.75rem 0.75rem !important;
}

.filter-section {
    padding: 0.45rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.filter-section:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.filter-title {
    font-size: 0.725rem;
    font-weight: 700;
    color: #64748b;
    margin-bottom: 0.3rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.filter-checkboxes {
    max-height: 160px;
    overflow-y: auto;
    padding-right: 3px;
}

.filter-checkboxes .form-check,
#departureTimeFilter .form-check {
    margin-bottom: 0.28rem;
    min-height: 1.25rem;
    padding-left: 0 !important;
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.filter-checkboxes .form-check:last-child,
#departureTimeFilter .form-check:last-child {
    margin-bottom: 0;
}

.filter-checkboxes .form-check-input,
#departureTimeFilter .form-check-input {
    margin: 0 !important;
    width: 0.925rem;
    height: 0.925rem;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    cursor: pointer;
    flex-shrink: 0;
}

.filter-checkboxes .form-check-input:checked,
#departureTimeFilter .form-check-input:checked {
    background-color: var(--primary-color, #545cd5);
    border-color: var(--primary-color, #545cd5);
}

.filter-checkboxes .form-check-label,
#departureTimeFilter .form-check-label {
    font-size: 0.8rem;
    line-height: 1.3;
    color: #334155;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex: 1 1 auto;
    min-width: 0;
    cursor: pointer;
    margin-bottom: 0;
    user-select: none;
}

.filter-checkboxes .form-check-label > span:first-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#departureTimeFilter .form-check-label {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

#departureTimeFilter .form-check-label i {
    margin-right: 0.4rem;
    color: #64748b;
    font-size: 0.85rem;
}

.filter-checkboxes .badge,
.filter-checkboxes .form-check-label .badge {
    font-size: 0.68rem;
    padding: 0.15em 0.45em;
    font-weight: 600;
    background: #f1f5f9 !important;
    color: #64748b !important;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    margin-left: 0.35rem;
    flex-shrink: 0;
}

.filter-section .form-label.small {
    font-size: 0.775rem;
    margin-bottom: 0.2rem;
    color: #475569;
}

.filter-section .form-range {
    margin-bottom: 0.2rem;
    height: 1rem;
}

.filter-section .form-range::-webkit-slider-thumb {
    width: 13px;
    height: 13px;
    background: var(--primary-color, #545cd5);
}

.filter-section .form-range::-moz-range-thumb {
    width: 13px;
    height: 13px;
    background: var(--primary-color, #545cd5);
}

/* Filter Scrollbar */
.filter-checkboxes::-webkit-scrollbar,
.sticky-filters::-webkit-scrollbar {
    width: 4px;
}

.filter-checkboxes::-webkit-scrollbar-track,
.sticky-filters::-webkit-scrollbar-track {
    background: transparent;
}

.filter-checkboxes::-webkit-scrollbar-thumb,
.sticky-filters::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.filter-checkboxes::-webkit-scrollbar-thumb:hover,
.sticky-filters::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

@media (max-width: 991.98px) {
    .sticky-filters {
        position: relative;
        top: 0;
        max-height: none;
        margin-bottom: 1rem;
    }
    .filter-sidebar-col,
    .filter-results-col {
        width: 100%;
        max-width: 100%;
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
}

/* Flight Card Hover Effect with Filters */
.flight-card.filtered-out {
    display: none;
}

/* Clear Filters Button */
#clearFiltersBtn,
#clearFiltersBtn2 {
    font-size: 0.85rem;
    padding: 0.25rem 0.5rem;
}

/* No Results Message */
#noResultsMessage {
    background: white;
    border-radius: 10px;
    padding: 3rem 2rem;
}


/* Booking Progress Styles */
.booking-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #e9ecef;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    transition: all 0.3s;
}

.step-label {
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 500;
}

.progress-line {
    width: 100px;
    height: 3px;
    background: #e9ecef;
    margin: 0 1rem;
    margin-bottom: 2rem;
}

.progress-step.completed .step-number {
    background: var(--success-color);
    color: white;
}

.progress-step.completed .step-label {
    color: var(--success-color);
}

.progress-line.completed {
    background: var(--success-color);
}

.progress-step.active .step-number {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.2);
}

.progress-step.active .step-label {
    color: var(--primary-color);
    font-weight: 600;
}

.progress-line.active {
    background: linear-gradient(to right, var(--success-color) 0%, var(--success-color) 50%, #e9ecef 50%, #e9ecef 100%);
}

/* Traveler Card Styles */
.traveler-card {
    border-left: 4px solid var(--primary-color);
}

.traveler-card .card-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.traveler-type-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.traveler-type-adult {
    background: #e7f3ff;
    color: #0d6efd;
}

.traveler-type-child {
    background: #fff3cd;
    color: #856404;
}

.traveler-type-infant {
    background: #f8d7da;
    color: #721c24;
}

/* ==========================================================================
   Booking Page Wide Layout & Column Proportions
   ========================================================================== */
.booking-page .booking-wide-container {
    max-width: 1520px !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: clamp(1rem, 2.5vw, 2.25rem) !important;
    padding-right: clamp(1rem, 2.5vw, 2.25rem) !important;
}

.booking-page .site-header .container {
    max-width: 1520px !important;
}

/* Reduced Flight Summary sidebar width (allows ~74% for Branded Fares & checkout form) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .booking-summary-col {
        width: 30% !important;
        flex: 0 0 30% !important;
        max-width: 30% !important;
    }
    .booking-content-col {
        width: 70% !important;
        flex: 0 0 70% !important;
        max-width: 70% !important;
    }
}

@media (min-width: 1200px) {
    .booking-summary-col {
        width: 26% !important;
        flex: 0 0 26% !important;
        max-width: 26% !important;
    }
    .booking-content-col {
        width: 74% !important;
        flex: 0 0 74% !important;
        max-width: 74% !important;
    }
}

/* Modern Sticky Flight Summary Card */
.booking-summary-card {
    border-radius: 16px;
    border: 1.5px solid #e2e8f0;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    position: sticky;
    top: 24px;
    max-height: calc(100vh - 48px);
    display: flex;
    flex-direction: column;
    background: #ffffff;
    overflow: hidden;
}

.booking-summary-card .card-header {
    background: linear-gradient(135deg, #003b6b 0%, #005294 100%);
    border-bottom: none;
    padding: 0.65rem 0.85rem;
}

.booking-summary-card .card-body {
    overflow-y: auto;
    padding: 0.65rem 0.75rem;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

.booking-summary-card .card-body::-webkit-scrollbar {
    width: 4px;
}

.booking-summary-card .card-body::-webkit-scrollbar-thumb {
    background-color: #cbd5e1;
    border-radius: 4px;
}

.summary-leg-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 0.55rem 0.65rem;
    margin-bottom: 0.5rem;
}

.summary-leg-card:last-child {
    margin-bottom: 0;
}

.summary-airline-chip {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.4rem;
    padding-bottom: 0.35rem;
    border-bottom: 1px solid #edf2f7;
}

.summary-airline-chip img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    border-radius: 4px;
    background: #ffffff;
    padding: 2px;
    border: 1px solid #e2e8f0;
}

.summary-flight-number {
    font-weight: 700;
    font-size: 0.8rem;
    color: #1e293b;
    line-height: 1.2;
}

.summary-aircraft {
    font-size: 0.7rem;
    color: #64748b;
}

.summary-timeline-row {
    position: relative;
    padding-left: 1.15rem;
    margin-bottom: 0.35rem;
}

.summary-timeline-row::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 6px;
    bottom: -6px;
    width: 2px;
    background: #cbd5e1;
}

.summary-timeline-row:last-child::before {
    display: none;
}

.summary-dot {
    position: absolute;
    left: 1px;
    top: 4px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 2px solid #005294;
    background: #ffffff;
}

.summary-dot.dot-arrival {
    background: #005294;
}

.summary-duration-connector {
    padding-left: 1.15rem;
    margin: 0.2rem 0 0.3rem;
    font-size: 0.7rem;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.summary-layover-banner {
    background: #fffbeb;
    border: 1px dashed #fcd34d;
    border-radius: 6px;
    padding: 0.35rem 0.5rem;
    margin: 0.45rem 0;
    font-size: 0.72rem;
    color: #92400e;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.summary-section-divider {
    height: 1px;
    background: #e2e8f0;
    margin: 0.45rem 0;
}

.summary-inclusions-list {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.summary-inclusion-item {
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    color: #334155;
}

.summary-price-table {
    width: 100%;
    font-size: 0.76rem;
    margin-top: 0.25rem;
}

.summary-price-table td {
    padding: 0.15rem 0;
}

.summary-price-table .price-val {
    text-align: right;
    font-weight: 600;
    color: #1e293b;
}

/* ==========================================================================
   Seat Selection Modal Styles
   ========================================================================== */
.seat-leg-tabs {
    display: flex;
    gap: 0.5rem;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 0.5rem;
    overflow-x: auto;
}

.seat-leg-tab-btn {
    border: 1.5px solid #cbd5e1;
    background: #ffffff;
    color: #475569;
    font-weight: 600;
    font-size: 0.8rem;
    padding: 0.4rem 0.85rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
}

.seat-leg-tab-btn:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
}

.seat-leg-tab-btn.active {
    background: #005294;
    border-color: #005294;
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(0, 82, 148, 0.25);
}

.seat-leg-tab-btn.active .badge {
    background: #ffffff !important;
    color: #005294 !important;
}

.seat-modal-flight-info {
    background: linear-gradient(135deg, #f0f7ff 0%, #f8fafc 100%);
    border: 1px solid #bfdbfe;
}

.seat-legend-box {
    width: 14px;
    height: 14px;
    border-radius: 3px;
    display: inline-block;
}

.seat-legend-box.available {
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
}

.seat-legend-box.selected {
    background: #059669;
    border: 1.5px solid #047857;
}

.seat-legend-box.occupied {
    background: #e2e8f0;
    border: 1.5px solid #cbd5e1;
}

.seat-map-grid-modal {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
    max-width: 360px;
    margin: 0 auto;
    padding: 1rem 1.25rem;
    background: #f8fafc;
    border-radius: 14px;
    border: 1.5px solid #e2e8f0;
}

.seat-col-header {
    font-size: 0.72rem;
    font-weight: 700;
    color: #64748b;
    text-align: center;
    padding: 0.2rem 0;
    user-select: none;
}

.seat-col-header.aisle {
    font-size: 0.65rem;
    letter-spacing: 0.5px;
    color: #94a3b8;
}

.seat-btn-modal {
    aspect-ratio: 1;
    border: 1.5px solid #cbd5e1;
    background: #ffffff;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
    color: #334155;
}

.seat-btn-modal:hover:not(:disabled) {
    background: #005294;
    color: #ffffff;
    border-color: #005294;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 82, 148, 0.2);
}

.seat-btn-modal.selected {
    background: #059669 !important;
    color: #ffffff !important;
    border-color: #047857 !important;
    box-shadow: 0 0 0 2px rgba(5, 150, 105, 0.25);
}

.seat-btn-modal.occupied {
    background: #e2e8f0;
    color: #94a3b8;
    border-color: #e2e8f0;
    cursor: not-allowed;
}

.seat-btn-modal.aisle {
    visibility: hidden;
}

/* ==========================================================================
   Modern Corporate Confirmation Page Styles
   ========================================================================== */
.confirmation-hero {
    background: linear-gradient(135deg, #002b4e 0%, #005294 65%, #0369a1 100%);
    color: #ffffff;
    border-radius: 20px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 12px 36px rgba(0, 43, 78, 0.16);
    position: relative;
    overflow: hidden;
}

.confirmation-hero::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, rgba(255, 122, 0, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.confirmation-hero .success-check-badge {
    width: 56px;
    height: 56px;
    background: #10b981;
    color: #ffffff;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    box-shadow: 0 0 0 8px rgba(16, 185, 129, 0.22);
}

.pnr-box-corporate {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 14px;
    padding: 0.85rem 1.4rem;
    display: inline-flex;
    align-items: center;
    gap: 1rem;
}

.pnr-code-badge {
    font-family: 'DM Mono', 'SFMono-Regular', Consolas, monospace;
    font-size: 1.85rem;
    font-weight: 800;
    letter-spacing: 3px;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.btn-copy-pnr {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 0.4rem 0.75rem;
    font-size: 0.825rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-copy-pnr:hover {
    background: #ffffff;
    color: #005294;
    transform: translateY(-1px);
}

.status-badge-verified {
    background: #dcfce7;
    color: #15803d;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.35rem 0.8rem;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border: 1px solid #86efac;
}

/* Flight Segment Cards */
.flight-leg-card {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.25rem;
    transition: box-shadow 0.2s ease;
}

.flight-leg-card:hover {
    box-shadow: 0 8px 24px rgba(0, 59, 107, 0.06);
}

.airline-badge-chip {
    background: #f1f5f9;
    color: #334155;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 0.3rem 0.75rem;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.timeline-route-display {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    padding: 1rem 0;
}

.timeline-station {
    text-align: left;
    min-width: 140px;
}

.timeline-station.arrival {
    text-align: right;
}

.timeline-time {
    font-size: 1.5rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.1;
}

.timeline-iata {
    font-size: 1.1rem;
    font-weight: 700;
    color: #005294;
}

.timeline-date {
    font-size: 0.85rem;
    color: #64748b;
    margin-top: 0.15rem;
}

.timeline-bar-wrapper {
    flex: 1;
    text-align: center;
    padding: 0 1.5rem;
    position: relative;
}

.timeline-duration-badge {
    font-size: 0.8rem;
    font-weight: 600;
    color: #64748b;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 0.2rem 0.65rem;
    border-radius: 50px;
    display: inline-block;
    margin-bottom: 0.4rem;
}

.timeline-flight-path {
    height: 3px;
    background: linear-gradient(to right, #cbd5e1 0%, #005294 50%, #cbd5e1 100%);
    position: relative;
    border-radius: 2px;
}

.timeline-flight-path .plane-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #005294;
    background: #ffffff;
    padding: 0 4px;
    font-size: 1rem;
}

.layover-pill {
    background: #fffbeb;
    border: 1px solid #fef3c7;
    border-left: 4px solid #f59e0b;
    color: #92400e;
    padding: 0.65rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    margin: 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Passenger Info Table */
.passenger-table {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
}

.passenger-table th {
    background: #f8fafc;
    color: #475569;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
    padding: 0.85rem 1rem;
    border-bottom: 1.5px solid #e2e8f0;
}

.passenger-table td {
    padding: 1rem;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

.passenger-table tr:last-child td {
    border-bottom: none;
}

/* ==========================================================================
   Branded Fares Upsell Component (Amadeus BrandedFaresUpsell)
   ========================================================================== */
.branded-fare-col {
    display: flex;
    flex-direction: column;
}

.branded-fare-tier-card {
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 1.25rem 1.15rem;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.branded-fare-tier-card:hover {
    border-color: #005294;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 82, 148, 0.12);
}

.branded-fare-tier-card.active {
    border-color: #005294;
    background: #f7faff;
    box-shadow: 0 0 0 3px rgba(0, 82, 148, 0.18), 0 10px 25px rgba(0, 82, 148, 0.1);
}

.branded-fare-tier-card.recommended-tier {
    border-color: #f59e0b;
}

.branded-fare-tier-card.recommended-tier.active {
    border-color: #005294;
}

.tier-top-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
}

.tier-header-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #003b6b;
    line-height: 1.25;
}

.tier-subtitle {
    font-size: 0.775rem;
    color: #64748b;
    margin-bottom: 0.75rem;
    min-height: 2.2em;
    line-height: 1.35;
}

.tier-status-wrap {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.tier-radio-indicator {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #cbd5e1;
    background: #ffffff;
    transition: all 0.2s ease;
    flex-shrink: 0;
    font-size: 0.75rem;
}

.branded-fare-tier-card.active .tier-radio-indicator {
    border-color: #005294;
    background: #005294;
    color: #ffffff;
}

.tier-pill-badge {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.25rem 0.6rem;
    border-radius: 20px;
    white-space: nowrap;
}

.tier-pill-popular {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(217, 119, 6, 0.25);
}

.tier-pill-flex {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(4, 120, 87, 0.25);
}

.tier-feature-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 0.85rem;
}

.feature-chip {
    font-size: 0.725rem;
    font-weight: 600;
    padding: 0.22rem 0.55rem;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.feature-chip.chip-inc {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.feature-chip.chip-exc {
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

.tier-price-block {
    background: #f8fafc;
    border: 1px solid #eef2f6;
    border-radius: 10px;
    padding: 0.75rem 0.85rem;
    margin-bottom: 1rem;
}

.branded-fare-tier-card.active .tier-price-block {
    background: #eff6ff;
    border-color: #dbeafe;
}

.tier-price-amount {
    font-size: 1.55rem;
    font-weight: 800;
    color: #005294;
    line-height: 1.1;
}

.tier-diff-badge {
    font-size: 0.725rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    white-space: nowrap;
}

.tier-diff-included {
    background: #e0f2fe;
    color: #0369a1;
}

.tier-diff-upgrade {
    background: #ecfdf5;
    color: #047857;
}

.amenities-checklist {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tier-amenity-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.825rem;
    line-height: 1.35;
}

.tier-amenity-item.included {
    color: #1e293b;
    font-weight: 500;
}

.tier-amenity-item.excluded {
    color: #94a3b8;
}

.tier-amenity-item i {
    font-size: 0.95rem;
    margin-top: 0.1rem;
    flex-shrink: 0;
}

.tier-select-btn {
    width: 100%;
    margin-top: auto;
    border-radius: 10px;
    padding: 0.65rem 0.75rem;
    font-weight: 700;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

/* Mobile Responsiveness for Booking */
@media (max-width: 768px) {
    .confirmation-hero {
        padding: 1.75rem 1.25rem;
    }
    
    .timeline-route-display {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .timeline-station {
        min-width: 100%;
        text-align: center;
    }
    
    .timeline-station.arrival {
        text-align: center;
    }
    
    .timeline-bar-wrapper {
        width: 100%;
        padding: 0.5rem 0;
    }
    
    .booking-progress {
        padding: 1rem 0.5rem;
    }
    
    .progress-line {
        width: 40px;
        margin: 0 0.5rem;
    }
    
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .step-label {
        font-size: 0.75rem;
    }
}

/* Ministry of Travel flight search page */
.flight-hero {
    background:
        radial-gradient(circle at top right, rgba(249, 71, 3, 0.1), transparent 35%),
        radial-gradient(circle at bottom left, rgba(84, 92, 213, 0.14), transparent 40%),
        linear-gradient(180deg, #f4f5fd 0%, #ffffff 100%);
    padding: 1.15rem 0 2rem;
}

.flight-page-content {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 1rem 3rem;
}

.flight-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
    gap: 1rem;
    color: var(--secondary-color);
}

.flight-loading__spinner {
    width: 3rem;
    height: 3rem;
    border: 3px solid var(--primary-light);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: flight-spin 0.8s linear infinite;
}

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

.flight-alert {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.flight-alert--error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
}

.results-heading {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 1.25rem;
}

.no-results-icon {
    font-size: 4rem;
    color: #cbd5e1;
}

.flight-footer {
    padding: 2.5rem 0 1.5rem;
    margin-top: 2rem;
}

.site-footer .container,
.flight-footer .container,
.flight-footer .footer-inner {
    max-width: 1440px !important;
    width: 100% !important;
    padding-left: clamp(1rem, 2vw, 1.5rem) !important;
    padding-right: clamp(1rem, 2vw, 1.5rem) !important;
    margin-inline: auto;
}

.flight-footer .footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.flight-footer .footer-brand img {
    height: 44px;
    width: auto;
    max-width: 175px;
    aspect-ratio: 160 / 53;
    object-fit: contain;
    margin-bottom: 0.5rem;
}

.flight-footer .footer-links {
    display: flex;
    gap: 1.5rem;
}

.flight-footer .footer-copy {
    width: 100%;
    text-align: center;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.55);
    margin-top: 0.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.bg-primary,
.card-header.bg-primary {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

.btn-primary:hover,
.btn-primary:focus {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #30358a 100%) !important;
    box-shadow: 0 14px 28px rgba(84, 92, 213, 0.36) !important;
    transform: translateY(-1px);
}

.btn-group .btn.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

#filteredResultCount {
    font-weight: 700;
    color: var(--primary-color);
}

/* Premium Passenger Info Fields styling */
.traveler-card {
    border: 1px solid rgba(84, 92, 213, 0.12) !important;
    border-left: 5px solid var(--primary-color) !important;
    border-radius: 12px !important;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.02) !important;
}

.traveler-card .card-header {
    background: #ffffff !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
    padding: 1rem 1.25rem;
}

.traveler-card .card-body {
    padding: 1.5rem 1.25rem;
}

.traveler-card .form-label {
    text-transform: uppercase;
    font-size: 0.725rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--secondary-color);
    margin-bottom: 0.4rem;
}

.traveler-card .traveler-input,
.traveler-card .form-control,
.traveler-card .form-select,
.booking-page .form-control,
.booking-page .form-select,
.flight-search-page .form-control,
.flight-search-page .form-select {
    height: 48px !important;
    min-height: 48px !important;
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 10px !important;
    padding: 0.65rem 0.95rem !important;
    font-size: 0.9375rem !important;
    line-height: 1.5 !important;
    color: var(--ink) !important;
    background-color: #ffffff !important;
    box-sizing: border-box !important;
    transition: all 0.2s ease-in-out !important;
    box-shadow: none !important;
}

.traveler-card .form-select,
.booking-page .form-select,
.flight-search-page .form-select {
    padding-right: 2.25rem !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23475569' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 0.85rem center !important;
    background-size: 14px 10px !important;
    cursor: pointer !important;
}

.traveler-card .traveler-input:hover,
.traveler-card .form-control:hover,
.traveler-card .form-select:hover {
    border-color: #cbd5e1 !important;
}

.traveler-card .traveler-input:focus,
.traveler-card .form-control:focus,
.traveler-card .form-select:focus {
    border-color: var(--primary-color) !important;
    background-color: #ffffff !important;
    box-shadow: 0 0 0 4px rgba(84, 92, 213, 0.1) !important;
    outline: none !important;
}

.traveler-card .input-group .traveler-input:first-child,
.traveler-card .input-group .form-control:first-child {
    border-top-left-radius: 8px !important;
    border-bottom-left-radius: 8px !important;
}

.traveler-card .input-group .traveler-input:last-child,
.traveler-card .input-group .form-control:last-child {
    border-top-right-radius: 8px !important;
    border-bottom-right-radius: 8px !important;
}

/* Endpoint Environment Badges (TEST vs LIVE) */
.endpoint-indicator-pill {
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
}

.endpoint-badge {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 3px 9px;
    border-radius: 999px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    line-height: 1.4;
    transition: all 0.2s ease;
}

.endpoint-badge--test {
    background-color: #fff3cd !important;
    color: #856404 !important;
    border: 1px solid #ffeeba !important;
}

.endpoint-badge--live {
    background-color: #d1e7dd !important;
    color: #0f5132 !important;
    border: 1px solid #badbcc !important;
}

.endpoint-badge i {
    font-size: 0.75rem;
}

/* Floating Test Environment Indicator (Bottom Right) */
.test-floating-badge {
    position: fixed;
    bottom: 16px;
    right: 16px;
    z-index: 99999;
    background: #1e293b;
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.4);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    user-select: none;
    transition: all 0.2s ease;
}

.test-floating-badge i {
    font-size: 0.75rem;
    color: #fbbf24;
}

.test-floating-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
    border-color: rgba(251, 191, 36, 0.8);
}

/* Dynamic Cabin & Filter count badges */
/* ==========================================================================
   Results Mode: Compressed Single-Line Search Form & Hero Collapse
   ========================================================================== */

/* Normal (Hero) Mode Defaults for Pax Dropdown Elements */
.header-pax-trigger {
    display: none;
}

.header-selectors-dropdown {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.pax-done-btn,
.pax-dropdown-header {
    display: none;
}

.btn-swap-airports {
    display: none;
}

/* When Search Results Are Showing */
.has-search-results .flight-hero {
    background: #ffffff !important;
    padding: 0.65rem 0 !important;
    border-bottom: 1px solid var(--border, #e2e8f0);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    position: sticky;
    top: var(--header-height, 58px);
    z-index: 95;
}

.has-search-results .hero-intro,
.has-search-results .hero-features-bar,
.has-search-results .offline-booking-banner,
.has-search-results .hero-airline-badges,
.has-search-results .widget-service-tabs,
.has-search-results .widget-offline-link,
.has-search-results .widget-corporate-link,
.has-search-results .widget-options a {
    display: none !important;
}

/* Turnstile Widget Layout: Keep clean / non-disruptive */
.turnstile-wrap {
    margin: 0;
    padding: 0;
    min-height: 0;
    display: flex;
    justify-content: center;
}

/* In search results mode, keep widget offscreen with valid layout dimensions so Turnstile can calculate challenge telemetry without suppressing */
.has-search-results .turnstile-wrap {
    position: fixed !important;
    bottom: -200px !important;
    left: 0 !important;
    width: 300px !important;
    height: 65px !important;
    opacity: 0 !important;
    pointer-events: none !important;
    z-index: -9999 !important;
}

/* Full Width Consistency Across Header, Search Bar, Results, and Footer */
.has-search-results .site-header .container.header-container,
.has-search-results .flight-hero .container,
.has-search-results .flight-page-content,
.has-search-results .site-footer .container,
.has-search-results .flight-footer .container {
    max-width: 1440px !important;
    width: 100% !important;
    padding-left: clamp(1rem, 2vw, 1.5rem) !important;
    padding-right: clamp(1rem, 2vw, 1.5rem) !important;
}

.has-search-results .flight-page-content {
    padding-top: 1rem !important;
}

.has-search-results .flight-search-widget--page {
    padding: 0.15rem 0.25rem !important;
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    max-width: 100% !important;
    width: 100% !important;
}

/* Search Form Single Line Layout */
.has-search-results #searchForm {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
}

.has-search-results .widget-header-row,
.has-search-results .flight-widget-grid,
.has-search-results .widget-options {
    display: contents;
}

/* Field Ordering & Sizing */
.has-search-results .trip-type-tabs {
    order: 1;
    margin: 0 !important;
    padding: 2px !important;
    background: #f1f5f9;
    border-radius: 999px;
    flex-shrink: 0;
}

.has-search-results .trip-type-tabs button {
    padding: 0.35rem 0.65rem !important;
    font-size: 0.8rem !important;
    font-weight: 700;
}

.has-search-results .widget-field--origin {
    order: 2;
    flex: 1 1 170px;
    min-width: 140px;
    margin: 0;
}

.has-search-results .btn-swap-airports {
    order: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1.5px solid var(--border, #cbd5e1);
    background: #ffffff;
    color: var(--primary-color);
    cursor: pointer;
    flex-shrink: 0;
    padding: 0;
    transition: all 0.2s ease;
}

.has-search-results .btn-swap-airports:hover {
    background: var(--primary-light);
    border-color: var(--primary-color);
    transform: rotate(180deg);
}

.has-search-results .widget-field--destination {
    order: 4;
    flex: 1 1 170px;
    min-width: 140px;
    margin: 0;
}

.has-search-results .widget-field--depart {
    order: 5;
    flex: 0 0 150px;
    min-width: 144px;
    margin: 0;
}

.has-search-results .widget-field--return {
    order: 6;
    flex: 0 0 150px;
    min-width: 144px;
    margin: 0;
}

.has-search-results .widget-field--depart .widget-input-wrap input,
.has-search-results .widget-field--return .widget-input-wrap input {
    padding: 0.45rem 0.35rem 0.45rem 1.95rem !important;
    font-size: 0.835rem !important;
}

.has-search-results .widget-field--depart .widget-input-wrap > i,
.has-search-results .widget-field--return .widget-input-wrap > i {
    left: 0.65rem !important;
    font-size: 0.8rem !important;
}

.has-search-results .widget-header-selectors {
    order: 7;
    flex-shrink: 0;
    position: relative;
    margin: 0;
}

.has-search-results .header-pax-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    height: 42px;
    padding: 0.45rem 0.85rem;
    background: #ffffff;
    border: 1.5px solid var(--border, #e2e8f0);
    border-radius: 10px;
    font-size: 0.8375rem;
    font-weight: 600;
    color: var(--ink);
    cursor: pointer;
    white-space: nowrap;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.has-search-results .header-pax-trigger:hover,
.has-search-results .header-pax-trigger.active {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(84, 92, 213, 0.12);
}

.has-search-results .header-pax-trigger i.fa-user-friends {
    color: var(--primary-color);
    font-size: 0.85rem;
}

.has-search-results .header-pax-trigger i.caret-icon {
    font-size: 0.72rem;
    color: var(--secondary-color);
}

/* Floating Pax Dropdown Panel */
.has-search-results .header-selectors-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 290px;
    background: #ffffff;
    border: 1.5px solid var(--border, #e2e8f0);
    border-radius: 14px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
    padding: 1rem 1.15rem;
    z-index: 1060;
    flex-direction: column;
    gap: 0.85rem;
}

.has-search-results .header-selectors-dropdown.show {
    display: flex;
}

.has-search-results .pax-done-btn,
.has-search-results .pax-dropdown-header {
    display: block;
}

.has-search-results .pax-dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border, #e2e8f0);
    font-size: 0.875rem;
}

.has-search-results .header-selector-group {
    background: transparent;
    border: none;
    padding: 0;
}

.widget-direct-check,
.has-search-results .widget-direct-check {
    display: none !important;
}

.has-search-results .widget-field--submit {
    order: 9;
    flex-shrink: 0;
    margin: 0 !important;
}

.has-search-results .widget-field label {
    display: none !important;
}

.has-search-results .widget-input-wrap input {
    height: 42px !important;
    padding: 0.45rem 0.65rem 0.45rem 2.1rem !important;
    font-size: 0.875rem !important;
    border-radius: 10px !important;
    background: #ffffff !important;
}

.has-search-results .widget-input-wrap > i {
    font-size: 0.825rem !important;
    left: 0.75rem !important;
}

.has-search-results .widget-submit .btn {
    min-height: 42px !important;
    height: 42px !important;
    padding: 0.45rem 1.25rem !important;
    font-size: 0.875rem !important;
    font-weight: 700;
}

/* Responsive adjustments for results mode single-line search bar */
@media (max-width: 1180px) {
    .has-search-results #searchForm {
        flex-wrap: wrap;
        gap: 0.45rem;
    }
    
    .has-search-results .trip-type-tabs {
        order: 1;
    }
    
    .has-search-results .widget-header-selectors {
        order: 2;
    }
    
    .has-search-results .widget-field--origin {
        order: 3;
        flex: 1 1 150px;
    }
    
    .has-search-results .btn-swap-airports {
        order: 4;
    }
    
    .has-search-results .widget-field--destination {
        order: 5;
        flex: 1 1 150px;
    }
    
    .has-search-results .widget-field--depart {
        order: 6;
        flex: 1 1 140px;
    }
    
    .has-search-results .widget-field--return {
        order: 7;
        flex: 1 1 140px;
    }
    
    .has-search-results .widget-field--submit {
        order: 8;
        flex: 0 0 auto;
    }
}

@media (max-width: 768px) {
    .has-search-results .flight-hero {
        position: static;
        padding: 0.5rem 0 !important;
    }
    
    .has-search-results .header-selectors-dropdown {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        min-width: 100%;
        border-radius: 18px 18px 0 0;
        padding: 1.25rem;
        box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.2);
    }
    
    .has-search-results .widget-field--origin,
    .has-search-results .widget-field--destination {
        flex: 1 1 calc(50% - 20px);
    }
    
    .has-search-results .widget-field--depart,
    .has-search-results .widget-field--return {
        flex: 1 1 calc(50% - 5px);
    }
    
    .has-search-results .widget-field--submit {
        flex: 1 1 100%;
    }
}

/* ==========================================================================
   Hotel Portal Suppression (Setting-Driven)
   Suppressed by default unless .hotels-enabled is present on html or body
   ========================================================================== */
html:not(.hotels-enabled) a[href*="hotels.ministryoftravel.com.au"],
html:not(.hotels-enabled) .nav-hotels-btn,
html:not(.hotels-enabled) .nav-hotels,
html:not(.hotels-enabled) li:has(> a[href*="hotels.ministryoftravel.com.au"]),
body:not(.hotels-enabled) a[href*="hotels.ministryoftravel.com.au"],
body:not(.hotels-enabled) .nav-hotels-btn,
body:not(.hotels-enabled) .nav-hotels,
body:not(.hotels-enabled) li:has(> a[href*="hotels.ministryoftravel.com.au"]),
body:not(.hotels-enabled) [data-hotel-link] {
    display: none !important;
}

/* ==========================================================================
   Intuitive Form Validation & Mandatory Field Highlighting Styles
   ========================================================================== */
.form-control.is-invalid, 
.form-select.is-invalid {
    border-color: #dc3545 !important;
    background-color: #fff8f8 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.18) !important;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out, background-color 0.15s ease-in-out;
}

.form-check-input.is-invalid {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
}

.form-check.is-invalid,
.card.has-invalid-field {
    border: 1.5px solid #dc3545 !important;
    box-shadow: 0 4px 16px rgba(220, 53, 69, 0.12) !important;
    transition: all 0.2s ease;
}

.card.has-invalid-field .card-header {
    background-color: #fef2f2 !important;
    border-bottom: 1.5px solid #fecaca !important;
    color: #991b1b !important;
}

.card.has-invalid-field .card-header h5 {
    color: #991b1b !important;
}

.invalid-feedback {
    display: none;
    width: 100%;
    margin-top: 0.35rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #dc3545;
}

.is-invalid ~ .invalid-feedback,
.input-group.has-invalid-feedback ~ .invalid-feedback,
.input-group ~ .invalid-feedback {
    display: block;
}

.validation-error-summary {
    background-color: #fef2f2;
    border: 1.5px solid #f87171;
    border-radius: 12px;
    padding: 1.1rem 1.25rem;
    box-shadow: 0 4px 14px rgba(220, 53, 69, 0.1);
}

.validation-error-summary .validation-title {
    font-weight: 700;
    color: #991b1b;
    font-size: 0.95rem;
    margin-bottom: 0.6rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.validation-error-summary ul {
    margin-bottom: 0.5rem;
    padding-left: 1.25rem;
}

.validation-error-summary li {
    font-size: 0.85rem;
    color: #7f1d1d;
    margin-bottom: 0.35rem;
}

.validation-error-summary li:last-child {
    margin-bottom: 0;
}

.validation-error-summary .field-jump-btn {
    color: #005294;
    font-weight: 700;
    text-decoration: underline;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-size: inherit;
    text-align: left;
}

.validation-error-summary .field-jump-btn:hover {
    color: #dc3545;
}

