﻿.flightsTab {
    padding-left: 0px;
    padding-right: 0px;
}

.flightSearchFilter input{
    width:20px;
}

#flightSearchHeader {
    display: block;
}
.flightFilters {
    display: block;
    max-width:350px;
}
.flightFilters .btn-check{
    width:20px;
}
#flightList {
    max-width: 1350px;
}
#flightCart {
    height: calc(100vh - 100px);
    overflow-y: auto;
    max-width: 350px;
}
    #flightCart::-webkit-scrollbar {
        width: 6px;
    }

    #flightCart::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 3px;
    }

    #flightCart::-webkit-scrollbar-thumb {
        background: #c1c1c1;
        border-radius: 3px;
    }

        #flightCart::-webkit-scrollbar-thumb:hover {
            background: #a8a8a8;
        }

@media (max-width: 768px) {
    #flightSearchHeader {
        display: none;
    }
}

@media (min-width: 0px) and (max-width: 767px) {
    .flightPriceCol {
        flex-direction: column;
    }
}

.flightTag {
    display:flex;
    width: auto;
}

.flightTimeSlot {
    border: 1px solid var(--color-border) !important;
    border-radius: 10px;
}

    .flightTimeSlot.active {
        border: 1px solid var(--color-blue-3) !important;
        border-radius: 10px;
        background: white;
    }

#flightResultsSection .container, #flightResultsSection .container-sm {
    max-width: 100%;
}

.accordion__item.flightSelectable {
    cursor: pointer;
}

.accordion__item.flightSelectable .flightCheck {
    width:27px;
    height:27px;
}

.accordion__item.flightSelectable .flightCheck  i {
    display:none;
}

.accordion__item.flightSelectable.selected .flightCheck  i {
    display:block;
}

.flightCart.flightDep, .flightCart.flightArr {
    border-bottom: 1px solid var(--color-border);
}

.flightCartMobile {
    padding-top: 0px;
    position: fixed;
    bottom: 0px;
    z-index:20;
}

    .flightCartMobile .flight-price-container {
        border-bottom: 1px solid var(--color-border);
    }

    .flightCartMobile .cart-price {
        color: white;
        display: flex;
        align-items: center;
        font-weight: bold;
        font-size: 14px;
        height: 40px;
    }

.floating-cart {
    position: sticky;
    right: 0px;
    top: calc(2rem + 67px);
    height: calc(22vh - 60px);
}

.top-right-check {
    position: absolute;
   /* top: 30px; */  /* Align vertically with flight tags */
    right: 15px; /* Keep the same horizontal position */
    z-index: 10;
    width: auto; /* Changed from fixed width */
}

/*XXL*/
@media (max-width: 1300px) {
    .container-fluid {
        width: 100%;
        padding-right: var(--bs-gutter-x,15px);
        padding-left: var(--bs-gutter-x,15px);
        margin-right: auto;
        margin-left: auto;
    }
}

/*XL*/
@media (max-width: 1199px) {
    .container-fluid {
        width: 100%;
        padding-right: var(--bs-gutter-x,15px);
        padding-left: var(--bs-gutter-x,15px);
        margin-right: auto;
        margin-left: auto;
    }
}

/*LG*/
@media (max-width: 991px) {
    .container-fluid {
        width: 100%;
        padding-right: var(--bs-gutter-x,15px);
        padding-left: var(--bs-gutter-x,15px);
        margin-right: auto;
        margin-left: auto;
    }
}

/*MD*/
@media (max-width: 767px) {
    .container-fluid {
        width: 100%;
        padding-right: var(--bs-gutter-x,15px);
        padding-left: var(--bs-gutter-x,15px);
        margin-right: auto;
        margin-left: auto;
    }
}

/*XS*/
@media (max-width: 575px) {
    .air-grid-col{
        padding:2px;
    }

    .container-fluid {
        width: auto;
        padding-right: initial;
        padding-left: initial;
        margin-right: initial;
        margin-left: initial;
    }
}

.baggage-item {
    border: 2px double #3490dc;
    border-radius: 10px;
    padding: 10px;
    margin-top: 10px;
}

.baggage-toggle {
    cursor: pointer;
    user-select: none;
}

.baggage-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.baggage-image-container {
    position: relative;
    display: inline-block;
}

.baggage-image {
    width: 32px;
    height: 32px;
}

    .baggage-image.inactive {
        opacity: 0.5;
    }

    .baggage-image.active {
        opacity: 1;
    }

.baggage-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #3490dc;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.baggage-text {
    margin-left: 8px;
}

    .baggage-text.active {
        color: #3490dc;
        font-weight: bold;
    }

    .baggage-text.inactive {
        color: #6c757d;
    }

/* Basic styling for room expandable sections */
.farerules-fade-expand {
    /* Collapsed state */
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    margin: 0;
    transform: scaleY(0);
    transform-origin: top;
    position: relative;
    width: 100%;
    z-index: 10;
    /* Animation properties */
    transition: max-height 0.5s ease, opacity 0.4s ease, transform 0.4s ease, margin 0.4s ease;
    will-change: max-height, opacity, transform, margin;
    pointer-events: none;
}

    /* For elements being closed that animate back to collapsed */
    .farerules-fade-expand.transitioning {
        max-height: 0 !important;
        opacity: 0;
        transform: scaleY(0);
        overflow: hidden;
        margin: 0;
    }

    /* Expanded state */
    .farerules-fade-expand.show {
        max-height: fit-content;
        opacity: 1;
        transform: scaleY(1);
        overflow: visible !important;
        margin-top: 0.5rem;
        margin-bottom: 1rem;
        pointer-events: auto;
    }



.flight-card {
    margin-bottom: 20px; /* Increased from 15px */
    transition: all 0.2s;
    cursor: pointer;
    position: relative; /* Ensure proper positioning context */
    margin-top:20px;
}

.flight-card__content {
    display: flex;
    flex-direction: column;
    height: 100%;
 
    padding: 30px; /* Increased padding */
    border-radius: 8px; /* Ensure consistent rounded corners */
}

.flight-card__header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px; /* Increased from 15px */
    padding-bottom: 5px; /* Added padding at the bottom */
    position: relative; /* Add positioning context */
}

.flight-card__airline {
    display: flex;
    align-items: center;
}

.flight-card__tag {
    font-size: 12px;
    padding: 5px 15px; /* Increased padding from 3px 10px */
    border-radius: 100px;
    margin-left: 12px; /* Slightly increased from 10px */
    display: flex;
    align-items: center;
}

.flight-card__tag i {
    margin-right: 8px;
    font-size: 14px; /* Adjust icon size */
}

.flight-card__tag--cheapest {
    background-color: #F8664C;
    color: white;
}

.flight-card__tag--cheapest i {
    color: white;
}

.flight-card__tag--fastest {
    background-color: #FFDA79;
    color: #2D3134;
}

.flight-card__tag--fastest i {
    color: #2D3134;
}

.flight-card__tag--earliest {
    background-color: #B27CF5;
    color: white;
}

.flight-card__tag--earliest i {
    color: white;
}

.flight-card__main {
    flex-grow: 1;
    padding: 15px 0; /* Increased from 10px 0 */
}

.flight-card__times {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.flight-time {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.flight-time__value {
    font-weight: 600;
    font-size: 18px;
}

.flight-time__code {
    color: #697488;
    font-size: 13px;
    margin-top: 2px;
}

.flight-line {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 25px; /* Increased from 20px */
}

.flight-line__duration, .flight-line__stops {
    font-size: 13px;
    color: #697488;
}

.flight-line__path {
    width: 100%;
    position: relative;
    height: 2px;
    background-color: #DDDDDD;
    margin: 8px 0;
}

    .flight-line__path div {
        position: absolute;
        top: -3px;
        left: 50%;
        width: 8px;
        height: 8px;
        background-color: #DDDDDD;
        border-radius: 50%;
        transform: translateX(-50%);
    }

.flight-card__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px; /* Increased from 15px */
    padding-top: 20px; /* Increased from 15px */
    border-top: 1px solid #EEEEEE;
}

.flight-card__services {
    display: flex;
    align-items: center;
}

.flight-service {
    margin-right: 15px;
    color: var(--color-blue-3);
    font-size: 18px;
}

.flight-service--disabled {
    position: relative;
    color: var(--color-light-1);
}

    .flight-service--disabled::after {
        content: "";
        position: absolute;
        width: 2px;
        height: 20px;
        background-color: black;
        transform: rotate(45deg);
        top: 50%;
        left: 50%;
        margin-top: -10px;
        margin-left: -1px;
    }

.flight-service--extra {
    color: #FFDA79;
}

.flight-card__price {
    text-align: right;
}

.flight-card .flightCheck {
    width: 28px;   
    height: 28px;  
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f5f5f5;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.flight-card .flightCheck i {
    display: none;
    font-size: 14px; /* Slightly smaller icon */
}

.flight-card__content.selected .flightCheck i {
    display: block;
}
@media (max-width: 767px) {
    .flight-card {
        margin-bottom: 0px; /* Increased from 15px */
        margin-top: 0px; /* Increased from 15px */
        transition: all 0.2s;
        cursor: pointer;
        padding: 5px; /* Added outer padding */
        position: relative; /* Ensure proper positioning context */
        height: 335px; /* Fixed height for mobile */
        max-height: 335px; /* Maximum height */
        min-height: 335px; /* Minimum height */
    }

    .flight-card__content {
        padding: 20px; /* Slightly reduced padding on smaller screens */
    }

    .flight-line {
        margin: 0 15px; /* Reduced margin on smaller screens */
    }

    .flight-card__tag {
        padding: 3px 8px;
        margin-left: 5px;
        margin-right: 5px;
        font-size: 10px;
    }
    /* Fix: Use comma to select both icon classes within flight-service */
    .flight-service .fa-cart-flatbed-suitcase,
    .flight-service .fa-suitcase {
        font-size: 13px;
    }

    .flight-card__tag i {
        margin-right: 3px;
    }

    .flight-service {
        margin-right: 10px;
    }

    .flight-time__value {
        font-size: 16px;
    }

    .flight-time__code {
        font-size: 12px;
    }
}
/* Responsive adjustments for flight cards */

@media (max-width: 790px) {
    #flight_carrier {
        display: none;
    }
    .flight-card {
        margin-bottom: 0px;
        margin-top: 0px;
        padding: 3px; /* Reduced padding for very small screens */
        height: 295px; /* Fixed height for mobile */
        max-height: 295px; /* Maximum height */
        min-height: 295px; /* Minimum height */
    }
        .flight-card:first-child {
            margin-top: 20px !important;
        }
    .flight-card__content {
        padding: 15px; /* Further reduced padding */
    }
    .flight-card__main {
        padding: 2px 0; /* Further reduced for very small screens */
    }
    
    .flight-line {
        margin: 0 10px; /* Smaller margins */
    }

    /* Even smaller font sizes for very small screens */
    .flight-time__value {
        font-size: 12px; /* Reduced from 14px */
    }

    .flight-time__code {
        font-size: 10px; /* Reduced from 11px */
    }

    .flight-line__duration,
    .flight-line__stops {
        font-size: 9px; /* Reduced from 11px */
    }

    /* Make service icons smaller too */
    .flight-service .fa-cart-flatbed-suitcase,
    .flight-service .fa-suitcase {
        font-size: 11px; /* Reduced from 13px in mobile view */
    }

    /* Smaller price and other text */
    .flight-card__price .text-16 {
        font-size: 12px !important;
    }

    /* Make badges and tags more compact */
    .flight-card__tag {
        font-size: 8px;
        padding: 2px 6px;
    }

    /* Limit container width */
    .container,
    .container-fluid,
    .flight-card,
    #flightList {
        max-width: 380px;
    }
}


/* Flight Summary Header for collapsed search view */
.flightSummaryHeader {
    position: relative;
    z-index: 20;
    transition: all 0.3s ease;
    cursor: pointer;
}

.flight-search-summary-text {
    font-size: 18px; /* Default base size (matches the current text-14 class) */
}

@media (min-width: 992px) {
    .flightSummaryHeader {
        max-width: 1200px;
        margin: 0 auto;
    }
}

.flightSummaryHeader .search-summary {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

    .flightSummaryHeader .search-summary .item {
        display: flex;
        align-items: center;
    }

        .flightSummaryHeader .search-summary .item i {
            margin-right: 8px;
            color: var(--color-blue-3);
        }



.flightSummaryHeader .button-item button {
    padding: 10px 20px;
    height: auto;
    min-width: 120px;
}

/* Mobile flight search summary bullet points */
@media (max-width: 767px) {
    .flight-search-summary-text {
        white-space: normal;
        font-size: 16px;
        font-weight: 500;
    }

        .flight-search-summary-text .bullet-separator {
            display: block;
            height: 0;
            width: 100%;
            margin: 5px 0;
            visibility: hidden;
        }
}