﻿
@keyframes slideIn {
    from {
        transform: translate(-50%, -45%);
        opacity: 0;
    }

    to {
        transform: translate(-50%, -50%);
        opacity: 1;
    }
}

/* Modal Container - Centered */
.pv-popup-container {
    display: none;
    width: 455px;
    height: 356px;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
}


.pv-popup-container-home {
    display: none;
    width: 455px;
    height: 356px;
    position: absolute;
    z-index: 9999;
    top: 60px;
    left: 0px;
    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);
    
}

    .pv-popup-container.open,
    .pv-popup-container-home.open {
        display: block;
    }
    

.pv-popup {
    display: flex;
    width: 100%;
    height: auto;
    flex-direction: column;
    align-items: center;
    padding: 30px;
    gap: 30px;
    border-radius: 16px;
    background: #FFF;
    box-shadow: 0px 10px 40px rgba(0, 0, 0, 0.2);
}

/* Mobile Header (hidden by default) */
.pv-popup-header {
    display: none;
    width: 100%;
    padding-bottom: 20px;
    border-bottom: 1px solid #000;
    margin-bottom: 10px;
}

.pv-popup-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pv-popup-title {
    font-size: 18px;
    font-weight: 500;
    color: #333;
}

.pv-popup-close-btn {
    width: 24px;
    height: 24px;
    cursor: pointer;
    position: relative;
    background: none;
    border: none;
    padding: 0;
}

    .pv-popup-close-btn::before,
    .pv-popup-close-btn::after {
        content: '';
        position: absolute;
        width: 20px;
        height: 2px;
        background-color: #333;
        top: 50%;
        left: 50%;
    }

    .pv-popup-close-btn::before {
        transform: translate(-50%, -50%) rotate(45deg);
    }

    .pv-popup-close-btn::after {
        transform: translate(-50%, -50%) rotate(-45deg);
    }

/* Mobile Close Text (hidden by default) */
.pv-popup-close-text {
    display: none;
    width: 100%;
    text-align: center;
    margin-top: 15px;
    font-size: 16px;
    color: #666;
    cursor: pointer;
    text-decoration: underline;
}

    .pv-popup-close-text:hover {
        color: #333;
    }

.pv-popup-inner-box {
    width: inherit;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 25px;
    align-self: stretch;
}

.pv-row {
    display: flex;
    width: auto;
    padding: 15px 0 16px 0;
    align-items: center;
    justify-content: space-between;
    align-self: stretch;
    flex: 1 0 0;
}

.pv-row-content {
    display: flex;
    flex-direction: row;
    padding-left: 4px;
    gap: 8px;
    flex: 1 0 0;
    align-self: stretch;
    align-items: center;
}

.pv-popup-people-icon {
    width: 20px;
    height: 20px;
    aspect-ratio: 1/1;
    background-image: url('../../images/shared/people-icon.svg');
    background-repeat: no-repeat;
    background-size: cover;
}

.pv-popup-vehicle-icon {
    width: 20px;
    height: 20px;
    aspect-ratio: 1/1;
    background-image: url('../../images/shared/car_icon.svg');
    background-repeat: no-repeat;
    background-size: cover;
}

.pv-row-text {
    display: flex;
    flex-direction: column;
    color: #333;
}

.pv-row-main-text {
    font-size: 18px;
}

.pv-row-sub-text {
    font-size: 14px;
    color: #999;
}

.pv-counter {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

    .pv-counter button {
        width: 33px;
        height: 33px;
        border-radius: 50%;
        background: #fff;
        outline: 1px solid #010425;
        outline-offset: -1px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        border: none;
        cursor: pointer;
        transition: background-color 0.2s;
    }

        .pv-counter button:hover {
            background-color: #f5f5f5;
        }

        .pv-counter button:disabled {
            opacity: 0.35;
            cursor: not-allowed;
        }

        .pv-counter button:disabled:hover {
            background-color: #fff;
        }

.pv-counter-minus {
    display: block;
    width: 14px;
    height: 2px;
    background: #000;
}

.pv-counter-plus {
    width: 16px;
    height: 16px;
    aspect-ratio: 1/1;
    background-image: url('../../images/shared/plus-icon.svg');
    background-repeat: no-repeat;
    background-size: cover;
}

.pv-row-empty {
    height: 10px;
}

.pv-row-btn {
    display: flex;
    padding: 0 12px;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    align-self: stretch;
}

.pv-submit {
    display: flex;
    width: 150px;
    height: 55px;
    padding: 0 5px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border-radius: 5px;
    border: 1px solid #D9BB16;
    background: #FFDE00;
    cursor: pointer;
    transition: background-color 0.2s;
    font-size: 16px;
    font-weight: 500;
}

    .pv-submit:hover {
        background: #f0d000;
    }


@media (max-width: 1199px) {

    .pv-popup-container,
    .pv-popup-container-home{
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }
}

@media (max-width: 991px) {

    .pv-popup-container-home,
    .pv-popup-container {
        width: 100%;
        /*max-width: 750px;*/
        min-width: 365px;
        max-height: 90vh;
        height: auto;
        padding: 0;
        position: fixed;
        bottom: 0;
        left: 0;
        top: auto;
        transform: none;
        border-radius: 16px 16px 0 0;
        overflow-y: auto;
        overflow-x: hidden;
    }

    /* Show mobile-only elements */
    .pv-popup-header {
        display: block;
    }

    .pv-popup-close-text {
        display: block;
    }

    /* Adjust popup padding for mobile */
    .pv-popup {
        padding: 20px;
        gap: 20px;
        border-radius: 16px 16px 0 0;
        height: auto;
        min-height: auto;
    }
}
