﻿/*Full Page Container Styles */
.booking-container {
    display: flex;
    width: auto;
    height: auto;
    padding: 30px 0px;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

/* 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;
    }
}

.top-content-desktop {
    display: block;
}


.top-content-mobile {
    display: none;
    justify-content: center;
    align-items: center;
    align-self: stretch;
    flex-direction: row;
    gap:10px;
}

.title-icon {
    width: 20px;
    height: 20px;
    /*border: 2px solid black;*/
    background-image: url('../../images/shared/ship-icon.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.title-text {
    color: #000;
    font-size: 24px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
}


.step-one-booking-box {
    display: flex;
    width: auto;
    max-width: 1200px;
    padding: 20px;
    align-items: center;
    gap: 80px;
    border-radius: 5px;
}

/* Left Column Styles */
.left-col-container {
    display: flex;
    width: 390px;
    padding: 20px 0 31px 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 30px;
    /*box-shadow: 0 0 50px 0 rgba(0, 0, 0, 0.15);*/
}

.search-box-container-step-one {
    display: flex;
    width: 390px;
    padding: 50px 30px 30px 30px;
    flex-direction: column;
    align-items: center;
    border-radius: 5px;
    border: 1px solid #FFE000;
    background: #FFF;
    box-shadow: 0 0 50px 0 rgba(0, 0, 0, 0.15);
    gap: 0px;
}

.search-box-inner {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 30px;
    align-self: stretch;
}

.search-input-group {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 30px;
    align-self: stretch;
}

.search-input-box {
    height: 55px;
    display: flex;
    flex-direction: column;
    padding: 0 3px;
    align-items: flex-start;
    justify-content: center;
    align-self: stretch;
    border-radius: 4px;
    border: 1px solid #000426;
    position: relative;
}

.search-input-box.input-error {
    border: 2px solid #971111 !important;
}

.warnings-sections {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.warning-box {
    display: flex;
    padding: 10px;
    align-items: center;
    gap: 10px;
    border-radius: 5px;
    border: 1px solid #971111;
}

.warning-icon {
    background-image: url('../../images/shared/warning-icon.svg');
    background-repeat: no-repeat;
    background-size: cover;
    width: 24px;
    height: 24px;
    min-width: 24px;
}

.warning-text {
    color: #971111;
    font-size: 14px;
    font-weight: 400;
    line-height: 14px;
    letter-spacing: 0.15px;
}

.search-input-icon {
    height: 19px;
    padding: 0px 4px;
    align-items: center;
    gap: 4px;
    display: inline-flex;
    position: absolute;
    left: 17px;
    bottom: 46px;
    background-color: #fff;
}

.search-input-icon-text {
    color: var(--black, #000);
    font-size: 18px;
    font-style: normal;
    font-weight: 700;
    line-height: 12px; /* 66.667% */
    letter-spacing: 0.15px;
   
}

.search-btn-box {
    display: flex;
    height: 55px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    align-self: stretch;
    border-radius: 5px;
    border: none;
    background: #FFDE00;
    color: #01094D;
    font-size: 20px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    letter-spacing: 0.15px;
}
/* Right Column Styles */
.right-col-container {
    display: flex;
    max-width: 700px;
    height: 500px;
    padding: 10px 0px;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
}

.promo-container {
    display: flex;
    width: 100%;
    padding: 10px 20px;
    height: 85%;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.promo-toptext {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 10px;
    align-self: stretch;
}

.promo-secondarytext {
    display: flex;
    width: 100%;
    padding-top: 20px;
    align-items: center;
    gap: 10px;
    align-self: stretch;
}

.promo-benefits-box {
    display: flex;
    width: 100%;
    padding: 25px 0;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 30px;
    align-self: stretch;
}

.promo-toptext-text {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    color: #293A4B;
    leading-trim: both;
    text-edge: cap;
    text-overflow: ellipsis;
    font-size: 26px;
    font-style: normal;
    font-weight: 700;
    line-height: 110%;
    letter-spacing: 0.15px;
}

.promo-secondarytext-text {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    overflow: hidden;
    color: #293A4B;
    leading-trim: both;
    text-edge: cap;
    text-overflow: ellipsis;
    font-size: 26px;
    font-style: normal;
    font-weight: 700;
    line-height: 110%;
    letter-spacing: 0.15px;
}

.promo-benefits-item {
    display: flex;
    align-items: center;
    gap: 30px;
    align-self: stretch;
}

#pig-icon {
    width: 39px;
    height: 39px;
    aspect-ratio: 1/1;
    background-image: url('../../images/shared/piggy.svg');
    background-repeat: no-repeat;
    background-size: cover;
}

#change-ticket {
    width: 39px;
    height: 39px;
    aspect-ratio: 1/1;
    background-image: url('../../images/shared/changeTicket.svg');
    background-repeat: no-repeat;
}


#ticket {
    width: 39px;
    height: 39px;
    aspect-ratio: 1/1;
    background-image: url('../../images/shared/ticketIcon.svg');
    background-repeat: no-repeat;
}

.promo-benefits-text {
    color: #293A4B;
    leading-trim: both;
    text-edge: cap;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 120%;
    letter-spacing: 0.15px;
}

.promo-recent-searches-box {
    display: flex;
    width: 100%;
    padding: 15px 0;
    flex-direction: column;
    align-self: stretch;
    gap: 15px;
}

.hidden {
    display:none;
    
}

.recent-searches-title {
    display: flex;
    padding-top: 20px;
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
}

.recent-searches-results {
    display: flex;
    width: 100%;
    gap: 15px;
    align-self: safe center;
    overflow-x: auto;
    overflow-y: hidden;
    flex-wrap: nowrap;
    scrollbar-width: none;
    cursor: grab;
}

.recent-searches-results::-webkit-scrollbar {
    display: none;
}

.recent-searches-results.is-dragging {
    cursor: grabbing;
    user-select: none;
}

.recent-searches-title-text {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    overflow: hidden;
    color: #293A4B;
    text-align: center;
    leading-trim: both;
    text-edge: cap;
    text-overflow: ellipsis;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 20px; /* 175% */
    letter-spacing: 0.15px;
}

.recent-searches-item {
    display: flex;
    /*max-width: 40%;*/
    padding: 8px 10px;
    height: 40px;
    align-items: center;
    align-self: flex-end;
    gap: 10px;
    border-radius: 20px;
    border: 1px solid #293A4B;
}

button.recent-searches-item {
    background: none;
    cursor: pointer;
    font: inherit;
    white-space: nowrap;
    flex-shrink: 0;
}

.port {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    overflow: hidden;
    white-space: nowrap;
    color: #293A4B;
    leading-trim: both;
    text-edge: cap;
    text-overflow: ellipsis;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 22px; /* 175% */
    letter-spacing: 0.15px;
}

.destination-arrow {
    width: 24px;
    height: 14px;
    justify-content: center;
    margin: 0px;
    background-image: url('../../images/shared/arrow-right.svg');
    background-repeat: no-repeat;
}

.roundtrip-arrow {
    width: 24px;
    height: 24px;
    aspect-ratio: 1/1;
    margin: auto;
    background-image: url('../../images/shared/roundtripArrow.svg');
    background-repeat: no-repeat;
}

.search-input-box .input-search-box:disabled {
    background-color: #fff;
    opacity: 1;
    color: inherit;
    cursor: default;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .step-one-booking-box {
        flex-direction: column;
        gap: 40px;
    }

    .left-col-container,
    .search-box-container-step-one {
        width: 90%;
        align-self: center
    }
}

@media (max-width: 991px) {


    .search-input-icon-text {        
        color: var(--black, #000);        
        font-size: 14px;
        font-style: normal;
        font-weight: 400;
        line-height: 12px; 
        letter-spacing: 0.15px;
    }

    .search-btn-box {
        /*max-width: 80%;*/
        border-radius: 5px;
        background: #FFDE00;
    }

    .search-box-inner,
    .search-input-group {
        gap:20px;
    }
        .promo-toptext {
            padding-top: 20px;
        }

        .promo-secondarytext,
        .top-content-desktop {
            display: none;
        }

        .top-content-mobile {
            display: flex;
        }

        .promo-container {
            flex-direction: column-reverse;
            padding-top: 0px;
        }


        .step-one-booking-box {
            max-width: 100%;
            padding: 0px 10px;
            gap: 0px;
        }

        .left-col-container,
        .search-box-container-step-one {
            width: 100%;
            align-self: center;
            border: 0px;
            padding: 0px;
            padding-bottom: 10px;
            box-shadow: 0 0 0px 0 rgba(0, 0, 0, 0.08);
        }

        .booking-container {
            padding-bottom: 0px;
            padding-top: 30px;
            max-width: 100%;
        }      

        .right-col-container{
            height:auto;
            padding-bottom: 0px;
            padding-top: 0px;
            max-width: 100%;
        }


        .recent-searches-title {
            display: flex;
            padding-top: 20px;
            justify-content: center;
            align-items: center;
        }


        .recent-searches-title-text {
            display: -webkit-box;
            -webkit-box-orient: vertical;
            -webkit-line-clamp: 1;
            overflow: hidden;
            color: #293A4B;
            text-align: center;
            leading-trim: both;
            text-edge: cap;
            text-overflow: ellipsis;
            font-size: 24px;
            font-style: normal;
            font-weight: 700;
            line-height: 28px; /* 116.667% */
            letter-spacing: 0.15px;
        }

    .promo-recent-searches-box {
        display: flex;
        padding: 10px 0 30px 0;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        gap: 25px;
        align-self: stretch;
    }
}

@media (max-width: 500px){
    .search-btn-box{
        width:200px;
        align-self: center;
    }
}

@media (min-width: 992px) {
    .recent-searches-results {
        flex-wrap: wrap;
        overflow: visible;
        cursor: default;
    }

    .recent-searches-results.is-dragging {
        cursor: default;
    }
}

/* 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; }
