/* =========================================
   1. TOP SEARCH BAR STYLES (Google Style)
   ========================================= */

/* Common Container for the Dropdowns */
.trip-type-dropdown,
.dropdowns,
.traveler-box {
    position: relative;
    display: inline-block;
    width: 100%;
    font-weight: 500;
}

/* The Main Button Style for All 3 Inputs */
.trip-type-selection {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    background-color: #ffffff;
    color: #3c4043;
    border: 1px solid #dadce0;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-family: 'Google Sans', Roboto, sans-serif;
    min-width: 140px;
    transition: all 0.2s ease;
    height: 42px;
}

/* Hover Effect */
.trip-type-selection:hover {
    background-color: #f1f3f4;
    border-color: #dadce0;
    color: #202124;
}

/* Icons styling */
.trip-type-icon {
    margin-right: 10px;
    font-size: 14px;
    color: #5f6368;
    display: flex;
    align-items: center;
}

/* Text styling inside buttons */
.trip-type-selected {
    flex-grow: 1;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 500;
}

/* Dropdown Menus (Trip Type & Class) */
.trip-type-menu {
    position: absolute;
    top: 105%;
    left: 0;
    min-width: 160px;
    background-color: #fff;
    border: none;
    border-radius: 4px;
    box-shadow: 0 2px 6px 2px rgba(60, 64, 67, .15), 0 1px 2px 0 rgba(60, 64, 67, .3);
    list-style: none;
    padding: 8px 0;
    margin: 0;
    display: none;
    z-index: 1050;
}

.trip-type-menu.menu-open,
.menu.open {
    display: block;
}

.trip-type-menu li {
    padding: 8px 16px;
    color: #3c4043;
    cursor: pointer;
    display: flex;
    align-items: center;
    font-size: 14px;
    transition: background 0.2s;
}

.trip-type-menu li:hover {
    background-color: #f1f3f4;
}

.trip-type-menu li .checkmark {
    margin-right: 10px;
    color: #1a73e8;
    visibility: hidden;
    width: 15px;
}

.trip-type-menu li.active .checkmark,
.trip-type-menu li.active {
    background-color: #e8f0fe;
    color: #000000;
}

.trip-type-menu li.active .checkmark {
    visibility: visible;
}

/* Guest/Passenger Input Dropdown */
.guests-input__options {
    position: absolute;
    top: 105%;
    left: 0;
    background-color: #fff;
    border-radius: 4px;
    box-shadow: 0 2px 6px 2px rgba(60, 64, 67, .15);
    z-index: 1050;
    padding: 10px;
    display: none;
    min-width: 250px;
}

.guests-input__options.open {
    display: block;
}

.guests-input__options>div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #f1f3f4;
}

.guests-input__options>div:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

/* +/- Buttons in Guest Dropdown */
.guests-input__ctrl {
    cursor: pointer;
    width: 32px;
    height: 32px;
    background-color: #f8f9fa;
    color: #1967d2;
    border: 1px solid #dfe1e5;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.guests-input__ctrl:hover {
    background-color: #e8f0fe;
    border-color: #1967d2;
}

.guests-input__value {
    font-weight: 500;
    min-width: 60px;
    text-align: center;
}

/* =========================================
   2. MOBILE & RESPONSIVE
   ========================================= */

@media (max-width: 768px) {
    .mob-full {
        width: 100%;
        margin-bottom: 10px;
    }

    .trip-type-selection {
        width: 100%;
        justify-content: flex-start;
    }

    .guests-input__options {
        width: 100%;
        left: 0;
    }
}

@media (min-width: 769px) {
    .mob-full {
        width: auto;
    }
}


/* =========================================
   3. GENERAL UI (Offers, Header, FAQ)
   ========================================= */

.flight-offer__button {
    width: 70%;
    font-size: 16px;
}

.flight-offer__text {
    font-size: 15px;
}

.hero-header__title {
    margin-top: 20px !important;
}

.offer-card-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.offer-card {
    border: 2px dashed #ccc;
    border-radius: 10px;
    overflow: hidden;
    background-color: #fff;
}

.offer-card__details {
    padding: 15px;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.nav-tabs .nav-link {
    font-weight: 600;
    color: #333;
}

.btn-flip-icon button {
    background: none;
    border: none;
}

/* Unique Offer Card */
.unique-card-image {
    max-width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
}

.unique-offer-card {
    display: flex;
    flex-direction: row;
    margin-bottom: 20px;
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.unique-offer-details {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.unique-button-wrapper {
    margin-top: 10px;
}

.unique-offer-details h5 {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.unique-offer-details p {
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.unique-offer-details .book-now-unique {
    width: 100%;
    max-width: 150px;
    padding: 8px 16px;
    font-size: 0.95rem;
    border: none;
    border-radius: 5px;
    color: #000000;
    cursor: pointer;
    transition: background-color 0.3s;
}

.unique-offer-details .book-now-unique:hover {
    background-color: #0056b3;
}

/* Mobile Specifics for Offers */
@media (max-width: 768px) {
    .unique-offer-card {
        flex-direction: column;
        margin-bottom: 15px;
    }

    .unique-card-image {
        width: 100%;
        object-fit: cover;
    }

    .unique-offer-details {
        padding: 10px;
    }

    .unique-offer-details h5 {
        font-size: 1.1rem;
    }

    .unique-offer-details p {
        font-size: 0.85rem;
    }

    .unique-offer-details .book-now-unique {
        font-size: 0.9rem;
        padding: 6px 12px;
        max-width: 120px;
    }

    .unique-button-wrapper {
        margin-top: 5px;
    }

    .col-xl-6,
    .col-md-6 {
        width: 100%;
    }
}

@media (min-width: 992px) {
    .unique-offer-card {
        flex-direction: row;
        height: 200px;
    }

    .unique-card-image {
        width: 40%;
        object-fit: cover;
    }

    .unique-offer-details {
        padding: 15px;
        height: 100%;
    }

    .unique-offer-details h5 {
        font-size: 1.25rem;
        margin-bottom: 10px;
    }

    .unique-offer-details p {
        font-size: 0.9rem;
        margin-bottom: 10px;
        flex-grow: 1;
    }

    .unique-offer-details .book-now-unique {
        align-self: flex-end;
        margin-top: auto;
    }
}

/* FAQ Styles */
.faq-section {
    max-width: 1200px;
    margin: 50px auto;
    padding: 20px;
    font-family: "Segoe UI", sans-serif;
}

.faq-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 20px;
}

.faq-item {
    border-bottom: 1px solid #ddd;
    padding: 10px 0;
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    outline: none;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
    padding: 0 0;
}

.faq-answer p {
    margin: 10px 0;
}

.faq-item.active .faq-answer {
    max-height: 600px;
    padding: 10px 0;
}

/* Flight Offer Card Styles */
.flight-offer-card {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.flight-offer-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.flight-offer-card .card-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
}

.flight-offer-card .card-content {
    padding: 10px;
    flex-grow: 1;
}

.flight-offer-card h5 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a2b49;
    margin: 10px 0 5px;
}

.flight-offer-card p {
    font-size: 0.9rem;
    color: #6c757d;
    margin: 5px 0;
}

.flight-offer-card .price {
    font-size: 1.5rem;
    font-weight: 700;
    margin-right: 10px;
}

.flight-offer-card .btn-book-now {
    border: none;
    border-radius: 8px;
    padding: 8px 15px;
    font-weight: 500;
    transition: background-color 0.3s ease;
    width: 100%;
    margin-top: auto;
}

/* Loader Styles */
.loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loader-spinner {
    border: 5px solid #f3f3f3;
    border-top: 5px solid #007bff;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loader-overlay p {
    color: #fff;
    font-size: 1.2rem;
    margin-top: 10px;
    font-weight: 500;
}

.pop-touritems .card {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.cardCities {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.offer-row-gap {
    margin: -0.5rem;
}

.offer-row-gap>.col-12 {
    padding: 0.5rem;
}


/* =========================================
   4. FORM INPUT CSS
   ========================================= */

.form-control.google-input {
    padding-right: 70px !important;
    font-weight: 700 !important;
    color: #202124 !important;
    background-color: #fff;
    border: 1px solid #dadce0;
    border-radius: 4px;
    cursor: pointer;
}

.form-control.google-input:hover {
    background-color: #f1f3f4;
    border-color: #dadce0;
}

.form-control.google-input:focus {
    border-color: #1967d2;
    box-shadow: none;
    background-color: #fff;
}

/* Arrow container for dates */
.date-arrows {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 0px;
    z-index: 10;
    height: 100%;
    padding-left: 5px;
}

/* Individual Arrow Buttons */
.arrow-btn {
    background: transparent;
    border: none;
    color: #000000;
    cursor: pointer;
    font-size: 14px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #e8f0fe;
    transition: background-color 0.2s;
    padding: 0;
    margin-left: 4px;
}

.arrow-btn:hover {
    background-color: #e8f0fe;
    color: #1967d2;
}

.arrow-btn i {
    font-size: 12px;
    font-weight: bold;
}

/* Disable styling for One-way return */
.input-box.disabled input {
    background-color: #f1f3f4;
    color: #bdc1c6 !important;
    cursor: not-allowed;
}

.input-box.disabled .date-arrows {
    display: none;
}

/* Ensure the parent relative box handles positioning */
.input-box.position-relative {
    position: relative;
    width: 100%;
}


/* =======================================================
   5. NEW: TOP LABEL STYLES (Google Style Positioning)
   ======================================================= */

/* Ensure the container is relative so label can position absolutely */
.input-box {
    position: relative;
    height: 56px; /* Fixed height for consistent Google-style inputs */
    background: #fff;
    border-radius: 4px;
}

/* The Label Styling */
.input-box .input-label {
    position: absolute;
    top: 8px;           /* Distance from top */
    left: 12px;         /* Distance from left */
    font-size: 12px;    /* Smaller text */
    color: #5f6368;     /* Google gray color */
    font-weight: 500;
    margin: 0;
    z-index: 5;
    pointer-events: none; /* Allows click to pass through to input */
    line-height: 1;
}

/* The Input Styling to Accommodate Label */
.input-box .form-control {
    padding-top: 25px !important; /* Push text down to make room for label */
    padding-bottom: 5px !important;
    padding-left: 12px !important;
    background-color: transparent; /* Allows background of container if needed */
}

/* Input Focus State */
.input-box .form-control:focus {
    border-color: #1967d2;
    border-width: 2px;
    padding-left: 11px !important; /* Adjust for border width change */
    padding-top: 24px !important;
}

/* Autocomplete/Suggestions Dropdown positioning */
.autocomplete-container {
    position: relative;
}

.suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    border: 1px solid #dadce0;
    border-top: none;
    border-radius: 0 0 4px 4px;
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

/* Search Button Box Alignment */
.col-xl-2 .form-group {
    height: 56px;
}
.col-xl-2 .btn-primary {
    /* height: 100%; */
    display: flex;
    align-items: center;
    justify-content: center;
}



    /* --- ORIGINAL STYLES RETAINED --- */
    .depart-badge { background-color: #e8f0fe; color: var(--primary-blue); font-size: 0.75rem; padding: 2px 8px; border-radius: 4px; font-weight: 600; }
    .font { font-family: "Poppins", sans-serif; }
    .error { border-color: #dc3545 !important; }
    .text-danger { font-size: 0.875rem; }
    .modal-content { border-radius: 12px; border: none; box-shadow: 0 10px 30px rgba(0,0,0,0.15); }
    .spinner-border { width: 3rem; height: 3rem; }
    .success-icon { font-size: 50px; color: #198754; }
    .error-icon { font-size: 50px; color: #dc3545; }
    :root { --primary-blue: #0d6efd; --dark-text: #1a1a1a; --gray-text: #6c757d; --light-bg: #f8f9fa; --orange-btn: #f06516; }
    .layover-badge { background-color: #f8f9fa; color: #495057; border: 1px solid #dee2e6; border-radius: 50px; padding: 6px 20px; font-size: 0.85rem; font-weight: 500; display: inline-block; margin: 10px 0 20px 0; }
    .tripstravels { background-color: #e8f0fe; color: var(--primary-blue); font-size: 0.75rem; padding: 2px 8px; border-radius: 4px; font-weight: 600; }
    
    /* --- DESKTOP SPECIFIC STYLES --- */
    .flight-card { transition: transform 0.2s, box-shadow 0.2s; border: 1px solid #ffffff; }
    .flight-card:hover { box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .15) !important; transform: translateY(-2px); border-color: #c9c9c9; }
    .back-color { background-color: #000000; }
    .back-color-filter { background-color: #e8f0fe; color: #000000; }
    .back-color-from { background-color: #f1f5f8; }
    
    /* Timeline Elements */
    .timeline-segment { position: relative; padding-left: 25px; border-left: 2px solid #ffffff; margin-left: 10px; padding-bottom: 20px; }
    .timeline-segment:last-child { border-left: 2px solid transparent; }
    .timeline-point { position: absolute; left: -7px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 2px solid #6c757d; }
    .timeline-point.start { top: 0; border-color: #0d6efd; }
    .timeline-point.end { top: 0; background: #0d6efd; border-color: #0d6efd; }
    .layover-bar { background-color: #f8f9fa; border-top: 1px dashed #dee2e6; border-bottom: 1px dashed #dee2e6; margin: 10px -15px 20px -15px; padding: 10px 25px; font-size: 0.9rem; color: #495057; }
    
    /* Visual Flight Line */
    .flight-line-visual { position: relative; height: 2px; background: #dee2e6; width: 80%; margin: 0 auto; margin-top: 10px; }
    .flight-line-visual::before, .flight-line-visual::after { content: ''; position: absolute; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: #fff; border: 2px solid #dee2e6; }
    .flight-line-visual::before { left: 0; }
    .flight-line-visual::after { right: 0; background: #dee2e6; }
    .text-google-gray { color: #5f6368; }
    .fs-7 { font-size: 0.85rem; }
    .page-link { cursor: pointer; }

    /* --- SUMMARY BAR (Sticky) --- */
    .summary-bar { display: none; position: sticky; top: 0; z-index: 999; background-color: #181818; box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1); border-bottom: 1px solid #ffffff; padding: 10px 0; color: #ffffff; }
    @media (max-width: 767.98px) { .summary-bar { display: block; } .summary-bar h4 { font-size: 0.95rem !important; justify-content: center; text-align: center; line-height: 1.5; } .sb-divider { display: none !important; } }

    /* --- MOBILE ACTION BAR (Bottom) --- */
    .mobile-action-bar { position: fixed; bottom: 0; left: 0; width: 100%; background: #ffffff; box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.15); z-index: 1040; display: flex; justify-content: center; padding: 12px 15px; gap: 12px;border-radius: 20px; }
    .google-pill-btn { background: #fff; border: 1px solid #dadce0; border-radius: 24px; padding: 10px 20px; font-size: 14px; font-weight: 600; color: #000; display: flex; align-items: center; gap: 8px; flex: 1; justify-content: center; box-shadow: 0 1px 2px rgba(60, 64, 67, 0.1); transition: background 0.2s; }
    .google-pill-btn:active { background-color: #f1f3f4; }
    @media (min-width: 992px) { .mobile-action-bar { display: none !important; } }

    /* --- OFFCANVAS RESET (Desktop) --- */
    @media (min-width: 992px) { .offcanvas-lg-custom { position: static !important; z-index: auto !important; transform: none !important; visibility: visible !important; background: transparent !important; width: auto !important; height: auto !important; border: none !important; box-shadow: none !important; display: block !important; } .offcanvas-lg-custom .offcanvas-header { display: none !important; } .offcanvas-lg-custom .offcanvas-body { padding: 0 !important; overflow: visible !important; } .offcanvas-backdrop { display: none !important; } }

    /* --- MOBILE WIDGET STYLES --- */
    .flt-widget-container { background-color: white; width: 100%; padding: 0; border-radius: 20px; position: relative; font-family: 'Roboto', sans-serif; }
    .flt-widget-toggle-wrapper { background-color: white; border-radius: 8px; display: flex; padding: 4px; margin-bottom: 5px; border: 1px solid #e0e0e0; }
    .flt-widget-toggle-btn { flex: 1; border: none; background: transparent; padding: 10px; border-radius: 8px; font-weight: 600; font-size: 14px; color: #1f1f1f; transition: all 0.2s; }
    .flt-widget-toggle-btn.flt-active { background-color: #ffc107; color: rgb(0, 0, 0); }
    .flt-widget-input-card { border: 1px solid #dadce0; border-radius: 8px; padding: 9px 9px; display: flex; align-items: center; gap: 6px; margin-bottom: 5px; background: white; position: relative; }
    .flt-widget-icon { color: #5f6368; width: 24px; display: flex; justify-content: center; }
    .material-symbols-rounded { font-size: 24px; }
    .flt-widget-text-group { display: flex; flex-direction: column; width: 100%; overflow: hidden; }
    .flt-widget-lbl { font-size: 12px; color: #5f6368; margin-bottom: 2px; }
    .flt-widget-main-txt { font-size: 16px; color: #1f1f1f; border: none; outline: none; width: 100%; background: transparent; padding: 0; }
    .flt-widget-sub-txt { font-size: 13px; color: #5f6368; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .flt-widget-swap-btn { position: absolute; right: 20px; top: 50%; transform: translateY(-50%); background-color: white; border: 1px solid #dadce0; width: 36px; height: 36px; border-radius: 50%; display: flex; justify-content: center; align-items: center; color: #E63B2E; z-index: 10; box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); }
    .flt-widget-submit-btn { width: 100%; background-color: #ffc107; color: rgb(0, 0, 0); border: none; padding: 14px; border-radius: 8px; font-size: 16px; font-weight: 700; }
    
    /* Datepicker Override */
    .flatpickr-day.selected { background: #0d6efd !important; border-color: #0d6efd !important; }
    .mobile-only-search .flatpickr-mobile { border: none; background: transparent; font-size: 16px; font-weight: 500; color: #1f1f1f; }
    
    /* --- AIRPORT OVERLAY --- */
    .mobile-airport-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: #ffffff; z-index: 10000; flex-direction: column; font-family: 'Roboto', sans-serif; }
    .mobile-airport-overlay.active { display: flex; }
    .overlay-header { display: flex; align-items: center; padding: 10px 15px; border-bottom: 1px solid #e0e0e0; box-shadow: 0 2px 4px rgba(0,0,0,0.05); background: white; }
    .overlay-back-btn { background: none; border: none; font-size: 20px; color: #5f6368; padding: 10px; margin-right: 5px; cursor: pointer; }
    .overlay-input { flex: 1; border: none; font-size: 18px; color: #3c4043; outline: none; padding: 5px; }
    .overlay-list { flex: 1; overflow-y: auto; padding: 10px 0; }
    .overlay-item { display: flex; align-items: center; padding: 15px 20px; cursor: pointer; transition: background 0.2s; }
    .overlay-item:active { background-color: #f1f3f4; }
    .overlay-item-icon { margin-right: 20px; color: #70757a; font-size: 20px; display: flex; align-items: center; }
    .overlay-item-text { display: flex; flex-direction: column; }
    .overlay-city { font-size: 16px; color: #3c4043; font-weight: 400; }
    .overlay-airport { font-size: 14px; color: #70757a; }
    .overlay-code { margin-left: auto; font-size: 14px; color: #70757a; }
    /* Hide on mobile devices (≤ 767px) */
    @media (max-width: 767px) { .hide-on-mbe { display: none !important; } }
    @media (max-width: 767px) { .hide-on-mbe-new { margin-top: 0px !important; } }

    /* =========================================
       GOOGLE STYLE MOBILE CALENDAR CSS - UPDATED
       ========================================= */
    .custom-date-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: #fff;
        z-index: 20000;
        flex-direction: column;
        font-family: 'Google Sans', 'Roboto', sans-serif;
    }

    .custom-date-overlay.active {
        display: flex;
    }

    /* --- Header Section --- */
    .cdo-header {
        background: #fff;
        flex-shrink: 0; /* Prevent header from shrinking */
        box-shadow: 0 1px 3px rgba(0,0,0,0.1);
        z-index: 10;
    }

    .cdo-top-bar {
        display: flex;
        align-items: center;
        padding: 0 8px;
        height: 56px;
    }

    .cdo-back-btn {
        background: none;
        border: none;
        padding: 12px;
        color: #5f6368;
        font-size: 20px;
    }

    .cdo-title-area {
        flex: 1;
        font-size: 18px;
        color: #3c4043;
        font-weight: 500;
    }

    /* --- Tabs --- */
    .cdo-tabs {
        display: flex;
        width: 100%;
        border-bottom: 1px solid #e0e0e0;
    }

    .cdo-tab {
        flex: 1;
        text-align: center;
        padding: 14px 0;
        font-size: 14px;
        font-weight: 500;
        color: #70757a;
        border-bottom: 3px solid transparent;
        cursor: pointer;
        text-transform: uppercase;
    }

    .cdo-tab.active {
        color: #1967d2; /* Google Blue */
        border-bottom: 3px solid #1967d2;
    }

    /* --- Weekdays Header (Sticky) --- */
    .cdo-weekdays {
        display: flex;
        padding: 10px 0;
        background: #fff;
        border-bottom: 1px solid #f1f3f4;
    }

    .cdo-weekday {
        flex: 1;
        text-align: center;
        font-size: 11px;
        color: #70757a;
        font-weight: 500;
    }

    /* --- Calendar Body --- */
    .cdo-body {
        flex: 1;
        overflow-y: auto;
        padding-bottom: 80px; /* Space for footer */
        overscroll-behavior: contain;
    }

    .cdo-month {
        padding-bottom: 16px;
    }

    .cdo-month-name {
        padding: 20px 0 10px 24px;
        font-size: 15px;
        font-weight: 500;
        color: #202124;
        background: #fff;
    }

    .cdo-days-grid {
        display: grid;
        grid-template-columns: repeat(7, 1fr);
        row-gap: 2px; /* Slight gap between rows */
    }

    /* --- Day Styling --- */
    .cdo-day {
        aspect-ratio: 1/1; /* Perfect Square */
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 14px;
        color: #3c4043;
        position: relative;
        cursor: pointer;
        font-weight: 500;
        margin: 1px 0;
    }

    /* Disabled / Past Dates / Beyond 336 Days */
    .cdo-day.disabled {
        color: #dadce0;
        pointer-events: none;
        text-decoration: none;
    }

    /* --- Selection Logic (The Google Look) --- */
    /* 1. The Circle (Selected Start/End) */
    .cdo-day.selected {
        color: #fff;
        z-index: 2; /* Sit on top of the connecting bar */
    }

    /* The visual circle itself */
    .cdo-day.selected::before {
        content: '';
        position: absolute;
        width: 40px; /* Adjust size of circle */
        height: 40px;
        background-color: #1967d2;
        border-radius: 50%;
        z-index: -1;
    }

    /* 2. The Range Bar (Middle Dates) */
    .cdo-day.in-range {
        background-color: #e8f0fe; /* Light Blue */
        color: #1967d2;
        margin: 1px 0; /* Remove horizontal margin to connect */
    }

    /* 3. Connecting the Start/End to the Range */
    /* If it's the start date, fill the RIGHT half with light blue */
    .cdo-day.range-start::after {
        content: '';
        position: absolute;
        top: 0;
        bottom: 0;
        right: 0;
        width: 50%;
        background-color: #e8f0fe;
        z-index: -2; /* Behind the blue circle */
    }

    /* If it's the end date, fill the LEFT half with light blue */
    .cdo-day.range-end::after {
        content: '';
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        width: 50%;
        background-color: #e8f0fe;
        z-index: -2; /* Behind the blue circle */
    }

    /* Case: Start and End are same (single day selected), hide connector */
    .cdo-day.range-start.range-end::after {
        display: none;
    }

    /* --- Footer --- */
    .cdo-footer {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: #fff;
        border-top: 1px solid #dadce0;
        padding: 12px 16px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        z-index: 20001;
        box-shadow: 0 -2px 5px rgba(0,0,0,0.05);
    }

    .cdo-reset-btn {
        background: none;
        border: none;
        color: #1967d2;
        font-size: 14px;
        font-weight: 500;
    }

    .cdo-done-btn {
        background-color: #1967d2;
        color: #fff;
        border: none;
        padding: 10px 32px;
        border-radius: 24px;
        font-weight: 500;
        font-size: 14px;
        box-shadow: 0 1px 2px rgba(0,0,0,0.2);
    }

    /* =========================================
       NEW MOBILE CARD STYLING (MATCHING IMAGE) 
       ========================================= */
    @media (max-width: 991.98px) {
        /* body { padding-bottom: 100px; background-color: #f8f9fa; } */
        
        /* The Container for Mobile Cards */
        .mobile-res-card {
            background: #fff;
            border-radius: 5px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.08);
            border: 1px solid #f0f0f0;
            margin-bottom: 20px;
            overflow: hidden;
            font-family: 'Google Sans', 'Roboto', Arial, sans-serif;
        }

        /* Flight Segment Section (Header + Body) */
        .mob-res-segment {
            padding: 20px;
            border-bottom: 1px solid #f0f0f0;
            position: relative;
        }
        
        /* Top Header: Route, Date, Badge */
        .mob-card-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            margin-bottom: 15px;
        }
        
        .mob-route-text {
            font-size: 18px;
            font-weight: 700;
            color: #000;
            margin-bottom: 2px;
            line-height: 1.2;
        }
        
        .mob-date-text {
            font-size: 14px;
            color: #70757a;
        }
        
        .mob-badge {
            background-color: #e8f0fe;
            color: #1967d2;
            padding: 5px 12px;
            border-radius: 6px;
            font-size: 12px;
            font-weight: 600;
            letter-spacing: 0.3px;
        }

        /* Airline Info Row */
        .mob-airline-row {
            display: flex;
            align-items: center;
            margin-bottom: 20px;
        }
        
        .mob-airline-logo {
            width: 36px;
            height: 36px;
            border-radius: 4px;
            object-fit: contain;
            margin-right: 12px;
        }
        
        .mob-airline-name {
            font-size: 15px;
            font-weight: 700;
            color: #202124;
            line-height: 1.2;
        }
        
        .mob-flight-meta {
            font-size: 13px;
            color: #70757a;
        }

        /* Timing & Route Row */
        .mob-timing-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .mob-time-col {
            display: flex;
            flex-direction: column;
        }
        
        .mob-time-col.end {
            align-items: flex-end;
            text-align: right;
        }
        
        .mob-big-time {
            font-size: 24px;
            font-weight: 700;
            color: #000;
            line-height: 1;
            margin-bottom: 6px;
        }
        
        .mob-city-name {
            font-size: 13px;
            font-weight: 500;
            color: #202124;
        }
        
        .mob-city-code {
            color: #70757a;
        }

        /* Middle Duration Section (Visual Line) */
        .mob-dur-col {
            flex: 1;
            padding: 0 15px;
            display: flex;
            flex-direction: column;
            align-items: center;
            position: relative;
            top: -5px; /* Pull up slightly */
        }
        
        .mob-dur-val {
            font-size: 12px;
            color: #70757a;
            margin-bottom: 4px;
            background: #fff;
            padding: 0 5px;
            z-index: 1;
        }
        
        .mob-dotted-line {
            width: 100%;
            border-top: 2px dotted #dadce0;
            position: relative;
        }
        
        .mob-blue-dot {
            width: 8px;
            height: 8px;
            background-color: #1967d2;
            border-radius: 50%;
            position: absolute;
            top: -5px;
            left: 50%;
            transform: translateX(-50%);
        }

        /* Footer (Price & Select) */
        .mob-res-footer {
            padding: 15px 20px;
            background: #fff;
        }

        .mob-res-price-row {
            display: flex;
            justify-content: space-between;
            align-items: flex-end;
            margin-bottom: 12px;
        }

        .mob-res-price {
            font-size: 20px;
            font-weight: 800;
            color: #202124;
        }

        .mob-res-price-sub {
            font-size: 12px;
            color: #70757a;
        }

        .mob-res-select-btn {
            background-color: #ffc107; /* Orange/Yellow Button */
            color: rgb(0, 0, 0);
            font-weight: 600;
            border-radius: 6px;
            width: 100%;
            padding: 12px;
            border: none;
            font-size: 15px;
            box-shadow: 0 1px 2px rgba(66,133,244,0.3);
            text-align: center;
            display: block;
            text-decoration: none;
        }
        .mob-res-select-btn:hover {
            background-color: #e0a800;
        }
    }

    @media only screen and (max-width: 767px) {
  .mttop-lest {
    margin-top: -60px;
  }
}

