/*==============================
  BASE SEARCH FORM SETUP
===============================*/
.search-form {
    position: relative;
    z-index: 2;
}

/*==============================
  HERO BANNER
===============================*/
.hero-banner {
    position: relative;
    z-index: 1;
    height: 450px;
    overflow: hidden;
}

.hero-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, var(--tts-buttton-bg), var(--tts-buttton-bg1));
    z-index: -1;
}

.hero-banner .carousel-item {
    position: relative;
    height: 450px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-position: top center;
    background-repeat: no-repeat;
    background-size: cover;
    padding: 0 32px;
    transition: background-image 1s ease-in-out;
}

.hero-banner .carousel-item::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, rgba(86, 58, 250, 0.1), rgba(242, 184, 39, 0.1));
    z-index: -1;
}

/* Banner Text */
.hero-banner h1,
.hero-banner p {
    position: relative;
    z-index: 2;
    color: #fff;
    text-align: center;
    margin: 0;
}

.hero-banner h1 {
    font-size: 2.8rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.hero-banner p {
    font-size: 1.2rem;
    margin-top: 10px;
    opacity: 0.9;
}

/*==============================
  SEARCH FORM SECTION
===============================*/
.search_form_section {
    position: absolute;
    bottom: 50px;
    right: 0;
    width: 100%;
    z-index: 2;
}

.tts_product_box {
    width: 100%;
    padding: 20px;
    background: #fff;
    color: #070A10;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.15);
}

/*==============================
  SEARCH TABS
===============================*/
.search_tabs {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: -70px 0 20px;
    gap: 10px;
    font-size: 14px;
    font-weight: 700;
}

.search_tabs li {
    list-style: none;
}

.search_tabs li a {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 90px;
    height: 70px;
    background: #fff;
    border-radius: 7px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.15);
    color: #000;
    text-align: center;
    transition: all 0.4s ease;
    font-weight: 400;
}

.search_tabs li a i {
    font-size: 18px;
    margin-bottom: 5px;
    transition: all 0.3s ease;
}

.search_tabs li a:hover {
    transform: translateY(-6%);
    box-shadow: 0 12px 20px -3px rgba(0, 0, 0, 0.3);
}

.search_tabs li a.current {
    background: var(--tts-buttton-bg);
    color: var(--tts-buttton-txt);
}

.search_tabs li a.current img {
    filter: brightness(0) invert(1);
}

/*==============================
  FLIGHT SEARCH CONTAINER
===============================*/
.flight-search {
    padding: 0 0px 15px;
    width: 100%;
}

.search-title h2 {
    font-size: 20px;
    margin: 0;
}

/*=========flight======*/
.btn-group .search-check-label {
    background-color: transparent;
    color: #222;
    border: 1px solid #e1e1e1;
    padding: 8px 20px;
    border-radius: 30px;

    cursor: pointer;
}

.btn-group .btn_check {
    position: absolute;
    clip: rect(0, 0, 0, 0);
    pointer-events: none;
}

.btn-check:checked+.btn,
.btn-check:active+.btn,
.btn:active,
.btn.active,
.btn.show {
    color: var(--tts-buttton-txt);
    background-color: var(--tts-buttton-bg);
    border-color: var(--tts-buttton-bg);
    box-shadow: none;
}

.search-title h2 {
    font-size: 20px;
    margin: 0;
}


/*==============================
  INPUTS & LABELS
===============================*/
.flight_search_border {
    display: flex;
    flex-wrap: wrap;
    border: 1px solid #ebebeb;
    padding: 0;
    margin: 0;
    list-style: none;
    width: 100%;
}

.flight_search_border li {
    position: relative;
    padding: 8px 15px;
    flex-shrink: 0;
    line-height: 1;
    /* height: 80px; */
    transition: background-color 0.3s ease;
}

.flight_search_border li:hover {
    background-color: #f1f7ff;
}

.flight_search_border li::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 0;
    width: 1px;
    height: 70%;
    background: #ebebeb;
    transform: translateY(-50%);
}

.flight_search_border li.btnarea::after {
    display: none;
}

.flight_search_border li.btnarea {
    background-color: var(--tts-buttton-bg1);

}

/* Buttons */
.oneway_search_btn {
    width: 100%;
    padding: 12px 15px;
    font-size: 18px;
    font-weight: 700;
    line-height: 36px;
    text-transform: capitalize;
    color: var(--tts-buttton-txt);
    background: var(--tts-buttton-bg);
    border: 1px solid var(--tts-buttton-bg);
    transition: all 0.3s ease;
}

.oneway_search_btn:hover {
    background: var(--tts-buttton-bg1);
    color: var(--tts-buttton-txt1);
    border-color: var(--tts-buttton-bg1);
}

.flight_search_border .form-label {
    margin: 0;
}

/* Inputs & Traveller Select */
.flight_search_border .form-control,
.tts__traveller_select {
    width: 100%;
    padding: 0;
    font-size: 20px;
    font-weight: 700;
    color: #000;
    background: transparent;
    border: none;
    cursor: pointer;
    border-radius: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.flight_search_border .form-control:focus,
.tts__traveller_select:focus {
    outline: none;
    box-shadow: none;
}

/* Text Elements */
.guest-text,
.rooms-text,
.flight_text_p,
.flight_search_border li p.cabinclass {
    font-size: 13px;
    color: #000;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.flight_search_border li h6 {
    font-size: 20px;
    font-weight: 700;
    color: #000;
    margin: 0;
    line-height: 1.5;
}

.flight_search_border li h6 span {
    font-size: 14px;
    font-weight: 400;
}

/* Traveller Dropdown & Counter */
.tts__dropdown__menu__right {
    background: #fff;
    box-shadow: 0 2px 8px rgba(119, 119, 119, 0.2);
    border-radius: 0;
    max-height: 300px;
    overflow-y: auto;
    width: 300px;
}

.tts__dropdown__menu__right h5,
.tts__traveller__select h5 {
    font-size: 14px;
    font-weight: 500;
    color: #141823;
    margin: 0;
}

.GwMit {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 36px;
    background: #fff;
    border: 1px solid #ced4da;
}

.tts__counter {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background-color: var(--tts-buttton-bg1);
    color: var(--tts-buttton-txt1);
}

.tts_traveller__counter_span {
    width: 40px !important;
    font-size: 13px;
    text-align: center;
}

/* Search Filters */
.makeflex {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.makeflex span {
    margin-right: 15px;
}

.makeflex .search_filters {
    position: relative;
    border-radius: 4px;
    color: var(--second-bg-color);
}

.makeflex .form-check-inline {
    font-size: 13px;
}

.makeflex .form-check-border {
    border-right: 1px solid #9b9b9b;
    padding-right: 1rem;
}

.makeflex .search_filters input[type=checkbox] {
    border-radius: 50%;
}

/* Interchange Arrow */
.tts__interchange__arrow {
    position: absolute;
    left: 100%;
    top: 50%;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #ebebeb;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translate(-50%, -50%);
    z-index: 51;
}

.tts__interchange__arrow svg {
    fill: var(--tts-buttton-bg);
}

/*==============================
  RESPONSIVE DESIGN
===============================*/
/* Tablet (â‰¤991px) */
@media (max-width: 991px) {
    .hero-banner {
        height: 380px;
    }

    .hero-banner .carousel-item {
        height: 380px;
        padding: 0 24px;
        background-position: center center;
    }

    .hero-banner h1 {
        font-size: 2.2rem;
    }

    .hero-banner p {
        font-size: 1rem;
    }

    .tts_product_box {
        padding: 16px;
        border-radius: 8px;
    }

    .search_tabs {
        margin-top: -50px;
        gap: 8px;
        flex-wrap: wrap;
    }

    .search_tabs li a {
        width: 80px;
        height: 65px;
        font-size: 13px;
    }

    .search_tabs li a img {
        width: 30px;
        height: 30px;
    }

    .search_form_section {
        position: relative;
        margin-top: -50px;
        width: 100%;
        bottom: 0;
    }

    /* .flight_search_border li {
        border-bottom: 1px solid #eee;
    } */

    .flight_search_border li.btnarea {
        justify-content: center;
    }

    .flight_search_border .form-control,
    .tts__traveller_select,
    .flight_search_border li h6 {
        font-size: 18px;
    }

    .flight_search_border .form-label {
        font-size: 12px;
    }

    .tts_product_box .flight-search .form-check {
        padding: 7px 10px;
    }


    .guest-text,
    .rooms-text,
    .flight_text_p,
    .flight_search_border li p.cabinclass {
        font-size: 12px;
    }

    .tts_product_box .fw-medium {
        display: none;
    }
}

/* Mobile (â‰¤767px) */
@media (max-width: 767px) {
    .hero-banner {
        height: 280px;
    }

    .hero-banner::before {
        background: linear-gradient(135deg, var(--tts-buttton-bg), var(--tts-buttton-bg1));
    }

    .hero-banner .carousel-item {
        height: 280px;
        padding: 0 16px;
        justify-content: flex-start;
        align-items: flex-end;
        background-position: center bottom;
    }

    .hero-banner .carousel-item::before {
        background: linear-gradient(180deg, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.5));
    }

    .hero-banner h1 {
        font-size: 1.8rem;
    }

    .hero-banner p {
        font-size: 0.9rem;
    }

    .tts_product_box {
        box-shadow: none;
        border-radius: 0;
        padding: 15px;
    }

    .search_tabs li a {
        width: 70px;
        height: 60px;
        font-size: 12px;
    }

    .search_tabs li a img {
        width: 28px;
        height: 28px;
    }
}


.tts__traveller_select option {
    font-size: 13px;
}

/* Small Mobile (â‰¤575px) */
@media (max-width: 575px) {
    .hero-banner h1 {
        font-size: 1.5rem;
    }

    .hero-banner p {
        font-size: 0.85rem;
    }

    .flight_search_border .form-control,
    .tts__traveller_select {
        font-size: 16px;
    }



    .flight_search_border li::after {
        display: none;
    }

    .flight_search_border {
        border: 0;
    }

    .flight_search_border li {
        border: 1px solid #ebebeb;
        line-height: 20px;
    }
}


.tts__dropdown__menu__right .form-check {
    font-size: 13px;
    color: #333;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 5px;
}

.tts__dropdown__menu__right .form-check-input {
    margin: 0;
}


/*calendar*/
.ui-widget.ui-widget-content.calendarOuter {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
    list-style: none;
    overflow-y: auto;
    font-family: inherit !important;
}

.calendarOuter .ui-widget-header .ui-icon {
    background-image: unset;
}

.ui-datepicker.calendarOuter .ui-widget-header {
    background: var(--tts-buttton-bg);
    color: var(--tts-buttton-txt);
    border: none;
    border-radius: 8px;
}

.ui-datepicker.calendarOuter .ui-datepicker-prev::after {
    content: "\f100";
    top: 5px;
    left: 5px;
    position: absolute;
    font-family: "FontAwesome";
    color: #fff;
}

.ui-datepicker.calendarOuter .ui-datepicker-next::after {
    content: "\f101";
    top: 5px;
    right: 5px;
    position: absolute;
    font-family: "FontAwesome";
    color: #fff;
}

.ui-datepicker.calendarOuter .ui-datepicker-header .ui-corner-all,
.ui-datepicker.calendarOuter .ui-datepicker-header .ui-state-hover {
    cursor: pointer;
    border: 0;
    background: none;
    font-weight: 700;
    top: 0px;
}

.ui-datepicker.calendarOuter td span,
.ui-datepicker.calendarOuter td a {
    display: block;
    padding: 0.2em;
    text-align: center;
    text-decoration: none;
}

.calendarOuter .ui-state-default,
.ui-widget-content.calendarOuter .ui-state-default {
    border: none;
    border-radius: 8px;
}

.calendarOuter.ui-state-highlight,
.ui-widget-content.calendarOuter .ui-state-highlight {
    border: none;
    background: var(--tts-buttton-bg1);
    color: var(--tts-buttton-txt1);
}

.calendarOuter .ui-state-active,
.ui-widget-content.calendarOuter .ui-state-active {
    background: var(--tts-buttton-bg);
    color: var(--tts-buttton-txt);
}



/* UI Autocomplete */
.ui-autocomplete.tts-autocomplete {
    position: absolute;
    z-index: 1090;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
    list-style: none;
    max-height: 300px;
    overflow-y: auto;
    font-family: inherit !important;
}

/* Menu item wrapper */
.tts-autocomplete .ui-menu-item-wrapper {
    display: flex;
    justify-content: space-between;
    padding: 8px 16px;
    width: 100%;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
    border-bottom: 1px solid #f0f0f0;
}


/* Left section with city and airport code */
.tts-autocomplete .dest_left {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-family: inherit !important;
}

.dest_left .city {
    font-weight: bold;
    font-family: inherit !important;
}

.dest_left .airpotcode {
    font-size: 12px;
    font-family: inherit !important;
}

/* Right section with airport code and flag */
.tts-autocomplete .ui-menu-item-wrapper div:last-child {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tts-autocomplete .aircode {
    font-size: 12px;
    font-family: inherit !important;
}


.tts-autocomplete .flag {
    width: 20px;
    height: 15px;
    border-radius: 2px;
    background-repeat: no-repeat;
    display: inline-block;
    background-image: url(../../../webroot/img/country-flag.png);
    position: relative;
}

/* Scrollbar Styling */
.tts-autocomplete::-webkit-scrollbar {
    width: 6px;
}

.tts-autocomplete::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 3px;
}

.tts-autocomplete::-webkit-scrollbar-thumb:hover {
    background-color: #aaa;
}

/* Datepicker specific styles */
.tts-autocomplete.ui-datepicker .ui-datepicker-header .ui-corner-all,
.tts-autocomplete.ui-datepicker .ui-datepicker-header .ui-state-hover {
    cursor: pointer;
    border: 0;
    background: none;
    font-weight: 700;
    top: 3px;
}

/* Datepicker day styling */
.tts-autocomplete.ui-datepicker td span,
.tts-autocomplete.ui-datepicker td a {
    display: block;
    padding: 0.2em;
    text-align: center;
    text-decoration: none;

}

/* Highlight and active states */
.tts-autocomplete .ui-state-highlight,
.tts-autocomplete.ui-widget-content .ui-state-highlight {
    border: none;
    background: var(--tts-buttton-bg);
    color: #ffffff;
}

.tts-autocomplete .ui-state-active,
.tts-autocomplete.ui-widget-content .ui-state-active {
    background: var(--tts-buttton-bg);
    color: #ffffff;
}

.tts-autocomplete .ui-state-active:hover,
.tts-autocomplete.ui-widget-content .ui-state-active:hover {
    background: var(--tts-buttton-bg);
    color: #ffffff;
}

.tts-autocomplete.ui-datepicker .ui-datepicker-prev::after {
    content: "\f100";
    left: 5px;
    position: absolute;
    font-family: "FontAwesome";
    color: #fff;
}

.tts-autocomplete.ui-datepicker .ui-datepicker-next::after {
    content: "\f101";
    right: 5px;
    position: absolute;
    font-family: "FontAwesome";
    color: #fff;
}