/**
 * Flight API Results - MakeMyTrip Exact Design
 */

.bravo_search_flight {
    background: #e8eef6;
    min-height: 80vh;
}

.bravo_search_flight .container {
    max-width: 1200px;
}

/* ==================== Filters Panel ==================== */
.flight-filters-panel {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 80px;
    overflow: hidden;
    padding: 0;
}

.flight-filters-panel.filters-disabled {
    opacity: 0.35;
    pointer-events: none;
}

/* Filter Header (React) */
.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    border-bottom: 1px solid #e5e5e5;
}

.filter-header h4 {
    font-size: 16px;
    font-weight: 900;
    color: #1a1a2e;
    margin: 0;
}

.clear-all-btn {
    font-size: 12px;
    font-weight: 700;
    color: #4a4a4a;
    background: #fff;
    border: 1px solid #d8d8d8;
    border-radius: 4px;
    padding: 4px 12px;
    cursor: pointer;
    transition: all 0.15s;
}

.clear-all-btn:hover {
    border-color: #FA5636;
    color: #FA5636;
}

/* Filter Section Headings */
.filter-section h5 {
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    color: #1a1a2e;
    letter-spacing: 0.5px;
    margin: 0 0 12px 0;
}

/* Price Range Labels */
.price-range-labels {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 8px;
}

/* Time Filter Sub-text */
.time-sub {
    display: block;
    font-size: 10px;
    color: #9b9b9b;
    margin-top: 1px;
    font-weight: 400;
}

/* Sidebar responsive layout */
.flight-search-react {
    display: flex;
    gap: 20px;
    padding: 20px 0;
}

.flight-filters-sidebar {
    width: 280px;
    flex-shrink: 0;
}

.flight-results-main {
    flex: 1;
    min-width: 0;
}

@media (max-width: 991px) {
    .flight-search-react {
        flex-direction: column;
    }
    .flight-filters-sidebar {
        width: 100%;
    }
}

.filters-header {
    background: #fff;
    padding: 14px 16px;
    border-bottom: 1px solid #e5e5e5;
}

.filters-header h5 {
    font-size: 14px;
    font-weight: 900;
    color: #1a1a2e;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
}

.filters-header .btn-link {
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    color: #FA5636;
}

/* Popular Filters */
.popular-filters-section {
    padding: 14px 16px;
    border-bottom: 1px solid #e5e5e5;
}

.popular-filters-section .filter-title {
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    color: #4a4a4a;
    letter-spacing: 0.8px;
    margin-bottom: 10px;
}

.popular-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.popular-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border: 1px solid #d8d8d8;
    border-radius: 16px;
    font-size: 12px;
    color: #4a4a4a;
    cursor: pointer;
    transition: all 0.15s;
    background: #fff;
    white-space: nowrap;
    user-select: none;
}

.popular-filter-chip:hover {
    border-color: #FA5636;
    color: #FA5636;
}

.popular-filter-chip.active {
    border-color: #FA5636;
    background: #fff5f5;
    color: #FA5636;
    font-weight: 600;
}

.popular-filter-chip input {
    display: none;
}

/* Filter Sections */
.filter-section {
    padding: 14px 16px;
    border-bottom: 1px solid #e5e5e5;
}

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

.filter-title {
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    color: #4a4a4a;
    letter-spacing: 0.8px;
    margin-bottom: 10px;
}

.filter-checkbox {
    display: flex;
    align-items: center;
    padding: 4px 0;
    cursor: pointer;
    font-size: 13px;
    color: #4a4a4a;
    margin-bottom: 0;
    line-height: 1.3;
}

.filter-checkbox input[type="checkbox"] {
    margin-right: 10px;
    accent-color: #FA5636;
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

.airline-filter-logo {
    width: 20px;
    height: 20px;
    border-radius: 2px;
    margin-right: 6px;
    object-fit: contain;
    flex-shrink: 0;
}

.filter-count {
    margin-left: auto;
    color: #9b9b9b;
    font-size: 11px;
    flex-shrink: 0;
}

.filter-price {
    margin-left: auto;
    color: #4a4a4a;
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
}

/* Price Range */
.price-range-display {
    font-size: 12px;
    color: #4a4a4a;
    font-weight: 700;
}

#priceRangeFilter {
    -webkit-appearance: none;
    appearance: none;
    height: 3px;
    background: #e0e0e0;
    border-radius: 2px;
    outline: none;
    width: 100%;
}

#priceRangeFilter::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #FA5636;
    cursor: pointer;
    border: 2px solid #fff;
    box-shadow: 0 1px 3px rgba(0, 140, 255, 0.4);
}

/* Time Grid */
.time-filter-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.time-filter-btn {
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 8px 4px 6px;
    text-align: center;
    cursor: pointer;
    transition: all 0.15s;
    background: #fff;
    margin-bottom: 0;
}

.time-filter-btn:hover {
    border-color: #FA5636;
}

.time-filter-btn.active {
    border-color: #FA5636;
    background: #fff5f5;
}

.time-filter-btn input {
    display: none;
}

.time-icon {
    display: block;
    font-size: 18px;
    margin-bottom: 2px;
    line-height: 1;
}

.time-label {
    display: block;
    font-size: 10px;
    font-weight: 700;
    color: #4a4a4a;
    text-transform: uppercase;
}

.time-filter-btn small {
    display: block;
    font-size: 9px;
    color: #9b9b9b;
    margin-top: 1px;
}

/* ==================== Sort Bar ==================== */
.flight-sort-bar {
    background: #fff;
    border-radius: 8px 8px 0 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    margin-bottom: 0;
    overflow: hidden;
    padding: 0;
}

.sort-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    border-bottom: 1px solid #e5e5e5;
}

.sort-header-top .result-count {
    font-size: 13px;
    color: #4a4a4a;
}

.sort-header-top .result-count strong {
    font-weight: 900;
    color: #1a1a2e;
}

.sort-columns {
    display: flex;
    align-items: stretch;
    background: #f5f5f5;
}

.sort-col {
    flex: 1;
    padding: 10px 16px;
    font-size: 11px;
    font-weight: 800;
    color: #4a4a4a;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
    cursor: pointer;
    transition: all 0.15s;
    border-bottom: 2px solid transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    user-select: none;
}

.sort-col.col-airline {
    text-align: left;
    align-items: flex-start;
    min-width: 160px;
    flex: 0 0 160px;
    cursor: default;
}

.sort-col.col-price {
    text-align: right;
    align-items: flex-end;
    min-width: 140px;
    flex: 0 0 140px;
}

.sort-col:hover:not(.col-airline) {
    color: #FA5636;
    background: rgba(0, 140, 255, 0.04);
}

.sort-col.active {
    color: #FA5636;
    border-bottom-color: #FA5636;
    background: rgba(0, 140, 255, 0.04);
}

.sort-col .sort-arrow {
    font-size: 9px;
    opacity: 0.5;
}

.sort-col.active .sort-arrow {
    opacity: 1;
}

.sort-col .col-subtext {
    font-size: 9px;
    font-weight: 400;
    color: #9b9b9b;
    text-transform: none;
    letter-spacing: 0;
}

/* ==================== Flight Result Card ==================== */
.flight-results-list {
    background: #fff;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.flight-result-card {
    background: #fff;
    border: none;
    border-bottom: 1px solid #e5e5e5;
    border-radius: 0;
    margin: 0;
    overflow: hidden;
    transition: box-shadow 0.2s;
    box-shadow: none;
}

.flight-result-card:last-child {
    border-bottom: none;
}

.flight-result-card:hover {
    box-shadow: 0 3px 16px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 2;
    transform: none;
}

.flight-card-main {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    gap: 0;
}

/* Airline */
.flight-airline {
    display: flex;
    align-items: center;
    min-width: 160px;
    flex: 0 0 160px;
    padding-right: 10px;
}

.airline-logo {
    width: 30px;
    height: 30px;
    border-radius: 4px;
    margin-right: 8px;
    object-fit: contain;
    background: #f5f5f5;
    padding: 2px;
    flex-shrink: 0;
}

.airline-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.airline-name {
    font-size: 12px;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.flight-number {
    font-size: 11px;
    color: #9b9b9b;
    font-weight: 400;
}

/* Times */
.flight-time {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    min-width: 0;
}

.flight-time .time {
    font-size: 18px;
    font-weight: 900;
    color: #1a1a2e;
    line-height: 1.2;
    letter-spacing: -0.3px;
}

.flight-time .city {
    font-size: 11px;
    color: #9b9b9b;
    margin-top: 2px;
}

.flight-time .date-small {
    font-size: 10px;
    color: #bbb;
    margin-top: 1px;
}

/* Duration */
.flight-duration {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    min-width: 110px;
    padding: 0 8px;
}

.duration-text {
    font-size: 11px;
    font-weight: 700;
    color: #4a4a4a;
    margin-bottom: 6px;
}

.duration-line {
    width: 100%;
    position: relative;
    height: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.duration-line .line {
    position: absolute;
    width: 100%;
    height: 1px;
    background: #9b9b9b;
}

.duration-line::before,
.duration-line::after {
    content: '';
    position: absolute;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
}

.duration-line::before {
    left: 0;
    background: #9b9b9b;
}

.duration-line::after {
    right: 0;
    background: #9b9b9b;
}

.duration-line.nonstop .line {
    background: #2ebd59;
}

.duration-line.nonstop::before,
.duration-line.nonstop::after {
    background: #2ebd59;
}

.duration-line.onestop .line {
    background: #ff9800;
}

.duration-line.onestop::before,
.duration-line.onestop::after {
    background: #ff9800;
}

.duration-line.multistop .line {
    background: #FA5636;
}

.duration-line.multistop::before,
.duration-line.multistop::after {
    background: #FA5636;
}

.stop-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #fff;
    border: 1.5px solid #ff9800;
    position: relative;
    z-index: 1;
    margin: 0 2px;
}

.duration-line.multistop .stop-dot {
    border-color: #FA5636;
}

.stops-text {
    font-size: 11px;
    font-weight: 600;
    margin-top: 5px;
}

.stops-text.nonstop {
    color: #2ebd59;
}

.stops-text.onestop {
    color: #ff9800;
}

.stops-text.multistop {
    color: #FA5636;
}

.stop-cities {
    font-size: 10px;
    color: #9b9b9b;
    margin-top: 1px;
}

/* Price + Book Now */
.flight-price-section {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    min-width: 140px;
    flex: 0 0 140px;
    padding-left: 10px;
}

.flight-price .price {
    font-size: 20px;
    font-weight: 900;
    color: #1a1a2e;
    line-height: 1.2;
}

.flight-price .per-person {
    font-size: 10px;
    color: #9b9b9b;
    margin-top: 1px;
}

.btn-book-now {
    display: inline-block;
    background: linear-gradient(to right, #FF7650, #FA5636);
    color: #fff;
    border: none;
    border-radius: 24px;
    padding: 8px 22px;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    margin-top: 8px;
    white-space: nowrap;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.btn-book-now:hover {
    background: linear-gradient(to right, #3fa0f0, #0550e3);
    color: #fff;
    text-decoration: none;
    box-shadow: 0 3px 10px rgba(6, 90, 243, 0.3);
}

.flight-badges {
    display: flex;
    gap: 4px;
    margin-top: 5px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.badge-refund {
    font-size: 9px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 2px;
    white-space: nowrap;
}

.badge-refund.refundable {
    background: #e8f5e9;
    color: #2e7d32;
}

.badge-refund.non-refundable {
    background: #fce4ec;
    color: #D94420;
}

/* Bottom Bar */
.flight-card-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 20px 8px;
    background: #fafbfc;
    border-top: 1px solid #f0f0f0;
}

.baggage-info {
    color: #9b9b9b;
    font-size: 11px;
}

.baggage-info i {
    color: #bbb;
    margin-right: 2px;
}

.baggage-info span+span {
    margin-left: 12px;
}

.flight-detail-toggle {
    font-size: 11px;
    color: #FA5636;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    padding: 0;
    border: none;
    background: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.flight-detail-toggle:hover {
    text-decoration: none;
    color: #0066cc;
}

/* Expanded Detail */
.flight-detail-expanded {
    padding: 0 20px 16px;
    background: #fbfcfd;
    border-top: 1px solid #e5e5e5;
}

.segment-details {
    padding-top: 14px;
}

.segment-row {
    display: flex;
    align-items: flex-start;
    padding: 14px 0;
    border-bottom: 1px dashed #e5e5e5;
    gap: 12px;
}

.segment-row:last-child {
    border-bottom: none;
}

.seg-airline {
    display: flex;
    align-items: center;
    min-width: 130px;
    font-size: 12px;
    color: #4a4a4a;
    font-weight: 600;
}

.seg-airline img {
    width: 18px;
    height: 18px;
    margin-right: 6px;
    border-radius: 2px;
}

.seg-route {
    display: flex;
    align-items: stretch;
    flex: 1;
    gap: 12px;
}

.seg-point {
    display: flex;
    flex-direction: column;
}

.seg-point strong {
    font-size: 15px;
    font-weight: 900;
    color: #1a1a2e;
}

.seg-point span {
    font-size: 11px;
    color: #9b9b9b;
}

.seg-point small {
    font-size: 10px;
    color: #bbb;
}

.seg-duration {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 80px;
}

.seg-duration span {
    font-size: 11px;
    color: #9b9b9b;
    font-weight: 600;
}

.seg-line {
    width: 50px;
    height: 1px;
    background: #d8d8d8;
    margin: 4px 0;
}

.seg-baggage {
    display: flex;
    flex-direction: column;
    min-width: 100px;
    font-size: 11px;
    color: #9b9b9b;
    gap: 3px;
}

.seg-baggage i {
    width: 14px;
    text-align: center;
    margin-right: 4px;
    font-size: 10px;
}

.layover-info {
    background: #fff8e1;
    border: 1px dashed #ffc107;
    border-radius: 4px;
    padding: 6px 14px;
    font-size: 11px;
    color: #795548;
    margin: 4px 0;
    text-align: center;
    font-weight: 600;
}

/* ============ Premium Flight Loader ============ */

/* Hero section */
.jx-loader-hero {
    background: linear-gradient(135deg, #f7f9fc 0%, #eef2f7 100%);
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    padding: 32px 24px 24px;
    margin-bottom: 16px;
    overflow: hidden;
    position: relative;
}
.jx-loader-inner {
    max-width: 540px;
    margin: 0 auto;
    text-align: center;
}

/* Plane track / flight path */
.jx-loader-plane-track {
    position: relative;
    height: 80px;
    margin-bottom: 18px;
}
.jx-loader-path {
    position: absolute;
    top: 50%;
    left: 24px;
    right: 24px;
    transform: translateY(-50%);
}
.jx-loader-path-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 3px;
    border-radius: 2px;
    background: linear-gradient(90deg, #FA5636, #f56565);
    width: 0%;
    animation: jx-path-fill 28s ease-out forwards;
}
@keyframes jx-path-fill {
    0%   { width: 0%; }
    20%  { width: 20%; }
    50%  { width: 55%; }
    80%  { width: 82%; }
    100% { width: 96%; }
}

/* Animated plane */
.jx-loader-plane {
    position: absolute;
    top: 50%;
    left: 20px;
    transform: translate(0, -50%) rotate(-12deg);
    animation: jx-plane-fly 28s ease-out forwards;
    z-index: 2;
    filter: drop-shadow(0 2px 4px rgba(229,62,62,0.3));
}
@keyframes jx-plane-fly {
    0%   { left: 20px;  transform: translate(0, -50%) rotate(-12deg); }
    5%   { transform: translate(0, -60%) rotate(-15deg); }
    10%  { transform: translate(0, -45%) rotate(-10deg); }
    20%  { left: 20%;   transform: translate(0, -50%) rotate(-12deg); }
    50%  { left: 50%;   transform: translate(0, -55%) rotate(-14deg); }
    80%  { left: 78%;   transform: translate(0, -48%) rotate(-10deg); }
    100% { left: calc(100% - 56px); transform: translate(0, -50%) rotate(-12deg); }
}

/* Dots at start/end */
.jx-loader-dot {
    position: absolute;
    top: 50%;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    transform: translateY(-50%);
    z-index: 1;
}
.jx-dot-from {
    left: 12px;
    background: #FA5636;
    box-shadow: 0 0 0 4px rgba(229,62,62,0.15);
}
.jx-dot-to {
    right: 12px;
    background: #38a169;
    box-shadow: 0 0 0 4px rgba(56,161,105,0.15);
    animation: jx-dot-pulse 1.5s ease-in-out infinite;
}
@keyframes jx-dot-pulse {
    0%, 100% { box-shadow: 0 0 0 4px rgba(56,161,105,0.15); }
    50%      { box-shadow: 0 0 0 8px rgba(56,161,105,0.08); }
}

/* Floating clouds */
.jx-loader-cloud {
    position: absolute;
    z-index: 0;
    opacity: 0;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
}
.jx-cloud-1 {
    top: 0;
    left: 10%;
    animation: jx-cloud-drift 12s 0s infinite;
}
.jx-cloud-2 {
    top: 8px;
    right: 15%;
    animation: jx-cloud-drift 15s 3s infinite;
}
.jx-cloud-3 {
    top: -4px;
    left: 50%;
    animation: jx-cloud-drift 10s 6s infinite;
}
@keyframes jx-cloud-drift {
    0%   { opacity: 0;   transform: translateX(40px); }
    15%  { opacity: 0.6; }
    85%  { opacity: 0.6; }
    100% { opacity: 0;   transform: translateX(-60px); }
}

/* Route cities */
.jx-loader-route {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 22px;
}
.jx-loader-city {
    font-size: 15px;
    font-weight: 700;
    color: #2d3748;
    letter-spacing: 0.5px;
}
.jx-loader-arrow {
    display: flex;
    align-items: center;
}

/* Progress steps */
.jx-loader-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 20px;
}
.jx-loader-step {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    color: #a0aec0;
    transition: all 0.4s ease;
    white-space: nowrap;
}
.jx-loader-step.active {
    color: #FA5636;
    background: rgba(229,62,62,0.08);
}
.jx-loader-step.done {
    color: #38a169;
    background: rgba(56,161,105,0.08);
}
.jx-loader-step.done .jx-step-icon {
    color: #38a169;
}
.jx-step-icon {
    display: flex;
    color: inherit;
    transition: color 0.3s;
}
.jx-loader-step.active .jx-step-icon {
    animation: jx-step-bounce 0.8s ease infinite;
}
@keyframes jx-step-bounce {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.2); }
}
.jx-step-line {
    width: 20px;
    height: 2px;
    background: #e2e8f0;
    border-radius: 1px;
    margin: 0 2px;
    transition: background 0.4s;
}
.jx-loader-step.done + .jx-step-line {
    background: #38a169;
}

/* Timer */
.jx-loader-timer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    color: #718096;
    margin-bottom: 16px;
}
.jx-timer-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 24px;
    background: rgba(229,62,62,0.08);
    color: #FA5636;
    border-radius: 12px;
    font-weight: 700;
    font-size: 12px;
    padding: 0 8px;
}

/* Tips carousel */
.jx-loader-tips {
    height: 24px;
    position: relative;
    overflow: hidden;
}
.jx-tip {
    position: absolute;
    width: 100%;
    text-align: center;
    font-size: 12px;
    color: #718096;
    opacity: 0;
    transform: translateY(12px);
    transition: all 0.5s ease;
}
.jx-tip.active {
    opacity: 1;
    transform: translateY(0);
}

/* Skeleton cards below hero */
.jx-skeleton-cards {
    display: flex;
    flex-direction: column;
    gap: 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    overflow: hidden;
}
.jx-skel-card {
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
    animation: jx-skel-fadein 0.5s ease forwards;
    opacity: 0;
}
.jx-skel-card:last-child { border-bottom: none; }
@keyframes jx-skel-fadein {
    to { opacity: 1; }
}
.jx-skel-row {
    display: flex;
    align-items: center;
    gap: 16px;
}
.jx-skel-block {
    background: linear-gradient(90deg, #f5f5f5 25%, #ebebeb 50%, #f5f5f5 75%);
    background-size: 200% 100%;
    animation: jx-shimmer 1.4s ease-in-out infinite;
    border-radius: 4px;
}
.jx-skel-logo { width: 32px; height: 32px; border-radius: 6px; flex-shrink: 0; }
.jx-skel-col { display: flex; flex-direction: column; gap: 6px; flex: 1; }
.jx-skel-center { align-items: center; }
.jx-skel-right { align-items: flex-end; }
.jx-skel-lg { width: 60px; height: 14px; }
.jx-skel-sm { width: 44px; height: 10px; }
.jx-skel-xs { width: 32px; height: 8px; }
.jx-skel-line { width: 100%; height: 2px; border-radius: 1px; }
.jx-skel-price { width: 72px; height: 18px; }
.jx-skel-btn { width: 80px; height: 28px; border-radius: 20px; }

@keyframes jx-shimmer {
    0%   { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Mobile responsive */
@media (max-width: 576px) {
    .jx-loader-hero { padding: 20px 12px 16px; }
    .jx-loader-steps { flex-wrap: wrap; gap: 4px; }
    .jx-loader-step { font-size: 11px; padding: 4px 8px; }
    .jx-step-line { width: 12px; }
    .jx-loader-plane-track { height: 60px; }
    .jx-loader-plane svg { width: 28px; height: 28px; }
    .jx-skel-card { padding: 12px 14px; }
}

/* States */
.no-results-box,
.initial-state-box {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    padding: 60px 20px;
    text-align: center;
}

.no-results-box i,
.initial-state-box i {
    font-size: 48px;
    color: #d8d8d8;
    margin-bottom: 16px;
    display: block;
}

.no-results-box h4,
.initial-state-box h5 {
    font-size: 17px;
    font-weight: 700;
    color: #4a4a4a;
    margin-bottom: 6px;
}

.no-results-box p,
.initial-state-box p {
    font-size: 13px;
    color: #9b9b9b;
    margin-bottom: 0;
}

.error-box {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    padding: 40px 20px;
    text-align: center;
}

.error-box i {
    font-size: 40px;
    color: #FA5636;
    margin-bottom: 12px;
    display: block;
}

.error-box p {
    font-size: 14px;
    color: #4a4a4a;
    font-weight: 600;
    margin: 0;
}

.error-box .btn-retry {
    display: inline-block;
    margin-top: 14px;
    padding: 8px 24px;
    background: #FA5636;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.error-box .btn-retry:hover {
    background: #0077d9;
}

/* Animations */
.animate-fade-in {
    opacity: 0;
    animation: fadeInUp 0.3s ease-out forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 991px) {
    .flight-filters-panel {
        position: static;
        margin-bottom: 16px;
    }

    .sort-columns {
        display: none;
    }
}

@media (max-width: 767px) {
    .flight-card-main {
        flex-wrap: wrap;
        padding: 14px 16px;
        gap: 8px;
    }

    .flight-airline {
        min-width: 100%;
        flex: 0 0 100%;
        padding-right: 0;
    }

    .flight-time {
        flex: 1;
    }

    .flight-duration {
        min-width: 80px;
        flex: 0 0 80px;
    }

    .flight-price-section {
        min-width: 100%;
        flex: 0 0 100%;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding-top: 10px;
        padding-left: 0;
        border-top: 1px solid #f0f0f0;
    }

    .flight-card-bottom {
        padding: 6px 16px;
    }

    .segment-row {
        flex-wrap: wrap;
    }

    .seg-airline {
        min-width: 100%;
        margin-bottom: 6px;
    }
}

@media (max-width: 480px) {
    .flight-time .time {
        font-size: 15px;
    }

    .flight-price .price {
        font-size: 17px;
    }

    .btn-book-now {
        padding: 6px 16px;
        font-size: 11px;
    }
}

/* ============================================
   Fare Options Modal - MakeMyTrip Style
   ============================================ */

/* Modal overlay & z-index fix */
.modal.fade.show#fareOptionsModal,
.modal.fade.show#rtFareOptionsModal {
    z-index: 1050;
    overflow-y: auto;
}

.modal.fade.show#fareOptionsModal .modal-dialog,
.modal.fade.show#rtFareOptionsModal .modal-dialog {
    z-index: 1051;
    margin: 30px auto;
    max-height: calc(100vh - 60px);
}

.modal.fade.show#fareOptionsModal .modal-content,
.modal.fade.show#rtFareOptionsModal .modal-content {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    max-height: calc(100vh - 80px);
    display: flex;
    flex-direction: column;
}

.modal.fade.show#fareOptionsModal .modal-header,
.modal.fade.show#rtFareOptionsModal .modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    border-bottom: 1px solid #e5e5e5;
    background: #fff;
    flex-shrink: 0;
}

.modal.fade.show#fareOptionsModal .modal-header h5,
.modal.fade.show#rtFareOptionsModal .modal-header h5 {
    font-size: 18px;
    font-weight: 900;
    color: #1a1a2e;
    margin: 0;
}

.fare-modal-content {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.fare-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 20px 24px 14px;
    border-bottom: 1px solid #e5e5e5;
    background: #fff;
}

.fare-modal-title {
    font-size: 18px;
    font-weight: 900;
    color: #1a1a2e;
    margin: 0 0 6px;
}

.fare-modal-route {
    font-size: 13px;
    color: #4a4a4a;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding: 12px 20px;
    background: #f9f9f9;
    border-bottom: 1px solid #eee;
}

.fare-modal-route img {
    width: 24px;
    height: 24px;
    border-radius: 2px;
}

.fare-modal-route .route-dot {
    color: #9b9b9b;
}

.fare-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #9b9b9b;
    cursor: pointer;
    line-height: 1;
    padding: 0 0 0 16px;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.fare-modal-close:hover {
    opacity: 1;
}

.fare-modal-body {
    padding: 20px 24px 24px;
    background: #f4f4f4;
    max-height: 75vh;
    overflow-y: auto;
}

.fare-columns {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.fare-column {
    flex: 1;
    background: #fff;
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.fare-column:hover {
    border-color: #FA5636;
    box-shadow: 0 2px 12px rgba(0, 140, 255, 0.1);
}

.fare-column.fare-highlighted {
    border-color: #FA5636;
    box-shadow: 0 4px 16px rgba(0, 140, 255, 0.15);
    position: relative;
}

.fare-column-header {
    padding: 16px 16px 10px;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
}

.fare-column-price {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 2px;
}

.fare-column-price .fare-price {
    font-size: 22px;
    font-weight: 900;
    color: #1a1a2e;
}

.fare-column-price .fare-original-price {
    font-size: 13px;
    color: #9b9b9b;
    text-decoration: line-through;
}

.fare-column-price .fare-per-adult {
    font-size: 12px;
    color: #9b9b9b;
    font-weight: 400;
}

.fare-type-name {
    font-size: 11px;
    font-weight: 700;
    color: #9b9b9b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.fare-badge-special {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #FF7650, #FA5636);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.fare-column-body {
    padding: 0 16px 16px;
    flex: 1;
}

.fare-section {
    padding: 12px 0 8px;
    border-bottom: 1px solid #f0f0f0;
}

.fare-section:last-child {
    border-bottom: none;
}

.fare-section-title {
    font-size: 12px;
    font-weight: 800;
    color: #1a1a2e;
    margin-bottom: 8px;
}

.fare-detail-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 3px 0;
    font-size: 12px;
    color: #4a4a4a;
    line-height: 1.4;
}

.fare-detail-row .fare-icon {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
    margin-top: 1px;
}

.fare-icon.icon-green {
    background: #e8f5e9;
    color: #2ebd59;
}

.fare-icon.icon-amber {
    background: #fff8e1;
    color: #f5a623;
}

.fare-icon.icon-red {
    background: #fde8e8;
    color: #eb5757;
}

.fare-detail-row .fare-highlight {
    color: #2ebd59;
    font-weight: 600;
}

.fare-column-footer {
    padding: 12px 16px;
    margin-top: auto;
}

.fare-promo-banner {
    background: #f0f7ff;
    border: 1px solid #d4e8ff;
    border-radius: 6px;
    padding: 10px 12px;
    font-size: 11px;
    color: #1a1a2e;
    margin-bottom: 12px;
    line-height: 1.4;
}

.fare-promo-banner .promo-icon {
    color: #f5a623;
    margin-right: 4px;
}

.btn-fare-book {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.2s;
    color: #fff;
}

.btn-fare-book.btn-book-saver {
    background: linear-gradient(to right, #f5a623, #f7971e);
}

.btn-fare-book.btn-book-saver:hover {
    opacity: 0.9;
}

.btn-fare-book.btn-book-special {
    background: linear-gradient(to right, #FF7650, #FA5636);
}

.btn-fare-book.btn-book-special:hover {
    opacity: 0.9;
}

/* RT fare SELECT button active state */
.rt-fare-select-btn {
    position: relative;
}

.fare-column.fare-selected .rt-fare-select-btn {
    background: #FA5636 !important;
    color: #fff;
}

.btn-fare-book.btn-book-flexi {
    background: linear-gradient(to right, #11998e, #38ef7d);
}

.btn-fare-book.btn-book-flexi:hover {
    opacity: 0.9;
}

/* Loading spinner */
.fare-loading {
    text-align: center;
    padding: 60px 20px;
}

.fare-loading-spinner {
    width: 40px;
    height: 40px;
    margin: 0 auto 16px;
    border: 4px solid #e0e0e0;
    border-top-color: #FA5636;
    border-radius: 50%;
    animation: farespin 0.8s linear infinite;
}

@keyframes farespin {
    to {
        transform: rotate(360deg);
    }
}

.fare-loading p {
    color: #9b9b9b;
    font-size: 14px;
}

/* Modal responsive */
@media (max-width: 991px) {
    .fare-columns {
        flex-direction: column;
    }

    .fare-column {
        width: 100%;
    }
}

@media (max-width: 767px) {
    .fare-modal-header {
        padding: 16px;
    }

    .fare-modal-body {
        padding: 12px;
    }

    .fare-modal-title {
        font-size: 15px;
    }
}

/* ==================== ROUND TRIP SPLIT PANEL (MMT Style) ==================== */

.rt-split-wrapper {
    display: flex;
    gap: 0;
    min-height: 70vh;
}

.rt-column {
    flex: 1;
    min-width: 0;
    border-right: 1px solid #e5e5e5;
}

.rt-column:last-child {
    border-right: none;
}

/* Column Headers — route label */
.rt-column-header {
    background: #fff;
    padding: 12px 16px;
    border-bottom: 2px solid #e5e5e5;
    position: sticky;
    top: 0;
    z-index: 10;
}

.rt-column-header .rt-route {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a2e;
}

.rt-column-header .rt-route .rt-arrow {
    color: #9b9b9b;
    margin: 0 6px;
}

.rt-column-header .rt-date {
    font-size: 12px;
    color: #4a4a4a;
    margin-top: 2px;
}

/* Sort bar inside each column */
.rt-sort-bar {
    display: flex;
    align-items: center;
    background: #f5f5f5;
    border-bottom: 1px solid #e5e5e5;
    padding: 0;
}

.rt-sort-bar .rt-sort-col {
    flex: 1;
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    color: #4a4a4a;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 10px 4px;
    cursor: pointer;
    transition: color 0.15s;
    white-space: nowrap;
    -webkit-user-select: none;
    user-select: none;
}

.rt-sort-bar .rt-sort-col:hover {
    color: #FA5636;
}

.rt-sort-bar .rt-sort-col.active {
    color: #FA5636;
}

.rt-sort-bar .rt-sort-col .sort-arrow {
    margin-left: 3px;
}

.rt-sort-bar .rt-sort-col:last-child {
    color: #FA5636;
    font-weight: 900;
}

/* Flight row in round trip column — compact card */
.rt-flight-row {
    display: flex;
    align-items: center;
    padding: 12px 14px;
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background 0.15s, box-shadow 0.15s;
    gap: 8px;
    position: relative;
}

.rt-flight-row:hover {
    background: #f8fbff;
}

.rt-flight-row.selected {
    background: #e8f4fd;
    box-shadow: inset 3px 0 0 #FA5636;
}

.rt-flight-row .rt-airline {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 90px;
    max-width: 110px;
}

.rt-flight-row .rt-airline img {
    width: 24px;
    height: 24px;
    border-radius: 3px;
}

.rt-flight-row .rt-airline-info {
    display: flex;
    flex-direction: column;
}

.rt-flight-row .rt-airline-name {
    font-size: 12px;
    font-weight: 600;
    color: #1a1a2e;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 75px;
}

.rt-flight-row .rt-flight-num {
    font-size: 10px;
    color: #9b9b9b;
}

.rt-flight-row .rt-time-block {
    text-align: center;
    min-width: 52px;
}

.rt-flight-row .rt-time {
    font-size: 15px;
    font-weight: 900;
    color: #1a1a2e;
    display: block;
    line-height: 1.2;
}

.rt-flight-row .rt-city {
    font-size: 10px;
    color: #9b9b9b;
    display: block;
}

.rt-flight-row .rt-dur-block {
    flex: 1;
    text-align: center;
    min-width: 80px;
}

.rt-flight-row .rt-dur-text {
    font-size: 11px;
    color: #4a4a4a;
    display: block;
}

.rt-flight-row .rt-dur-line {
    height: 2px;
    background: #d8d8d8;
    position: relative;
    margin: 4px auto;
    width: 60%;
    border-radius: 1px;
}

.rt-flight-row .rt-dur-line.nonstop {
    /* no stop dots for nonstop */
}

.rt-flight-row .rt-dur-line .rt-stop-dot {
    position: absolute;
    top: -3px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 8px;
    background: #ff6b00;
    border: 2px solid #fff;
    border-radius: 50%;
}

.rt-flight-row .rt-dur-line .rt-stop-dot:nth-child(2) {
    left: 30%;
}

.rt-flight-row .rt-dur-line .rt-stop-dot:nth-child(3) {
    left: 70%;
}

.rt-flight-row .rt-stops-label {
    font-size: 10px;
    color: #9b9b9b;
    display: block;
}

.rt-flight-row .rt-stops-label.nonstop {
    color: #00a651;
}

/* On-time badge */
.rt-flight-row .rt-ontime {
    font-size: 9px;
    color: #00a651;
    position: absolute;
    top: 6px;
    right: 10px;
}

.rt-flight-row .rt-ontime i {
    margin-right: 2px;
}

.rt-flight-row .rt-next-day {
    font-size: 9px;
    color: #ff6b00;
    font-weight: 700;
}

.rt-flight-row .rt-price-block {
    text-align: right;
    min-width: 80px;
}

.rt-flight-row .rt-price {
    font-size: 15px;
    font-weight: 900;
    color: #1a1a2e;
    display: block;
}

.rt-flight-row .rt-per-adult {
    font-size: 10px;
    color: #9b9b9b;
    display: block;
}

/* Radio */
.rt-flight-row .rt-radio {
    width: 18px;
    height: 18px;
    border: 2px solid #d8d8d8;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
}

.rt-flight-row.selected .rt-radio {
    border-color: #FA5636;
}

.rt-flight-row.selected .rt-radio::after {
    content: '';
    width: 10px;
    height: 10px;
    background: #FA5636;
    border-radius: 50%;
}

/* Scrollable flight list */
.rt-flight-list {
    max-height: calc(100vh - 260px);
    overflow-y: auto;
    overflow-x: hidden;
}

.rt-flight-list::-webkit-scrollbar {
    width: 4px;
}

.rt-flight-list::-webkit-scrollbar-track {
    background: transparent;
}

.rt-flight-list::-webkit-scrollbar-thumb {
    background: #d8d8d8;
    border-radius: 2px;
}

/* Sticky bottom bar — combined price + BOOK NOW */
.rt-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #1a1a2e;
    color: #fff;
    display: none;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.2);
}

.rt-bottom-bar.visible {
    display: flex;
    animation: rtSlideUp 0.3s ease;
}

@keyframes rtSlideUp {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

.rt-bottom-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    width: 100%;
    padding: 12px 20px;
    gap: 12px;
}

.rt-bottom-leg {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.rt-bottom-leg .rt-leg-label {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rt-bottom-leg .rt-leg-airline {
    display: flex;
    align-items: center;
    gap: 6px;
}

.rt-bottom-leg .rt-leg-airline img {
    width: 20px;
    height: 20px;
    border-radius: 3px;
}

.rt-bottom-leg .rt-leg-airline-name {
    font-size: 12px;
    font-weight: 600;
    color: #fff;
}

.rt-bottom-leg .rt-leg-route {
    font-size: 13px;
    color: #fff;
    font-weight: 700;
}

.rt-bottom-leg .rt-leg-price {
    font-size: 14px;
    font-weight: 900;
    color: #fff;
}

.rt-bottom-leg .rt-leg-detail-link {
    font-size: 11px;
    color: #FA5636;
    cursor: pointer;
    text-decoration: underline;
}

.rt-bottom-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.15);
    flex-shrink: 0;
}

.rt-bottom-total {
    text-align: right;
    min-width: 160px;
    flex-shrink: 0;
}

.rt-bottom-total-price {
    font-size: 22px;
    font-weight: 900;
    color: #fff;
}

.rt-bottom-total-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
}

.rt-bottom-cta {
    padding: 12px 32px;
    border: none;
    border-radius: 6px;
    background: #f2711e;
    color: #fff;
    font-size: 15px;
    font-weight: 900;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
}

.rt-bottom-cta:hover {
    background: #e0600d;
}

.rt-bottom-cta:disabled {
    background: #555;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Responsive */
@media (max-width: 991px) {
    .rt-split-wrapper {
        flex-direction: column;
    }

    .rt-column {
        border-right: none;
        border-bottom: 2px solid #e5e5e5;
    }

    .rt-flight-list {
        max-height: 400px;
    }

    .rt-bottom-inner {
        flex-wrap: wrap;
        gap: 8px;
        padding: 10px 16px;
    }

    .rt-bottom-leg {
        flex-basis: 100%;
    }

    .rt-bottom-divider {
        display: none;
    }

    .rt-bottom-total {
        flex: 1;
    }
}

@media (max-width: 767px) {
    .rt-flight-row {
        padding: 10px;
        gap: 6px;
        flex-wrap: wrap;
    }

    .rt-flight-row .rt-airline {
        min-width: 70px;
        max-width: 80px;
    }

    .rt-flight-row .rt-time {
        font-size: 13px;
    }

    .rt-flight-row .rt-price {
        font-size: 13px;
    }

    .rt-bottom-cta {
        padding: 10px 20px;
        font-size: 13px;
        width: 100%;
    }
}

/* ============================================
   Round Trip Fare Modal (MakeMyTrip style)
   ============================================ */

/* DEPART / RETURN Tabs */
.rt-fare-tabs {
    display: flex;
    border-bottom: 3px solid #e5e5e5;
    background: #fff;
    position: relative;
}

.rt-fare-tab {
    flex: 1;
    background: none;
    border: none;
    padding: 14px 20px;
    cursor: pointer;
    text-align: center;
    position: relative;
    transition: all 0.2s;
    border-bottom: 3px solid transparent;
    margin-bottom: -3px;
}

.rt-fare-tab:hover {
    background: #f8f9fa;
}

.rt-fare-tab.active {
    border-bottom-color: #FA5636;
}

.rt-fare-tab-label {
    display: block;
    font-size: 11px;
    color: #9b9b9b;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.rt-fare-tab.active .rt-fare-tab-label {
    color: #FA5636;
}

.rt-fare-tab-route {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #1a1a2e;
}

.rt-fare-tab.active .rt-fare-tab-route {
    color: #FA5636;
}

/* Flight info sub-header */
.rt-fare-flight-info {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding: 12px 24px;
    background: #fff;
    border-bottom: 1px solid #e5e5e5;
    font-size: 13px;
    color: #4a4a4a;
}

.rt-fare-route-text {
    font-weight: 700;
    color: #1a1a2e;
}

.rt-fare-airline-logo {
    width: 24px;
    height: 24px;
    border-radius: 2px;
}

.rt-fare-flight-info .route-dot {
    color: #9b9b9b;
}

/* Fare column selected state (radio) */
.fare-column.fare-selected {
    border: 2px solid #FA5636;
    box-shadow: 0 0 0 3px rgba(250, 86, 54, 0.15);
}

.fare-column .fare-radio {
    position: absolute;
    top: 12px;
    left: 12px;
}

.fare-column .fare-radio input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: #FA5636;
    cursor: pointer;
}

/* Make fare columns clickable in RT modal */
#rtFareColumns .fare-column {
    cursor: pointer;
    position: relative;
    transition: border-color 0.2s, box-shadow 0.2s;
}

#rtFareColumns .fare-column:hover {
    border-color: #FA5636;
}

#rtFareColumns .fare-column .fare-column-header {
    padding-left: 38px;
}

/* Bottom bar / footer in RT fare modal */
.rt-fare-bottom,
.rt-fare-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 16px 24px;
    background: #fafafa;
    border-top: 1px solid #e5e5e5;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.06);
    flex-shrink: 0;
}

.rt-fare-total {
    text-align: right;
}

.rt-fare-total-amount {
    font-size: 20px;
    font-weight: 900;
    color: #1a1a2e;
}

.rt-fare-total-label {
    font-size: 12px;
    color: #9b9b9b;
    font-weight: 500;
}

.rt-fare-continue-btn {
    background: #FA5636;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px 36px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: background 0.2s;
    text-transform: uppercase;
}

.rt-fare-continue-btn:hover {
    background: #e0422a;
}

/* Responsive for RT fare modal */
@media (max-width: 768px) {
    .rt-fare-tabs {
        flex-direction: column;
    }

    .rt-fare-tab {
        border-bottom: none;
        border-left: 3px solid transparent;
    }

    .rt-fare-tab.active {
        border-left-color: #FA5636;
        border-bottom-color: transparent;
    }

    .rt-fare-flight-info {
        padding: 10px 16px;
        font-size: 12px;
    }

    .rt-fare-bottom,
    .rt-fare-footer {
        flex-direction: column;
        gap: 12px;
        padding: 14px 16px;
    }

    .rt-fare-total {
        text-align: center;
    }

    .rt-fare-continue-btn {
        width: 100%;
        padding: 14px;
    }

    #rtFareColumns .fare-column .fare-column-header {
        padding-left: 34px;
    }
}

/* ==================== MULTI-CITY — MMT Style ==================== */

/* Segment Tabs */
.mc-segment-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 0;
    border-radius: 8px 8px 0 0;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.mc-tab {
    flex: 1;
    padding: 14px 20px;
    cursor: pointer;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-bottom: 3px solid transparent;
    transition: all 0.25s ease;
    text-align: center;
    position: relative;
    min-width: 0;
}

.mc-tab:first-child {
    border-radius: 8px 0 0 0;
}

.mc-tab:last-child {
    border-radius: 0 8px 0 0;
}

.mc-tab:not(:last-child) {
    border-right: none;
}

.mc-tab:hover:not(.active) {
    background: #f8fbff;
}

.mc-tab.active {
    background: #FA5636;
    border-color: #FA5636;
    color: #fff;
    border-bottom: 3px solid #005baa;
}

.mc-tab.selected:not(.active) {
    background: #f0faf0;
    border-bottom: 3px solid #22c55e;
}

.mc-tab.selected:not(.active) .mc-tab-route {
    color: #1a1a2e;
}

.mc-tab-route {
    font-size: 14px;
    font-weight: 700;
    color: #1a1a2e;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mc-tab.active .mc-tab-route {
    color: #fff;
}

.mc-tab-date {
    font-size: 12px;
    color: #9b9b9b;
    margin-top: 2px;
}

.mc-tab.active .mc-tab-date {
    color: rgba(255, 255, 255, 0.8);
}

.mc-tab-times {
    display: block;
    font-size: 11px;
    color: #22c55e;
    font-weight: 600;
    margin-top: 4px;
}

.mc-tab.active .mc-tab-times {
    color: #a5f3c4;
}

/* Sort Bar (multi-city) */
.mc-sort-bar {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-top: none;
    border-radius: 0 0 4px 4px;
    padding: 0;
    margin-bottom: 12px;
}

.mc-sort-bar .sort-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 16px 4px;
    border-bottom: 1px solid #f0f0f0;
}

.mc-sort-bar .sort-columns {
    display: flex;
    align-items: center;
    padding: 0 8px;
}

.mc-sort-bar .sort-col {
    flex: 1;
    padding: 10px 8px;
    font-size: 11px;
    font-weight: 700;
    color: #9b9b9b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    text-align: center;
    border-bottom: 2px solid transparent;
    transition: color 0.2s, border-color 0.2s;
}

.mc-sort-bar .sort-col:hover {
    color: #333;
}

.mc-sort-bar .sort-col.active {
    color: #FA5636;
    border-bottom-color: #FA5636;
}

.mc-sort-bar .sort-col.col-airline {
    cursor: default;
    text-align: left;
    flex: 0.8;
}

.mc-sort-bar .sort-col.col-price {
    text-align: right;
    flex: 1.2;
}

/* Flight Card selection state */
.mc-flight-card.mc-selected {
    border: 2px solid #FA5636;
    background: #f6fbff;
    box-shadow: 0 0 0 1px #FA5636;
}

.mc-flight-card.mc-selected .btn-book-now {
    background: #22c55e;
    border-color: #22c55e;
}

.mc-flight-card.mc-selected .btn-book-now::after {
    content: ' SELECTED';
}

.mc-flight-card .mc-view-prices .fa-check {
    display: none;
}

.mc-flight-card.mc-selected .mc-view-prices .fa-check {
    display: inline;
}

/* Bottom Sticky Bar */
.mc-bottom-bar {
    position: fixed;
    bottom: -100px;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #1a1a2e;
    color: #fff;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.25);
    transition: bottom 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.mc-bottom-bar.visible {
    bottom: 0;
}

.mc-bottom-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    width: 100%;
    padding: 12px 20px;
    gap: 8px;
}

.mc-bottom-leg {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 6px;
    transition: background 0.2s;
}

.mc-bottom-leg:hover {
    background: rgba(255, 255, 255, 0.08);
}

.mc-bottom-logo {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    flex-shrink: 0;
}

.mc-bottom-leg-info {
    min-width: 0;
}

.mc-bottom-route {
    font-size: 13px;
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.3px;
}

.mc-bottom-price {
    font-size: 14px;
    font-weight: 900;
    color: #fff;
}

.mc-bottom-price.mc-not-selected {
    font-size: 11px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
}

.mc-bottom-divider {
    width: 1px;
    height: 36px;
    background: rgba(255, 255, 255, 0.15);
    flex-shrink: 0;
}

.mc-bottom-total {
    text-align: right;
    min-width: 140px;
    flex-shrink: 0;
    padding: 0 8px;
}

.mc-bottom-total-label {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mc-bottom-total-price {
    font-size: 20px;
    font-weight: 900;
    color: #fff;
}

.mc-bottom-detail-link {
    font-size: 11px;
    color: #FA5636;
    cursor: pointer;
    text-decoration: underline;
}

.mc-bottom-cta {
    padding: 12px 28px;
    border: none;
    border-radius: 6px;
    background: #f2711e;
    color: #fff;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0.5px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s, transform 0.1s;
    flex-shrink: 0;
}

.mc-bottom-cta:hover:not(:disabled) {
    background: #e55b0a;
    transform: translateY(-1px);
}

.mc-bottom-cta:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Flight list container */
#mcFlightList {
    padding-bottom: 80px;
    /* space for sticky bottom bar */
}

/* Responsive — multi-city */
@media (max-width: 768px) {
    .mc-segment-tabs {
        flex-direction: column;
        border-radius: 8px;
    }

    .mc-tab {
        border-radius: 0;
        border-right: 1px solid #e0e0e0;
    }

    .mc-tab:first-child {
        border-radius: 8px 8px 0 0;
    }

    .mc-tab:last-child {
        border-radius: 0 0 8px 8px;
    }

    .mc-tab:not(:last-child) {
        border-right: 1px solid #e0e0e0;
        border-bottom: none;
    }

    .mc-bottom-inner {
        flex-wrap: wrap;
        padding: 10px 12px;
        gap: 8px;
    }

    .mc-bottom-leg {
        flex: 1 1 45%;
    }

    .mc-bottom-total {
        text-align: center;
        min-width: auto;
        flex: 1 1 50%;
    }

    .mc-bottom-cta {
        width: 100%;
        padding: 14px;
    }

    .mc-sort-bar .sort-columns {
        overflow-x: auto;
    }

    .mc-sort-bar .sort-col {
        font-size: 10px;
        white-space: nowrap;
    }
}

/* ==================== MULTI-CITY — Inline Fare Table (MMT Style) ==================== */

.mc-fare-panel {
    border-top: 1px solid #e8e8e8;
    background: #fafbfc;
    padding: 0;
    overflow-x: auto;
}

.mc-fare-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    min-width: 700px;
}

.mc-fare-table thead {
    background: #f5f5f5;
}

.mc-fare-table th.mc-ft-head {
    padding: 10px 12px;
    font-size: 11px;
    font-weight: 700;
    color: #4a4a4a;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
    white-space: nowrap;
}

.mc-fare-table th.mc-ft-price-head {
    text-align: right;
    min-width: 120px;
}

.mc-fare-row {
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s;
    border-left: 3px solid transparent;
}

.mc-fare-row:hover {
    background: #f0f8ff;
}

.mc-fare-row.mc-fare-active {
    background: #eef7ff;
    border-left: 3px solid #FA5636;
}

.mc-fare-row td {
    padding: 14px 12px;
    color: #4a4a4a;
    font-size: 12px;
    line-height: 1.5;
    vertical-align: middle;
}

.mc-ft-fare-name {
    min-width: 100px;
}

.mc-ft-name {
    font-size: 14px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 2px;
}

.mc-ft-sub {
    font-size: 11px;
    color: #9b9b9b;
}

.mc-ft-price-cell {
    text-align: right;
    white-space: nowrap;
    min-width: 120px;
}

.mc-ft-price {
    font-size: 16px;
    font-weight: 900;
    color: #1a1a2e;
    margin-bottom: 6px;
}

.mc-fare-select {
    display: inline-block;
    padding: 7px 24px;
    border: 2px solid #FA5636;
    border-radius: 20px;
    background: #fff;
    color: #FA5636;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    letter-spacing: 0.5px;
}

.mc-fare-select:hover {
    background: #FA5636;
    color: #fff;
}

.mc-fare-select.mc-fare-selected-btn {
    background: #f2711e;
    border-color: #f2711e;
    color: #fff;
    cursor: default;
}

/* VIEW PRICES / HIDE PRICES toggle button */
.mc-view-prices.mc-vp-open {
    background: #fff;
    color: #FA5636;
    border: 1px solid #FA5636;
}

.mc-view-prices .fa-chevron-down,
.mc-view-prices .fa-chevron-up {
    margin-left: 4px;
    font-size: 10px;
}

/* Selected card green highlight on button */
.mc-flight-card.mc-selected .mc-view-prices:not(.mc-vp-open) {
    background: #22c55e;
    border-color: #22c55e;
    color: #fff;
}

/* Responsive — fare table */
@media (max-width: 768px) {
    .mc-fare-table {
        min-width: 600px;
    }

    .mc-fare-table th.mc-ft-head,
    .mc-fare-row td {
        padding: 8px 8px;
        font-size: 11px;
    }

    .mc-ft-price {
        font-size: 14px;
    }

    .mc-fare-select {
        padding: 5px 16px;
        font-size: 11px;
    }
}

/* ============================================
   Global Modal & Body Scroll Lock Fixes
   ============================================ */

/* Body scroll lock when modal is open (managed by React useEffect) */
body.modal-open {
    overflow: hidden;
    padding-right: 0 !important;
}

/* Fare modal scrollable content area */
#fareColumns,
#rtFareOptionsModal .modal-content > div:nth-child(n+3):not(.rt-fare-footer):not(.rt-fare-tabs) {
    overflow-y: auto;
    max-height: calc(100vh - 300px);
    -webkit-overflow-scrolling: touch;
}

/* Ensure fare modal route bar doesn't shrink */
.fare-modal-route {
    flex-shrink: 0;
}

/* Fix fare column layout on mobile */
@media (max-width: 650px) {
    #fareColumns {
        flex-direction: column !important;
    }
    #fareColumns .fare-column {
        width: 100%;
    }
    .modal.fade.show#fareOptionsModal .modal-dialog,
    .modal.fade.show#rtFareOptionsModal .modal-dialog {
        margin: 10px;
        max-width: calc(100% - 20px);
    }
    .rt-fare-footer {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
    .rt-fare-continue-btn {
        width: 100%;
    }
}

/* ========== Flight Pagination ========== */
.flight-pagination {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px 0 10px;
    margin-top: 12px;
    border-top: 1px solid #e8e8e8;
}
.flight-pagination .pagination-info {
    font-size: 13px;
    color: #6b7280;
}
.flight-pagination .pagination-info strong {
    color: #1a1a2e;
}
.flight-pagination .pagination-controls {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
    justify-content: center;
}
.flight-pagination .pagination-btn {
    min-width: 36px;
    height: 36px;
    border: 1px solid #d1d5db;
    background: #fff;
    color: #374151;
    font-size: 13px;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    transition: all 0.15s ease;
}
.flight-pagination .pagination-btn:hover:not(.disabled):not(.active) {
    background: #f3f4f6;
    border-color: #e53e3e;
    color: #e53e3e;
}
.flight-pagination .pagination-btn.active {
    background: #e53e3e;
    border-color: #e53e3e;
    color: #fff;
    font-weight: 600;
}
.flight-pagination .pagination-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}
.flight-pagination .pagination-prev,
.flight-pagination .pagination-next {
    gap: 4px;
    font-size: 12px;
    padding: 0 12px;
}
.flight-pagination .pagination-ellipsis {
    color: #9ca3af;
    padding: 0 4px;
    font-size: 14px;
}

/* RT column pagination compact style */
.rt-flight-list .flight-pagination {
    padding: 12px 8px 6px;
}
.rt-flight-list .flight-pagination .pagination-btn {
    min-width: 30px;
    height: 30px;
    font-size: 12px;
    padding: 0 8px;
}
.rt-flight-list .flight-pagination .pagination-info {
    font-size: 11px;
}

@media (max-width: 768px) {
    .flight-pagination .pagination-btn {
        min-width: 32px;
        height: 32px;
        font-size: 12px;
        padding: 0 8px;
    }
    .flight-pagination .pagination-prev,
    .flight-pagination .pagination-next {
        padding: 0 8px;
    }
}
