/* ===== FLIGHTS RESULTS PAGE - REDESIGNED ===== */

:root {
    --primary-blue: #1a3b5c;
    --accent-orange: #e85d3a;
    --bg-light: #f4f7fb;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    --card-hover-shadow: 0 10px 30px rgba(26, 59, 92, 0.1);
}

body {
    background-color: var(--bg-light);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--text-dark);
}

/* ===== LOADER ===== */
.fw-loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(255, 255, 255, 0.98);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.fw-loader.fw-hide {
    opacity: 0;
    visibility: hidden;
}

.fw-loader-box {
    text-align: center;
    width: min(90%, 400px);
    background: #fff;
    padding: 40px 30px;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
}

.fw-loader-gif {
    width: 120px;
    margin-bottom: 20px;
}

.fw-loader-heading {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary-blue);
    margin-bottom: 15px;
}

.fw-loader-route {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent-orange);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 10px;
}

.fw-progress {
    height: 6px;
    background: #e2e8f0;
    border-radius: 6px;
    overflow: hidden;
    margin-top: 25px;
}

.fw-progress span {
    display: block;
    height: 100%;
    background: var(--accent-orange);
    border-radius: 6px;
    animation: fw-load 1.6s infinite;
}

@keyframes fw-load {
    0% {
        width: 5%;
    }

    50% {
        width: 70%;
    }

    100% {
        width: 100%;
    }
}

/* ===== MAIN WRAPPER ===== */
.fw-results-wrap {
    padding: 30px 0 60px;
}

/* ===== TOP SEARCH SUMMARY BAR ===== */
.fw-search-summary {
    background: #fff;
    border-radius: 12px;
    padding: 20px 25px;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.fw-route-info h1 {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary-blue);
    margin: 0 0 5px;
}

.fw-route-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
}

.fw-modify-btn {
    background: #fff;
    color: var(--primary-blue);
    border: 1px solid var(--primary-blue);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.fw-modify-btn:hover {
    background: var(--primary-blue);
    color: #fff;
}

/* ===== NOTICE BAR ===== */
.fw-notice {
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
    border-radius: 10px;
    padding: 12px 20px;
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.fw-notice i {
    color: #d97706;
    font-size: 1.2rem;
}

/* ===== SIDEBAR FILTERS ===== */
.fw-filters {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 22px;
    box-shadow: var(--card-shadow);
    position: sticky;
    top: 20px;
}

.fw-filters-title {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary-blue);
    margin: 0 0 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.fw-reset-btn {
    font-size: 0.75rem;
    color: var(--accent-orange);
    cursor: pointer;
    font-weight: 600;
}

.fw-filter-group {
    margin-bottom: 25px;
}

.fw-filter-group h6 {
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    font-weight: 700;
    margin: 0 0 12px;
}

.fw-check {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-dark);
    margin-bottom: 10px;
    cursor: pointer;
}

.fw-check input {
    accent-color: var(--accent-orange);
    width: 16px;
    height: 16px;
    cursor: pointer;
}

/* ===== PRICE RANGE SLIDER (PURANA WALA, BAS COLOR CHANGE) ===== */
.fw-custom-price-box {
    position: relative;
    width: 100%;
    margin-bottom: 20px;
}

#fw-price-range {
    -webkit-appearance: none !important;
    appearance: none !important;
    width: 100% !important;
    height: 20px !important;
    background: transparent !important;
    outline: none !important;
    margin: 15px 0 !important;
    padding: 0 !important;
    position: static !important;
}

#fw-price-range::-webkit-slider-runnable-track {
    width: 100% !important;
    height: 6px !important;
    background: #e3e8ef !important;
    border-radius: 5px !important;
    border: none !important;
}

#fw-price-range::-webkit-slider-thumb {
    -webkit-appearance: none !important;
    appearance: none !important;
    height: 20px !important;
    width: 20px !important;
    border-radius: 50% !important;
    background: var(--accent-orange, #e85d3a) !important;
    /* Color change */
    margin-top: -7px !important;
    cursor: pointer !important;
    border: none !important;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2) !important;
}

#fw-price-range::-moz-range-track {
    width: 100% !important;
    height: 6px !important;
    background: #e3e8ef !important;
    border-radius: 5px !important;
    border: none !important;
}

#fw-price-range::-moz-range-thumb {
    height: 20px !important;
    width: 20px !important;
    border-radius: 50% !important;
    background: var(--accent-orange, #e85d3a) !important;
    /* Color change */
    cursor: pointer !important;
    border: none !important;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2) !important;
}

.fw-price-val {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 5px;
}

/* ===== FLIGHT CARDS LIST ===== */
.fw-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.fw-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px 25px;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    display: grid;
    grid-template-columns: 1.2fr 2.5fr 1fr 1.2fr;
    align-items: center;
    gap: 20px;
    position: relative;
}

.fw-card:hover {
    box-shadow: var(--card-hover-shadow);
    transform: translateY(-2px);
    border-color: #cbd5e1;
}

.fw-card-air {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.fw-air-code {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--primary-blue);
    letter-spacing: 0.5px;
}

.fw-air-name {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

.fw-card-times {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.fw-time-block {
    text-align: center;
    min-width: 70px;
}

.fw-time-big {
    display: block;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-blue);
}

.fw-time-big sup {
    color: var(--accent-orange);
    font-size: 0.7rem;
    font-weight: 600;
}

.fw-time-city {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-top: 2px;
}

.fw-time-mid {
    flex: 1;
    text-align: center;
    position: relative;
}

.fw-stops-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 600;
    display: block;
    margin-bottom: 4px;
}

.fw-line {
    position: relative;
    border-top: 2px solid #cbd5e1;
    margin: 4px 0;
    width: 100%;
}

.fw-line .bi {
    position: absolute;
    top: -9px;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    color: var(--accent-orange);
    padding: 0 6px;
    font-size: 0.9rem;
}

.fw-dur {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 500;
}

.fw-card-cabin {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-dark);
    font-weight: 600;
    background: #f1f5f9;
    padding: 6px 12px;
    border-radius: 6px;
    display: inline-block;
    width: fit-content;
    margin: 0 auto;
}

.fw-card-price {
    text-align: right;
    border-left: 1px dashed #cbd5e1;
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
}

.fw-price-from {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.fw-price-amt {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--accent-orange);
    line-height: 1.1;
}

.fw-price-pp {
    font-size: 0.65rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.fw-book-btn {
    background: var(--primary-blue);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.2s;
    display: inline-block;
    width: 100%;
    text-align: center;
}

.fw-book-btn:hover {
    background: var(--accent-orange);
    color: #fff;
    transform: translateY(-1px);
}

.fw-badge-lowest {
    position: absolute;
    top: -10px;
    left: 20px;
    background: #10b981;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.3);
}

/* ===== EMPTY STATE ===== */
.fw-empty {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: 12px;
    border: 1px dashed var(--border-color);
    color: var(--text-muted);
}

.fw-empty .bi {
    font-size: 3rem;
    color: #cbd5e1;
    margin-bottom: 15px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
    .fw-filters {
        position: static;
        margin-bottom: 25px;
    }

    .fw-card {
        grid-template-columns: 1fr 2fr 1fr 1fr;
        gap: 15px;
        padding: 15px;
    }
}

@media (max-width: 767px) {
    .fw-card {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 15px;
    }

    .fw-card-air {
        align-items: center;
    }

    .fw-card-times {
        flex-direction: row;
        justify-content: center;
        gap: 20px;
    }

    .fw-card-price {
        border-left: none;
        border-top: 1px dashed #cbd5e1;
        padding-left: 0;
        padding-top: 15px;
        align-items: center;
        width: 100%;
    }

    .fw-book-btn {
        width: 100%;
    }

    .fw-search-summary {
        flex-direction: column;
        align-items: flex-start;
    }

    .fw-route-info h1 {
        font-size: 1.1rem;
    }
}