/* ==========================================================================
   ZoomFlightz - Flight Listing Page Styles (flight-listing.css)
   ========================================================================== */

/* 1. Route Summary Banner */
.route-summary-banner {
    background: linear-gradient(135deg, var(--color-primary-hover) 0%, var(--color-primary) 50%, var(--color-primary-light) 100%);
    color: #ffffff;
    border-radius: var(--border-radius);
    padding: 18px 24px;
    box-shadow: var(--shadow-primary);
    margin-bottom: 20px;
}

.route-summary-airports {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.route-summary-airports i {
    width: 22px;
    height: 22px;
}

.route-meta-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.meta-pill {
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.meta-pill i {
    width: 14px;
    height: 14px;
}

.modify-search-toggle-btn {
    background: #ffffff;
    color: var(--color-primary-hover);
    font-weight: 700;
    font-size: 0.875rem;
    padding: 8px 18px;
    border-radius: 24px;
    border: none;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.modify-search-toggle-btn:hover,
.modify-search-toggle-btn.active {
    background: var(--color-primary-subtle);
    color: var(--color-primary);
    transform: translateY(-1px);
}

/* ==========================================================================
   2. Redesigned Airline & Stops Matrix Table
   ========================================================================== */
.airline-matrix-box {
    background: var(--color-bg-surface);
    border: 1px solid var(--color-border-default);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    margin-bottom: 24px;
}

.airline-matrix-top-bar {
    background: var(--color-accent);
    color: #ffffff;
    padding: 10px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.airline-matrix-top-title {
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -0.2px;
    margin: 0;
}

.airline-matrix-nav-arrows {
    display: flex;
    gap: 8px;
}

.matrix-nav-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #ffffff;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s ease;
    padding: 0;
}

.matrix-nav-btn:hover {
    background: #ffffff;
    color: var(--color-accent);
}

.airline-matrix-table-scroll {
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--color-border-strong) var(--color-bg-body);
}

.airline-matrix-table-scroll::-webkit-scrollbar {
    height: 6px;
}

.airline-matrix-table-scroll::-webkit-scrollbar-thumb {
    background: var(--color-border-strong);
    border-radius: 4px;
}

.airline-matrix-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 650px;
}

.airline-matrix-table th,
.airline-matrix-table td {
    padding: 10px 14px;
    border: 1px solid #f1f5f9;
    text-align: center;
    vertical-align: middle;
    font-size: 0.85rem;
}

.matrix-first-col-hdr {
    font-size: 0.95rem;
    font-weight: 800;
    color: #1e293b;
    text-align: center;
    background: #ffffff;
    width: 160px;
    min-width: 150px;
}

.matrix-airline-th {
    background: #f8fafc;
    min-width: 140px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.matrix-airline-th:hover,
.matrix-airline-th.active {
    background: #eff6ff;
}

.matrix-airline-logo-box {
    width: 42px;
    height: 42px;
    margin: 0 auto 6px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3px;
}

.matrix-airline-logo-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.matrix-airline-name-txt {
    font-size: 0.8rem;
    font-weight: 700;
    color: #334155;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 130px;
    margin: 0 auto;
}

.matrix-row-label {
    font-weight: 700;
    color: #334155;
    text-align: center;
    background: #ffffff;
}

.matrix-price-cell {
    font-weight: 600;
    color: #1e293b;
    cursor: pointer;
    transition: all 0.2s ease;
}

.matrix-price-cell:hover {
    background: var(--color-primary-subtle);
    color: var(--color-primary);
}

.matrix-price-cell.active-cell {
    background: var(--color-primary-subtle-border);
    font-weight: 800;
    color: var(--color-primary-hover);
}

.matrix-price-val {
    font-size: 0.88rem;
    font-weight: 700;
    color: #1e293b;
}

.matrix-price-val sup {
    font-size: 0.68rem;
    top: -0.3em;
}

.matrix-dash {
    color: #94a3b8;
    font-weight: 400;
}

/* ==========================================================================
   3. Filter Sidebar
   ========================================================================== */
.filters-sidebar {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--border-radius);
    padding: 18px 16px;
    box-shadow: var(--card-shadow);
    position: sticky;
    top: 80px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: var(--color-border-strong) var(--color-bg-body);
}

.filters-sidebar::-webkit-scrollbar {
    width: 6px;
}

.filters-sidebar::-webkit-scrollbar-track {
    background: var(--color-bg-body);
    border-radius: 4px;
}

.filters-sidebar::-webkit-scrollbar-thumb {
    background: var(--color-border-strong);
    border-radius: 4px;
}

.filters-sidebar::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.filters-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 14px;
}

.filters-main-title {
    font-weight: 800;
    font-size: 1.05rem;
    color: #0f172a;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.filters-sub-count {
    font-size: 0.78rem;
    color: #64748b;
    margin-top: 2px;
    margin-left: 22px;
}

.filter-reset-link {
    color: #ea580c;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: underline;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}

.filter-reset-link:hover {
    color: #c2410c;
}

.filter-group-block {
    padding-bottom: 16px;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 16px;
}

.filter-group-block:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.filter-group-header {
    font-size: 0.9rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.filter-group-header i {
    width: 16px;
    height: 16px;
    color: #475569;
}

.filter-group-sublabel {
    font-size: 0.78rem;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 8px;
    padding-left: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.filter-group-sublabel .filter-sublabel-code {
    color: #0284c7;
    font-weight: 800;
    flex-shrink: 0;
}

.filter-group-sublabel .filter-sublabel-sep {
    color: #94a3b8;
    flex-shrink: 0;
}

.filter-group-sublabel .filter-sublabel-name {
    color: #475569;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Time Slot Icon Buttons (00-06, 06-12, 12-18, 18-00) */
.time-slots-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    margin-top: 6px;
}

.time-slot-box {
    border: 1px solid var(--color-border-strong);
    background: var(--color-bg-surface);
    border-radius: var(--radius-sm);
    padding: 6px 2px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.time-slot-box:hover {
    border-color: var(--color-accent);
    background: var(--color-accent-subtle);
}

.time-slot-box.active {
    border-color: var(--color-accent);
    background: var(--color-accent);
    color: #ffffff;
}

.time-slot-icon-wrap {
    font-size: 1.1rem;
    line-height: 1;
    margin-bottom: 4px;
    display: flex;
    justify-content: center;
}

.time-slot-box i {
    width: 18px;
    height: 18px;
    color: #475569;
}

.time-slot-box.active i {
    color: #ffffff;
}

.time-slot-text {
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1;
}

/* Filter Checkbox Items */
.filter-row-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 0;
    cursor: pointer;
    font-size: 0.83rem;
    color: #334155;
    user-select: none;
}

.filter-row-item:hover {
    color: #0f172a;
}

.filter-row-left {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.filter-row-left input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--color-accent);
    border-radius: 3px;
    cursor: pointer;
    flex-shrink: 0;
}

.filter-label-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 145px;
    font-size: 0.82rem;
}

.filter-row-price {
    font-size: 0.8rem;
    font-weight: 700;
    color: #1e293b;
    flex-shrink: 0;
    margin-left: 6px;
}

.filter-row-price sup {
    font-size: 0.65rem;
    top: -0.3em;
}

/* Disabled filter rows (e.g. stop categories with 0 results) */
.filter-row-item.filter-disabled {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
}

.filter-row-item.filter-disabled input[type="checkbox"] {
    cursor: not-allowed;
}

.filter-row-item.filter-disabled .filter-label-name {
    color: #94a3b8;
}

.filter-row-item.filter-disabled .filter-row-price {
    color: #94a3b8;
    font-size: 0.75rem;
    font-style: italic;
}

/* Fares Slider (Single Dual-Handle Range Slider) */
.fare-range-display {
    display: flex;
    justify-content: space-between;
    font-size: 0.88rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 12px;
}

.dual-slider-wrapper {
    position: relative;
    width: 100%;
    height: 28px;
    display: flex;
    align-items: center;
}

.dual-slider-track {
    position: absolute;
    width: 100%;
    height: 6px;
    background: #e2e8f0;
    border-radius: 999px;
    z-index: 1;
}

.dual-slider-progress {
    position: absolute;
    height: 100%;
    background: var(--color-accent, #ff5722);
    border-radius: 999px;
    left: 0%;
    right: 0%;
    z-index: 1;
}

.dual-range-input {
    position: absolute;
    width: 100%;
    height: 6px;
    background: none;
    pointer-events: none;
    -webkit-appearance: none;
    appearance: none;
    margin: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
}

/* WebKit (Chrome, Safari, Edge) */
.dual-range-input::-webkit-slider-runnable-track {
    background: transparent;
    height: 6px;
}

.dual-range-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ff5722;
    border: 2.5px solid #ffffff;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.35);
    cursor: pointer;
    pointer-events: auto;
    margin-top: -7px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.dual-range-input::-webkit-slider-thumb:hover,
.dual-range-input::-webkit-slider-thumb:active {
    transform: scale(1.2);
    box-shadow: 0 2px 8px rgba(255, 87, 34, 0.45);
}

/* Firefox */
.dual-range-input::-moz-range-track {
    background: transparent;
    height: 6px;
}

.dual-range-input::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ff5722;
    border: 2.5px solid #ffffff;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.35);
    cursor: pointer;
    pointer-events: auto;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.dual-range-input::-moz-range-thumb:hover,
.dual-range-input::-moz-range-thumb:active {
    transform: scale(1.2);
    box-shadow: 0 2px 8px rgba(255, 87, 34, 0.45);
}

/* ==========================================================================
   4. Results Header & Sort Toolbar
   ========================================================================== */
.results-header-toolbar {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--border-radius);
    padding: 12px 18px;
    box-shadow: var(--card-shadow);
    margin-bottom: 18px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.results-count-text {
    font-size: 0.95rem;
    color: #334155;
}

.results-count-number {
    font-weight: 800;
    color: #0f172a;
}

.sort-tabs-group {
    display: flex;
    background: #f1f5f9;
    padding: 3px;
    border-radius: 8px;
    gap: 2px;
}

.sort-tab-btn {
    border: none;
    background: none;
    font-size: 0.82rem;
    font-weight: 600;
    color: #64748b;
    padding: 6px 14px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.sort-tab-btn i {
    width: 14px;
    height: 14px;
}

.sort-tab-btn:hover {
    color: #0f172a;
}

.sort-tab-btn.active {
    background: #ffffff;
    color: var(--color-primary);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    font-weight: 700;
}

/* ==========================================================================
   5. Flight Offer Card & Clean Leg Layout
   ========================================================================== */
.flight-offer-card {
    background: #ffffff;
    border: 1px solid var(--color-border-default);
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    margin-bottom: 18px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    overflow: hidden;
}

.flight-offer-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--color-primary-subtle-border);
    transform: translateY(-2px);
}

.offer-card-main {
    padding: 20px 24px;
}

/* Leg Row Layout */
.flight-leg-row {
    margin-bottom: 14px;
}

.flight-leg-row:last-child {
    margin-bottom: 0;
}

/* Leg Header Bar */
.flight-leg-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    padding-bottom: 2px;
}

.flight-leg-header-left {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.flight-leg-airline-logo {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    object-fit: contain;
    background: #ffffff;
    border: 1px solid var(--color-border-default);
    padding: 2px;
    flex-shrink: 0;
}

.flight-leg-airline-name {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--color-text-primary);
}

.flight-leg-tag {
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--color-primary);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.flight-leg-tag.return-tag {
    color: var(--color-primary);
}

.flight-leg-number {
    font-size: 0.78rem;
    color: #475569;
    font-weight: 700;
    background: #f1f5f9;
    padding: 2px 8px;
    border-radius: 4px;
}

.flight-leg-equipment {
    font-size: 0.72rem;
    color: #64748b;
    font-weight: 600;
}

.flight-leg-header-right {
    display: flex;
    align-items: center;
    gap: 6px;
}

.leg-cabin-badge {
    background: #f0fdf4;
    color: #15803d;
    border: 1px solid #bbf7d0;
    font-size: 0.74rem;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Leg Grid */
.flight-leg-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8fafc;
    border-radius: 10px;
    padding: 14px 18px;
    gap: 8px;
}

.flight-time-col {
    text-align: center;
    min-width: 95px;
    flex-shrink: 0;
}

.flight-time-val {
    font-size: 1.25rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
    display: inline-flex;
    align-items: baseline;
    justify-content: center;
}

.days-diff-badge {
    color: #dc2626;
    font-size: 0.72rem;
    font-weight: 800;
    margin-left: 4px;
    padding: 1px 5px;
    border-radius: 4px;
    vertical-align: super;
}

.flight-airport-code {
    font-size: 1.1rem;
    font-weight: 800;
    color: #0284c7;
    line-height: 1.1;
    margin-top: 2px;
}

.flight-airport-city {
    font-size: 0.78rem;
    font-weight: 700;
    color: #1e293b;
    max-width: 150px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 2px auto 0;
    line-height: 1.2;
}

.flight-airport-name {
    font-size: 0.70rem;
    font-weight: 500;
    color: #64748b;
    max-width: 150px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 1px auto 0;
    line-height: 1.2;
}

.flight-duration-col {
    flex-grow: 1;
    text-align: center;
    padding: 0 12px;
    position: relative;
    min-width: 85px;
}

.flight-duration-text {
    font-size: 0.84rem;
    font-weight: 800;
    color: #1e293b;
    white-space: nowrap;
    margin-bottom: 4px;
}

/* Clean line without overlapping plane icon */
.flight-line-visual {
    height: 2px;
    background: var(--color-border-strong);
    margin: 4px 0 6px;
    position: relative;
}

/* Flight Stops Wrapper & Pure CSS Hover Popup */
.flight-stops-wrap {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.flight-stops-pill {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 12px;
    white-space: nowrap;
    cursor: pointer;
    transition: transform 0.15s ease, filter 0.15s ease;
}

.flight-stops-wrap:hover .flight-stops-pill {
    transform: translateY(-1px);
    filter: brightness(0.96);
}

.flight-stops-pill.non-stop {
    background: #dcfce7;
    color: #15803d;
}

.flight-stops-pill.has-stops {
    background: #fef3c7;
    color: #b45309;
}

.stop-hover-popup {
    display: none;
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: #0f172a;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 6px;
    white-space: nowrap;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.25);
    z-index: 100;
    pointer-events: none;
    line-height: 1.3;
}

.stop-hover-popup::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: #0f172a transparent transparent transparent;
}

.flight-stops-wrap:hover .stop-hover-popup {
    display: block;
}

/* Baggage & Tags Bar */
.offer-tags-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.tag-badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.tag-badge.baggage {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}

.tag-badge.refundable {
    background: #f5f3ff;
    color: #6d28d9;
    border: 1px solid #ddd6fe;
}

/* Card Price & Action Panel */
.offer-pricing-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    border-left: 1px dashed #e2e8f0;
    padding-left: 20px;
    height: 100%;
}

.offer-grand-price {
    font-size: 1.85rem;
    font-weight: 900;
    color: var(--color-success-hover);
    line-height: 1.1;
}

.offer-currency {
    font-size: 1.05rem;
    font-weight: 700;
    margin-right: 2px;
}

.offer-price-subtext {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    margin-bottom: 8px;
    text-align: right;
}

.fare-breakdown-trigger {
    font-size: 0.72rem;
    color: var(--color-primary);
    text-decoration: underline;
    cursor: pointer;
    margin-bottom: 12px;
}

.offer-book-btn {
    background: var(--color-primary);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 10px 22px;
    border-radius: var(--radius-sm);
    border: none;
    transition: var(--transition-base);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    box-shadow: var(--shadow-primary);
    width: 100%;
    justify-content: center;
}

.offer-book-btn:hover {
    background: var(--color-primary-hover);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(var(--color-primary-rgb), 0.35);
}

.offer-details-toggle-btn {
    background: transparent;
    border: 1px solid var(--color-border-strong);
    color: #475569;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 8px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    justify-content: center;
    transition: all 0.2s ease;
}

.offer-details-toggle-btn:hover {
    background: #f1f5f9;
    color: #0f172a;
}

/* ==========================================================================
   6. Horizontal Itinerary Drawer (Matching User Reference Design)
   ========================================================================== */
.offer-details-drawer {
    display: none;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    padding: 24px 28px;
}

.offer-details-drawer.open {
    display: block;
    animation: fadeInSlide 0.25s ease;
}

@keyframes fadeInSlide {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

.drawer-section-title {
    font-size: 1.18rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 16px 0;
    letter-spacing: -0.2px;
}

.drawer-segment-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    gap: 16px;
}

.drawer-seg-airline-col {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-width: 220px;
    flex-shrink: 0;
}

.drawer-seg-airline-logo {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    object-fit: contain;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 3px;
    flex-shrink: 0;
}

.drawer-seg-airline-name {
    font-size: 0.95rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
}

.drawer-seg-flight-info {
    font-size: 0.78rem;
    color: #64748b;
    margin-top: 2px;
}

.drawer-seg-duration {
    font-size: 0.78rem;
    color: #475569;
    margin-top: 4px;
    font-weight: 500;
}

.drawer-seg-time-col {
    min-width: 120px;
}

.drawer-seg-time {
    font-size: 1.15rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.15;
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.drawer-days-diff {
    color: var(--color-accent);
    font-size: 0.72rem;
    font-weight: 800;
    vertical-align: super;
}

.drawer-seg-date {
    font-size: 0.8rem;
    color: #475569;
    font-weight: 500;
    margin-top: 2px;
}

.drawer-seg-city {
    font-size: 0.82rem;
    color: #1e293b;
    font-weight: 700;
    margin-top: 1px;
}

.drawer-seg-airport {
    font-size: 0.72rem;
    color: #64748b;
    font-weight: 500;
    margin-top: 2px;
    max-width: 220px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.drawer-seg-connector {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    max-width: 100px;
    min-width: 40px;
}

.drawer-seg-line {
    height: 2px;
    width: 100%;
    background: var(--color-accent);
    border-radius: 2px;
}

.drawer-seg-cabin-col {
    min-width: 90px;
    text-align: right;
    flex-shrink: 0;
}

.drawer-cabin-text {
    font-size: 0.88rem;
    color: #334155;
    font-weight: 600;
}

/* Layover Between Segments */
.drawer-layover-row {
    position: relative;
    text-align: center;
    margin: 14px 0;
}

.drawer-layover-line {
    border-top: 1px dashed var(--color-border-strong);
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    z-index: 1;
}

.drawer-layover-badge {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ffffff;
    padding: 0 16px;
    font-size: 0.8rem;
    color: #ea580c;
    font-weight: 600;
}

/* Total Trip Time Row */
.drawer-total-trip-row {
    text-align: right;
    font-size: 0.86rem;
    font-weight: 700;
    color: #475569;
    margin-top: 10px;
    padding-top: 6px;
}

.drawer-section-divider {
    border: 0;
    border-top: 1px solid #e2e8f0;
    margin: 20px 0;
}

/* ==========================================================================
   7. "Call Us" Promo Banners
   ========================================================================== */
.call-us-promo-banner {
    background: linear-gradient(135deg, var(--color-bg-dark) 0%, var(--color-bg-dark-surface) 50%, var(--color-primary-hover) 100%);
    border: 2px solid var(--color-primary-light);
    border-radius: var(--border-radius);
    color: #ffffff;
    padding: 18px 24px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.call-us-promo-banner::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.call-banner-content {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

@media (min-width: 768px) {
    .call-banner-content {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.call-banner-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.call-banner-icon-box {
    width: 52px;
    height: 52px;
    background: var(--color-accent);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(var(--color-accent-rgb), 0.4);
    flex-shrink: 0;
}

.call-banner-icon-box i {
    width: 26px;
    height: 26px;
}

.call-banner-title {
    font-size: 1.15rem;
    font-weight: 900;
    color: #ffffff;
    margin: 0 0 4px 0;
    letter-spacing: -0.3px;
}

.call-banner-subtitle {
    font-size: 0.85rem;
    color: var(--color-primary-subtle-border);
    margin: 0;
}

.call-banner-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 6px;
}

.call-banner-badge {
    background: rgba(255, 255, 255, 0.15);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 12px;
    color: var(--color-primary-subtle);
}

.call-banner-right {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}

@media (min-width: 768px) {
    .call-banner-right {
        align-items: flex-end;
    }
}

.call-banner-cta-btn {
    background: var(--color-accent);
    color: #ffffff;
    font-weight: 800;
    font-size: 1rem;
    padding: 10px 22px;
    border-radius: 30px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(255, 87, 34, 0.45);
    transition: all 0.2s ease;
    white-space: nowrap;
}

.call-banner-cta-btn:hover {
    background: #ea580c;
    color: #ffffff;
    transform: scale(1.03);
    box-shadow: 0 6px 18px rgba(255, 87, 34, 0.6);
}

.call-banner-toll-sub {
    font-size: 0.74rem;
    color: #93c5fd;
    font-weight: 600;
}

/* ==========================================================================
   8. "Load More Flights" Button
   ========================================================================== */
.load-more-container {
    text-align: center;
    margin: 24px 0 32px;
}

.load-more-btn {
    background: #ffffff;
    color: var(--color-primary-hover);
    border: 2px solid var(--color-primary);
    font-size: 0.95rem;
    font-weight: 800;
    padding: 12px 36px;
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition-base);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow-sm);
}

.load-more-btn:hover {
    background: var(--color-primary);
    color: #ffffff;
    box-shadow: var(--shadow-primary);
    transform: translateY(-2px);
}

.load-more-btn i {
    width: 18px;
    height: 18px;
}

/* ==========================================================================
   9. Responsive Adjustments
   ========================================================================== */
@media (max-width: 991px) {
    .offer-pricing-panel {
        border-left: none;
        border-top: 1px dashed #e2e8f0;
        padding-left: 0;
        padding-top: 16px;
        margin-top: 16px;
        align-items: center;
        text-align: center;
    }

    .offer-price-subtext {
        text-align: center;
    }

    .offer-book-btn {
        max-width: 280px;
    }

    .offer-details-toggle-btn {
        max-width: 280px;
    }

    .filters-sidebar {
        position: static;
        max-height: none;
        margin-bottom: 24px;
    }
}

@media (max-width: 768px) {
    .offer-card-main {
        padding: 16px 16px;
    }

    .offer-details-drawer {
        padding: 18px 16px;
    }

    .drawer-segment-row {
        flex-wrap: wrap;
        gap: 12px;
    }

    .drawer-seg-airline-col {
        min-width: 100%;
    }

    .drawer-seg-time-col {
        min-width: 100px;
    }

    .drawer-seg-connector {
        min-width: 30px;
        max-width: 60px;
    }

    .flight-leg-grid {
        padding: 12px 14px;
        gap: 6px;
    }

    .flight-time-col {
        min-width: 75px;
    }

    .flight-time-val {
        font-size: 1.1rem;
    }

    .flight-airport-code {
        font-size: 0.98rem;
    }

    .flight-airport-city {
        max-width: 110px;
        font-size: 0.72rem;
    }

    .flight-airport-name {
        max-width: 110px;
        font-size: 0.65rem;
    }

    .flight-duration-col {
        padding: 0 6px;
        min-width: 70px;
    }

    .flight-duration-text {
        font-size: 0.78rem;
    }

    .flight-stops-pill {
        font-size: 0.68rem;
        padding: 1px 6px;
    }

    .offer-grand-price {
        font-size: 1.7rem;
    }
}

@media (max-width: 576px) {
    .offer-card-main {
        padding: 14px 12px;
    }

    .drawer-segment-row {
        gap: 10px;
    }

    .drawer-seg-cabin-col {
        min-width: 100%;
        text-align: left;
        margin-top: 4px;
    }

    .flight-leg-grid {
        padding: 10px 8px;
        gap: 4px;
    }

    .flight-time-col {
        min-width: 65px;
    }

    .flight-time-val {
        font-size: 0.96rem;
    }

    .days-diff-badge {
        font-size: 0.65rem;
        padding: 0 3px;
    }

    .flight-airport-code {
        font-size: 0.88rem;
    }

    .flight-airport-city {
        max-width: 85px;
        font-size: 0.68rem;
    }

    .flight-airport-name {
        max-width: 85px;
        font-size: 0.62rem;
    }

    .offer-airline-name {
        font-size: 0.9rem;
    }

    .offer-book-btn {
        max-width: 100%;
    }

    .offer-details-toggle-btn {
        max-width: 100%;
    }
}

/* ==========================================================================
   Simple Flight Search Loading Progress Bar
   ========================================================================== */
.simple-search-progress-bar-wrapper {
    width: 100%;
    height: 4px;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 20px;
    position: relative;
}

.simple-search-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--color-accent) 0%, var(--color-accent-hover) 100%);
    border-radius: 999px;
    width: 15%;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 8px rgba(var(--color-accent-rgb), 0.4);
}


