﻿/* Generic Modal Overlay */
.generic-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/*Search Box Home page */
.search-box-container {
    max-width: 1180px;
    width: 1180px;
}

.search-box-inside {
    display: flex;
    padding: 10px 17px 17px 17px;
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
    border-radius: 5px;
    background: #FFF;
    width: -webkit-fill-available;
}

.switch-icon {
    background-image: url('../../images/shared/switch-icon.svg');
    background-repeat: no-repeat;
    background-size: cover;
    width: 30px;
    height: 30px;
    display: flex;
    position: absolute;
    left: 213px;
    top: 14px;
    z-index: 1;
    border: none;
    padding: 0;
    cursor: pointer;
    background-color: transparent;
    transition: transform 0.3s ease, opacity 0.2s ease;
}

    .switch-icon:hover {
        opacity: 0.8;
        transform: rotate(-180deg) scale(1.1);
    }

    .switch-icon:active {
        transform: rotate(-90deg) scale(0.95);
    }

    .switch-icon:focus {
        outline: 2px solid #FFDE00;
        outline-offset: 2px;
    }


.search-box-pin-icon {
    background-image: url('../../images/shared/pin-icon.svg');
    background-repeat: no-repeat;
    background-size: cover;
    width: 14px;
    height: 16px;
    display: flex;
}

.search-box-calendar-icon {
    background-image: url('../../images/shared/calendar-icon.svg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: 0px -1px;
    width: 18px;
    height: 19px;
    display: flex;
}

.search-box-people-icon {
    background-image: url('../../images/shared/people-icon.svg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: 0px 0px;
    width: 18px;
    height: 19px;
    display: flex;
}

.search-box-raw-controls {
    display: flex;
    gap: 17px;
    position: relative;
    justify-content: space-between;
    width: -webkit-fill-available;
}

.search-box-cell-InputIcon {
    align-items: center;
    gap: 4px;
    display: inline-flex;
    position: absolute;
    left: 17px;
    bottom: 50px;
    background-color: #fff;
    padding: 0 4px;
}

.search-box-text-icon {
    color: #000426;
    font-size: 16px;
    font-weight: 400;
    line-height: 12px;
    letter-spacing: 0.15px;
    word-wrap: break-word;
}

.input-search-box {
    display: flex;
    padding: 12px 10px 13px 10px;
    align-items: center;
    gap: 8px;
    border: 0;
    outline: none;
    width: 100%;
}

.search-box-submit {
    border-radius: 5px;
    background: #FFDE00;
    justify-content: center;
    display: flex;
    flex-direction: column;
    color: #000426;
    font-size: 18px;
    font-weight: 600;
    word-wrap: break-word;
    width: 156px;
    height: 60px;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.search-box-cell-InputPort {
    height: 58px;
    display: flex;
    flex-direction: column;
    padding: 3px;
    align-items: flex-start;
    border-radius: 4px;
    border: 1px solid #000426;
    position: relative;
    width: 220px;
}

.search-box-cell-Input {
    height: 58px;
    display: flex;
    flex-direction: column;
    padding: 3px;
    align-items: flex-start;
    border-radius: 4px;
    border: 1px solid #000426;
    position: relative;
    width: 240px;
}

.search-box-submit-cnt {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    height: 58px;
}

.change-ticket-tab-btn:hover {
    background: rgba(0, 0, 0, 0.08) !important;
    border-radius: 5px 5px 0 0;
}

/*Start PopUp PassengersVehicles*/
/*.pv-popup-container-home {
    display: none;
    width: 455px;
    height: 356px;
    position: absolute;
    top: 60px;
    left: 0px;
    flex-direction: column;
    align-items: flex-end;
    align-self: center;
    gap: 10px;
    box-shadow: 0 100px 80px 0 rgba(0, 0, 0, 0.07), 0 41.778px 33.422px 0 rgba(0, 0, 0, 0.05), 0 22.336px 17.869px 0 rgba(0, 0, 0, 0.04), 0 12.522px 10.017px 0 rgba(0, 0, 0, 0.04), 0 6.65px 5.32px 0 rgba(0, 0, 0, 0.03), 0 2.767px 2.214px 0 rgba(0, 0, 0, 0.02);
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
    transition: opacity 180ms ease, transform 180ms ease;
    z-index: 9999;
}
    .pv-popup-container-home.open {
        display:block;
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }*/


/* Full-width bar at top of popup */
.daterangepicker .DatePickerTripToggle {
    width: 100%;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: start;
    gap: 12px;
    padding: 10px 12px;
}

/* Labels */
.daterangepicker .DatePickerTripToggle_label {
    font-size: 13px;
    line-height: 18px;
    opacity: 0.6;
    user-select: none;
}

    .daterangepicker .DatePickerTripToggle_label.is-active {
        font-size: 13px;
        line-height: 18px;
        opacity: 1;
    }

/* Switch */
.daterangepicker .DatePickerTripToggle_switch {
    width: 44px !important;
    height: 20px !important;
    border-radius: 999px;
    border: 1px solid rgba(1, 5, 36, 0.25);
    background: rgba(255, 250, 0, .4);
    position: relative;
    cursor: pointer;
    padding: 0;
}

/* Thumb */
.daterangepicker .DatePickerTripToggle_thumb {
    width: 16px !important;
    height: 16px !important;
    border-radius: 999px;
    background: #000000e8;
    opacity: 0.8;
    position: absolute;
    top: 50%;
    right: 0px;
    transform: translateY(-50%);
    transition: right 500ms ease;
}

/* ON state (Return trip) */
.daterangepicker .DatePickerTripToggle_switch.is-on .DatePickerTripToggle_thumb {
    right: calc(100% - 18px);
}

.daterangepicker .DatePickerTripToggle_switch .DatePickerTripToggle_thumb {
    right: calc(100% - 40px);
}

.DatePickerTripToggle_switch.is-on {
    background-color: #c4c4c4;
}

@media (min-width:992px) and (max-width:1199px) {
    .search-box-cell-InputPort {
        width: 20%;
    }

    .search-box-cell-Input {
        width: 20%;
    }

    .search-box-submit {
        /*width: 116px;*/
    }

    .HomeBannerTitle {
        font-size: 90px;
    }
}


@media (max-width: 1199px) {

    .search-box-container {
        width: auto;
        margin: auto;
        top: 60px;
        display: contents;
    }

    .search-box-raw-controls {
        display: flex;
        gap: 20px;
        position: relative;
        justify-content: space-between;
        width: 100%;
        flex-direction: column;
    }

    .search-box-cell-InputPort {
        width: 100%;
        height: 55px;
    }

    .search-box-cell-Input {
        width: 100%;
        height: 55px;
    }

    .switch-icon {
        background-image: url('../../images/shared/Mobile/switch-icon-mobile.svg');
        right: 22px;
        top: 50px;
        left: auto;
        width: 40px;
        height: 40px;
    }

    .search-box-submit-cnt {
        align-items: center;
    }
}

/* Button loading animation – sequential vertical bars */
@keyframes bookingBarPulse {
    0%, 100% { opacity: 0.25; transform: scaleY(0.6); }
    50%       { opacity: 1;    transform: scaleY(1); }
}

button.btn-loading {
    position: relative;
    pointer-events: none;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
}

.btn-loading-bars {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    height: 16px;
    margin-right: 8px;
    vertical-align: middle;
    flex-shrink: 0;
}

.btn-loading-bars > span {
    display: inline-block;
    width: 4px;
    height: 14px;
    border-radius: 2px;
    background: currentColor;
    opacity: 0.25;
    transform-origin: center;
    animation: bookingBarPulse 0.9s ease-in-out infinite;
}

.btn-loading-bars > span:nth-child(1) { animation-delay: 0s; }
.btn-loading-bars > span:nth-child(2) { animation-delay: 0.2s; }
.btn-loading-bars > span:nth-child(3) { animation-delay: 0.4s; }
   
