/* ===== FLIGHTS RESULTS PAGE ===== */

/* ===== REALISTIC LOADER ===== */
.fw-loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(246, 248, 251, 0.97);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity .4s ease, visibility .4s ease;
}

.fw-loader.fw-hide {
    opacity: 0;
    visibility: hidden;
}

.fw-loader-box {
    text-align: center;
    width: min(90%, 380px);
    background: #ffffff;
    padding: 35px 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(29, 53, 87, 0.08);
    border: 1px solid #eef2f7;
}

.fw-loader-gif {
    width: 100px;
    height: auto;
    margin-bottom: 15px;
}

.fw-loader-heading {
    color: var(--dark-bg);
    font-weight: 700;
    font-size: 1.15rem;
    margin: 0 0 12px;
}

.fw-loader-route {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--accent-color);
    margin: 0 0 8px;
}

.fw-loader-route .bi {
    color: #c4ccd8;
    font-size: 1rem;
}

.fw-loader-subtext {
    color: #6c757d;
    font-size: 0.85rem;
    margin: 0 0 25px;
}

.fw-progress {
    height: 4px;
    border-radius: 4px;
    background: #eef2f7;
    overflow: hidden;
}

.fw-progress span {
    display: block;
    height: 100%;
    background: var(--accent-color);
    border-radius: 4px;
    animation: fw-load 1.6s ease-in-out infinite;
}

@keyframes fw-load {
    0% { width: 5%; }
    50% { width: 70%; }
    100% { width: 100%; }
}

.fw-progress {
    height: 6px;
    border-radius: 6px;
    background: rgba(29, 53, 87, .1);
    overflow: hidden
}

.fw-progress span {
    display: block;
    height: 100%;
    background: var(--accent-color);
    border-radius: 6px;
    animation: fw-load 1.6s ease-in-out infinite
}

@keyframes fw-load {
    0% {
        width: 8%
    }

    50% {
        width: 70%
    }

    100% {
        width: 100%
    }
}

/* Wrap */
.fw-results-wrap {
    padding: 30px 0 50px;
    background: #f6f8fb;
    min-height: 60vh
}

/* Head */
.fw-search-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 18px
}

.fw-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-bg);
    margin: 0
}

.fw-title .fw-arrow {
    color: var(--accent-color)
}

.fw-subtitle {
    color: #6c757d;
    font-size: .9rem;
    margin: 4px 0 0
}

.fw-sort label {
    font-size: .8rem;
    color: #6c757d;
    margin-right: 6px
}

.fw-sort select {
    border: 1px solid #d7dee8;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: .9rem;
    color: var(--dark-bg);
    background: #fff;
    outline: none
}

/* Notice */
.fw-notice {
    background: #fff8e6;
    border: 1px solid #ffe6a1;
    color: #7a5b00;
    border-radius: 10px;
    padding: 14px 18px;
    font-size: .9rem;
    line-height: 1.5;
    margin-bottom: 22px
}

.fw-notice strong {
    color: #6b4e00
}

/* Filters */
.fw-filters {
    background: #fff;
    border: 1px solid rgba(29, 53, 87, .1);
    border-radius: 12px;
    padding: 20px;
    position: sticky;
    top: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, .03)
}

.fw-filters-title {
    font-weight: 700;
    color: var(--dark-bg);
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eef2f7
}

.fw-filter-group {
    margin-bottom: 20px
}

.fw-filter-group h6 {
    text-transform: uppercase;
    font-size: .75rem;
    letter-spacing: .04em;
    color: #8a94a6;
    font-weight: 700;
    margin: 0 0 10px
}

.fw-check {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .9rem;
    color: #33404f;
    margin-bottom: 8px;
    cursor: pointer
}

.fw-check input {
    accent-color: var(--accent-color);
    width: 16px;
    height: 16px
}

/* Container ko secure karna */
/* Container ko secure karna */
.fw-custom-price-box {
    position: relative;
    width: 100%;
    margin-bottom: 20px;
}

/* 1. Main Input Wrapper */
#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;
}

/* 2. WebKit Track (Chrome/Safari/Edge) */
#fw-price-range::-webkit-slider-runnable-track {
    width: 100% !important;
    height: 6px !important;
    background: #e3e8ef !important;
    border-radius: 5px !important;
    border: none !important;
}

/* 3. WebKit Thumb (Circle) */
#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-color, #e63946) !important;
    margin-top: -7px !important; 
    cursor: pointer !important;
    border: none !important;
    box-shadow: 0 0 5px rgba(0,0,0,0.2) !important;
}

/* 4. Firefox Track */
#fw-price-range::-moz-range-track {
    width: 100% !important;
    height: 6px !important;
    background: #e3e8ef !important;
    border-radius: 5px !important;
    border: none !important;
}

/* 5. Firefox Thumb */
#fw-price-range::-moz-range-thumb {
    height: 20px !important;
    width: 20px !important;
    border-radius: 50% !important;
    background: var(--accent-color, #e63946) !important;
    cursor: pointer !important;
    border: none !important;
    box-shadow: 0 0 5px rgba(0,0,0,0.2) !important;
}

.fw-filter-call {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--dark-bg);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    padding: 12px;
    font-weight: 600;
    font-size: .9rem;
    margin-top: 6px
}

.fw-filter-call:hover {
    background: #16283f;
    color: #fff
}

/* Cards */
.fw-list {
    display: flex;
    flex-direction: column;
    gap: 16px
}

.fw-card {
    background: #fff;
    border: 1px solid rgba(29, 53, 87, .1);
    border-radius: 12px;
    display: grid;
    grid-template-columns: 1.3fr 2.4fr .8fr 1.1fr;
    align-items: center;
    gap: 12px;
    padding: 18px 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, .03);
    transition: box-shadow .3s, transform .3s
}

.fw-card:hover {
    box-shadow: 0 12px 25px rgba(29, 53, 87, .1);
    transform: translateY(-2px)
}

.fw-air-code {
    display: block;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--dark-bg)
}

.fw-air-name {
    display: block;
    font-size: .82rem;
    color: #6c757d
}

.fw-card-times {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px
}

.fw-time-block {
    text-align: center
}

.fw-time-big {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark-bg)
}

.fw-time-big sup {
    color: var(--accent-color);
    font-size: .7rem
}

.fw-time-city {
    display: block;
    font-size: .72rem;
    color: #8a94a6
}

.fw-time-mid {
    flex: 1;
    text-align: center;
    min-width: 90px
}

.fw-stops-label {
    font-size: .72rem;
    color: #6c757d
}

.fw-line {
    position: relative;
    border-top: 2px dotted rgba(29, 53, 87, .3);
    margin: 6px 0
}

.fw-line .bi {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    color: var(--accent-color);
    padding: 0 4px
}

.fw-dur {
    font-size: .72rem;
    color: #8a94a6
}

.fw-card-cabin {
    text-align: center;
    font-size: .85rem;
    color: #33404f
}

.fw-card-price {
    text-align: center;
    border-left: 1px dashed #e3e8ef;
    padding-left: 12px
}

.fw-price-from {
    font-size: .72rem;
    color: #8a94a6
}

.fw-price-amt {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--dark-bg);
    line-height: 1.1
}

.fw-price-pp {
    font-size: .68rem;
    color: #8a94a6;
    margin-bottom: 8px
}

.fw-book-btn {
    display: inline-block;
    background: var(--dark-bg);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    padding: 9px 16px;
    font-weight: 600;
    font-size: .85rem;
    white-space: nowrap;
    transition: background .2s
}

.fw-book-btn:hover {
    background: var(--accent-color);
    color: #fff
}

/* Empty state */
.fw-empty {
    text-align: center;
    padding: 50px 20px;
    color: #6c757d;
    background: #fff;
    border-radius: 12px;
    border: 1px solid rgba(29, 53, 87, .08)
}

.fw-empty .bi {
    font-size: 2rem;
    color: #c4ccd8
}

.fw-empty p {
    margin: 12px 0 16px
}

/* Responsive */
@media (max-width:991px) {
    .fw-filters {
        position: static;
        margin-bottom: 20px
    }
}

@media (max-width:767px) {
    .fw-card {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 14px
    }

    .fw-card-price {
        border-left: none;
        border-top: 1px dashed #e3e8ef;
        padding-left: 0;
        padding-top: 14px
    }

    .fw-title {
        font-size: 1.2rem
    }
}