/* Nexus Home Booking Widget v1.1
   Premium flight + hotel search experience. Scoped to #theme_search_form. */
:root {
    --nx-booking-navy: #071B3C;
    --nx-booking-blue: #123F7B;
    --nx-booking-gold: #D5A13A;
    --nx-booking-gold-light: #FCDB99;
    --nx-booking-ink: #14243B;
    --nx-booking-muted: #718096;
    --nx-booking-border: rgba(7,27,60,.10);
    --nx-booking-surface: #F5F8FC;
}

.nexus-booking-widget {
    position: relative;
}

.nexus-booking-widget .nexus-booking-card {
    position: relative;
    overflow: visible !important;
    padding: 20px 24px 24px !important;
    border: 1px solid rgba(255,255,255,.76) !important;
    border-radius: 26px !important;
    background:
        radial-gradient(circle at 100% 0%, rgba(252,219,153,.20), transparent 28%),
        linear-gradient(145deg,#fff 0%,#fbfcff 72%,#fffaf1 100%) !important;
    box-shadow: 0 28px 75px rgba(1,15,36,.30), inset 0 1px rgba(255,255,255,.94) !important;
    backdrop-filter: blur(22px);
}

/* ---------- service switcher ---------- */
.nexus-booking-widget .nexus-service-switcher {
    position: relative;
    z-index: 4;
    margin-bottom: 18px;
}

.nexus-booking-widget .nexus-service-switcher .nav-tabs {
    display: inline-flex;
    align-items: center;
    gap: 5px !important;
    margin: 0;
    padding: 5px !important;
    border: 1px solid rgba(7,27,60,.09) !important;
    border-radius: 16px !important;
    background: #EEF3F8 !important;
    box-shadow: inset 0 1px 2px rgba(7,27,60,.04);
}

.nexus-booking-widget .nexus-service-switcher .nav-item {
    margin: 0 !important;
}

.nexus-booking-widget .nexus-service-switcher .nav-link {
    min-width: 132px;
    min-height: 46px !important;
    padding: 11px 18px !important;
    border: 0 !important;
    border-radius: 12px !important;
    background: transparent !important;
    color: #526178 !important;
    font-size: 14px !important;
    font-weight: 650 !important;
    box-shadow: none !important;
    transition: background .18s ease, color .18s ease, box-shadow .18s ease, transform .18s ease !important;
}

.nexus-booking-widget .nexus-service-switcher .nav-link i {
    width: 22px;
    margin-right: 8px !important;
    color: #B88119 !important;
    font-size: 15px;
}

.nexus-booking-widget .nexus-service-switcher .nav-link.active {
    color: #fff !important;
    background: linear-gradient(135deg,#123F7B 0%,#071B3C 100%) !important;
    box-shadow: 0 10px 24px rgba(7,27,60,.22) !important;
}

.nexus-booking-widget .nexus-service-switcher .nav-link.active i {
    color: #F7C95C !important;
}

.nexus-booking-widget .nexus-service-switcher .nav-link:hover:not(.active) {
    color: var(--nx-booking-navy) !important;
    background: rgba(255,255,255,.84) !important;
}

/* ---------- flight trip switcher ---------- */
.nexus-booking-widget .nexus-trip-switcher {
    position: absolute;
    top: 20px;
    right: 24px;
    z-index: 5;
    margin: 0 !important;
    padding: 0 !important;
}

.nexus-booking-widget .nexus-trip-switcher .nav-tabs {
    display: inline-flex;
    gap: 3px !important;
    padding: 4px !important;
    border: 1px solid rgba(7,27,60,.09) !important;
    border-radius: 14px !important;
    background: #EEF3F8 !important;
    box-shadow: inset 0 1px 2px rgba(7,27,60,.04);
}

.nexus-booking-widget .nexus-trip-switcher .nav-link {
    min-width: 94px;
    min-height: 38px !important;
    padding: 8px 14px !important;
    border: 0 !important;
    border-radius: 10px !important;
    color: #718096 !important;
    background: transparent !important;
    font-size: 12.5px !important;
    font-weight: 700 !important;
    box-shadow: none !important;
}

.nexus-booking-widget .nexus-trip-switcher .nav-link.active {
    color: var(--nx-booking-navy) !important;
    background: #fff !important;
    box-shadow: 0 6px 16px rgba(7,27,60,.11) !important;
}

/* ---------- grid rhythm ---------- */
.nexus-booking-widget .nexus-booking-panel form > .row {
    --bs-gutter-x: 14px;
    --bs-gutter-y: 14px;
    margin-bottom: 0 !important;
}

.nexus-booking-widget .nexus-booking-panel form > .row + .row {
    margin-top: 14px;
}

.nexus-booking-widget .flight_Search_boxed,
.nexus-booking-widget .flight_Search_boxed2 {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 94px !important;
    height: 100%;
    padding: 14px 16px !important;
    overflow: visible;
    border: 1px solid rgba(7,27,60,.085) !important;
    border-radius: 16px !important;
    background:
        radial-gradient(circle at 100% 0%, rgba(213,161,58,.055), transparent 42%),
        linear-gradient(145deg,#F9FBFD 0%,#F3F6FA 100%) !important;
    box-shadow: inset 0 1px rgba(255,255,255,.90), 0 8px 18px rgba(7,27,60,.035);
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease !important;
}

.nexus-booking-widget .flight_Search_boxed:hover,
.nexus-booking-widget .flight_Search_boxed2:hover,
.nexus-booking-widget .flight_Search_boxed:focus-within,
.nexus-booking-widget .flight_Search_boxed2:focus-within {
    border-color: rgba(213,161,58,.56) !important;
    background: linear-gradient(145deg,#fff 0%,#FAFCFF 100%) !important;
    box-shadow: 0 12px 28px rgba(7,27,60,.075), 0 0 0 3px rgba(213,161,58,.075) !important;
    transform: translateY(-1px);
}

.nexus-booking-widget .flight_Search_boxed p,
.nexus-booking-widget .flight_Search_boxed2 p,
.nexus-booking-widget .flight_Search_boxed2 > div:first-child {
    margin: 0 0 8px !important;
    color: #718096 !important;
    font-size: 11px !important;
    font-weight: 750 !important;
    line-height: 1.25 !important;
    letter-spacing: .035em;
    text-transform: uppercase;
}

.nexus-booking-widget .flight_Search_boxed2 > div:first-child:not(:last-child) {
    color: #718096 !important;
}

/* ---------- controls ---------- */
.nexus-booking-widget .input-border,
.nexus-booking-widget .select-no-border,
.nexus-booking-widget .select2-container--default .select2-selection--single {
    width: 100% !important;
    height: 42px !important;
    min-height: 42px !important;
    padding: 0 13px !important;
    border: 1px solid rgba(7,27,60,.13) !important;
    border-radius: 11px !important;
    color: var(--nx-booking-ink) !important;
    background: rgba(255,255,255,.96) !important;
    font-size: 14px !important;
    font-weight: 520 !important;
    line-height: 40px !important;
    box-shadow: inset 0 1px 2px rgba(7,27,60,.025) !important;
}

.nexus-booking-widget .input-border:focus,
.nexus-booking-widget .select-no-border:focus,
.nexus-booking-widget .select2-container--default.select2-container--focus .select2-selection--single,
.nexus-booking-widget .select2-container--default.select2-container--open .select2-selection--single {
    outline: 0 !important;
    border-color: #D5A13A !important;
    box-shadow: 0 0 0 3px rgba(213,161,58,.13) !important;
}

.nexus-booking-widget .select2-container--default .select2-selection--single .select2-selection__rendered {
    padding: 0 30px 0 0 !important;
    color: var(--nx-booking-ink) !important;
    line-height: 40px !important;
}

.nexus-booking-widget .select2-container--default .select2-selection--single .select2-selection__arrow {
    top: 1px !important;
    right: 7px !important;
    height: 40px !important;
}

.nexus-booking-widget .div-select2 {
    margin-top: 0 !important;
}

/* Angular Material datepicker: visual shell only, preserve native behavior */
.nexus-booking-widget md-datepicker {
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    min-height: 42px !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden;
    border: 1px solid rgba(7,27,60,.13) !important;
    border-radius: 11px !important;
    background: rgba(255,255,255,.96) !important;
    box-shadow: inset 0 1px 2px rgba(7,27,60,.025) !important;
}

.nexus-booking-widget md-datepicker:focus-within {
    border-color: #D5A13A !important;
    box-shadow: 0 0 0 3px rgba(213,161,58,.13) !important;
}

.nexus-booking-widget .md-datepicker-button {
    flex: 0 0 42px !important;
    width: 42px !important;
    min-width: 42px !important;
    height: 40px !important;
    min-height: 40px !important;
    margin: 0 !important;
    padding: 0 !important;
    border-right: 1px solid rgba(7,27,60,.08) !important;
    border-radius: 0 !important;
    background: linear-gradient(180deg,#F8FAFD,#F0F4F8) !important;
}

.nexus-booking-widget .md-datepicker-input-container {
    flex: 1 1 auto !important;
    width: auto !important;
    margin: 0 !important;
    border: 0 !important;
}

.nexus-booking-widget .md-datepicker-input {
    width: 100% !important;
    height: 40px !important;
    padding: 0 12px !important;
    border: 0 !important;
    color: var(--nx-booking-ink) !important;
    background: transparent !important;
    font-family: inherit !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 40px !important;
}

.nexus-booking-widget .button-set-input {
    display: flex !important;
    align-items: center !important;
    gap: 5px;
    width: 100%;
    margin: 0 !important;
}

.nexus-booking-widget .button-set-input .select-no-border {
    flex: 1 1 auto;
    min-width: 0;
    text-align: center;
    border-radius: 10px !important;
    font-size: 17px !important;
    font-weight: 700 !important;
}

.nexus-booking-widget .button-set-input .btn-add,
.nexus-booking-widget .button-set-input .btn-subtract {
    display: grid !important;
    place-items: center;
    flex: 0 0 38px;
    width: 38px !important;
    height: 38px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid transparent !important;
    border-radius: 10px !important;
    color: var(--nx-booking-navy) !important;
    background: transparent !important;
}

.nexus-booking-widget .button-set-input .btn-add:hover,
.nexus-booking-widget .button-set-input .btn-subtract:hover {
    border-color: rgba(213,161,58,.28) !important;
    color: #8B6200 !important;
    background: #FFF7E4 !important;
}

.nexus-booking-widget .plan_icon_posation {
    top: 14px !important;
    right: 16px !important;
}

.nexus-booking-widget .plan_icon_posation i {
    color: var(--nx-booking-navy) !important;
    font-size: 20px !important;
}

.nexus-booking-widget .range_plan {
    left: -27px !important;
    z-index: 10;
}

/* Route swap is a supporting action, so keep it quiet and compact. */
.nexus-booking-widget .range_plan > a {
    display: grid !important;
    place-items: center;
    width: 38px !important;
    height: 38px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid rgba(213,161,58,.38) !important;
    border-radius: 50% !important;
    color: #A9720A !important;
    background: rgba(255,255,255,.98) !important;
    box-shadow: 0 6px 16px rgba(7,27,60,.10) !important;
    cursor: pointer;
    transition: border-color .16s ease, background .16s ease, color .16s ease, box-shadow .16s ease, transform .16s ease !important;
}

.nexus-booking-widget .range_plan i {
    display: block !important;
    width: auto !important;
    height: auto !important;
    border: 0 !important;
    border-radius: 0 !important;
    color: inherit !important;
    background: transparent !important;
    box-shadow: none !important;
    font-size: 16px !important;
    line-height: 1 !important;
}

.nexus-booking-widget .range_plan > a:hover,
.nexus-booking-widget .range_plan > a:focus-visible {
    border-color: rgba(213,161,58,.72) !important;
    color: #805800 !important;
    background: linear-gradient(145deg,#FFFDF8,#FFF3D4) !important;
    box-shadow: 0 8px 20px rgba(7,27,60,.13), 0 0 0 3px rgba(213,161,58,.09) !important;
    transform: translateY(-1px);
    outline: 0 !important;
}

.nexus-booking-widget .range_plan > a:active {
    transform: translateY(0) scale(.97);
}

.nexus-booking-widget .flight_Search_boxed:has(.disabled),
.nexus-booking-widget .flight_Search_boxed.disabled {
    opacity: 1 !important;
    border-color: rgba(7,27,60,.055) !important;
    background: linear-gradient(145deg,#F7F9FC,#F2F5F9) !important;
}

.nexus-booking-widget .disabled {
    color: #A3ADBC !important;
    font-size: 14px !important;
    font-weight: 500 !important;
}

/* ---------- actions ---------- */
.nexus-booking-widget .top_form_search_button {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 12px !important;
    margin-top: 20px !important;
}

.nexus-booking-widget .top_form_search_button .btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px;
    min-width: 176px;
    min-height: 48px;
    padding: 12px 22px !important;
    border-radius: 13px !important;
    font-size: 15px !important;
    font-weight: 750 !important;
    text-decoration: none !important;
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease !important;
}

.nexus-booking-widget .top_form_search_button .btn:first-child {
    border: 1px solid #D2A038 !important;
    color: var(--nx-booking-navy) !important;
    background: linear-gradient(135deg,#E6B94F 0%,#FCDB99 52%,#FFCC73 100%) !important;
    box-shadow: 0 10px 24px rgba(213,161,58,.27), inset 0 1px rgba(255,255,255,.45) !important;
}

.nexus-booking-widget .top_form_search_button .btn:first-child:hover {
    color: var(--nx-booking-navy) !important;
    filter: brightness(1.035);
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(213,161,58,.34), inset 0 1px rgba(255,255,255,.55) !important;
}

.nexus-booking-widget .top_form_search_button #btn-go-custom,
.nexus-booking-widget .top_form_search_button .btn:nth-child(2) {
    border: 1px solid rgba(255,255,255,.08) !important;
    color: #fff !important;
    background: linear-gradient(135deg,#123F7B 0%,#071B3C 100%) !important;
    box-shadow: 0 10px 24px rgba(7,27,60,.24) !important;
}

.nexus-booking-widget .top_form_search_button #btn-go-custom:hover,
.nexus-booking-widget .top_form_search_button .btn:nth-child(2):hover {
    color: #fff !important;
    filter: brightness(1.08);
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(7,27,60,.31) !important;
}

/* Hotel panel has no trip selector, so allow service switcher to breathe. */
.nexus-booking-widget .nexus-service-pane--hotel .nexus-booking-panel {
    padding-top: 2px;
}

@media (min-width: 1200px) {
    .nexus-booking-widget .nexus-booking-card {
        padding: 18px 22px 22px !important;
    }

    .nexus-booking-widget .flight_Search_boxed,
    .nexus-booking-widget .flight_Search_boxed2 {
        min-height: 88px !important;
    }
}

@media (max-width: 991.98px) {
    .nexus-booking-widget .nexus-trip-switcher {
        position: static;
        justify-content: flex-start;
        margin: 4px 0 16px !important;
    }

    .nexus-booking-widget .nexus-service-switcher .nav-tabs {
        width: 100%;
    }

    .nexus-booking-widget .nexus-service-switcher .nav-item {
        flex: 1 1 0;
    }

    .nexus-booking-widget .nexus-service-switcher .nav-link {
        width: 100%;
        min-width: 0;
    }

    .nexus-booking-widget .range_plan {
        display: none !important;
    }
}

@media (max-width: 767.98px) {
    .nexus-booking-widget .nexus-booking-card {
        padding: 14px !important;
        border-radius: 20px !important;
    }

    .nexus-booking-widget .nexus-service-switcher .nav-link {
        padding-inline: 10px !important;
        font-size: 13px !important;
    }

    .nexus-booking-widget .flight_Search_boxed,
    .nexus-booking-widget .flight_Search_boxed2 {
        min-height: 86px !important;
    }

    .nexus-booking-widget .top_form_search_button {
        display: grid !important;
        grid-template-columns: 1fr;
    }

    .nexus-booking-widget .top_form_search_button .btn {
        width: 100%;
    }
}
