/* ===== FLYX TYPOGRAPHY REFINEMENT (Ixigo Style Parity) ===== */

/* 0. FontAwesome & Icon Font Protection */
.fa, .fas, .far, .fab, .fal, 
[class*=" fa-"], [class^="fa-"], 
i.fa, span.fa, i[class*="fa"], span[class*="fa"],
.fa:before, .fas:before, .far:before, .fab:before, 
[class*=" fa-"]:before, [class^="fa-"]:before,
.fa:after, .fas:after, .far:after, .fab:after,
.refundablespan:before, .nonrefundablespan:before, .red:before, .seatleftspan:before,
.fx-badge-ref:before, .fx-badge-nref:before, .fx-badge-seat:before {
    font-family: FontAwesome, 'FontAwesome', 'Font Awesome 5 Free', 'fx-fontawesome-lite' !important;
}

/* 1. Global Base Font Stack (Inter font with strong rendering) */
body, p, div, label, input, button, select, a, strong, small, h1, h2, h3, h4, h5, h6, td, th,
span:not(.fa):not([class*="fa-"]):not([class*="fa"]):not(.fa-before):not(.refundablespan):not(.nonrefundablespan):not(.red):not(.seatleftspan) {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 2. Filter Headers / Titles (PRICE RANGE, FLIGHT DURATION, STOPS, etc.) */
.filtersidebar .card-header,
.filtersidebar .fx-filter-title,
.fx-route-filter-card .card-header,
.fx-route-filter-card .fx-filter-title,
.fx-filter-title {
    font-size: 14px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.04em !important;
    color: #0f172a !important;
}

/* 3. Filter Reset Buttons */
.filtersidebar .fx-filter-reset,
.fx-route-filter-card .fx-filter-reset,
.fx-filter-reset {
    font-size: 12px !important;
    font-weight: 600 !important;
    text-transform: none !important;
    color: #ff5a1f !important;
    letter-spacing: 0 !important;
}

/* 4. Price & Duration Slider Values */
.filtersidebar .fx-route-price-value,
.filtersidebar .range-value,
.fx-route-filter-card .fx-route-price-value {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
}

.filtersidebar #slider-ranges + div,
.filtersidebar #slider-ranges-duration + div,
.filtersidebar .fx-price-current {
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #334155 !important;
}

/* 5. Filter Option Buttons & Labels (Stops, Layover, Fare Type, Times) */
.filtersidebar .custom-control-label,
.filtersidebar .fx-stop-filter-group .custom-control-label,
.filtersidebar .fx-fare-filter .custom-control-label,
.fx-time-btn,
.fx-filter-label,
.fx-filter-row {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #0f172a !important;
    letter-spacing: 0 !important;
}

/* Sub-counts (0 flights, Up to ₹19,784, Longest layover info) */
.filtersidebar .fx-stop-counts,
.filtersidebar .fx-stop-counts span,
.filtersidebar .card-body small,
.filtersidebar .card-body span.ct-rating-count,
.filtersidebar .fx-filter-count,
.filtersidebar .card-body p,
.filtersidebar small {
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #475569 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
}

/* Checked state for stop/fare/layover buttons */
.filtersidebar .custom-control-input:checked ~ .custom-control-label {
    font-weight: 700 !important;
}

/* 6. Header Modify Search Strip (Search Box on Search & Landing Pages) */
.fx-search-field label,
.fx-modify-field label,
.lable,
.searchdestinationboxclass .lable,
.fx-search-trip label span,
.fx-top-tools span {
    font-size: 11px !important;
    font-weight: 600 !important;
    color: #475569 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.04em !important;
}

.closesearchbanner .lable,
.closesearchbanner span {
    color: rgba(255, 255, 255, 0.92) !important;
    font-weight: 600 !important;
}

.fx-search-field input,
.fx-search-field select,
.fx-modify-field input,
.fx-modify-field select,
.textfield strong,
.searchdestinationboxclass strong,
.fx-search-air strong,
.closesearchbanner strong {
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
}

.closesearchbanner strong {
    color: #ffffff !important;
}

.fx-search-trip label,
.fx-search-trip input + label {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #0f172a !important;
}

.trending-searches,
.fx-search-trip label span {
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #334155 !important;
}

/* 7. Date Carousel Bar */
.date-carousel .day-tab,
.fx-date-tab,
.fx-date-tab span {
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #334155 !important;
}
.date-carousel .day-tab strong,
.fx-date-tab strong {
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
}
.date-carousel .day-tab .fx-price,
.fx-date-tab .fx-price {
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #16a34a !important;
}

/* 8. Sort Bar */
.sort-bar,
.fx-sort-container,
.fx-lp-pricelistflight .flhead {
    font-size: 12px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    text-transform: uppercase !important;
}
.sort-bar .sort-item,
.fx-sort-item {
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #1e293b !important;
}

/* 9. Flight Cards Typography & Badges */
.fx-flight-card .fx-fc-aname,
.fx-airline-name {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
}

.fx-flight-card .fx-fc-fnum,
.fx-airline-code {
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #475569 !important;
}

.fx-flight-card .fx-fc-time,
.fx-flight-time {
    font-size: 24px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    letter-spacing: -0.3px !important;
}

.fx-flight-card .fx-fc-city strong,
.fx-flight-card .fx-airport-label strong {
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
}

.fx-flight-card .fx-fc-city .fx-airport-detail,
.fx-flight-card .fx-airport-label span {
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #334155 !important;
}

.fx-flight-card .fx-ns-dur,
.fx-flight-duration {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #334155 !important;
}

.fx-flight-card .fx-badge-nonstop,
.fx-flight-card .fx-badge-stop {
    font-size: 12px !important;
    font-weight: 600 !important;
}

.fx-flight-card .fx-fc-price,
.fx-fare-price {
    font-size: 24px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
}

.fx-flight-card .fx-fc-ptext {
    font-size: 11px !important;
    font-weight: 600 !important;
    color: #475569 !important;
    text-transform: none !important;
}

.fx-flight-card .fx-btn-select,
.buttonbook,
.ct-view-btn {
    font-size: 15px !important;
    font-weight: 700 !important;
}

/* Refundable / Seat Left Badges & Icons */
.refundablespan,
.is-ref,
.fx-ref-badge {
    color: #16a34a !important;
    font-weight: 700 !important;
    font-size: 13px !important;
}
.refundablespan:before {
    content: "\f058" !important;
    font-family: FontAwesome, 'FontAwesome', 'fx-fontawesome-lite' !important;
    margin-right: 5px !important;
    display: inline-block !important;
}

.nonrefundablespan,
.is-nref,
.fx-nref-badge {
    color: #dc2626 !important;
    font-weight: 700 !important;
    font-size: 13px !important;
}
.nonrefundablespan:before {
    content: "\f057" !important;
    font-family: FontAwesome, 'FontAwesome', 'fx-fontawesome-lite' !important;
    margin-right: 5px !important;
    display: inline-block !important;
}
.fx-ref-badge:before,
.fx-nref-badge:before,
.fx-badge-seat:before {
    content: none !important;
}

.seatleftspan,
.fx-seat-left,
#flightresult .red {
    color: #d97706 !important;
    font-weight: 700 !important;
    font-size: 13px !important;
}
.seatleftspan:before,
.fx-seat-left:before,
#flightresult .red:before {
    content: "\f007" !important;
    font-family: FontAwesome, 'FontAwesome', 'fx-fontawesome-lite' !important;
    margin-right: 5px !important;
    display: inline-block !important;
}

/* 10. Route Landing Pages Meta & Text Cards */
.fx-rl-hotel strong,
.ct-hotel-name,
.ct-rating-label {
    font-weight: 700 !important;
    color: #0f172a !important;
}
.ct-address,
.ct-rating-count,
.ct-per-night,
.ct-total-amount {
    font-weight: 600 !important;
    color: #334155 !important;
}

/* 11. Calendar & Modal Overlay (No Backdrop Blur, Clean Translucent Dimming) */
.fx-flight-date-overlay,
.fx-flight-date-overlay.is-open {
    background: rgba(15, 23, 42, 0.16) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

body.flyx-flight-date-open,
body.flyx-flight-date-open > *,
body.fx-premium-cal-open,
body.fx-premium-cal-open > * {
    filter: none !important;
    -webkit-filter: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* 12. Domestic Roundtrip Split Color Date Carousel & Sparklines */
.fx-rt-label.dep-lbl {
    color: #2563eb !important;
    font-weight: 700 !important;
}

.fx-rt-label.ret-lbl {
    color: #ff5a1f !important;
    font-weight: 700 !important;
}

.dep-half .fx-date-card.active {
    border: 1.5px solid #2563eb !important;
    background: #eff6ff !important;
}
.dep-half .fx-date-card.active .fx-dc-date,
.dep-half .fx-date-card.active .fx-dc-day {
    color: #2563eb !important;
}

.ret-half .fx-date-card.active,
.ret-half .fx-date-card.ret-active {
    border: 1.5px solid #ff5a1f !important;
    background: #fff7ed !important;
}
.ret-half .fx-date-card.active .fx-dc-date,
.ret-half .fx-date-card.active .fx-dc-day,
.ret-half .fx-date-card.ret-active .fx-dc-date,
.ret-half .fx-date-card.ret-active .fx-dc-day {
    color: #ff5a1f !important;
}

.fx-rt-half .fx-chart-wrap {
    height: 44px;
    margin-top: 4px;
    position: relative;
    overflow: visible;
}
.fx-rt-half .fx-price-svg {
    height: 44px;
    width: 100%;
}

/* 13. Domestic Roundtrip Desktop Parity & Card Compactness (Desktop Only >= 769px) */
@media (min-width: 769px) {
    /* 13.1 Equal 50/50 Column Width & Height Parity */
    #flightresult .roundtripbox > .listouter,
    #flightresult .roundtripbox > .listouter2,
    .roundtripbox > .listouter,
    .roundtripbox > .listouter2 {
        flex: 0 0 calc(50% - 6px) !important;
        max-width: calc(50% - 6px) !important;
        width: calc(50% - 6px) !important;
        box-sizing: border-box !important;
    }

    .roundtripbox {
        display: flex !important;
        gap: 12px !important;
        align-items: stretch !important;
    }

    /* 13.2 Compact Roundtrip Flight Card Height & Padding */
    .roundtripbox .card,
    .roundtripbox .pricelistflight,
    .roundtripbox .itemlist,
    .roundtripbox .itemlist2 {
        padding: 10px 14px !important;
        margin-bottom: 10px !important;
        border-radius: 14px !important;
        box-sizing: border-box !important;
    }

    .roundtripbox table {
        margin-bottom: 0 !important;
    }

    /* 13.3 Footer Badges Clean 100% Flat Vertical Baseline Alignment */
    .roundwayseatast {
        margin-top: 6px !important;
        padding-top: 4px !important;
        border-top: 1px dashed #f1f5f9 !important;
        width: 100% !important;
    }

    .roundwayseatast,
    .roundwayseatast tbody,
    .roundwayseatast tr {
        display: flex !important;
        align-items: center !important;
        vertical-align: middle !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .roundwayseatast td {
        display: inline-flex !important;
        align-items: center !important;
        vertical-align: middle !important;
        margin-right: 14px !important;
        padding: 0 !important;
        white-space: nowrap !important;
        line-height: 1 !important;
    }

    .roundwayseatast .blackbox,
    .roundwayseatast .blackbox h5 {
        display: inline-flex !important;
        align-items: center !important;
        vertical-align: middle !important;
        margin: 0 !important;
        padding: 0 !important;
        font-size: 11px !important;
        font-weight: 700 !important;
        color: #0f172a !important;
        line-height: 1 !important;
    }

    .roundwayseatast span,
    .roundwayseatast .refundablespan,
    .roundwayseatast .nonrefundablespan,
    .roundwayseatast .seatleftspan,
    .roundwayseatast .red,
    .roundwayseatast .fx-badge-seat,
    .roundwayseatast .fx-badge-ref,
    .roundwayseatast .fx-badge-nref {
        display: inline-flex !important;
        align-items: center !important;
        vertical-align: middle !important;
        gap: 4px !important;
        font-size: 11px !important;
        font-weight: 700 !important;
        line-height: 1 !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .roundwayseatast i,
    .roundwayseatast .fa {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        vertical-align: middle !important;
        font-size: 12px !important;
        line-height: 1 !important;
        margin: 0 3px 0 0 !important;
        position: relative !important;
        top: 0 !important;
    }

    /* 13.4 City Name Display Above Airport Code (NEW DELHI above DEL, etc.) */
    .fx-airport-city,
    .fx-airport-mini .fx-airport-label .fx-airport-city,
    .destination.fx-airport-mini .fx-airport-label .fx-airport-city {
        display: block !important;
        font-size: 11px !important;
        font-weight: 700 !important;
        color: #1e293b !important;
        text-transform: uppercase !important;
        letter-spacing: 0.02em !important;
        margin-bottom: 1px !important;
        visibility: visible !important;
        opacity: 1 !important;
        white-space: normal !important;
        word-break: normal !important;
        overflow-wrap: normal !important;
    }

    /* 13.5 Price Centered Vertically & Select Button at Bottom-Right Corner */
    .roundtripbox .card-body > .row {
        display: flex !important;
        align-items: stretch !important;
    }

    .roundtripbox .col-3.roundmobiletrip {
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
        align-items: flex-end !important;
        text-align: right !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }

    .roundtripbox .col-3.roundmobiletrip h4 {
        margin-top: auto !important;
        margin-bottom: auto !important;
        font-size: 18px !important;
        font-weight: 800 !important;
        color: #0f172a !important;
        text-align: right !important;
        line-height: 1.2 !important;
    }

    .roundtripbox .col-3.roundmobiletrip a,
    .roundtripbox .col-3.roundmobiletrip #booknowlink,
    .roundtripbox .col-3.roundmobiletrip [id^="booknowlink"] {
        margin-top: auto !important;
        margin-bottom: 0 !important;
        align-self: flex-end !important;
        display: inline-block !important;
        width: auto !important;
        min-width: 90px !important;
    }

    .roundtripbox .col-3.roundmobiletrip .fx-book-card-btn {
        margin-top: 0 !important;
        width: auto !important;
        padding: 5px 14px !important;
        font-size: 13px !important;
        font-weight: 700 !important;
        border-radius: 10px !important;
    }
}

/* 14. Original Text Wall Animation Refined (Zero Overlapping, 4 Clean Columns, Sleek Green Pill) */
#loadingflight.fx-flight-loader {
    text-align: center;
    background: #ffffff !important;
    padding: 0 !important;
    margin-bottom: 20px !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    position: relative !important;
    min-height: 350px !important;
    height: 360px !important;
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.08) !important;
    border: 1px solid rgba(226, 232, 240, 0.8) !important;
}

.fx-flight-loader-card {
    position: relative !important;
    width: 100% !important;
    min-height: 350px !important;
    height: 360px !important;
    background: #ffffff !important;
    overflow: hidden !important;
}

#loadingflight.fx-video-finished .fx-flight-textwall {
    display: grid !important;
    position: absolute !important;
    inset: 0 !important;
    z-index: 2 !important;
    padding: 30px 24px 75px !important;
    background: #ffffff !important;
    overflow: hidden !important;
    grid-template-columns: repeat(4, 1fr) !important;
    grid-auto-rows: 52px !important;
    gap: 12px 16px !important;
    align-content: center !important;
    justify-items: center !important;
}

.fx-flight-textwall span {
    color: #475569 !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    letter-spacing: 2px !important;
    opacity: 0.12 !important;
    text-transform: uppercase !important;
    animation: fxTextBlink 1.8s ease-in-out infinite !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 100% !important;
    width: 100% !important;
    text-align: center !important;
    display: block !important;
}

.fx-flight-textwall span:nth-child(2n) { animation-delay: 0.25s !important; opacity: 0.22 !important; color: #334155 !important; }
.fx-flight-textwall span:nth-child(3n) { animation-delay: 0.55s !important; opacity: 0.32 !important; color: #1e293b !important; }
.fx-flight-textwall span:nth-child(4n) { animation-delay: 0.85s !important; opacity: 0.15 !important; color: #64748b !important; }
.fx-flight-textwall span:nth-child(5n) { animation-delay: 1.15s !important; opacity: 0.28 !important; color: #0f172a !important; }

@keyframes fxTextBlink {
    0%, 100% { opacity: 0.08; filter: blur(0.2px); }
    50% { opacity: 0.52; filter: blur(0); }
}

.fx-flight-textwall-message {
    position: absolute !important;
    left: 50% !important;
    bottom: 22px !important;
    transform: translateX(-50%) !important;
    padding: 12px 24px !important;
    border-radius: 999px !important;
    background: rgba(0, 107, 18, 0.92) !important;
    color: #ffffff !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    box-shadow: 0 12px 28px rgba(0, 107, 18, 0.22) !important;
    animation: fxMessagePulse 1.3s ease-in-out infinite !important;
    white-space: nowrap !important;
    z-index: 10 !important;
}

@keyframes fxMessagePulse {
    0%, 100% { opacity: 0.82; transform: translateX(-50%) scale(0.98); }
    50% { opacity: 1; transform: translateX(-50%) scale(1.02); }
}

@media (max-width: 768px) {
    #loadingflight.fx-flight-loader,
    .fx-flight-loader-card {
        min-height: 300px !important;
        height: 300px !important;
    }
    #loadingflight.fx-video-finished .fx-flight-textwall {
        grid-template-columns: repeat(3, 1fr) !important;
        grid-auto-rows: 42px !important;
        padding: 20px 12px 65px !important;
        gap: 8px 10px !important;
    }
    .fx-flight-textwall span {
        font-size: 15px !important;
        letter-spacing: 1px !important;
    }
    .fx-flight-textwall-message {
        bottom: 14px !important;
        font-size: 13px !important;
        padding: 10px 18px !important;
    }
}
