﻿.trip-type-tabs {
    display: flex;
    gap: 10px;
}

.trip-type-tab {
    padding: 10px 5px;
    border: 0;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    color: var(--theme-dark-blue);
}

    .trip-type-tab:hover {
        border-color:var(--theme-dark-blue);
    }

.cabin-class {
    padding: 5px 12px;
    border-radius: 10px;
    width:100%;
}
.passenger-inputs {
display:flex;
}
@media(max-width:992px){
    .passenger-inputs {
        display: flex;
        flex-direction:column;
    }
    }

.return-date-wrapper {
    transition: opacity 0.3s ease, max-height 0.3s ease;
    overflow: hidden;
}
    .return-date-wrapper.hidden {
        display: none;
    }

    .return-date-wrapper.visible {
        opacity: 1;
        max-height: 100px;
    }

.suggestions {
    margin-top: 50px;
    border: 1px solid #ccc;
    display: none;
    position: absolute;
    background: white;
    z-index: 9999;
    max-height: 250px;
    overflow-y: auto;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

    .suggestions div {
        line-height: normal !important;
        padding: 6px;
    }
.suggestion-item {
    font-weight: bold;
    color: var(--theme-dark-blue);
    font-size: 14px;
    margin-bottom: 2px;
}

    .suggestion-item:hover {
        background-color: var(--theme-dark-blue) !important;
        color: white !important;
    }
        .suggestions div:hover {
            background-color: #f1f1f1;
        }

@media(min-width:500px) and (max-width:992px){
    .flight-checker-section {
        margin-top: 0 !important;
    }
}


@media (max-width:500px){
    .pricing-card {
        display: block !important;
    }
    .flight-checker-section {
        margin-top:0 !important;
    }
    }
.pricing-card {
    border: 1px solid #e0e0e0;
    margin-bottom: 15px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    background: white;
    display:flex;
    padding:1.5rem;
    justify-content:center;
}

    .pricing-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
        border-color: var(--theme-dark-blue);
    }

/* ✅ Book button */
.btn-book {
    padding: 10px 15px;
    background: var(--theme-dark-blue);
    color: white;
    border: none;
    border-radius: 10px;
    position: relative;
    cursor: pointer;
    overflow: hidden;
    z-index: 1;
    transition: color 0.3s ease;
    font-weight: bold;
    text-decoration: none;
    display: flex;
    width: 100%;
    justify-content: center;
    white-space: nowrap;
}

.btn-book::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    z-index: -1;
    transition: left 0.3s ease;
    background-color: white;
}

.btn-book:hover::before {
    left: 0;
}

.btn-book:hover {
    color: var(--theme-dark-blue);
    border: 1px solid var(--theme-dark-blue);
}



.flightSearchBtn:disabled {
    background: #4a3f8f;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    white-space: nowrap;
    cursor: not-allowed;
}

/* ✅ Loading spinner */
.loading-spinner {
    width: 20px;
    height: 20px;
    display: flex;
    flex-direction: column;
    border: 1px solid white;
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

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


/*

.select2-container--default .select2-selection--single {
    height: 42px;
    border: 1px solid #ced4da;
    border-radius: 5px;
    padding: 5px 0;
}

    .select2-container--default .select2-selection--single .select2-selection__rendered {
        line-height: 32px;
        padding-left: 0;
        color: #495057;
    }

    .select2-container--default .select2-selection--single .select2-selection__arrow {
        height: 40px;
    }

.select2-container--default.select2-container--focus .select2-selection--single {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.select2-dropdown {
    border: 1px solid #ced4da;
    border-radius: 5px;
}

.select2-search--dropdown .select2-search__field {
    border: 1px solid #ced4da;
    border-radius: 4px;
    padding: 8px;
}

.select2-results__option--highlighted[aria-selected] {
    background-color: #007bff !important;
}*/

/*.flight-checker-section .flight-input-wrapper {
    border: 1px solid var(--theme-dark-blue);
    color: var(--theme-dark-blue);
    border-radius: 10px;
    padding: 0px 12px;
}
.flight-checker-section .dropdown-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 5px 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
}*/
/* ✅ No flights message */
.no-flights {
    text-align: center;
    padding: 40px 20px;
    color: #999;
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    font-size: 16px;
}

    .no-flights small {
        display: block;
        margin-top: 10px;
        color: #666;
        font-size: 14px;
        line-height: 1.5;
    }

/* ✅ Sort and filter controls */
.results-controls {
    margin-bottom: 1.5rem;
    color: var(--theme-dark-blue);
}

.sort-select {
    min-width: 200px;
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 5px;
    font-size: 14px;
    background: white;
}

.results-count {
    font-weight: 500;
    color: var(--theme-dark-blue);
    font-weight:bold;
}

.time-text{
    color:var(--dark-grey);
}
.destination-text{
    color:var(--light-grey);
}
.long-arrow {
    position: relative;
    width:100%;
    height: 2px; /* thickness */
    background-color:var(--dark-grey);
}

    .long-arrow::after {
        content: "";
        position: absolute;
        right: -10px;
        top: -4px;
        border-top: 5px solid transparent;
        border-bottom: 5px solid transparent;
        border-left: 10px solid var(--dark-grey);
        margin-right:10px;
    }
/* ✅ Hospital guide modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
}
.modal-header{
    padding:0;
}
    .modal.show {
        display: block;
    }

#hospitalModal .modal-box {
    background: white;
    width: fit-content;
    margin: 50px auto;
    padding: 20px;
    border-radius: 5px;
    max-height: 80vh;
    overflow-y: auto;
}

    .modal-box h3 {
        margin-top: 0;
        border-bottom: 1px solid #ddd;
        padding-bottom: 10px;
    }

    .modal-box ul {
        list-style: none;
        padding-left: 20px;
    }

        .modal-box ul li:before {
            content: "• ";
            color: #007bff;
        }

/* ✅ Responsive design */

    .pricing-card {
        padding: 15px;
    }

    .passenger-inputs {
        grid-template-columns: 1fr 1fr;
    }


    .flight-checker-section {
        position: relative;
        margin-top: -100px; /* This creates the overlap */
        z-index: 10;
    }

    .flight-box {
        background-color: white;
        border-radius: 1rem;
        box-shadow: 0px 4px 2px 0px #cccccc;
    }

    .flight-checker-section .select-wrapper {
        position: relative;
        display: inline-block;
    }

        .flight-checker-section .select-wrapper::after {
            content: "";
            position: absolute;
            top: 45%;
            right: 0;
            width: 8px;
            height: 8px;
            border-right: 2px solid #333;
            border-bottom: 2px solid #333;
            transform: translateY(-50%) rotate(45deg);
            pointer-events: none;
            border-right: 2px solid var(--theme-dark-blue);
            border-bottom: 2px solid var(--theme-dark-blue);
        }

    .flight-checker-section .input-group .select-wrapper {
        display: flex;
    }

    .flight-checker-section .input-group {
        padding: 5px 12px;
        display: flex;
        flex-direction: column;
        border: 1px solid var(--theme-dark-blue);
        color: var(--theme-dark-blue);
        border-radius: 10px;
    }

        .flight-checker-section .input-group .title {
            color: var(--theme-dark-blue);
            margin-bottom: 2px;
        }

    .flight-checker-section .trip-type-tab {
        appearance: none;
        -webkit-appearance: none;
        -moz-appearance: none;
        padding-right: 40px; /* space for icon */
        outline: 0;
        background:transparent;
    }

/* Return date wrapper hidden state: remove from layout */
.flight-checker-section .return-date-wrapper.hidden {
    display: none !important; /* completely gone */
}

.flight-checker-section .return-date-wrapper.visible {
    display: flex !important; /* or block/flex depending on your layout */
    flex: 1 1 150px;
    min-width: 150px;
}

/* Make sure flexbox still works */
.flight-checker-section .location-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}

.flight-checker-section .location-wrapper .box {
    flex: 1 1 150px;
    min-width: 150px;
}
.two-line-div {
    line-height: 20px; /* adjust to your font */
    height: 40px; /* line-height × 2 */
    display: flex;
    align-items: center; /* THIS centers 1-line text */
    justify-content: center; /* optional if text centered */
    text-align: center;
    overflow: hidden;
}

#results .carrier-div {
    display: flex;
    align-items: center;
    text-align: center;
    width: 100%;
    justify-content: space-between;
}
#results .carrier-two-way {
    display: flex;
    align-items: center;
    text-align: center;
    width: 100%;
    justify-content: space-between;
}

    #results .carrier-two-way .section1 {
        flex: 0 0 20%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    #results .carrier-two-way .section2 {
        flex: 0 0 80%;
        display: flex;
        gap: 15px;
    }

#results .carrier-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--theme-dark-blue);
    border: 1px solid var(--theme-dark-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 14px;
}

#results .section1 {
    flex: 0 0 15%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#results .section2 {
    flex: 0 0 60%; 
    display:flex;
    gap:15px;

}

#results .section3 {
    flex: 0 0 20%; /* Fixed 20% width */
}


/* Mobile stacked */
@media (max-width: 992px) {
    .location-wrapper {
        flex-direction: column;
    }
    .suggestions {
        width:100% !important;
    }

}


/*    .flight-checker-section .location-wrapper {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
*/
    .flight-checker-section .details-input {
        width: 100%;
        color: var(--theme-dark-blue);
        font-weight: 500;
        border: none;
        box-shadow: none;
        outline: 0;
        padding: 3px 0;
        appearance: none;
        -webkit-appearance: none;
        -moz-appearance: none;
/*        padding-right: 35px;*/
    }

        .flight-checker-section .details-input::placeholder, .flight-checker-section .select2-container--default .select2-selection--single .select2-selection__placeholder {
            color: var(--theme-dark-blue) !important;
        }
    .flight-checker-section .select2-container .select2-selection--single .select2-selection__rendered {
        padding-right: 15px;
        padding-left: 0;
    }

    .flight-checker-section #departureDate, .flight-checker-section #returnDate {
        border: 0;
        outline: 0;
    }

    #hospitalGuideBtn {
        border: none;
        background: transparent;
        cursor: pointer;
    }

    .flight-icon {
        width: 25px;
        height: 25px;
    }

    .flight-checker-section .form-control:focus, .flight-checker-section .select2-container--default.select2-container--focus .select2-selection--single {
        box-shadow: none;
        border: 0;
    }

    #flightSearchBtnDesktop, #flightSearchBtnMobile {
        width: 100%;
        background: var(--theme-dark-blue);
        color: white;
        border: none;
        border-radius: 10px;
        height: 100%;
        position: relative;
        cursor: pointer;
        overflow: hidden;
        z-index: 1;
        transition: color 0.3s ease;
        font-weight: bold;
        display:flex;
        justify-content:center;
    }

    #flightSearchBtnDesktop {
        padding: 21px 10px;
    }

    #flightSearchBtnMobile {
        padding: 10px 15px;
    }

        #flightSearchBtnDesktop::before, #flightSearchBtnMobile::before {
            content: "";
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            z-index: -1;
            transition: left 0.3s ease;
            background-color: white;
        }

    #flightSearchBtn:hover::before {
        left: 0;
    }

    #flightSearchBtn:hover {
        color: var(--theme-dark-blue);
        border: 1px solid var(--theme-dark-blue);
    }
.departure-box {
    position: relative;
}

    /* Swap button styling */
    .departure-box .swap-btn {
        position: absolute;
        right: -33px;
        top: 22px;
        z-index: 10;
        background: transparent;
        border: 0;
        padding: 0;
        padding: 6px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .flight-checker-section .dropdown-text .title, .flight-checker-section .passenger-inputs .title{
        font-weight:bold;
        font-size:12px;
    }

    @media (max-width: 992px) {

        .flight-checker-section .location-wrapper .box {
            flex: none; /* cancel grow/shrink */
            width: 100% !important; /* full width */
            min-width: 0; /* remove min width */
        }
            .flight-checker-section .location-wrapper {
            flex-direction: column;
            gap: 0;
        }

        .long-arrow {
            width: 100%;
        }


    }
    @media(max-width:500px){
        .flight-checker-section .swap-btn {
            position: absolute;
            top: 102%;
            right: -7%;
            transform: translate(-50%, -50%);
            z-index: 10;
        }
    }
    @media (min-width:501px) and (max-width:992px){
        .flight-checker-section .swap-btn {
            position: absolute;
            right: -1%;
            top: 100%;
            transform: translate(-50%, -50%);
            z-index: 10;
        }
    }
.flight-checker-section #departureDate, .flight-checker-section #returnDate {
    padding-right: 0;
    background:transparent;
}
/*    .flight-checker-section input[type="date"]::-webkit-calendar-picker-indicator {
        display: none;
        -webkit-appearance: none;
    }
*/
.flight-checker-section .select-wrapper {
    position: relative;
    display: inline-block;
}

        .flight-checker-section .select-wrapper i {
            position: absolute;
            right: 12px;
            top: 50%;
            transform: translateY(-50%);
            pointer-events: none;
            font-size: 14px;
            color: #333;
        }

/* ✅ Pagination Controls */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
    padding-bottom: 20px;
    flex-wrap: wrap;
}

.page-btn {
    padding: 8px 14px;
    border: 1px solid var(--theme-dark-blue);
    background: white;
    color: var(--theme-dark-blue);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

    .page-btn:hover:not(:disabled) {
        background: #f0f4f8;
    }

    .page-btn.active {
        background: var(--theme-dark-blue);
        color: white;
    }

    .page-btn:disabled {
        opacity: 0.4;
        cursor: not-allowed;
        border-color: #ccc;
        color: #999;
    }

.dots {
    display: inline-block;
    padding: 8px 5px;
    font-weight: bold;
    color: var(--theme-dark-blue);
    align-self: center;
}
/* Ensure wrapper doesn't wrap unless absolutely necessary on tiny screens */
.pagination-wrapper {
    flex-wrap: nowrap;
    overflow-x: auto; /* Adds scroll on very small mobile screens instead of breaking layout */
}

/* Custom Select2 Dropdown Styling */
.airport-option-container {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.airport-title {
    font-weight: bold;
    color: var(--theme-dark-blue); /* Matches your theme */
    font-size: 14px;
    margin-bottom: 2px;
}

.hospital-list {
    font-size: 11px;
    color: #6c757d;
    margin: 0;
    padding: 0;
    list-style: none;
}

.hospital-list li {
    display: block !important;
    padding-left:10px;
    font-size:13px;
}

.hospital-list li::after {
    content: "";
}

/* Ensure the selection displayed in the box remains clean (single line) */
.select2-container .select2-selection--single {
    height: auto !important;
    min-height: 42px;
}

@media (max-width:992px){
    .custom-airport-dropdown {
        width: 100%;
        min-width: 350px !important;
    }
}
.custom-airport-dropdown {
    width:100%;
    min-width:450px;
    z-index: 99999; 
}

/* Ensure the text wraps nicely inside this wider box */
.airport-option-container {
    white-space: normal; /* Allows text to wrap if it's still too long */
    padding: 5px 0;
}

/* ✅ Target Select2 specifically inside your card structure */
.select-item.dropdown-card.border-card-blue-filter .select2-container--default .select2-selection--single {
    border: none !important; /* Remove Select2's default border */
    background-color: transparent !important; /* Transparent background */
    height: auto !important; /* Let it fill the parent height */
    min-height: 24px; /* Match standard input height */
    padding: 3px 0 !important; /* Match your .details-input padding */
    box-shadow: none !important; /* No shadow */
    outline: none !important; /* No focus outline */
    display: flex;
    align-items: center;
}

/* ✅ Style the text inside (Airport Name) */
.select-item.dropdown-card.border-card-blue-filter .select2-container .select2-selection--single .select2-selection__rendered {
    padding-left: 0 !important; /* Remove default left padding */
    padding-right: 20px !important; /* Space for the arrow */
    color: var(--theme-dark-blue) !important; /* Match your text color */
    font-weight: 500; /* Match font weight */
    font-size: 16px; /* Match font size */
    line-height: normal !important;
}

/* ✅ Position the Dropdown Arrow */
.select-item.dropdown-card.border-card-blue-filter .select2-container--default .select2-selection--single .select2-selection__arrow {
display:none;
}

/* ✅ Remove the default focus glow/border */
.select-item.dropdown-card.border-card-blue-filter .select2-container--default.select2-container--focus .select2-selection--single {
    border: none !important;
    box-shadow: none !important;
}

.select2-results__option--selectable:hover .airport-title,
.select2-results__option--selectable:hover .hospital-list,
.select2-results__option--selectable:hover .hospital-list i {
    color: white !important;
}
.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
    background-color: var(--theme-dark-blue) !important;
    color: white !important;
}

    .select2-container--default .select2-results__option--highlighted.select2-results__option--selectable .airport-title,
    .select2-container--default .select2-results__option--highlighted.select2-results__option--selectable .hospital-list,
    .select2-container--default .select2-results__option--highlighted.select2-results__option--selectable .hospital-list i {
        color: white !important;
    }

#mobilePassengerBtn {
    padding: 0;
    height: 60px;
    color:var(--theme-dark-blue);
}

#mobilePassengerTarget {
    display: flex;
    gap: 10px;
    flex-direction: column;
}

#clearDepAirport {
/*    position: absolute;*/
    right: 8px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
/*    color: #999;*/
    display: none;
    line-height: 1;
    padding: 0px 16px 0px 6px;
    font-weight: bold;
}

    #clearDepAirport:hover {
        color: #333;
    }

#depAirport {
    /* 1. Prevent the text from wrapping to the next line */
    white-space: nowrap;
    /* 2. Hide any text that goes beyond the input's width */
    overflow: hidden;
    /* 3. Add the "..." to the cut-off text */
    text-overflow: ellipsis;
    /* Optional: Ensure the input has a constrained width so it knows when to cut off */
    width: 100%;
}

/* Fix: Restore native date picker appearance on mobile */
@media (max-width: 992px) {
    .flight-checker-section #departureDate,
    .flight-checker-section #returnDate {
        -webkit-appearance: auto !important;
        -moz-appearance: auto !important;
        appearance: auto !important;
        min-height: 30px;
        width: 100%;
        color: var(--theme-dark-blue);
        font-weight: 500;
    }
}

.date-display-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    width: 100%;
}

.date-display-text {
    color: var(--theme-dark-blue);
    font-weight: 500;
    font-size: 16px;
    flex: 1;
}

.calendar-icon {
    font-size: 18px;
    cursor: pointer;
}

.hidden-date-input {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    cursor: pointer;
    z-index: 2;
}