﻿/* Wrapper to center carousel and text container on PC screens */
.carousel-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 80vw;
    margin: 0 auto;
    padding: 20px;
}

/* Carousel styling to maintain phone-like dimensions */
.carousel {
    width: 450px; 
    height: 790px;
    border: 5px solid rgba(142, 125, 115, 0.7);
    border-radius: 24px 0px 0px 24px;
    box-shadow: 0 0 20px rgba(0,0,0,0.2);
    overflow: hidden;
}

.carousel-item {
    transition: transform 0.8s ease, opacity 0.6s ease;
}

.responsive-image{
    object-fit:cover;
    border-radius: 24px 0 0 24px;
    width: 100%;
}

/* Text container styling to match carousel height */
.text-container-right {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    width: 450px; /* Similar width for balance */
    height: 790px; /* Match carousel height */
    background-color: rgba(142, 125, 115, 1); /* Semi-transparent background */
    color: white;
    padding: 20px;
    border-radius: 0px 24px 24px 0px;
    box-shadow: 0 0 15px rgba(0,0,0,0.2);
    text-align: center;
}

.text-container-right h1 {
    text-align: center;
    margin-bottom: 10px;
}

.text-container-right p {
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 20px;
}

.book-now-button {
    align-self: center; 
    font-size: 1.5rem;
}

.mobile-book-now-button {
    /*  display: none;*/
    align-self: center;
    font-size: 1.5rem;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: block;
}

.service-image-container {
    border-radius: 15px;
    border: 2px solid rgba(142, 125, 115, 0.2);
}

/* Empty state shown when there are no active promotions */
.promotions-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 480px;
    margin: 40px auto;
    padding: 40px 30px;
    background-color: #fff;
    border: 1px solid rgba(142, 125, 115, 0.25);
    border-radius: 24px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.promotions-empty-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 88px;
    height: 88px;
    margin-bottom: 20px;
    border-radius: 50%;
    background-color: var(--rz-primary);
    color: #fff;
}

.promotions-empty-title {
    margin-bottom: 10px;
    color: var(--rz-primary);
    font-weight: 600;
}

.promotions-empty-subtext {
    margin-bottom: 24px;
    color: #666;
    font-size: 1.05rem;
    line-height: 1.5;
}

.promotions-empty-button {
    align-self: center;
}

@media (max-width: 768px) {
    .promotions-empty-state {
        margin: 24px 16px;
        padding: 30px 20px;
    }
}

@media (min-width: 769px) {
    .carousel-wrapper {
        display: grid;
        grid-template-columns: 450px 450px; /* Set two equal columns */
        align-items: stretch;
        gap: 0;
    }

    .carousel {
        width: 100%; /* Fill the grid column */
        height: auto;
    }

    .text-container-right {
        width: 100%; /* Fill the grid column */
        height: 100%; /* Match the carousel height */
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .carousel-wrapper {
        flex-direction: column;
        align-items: center;
        max-width: 100%;
        margin: 0;
        padding: 0;
        border-radius:24px 24px 0 0;
    }

    #hero-carousel {
        border-radius: 24px 24px 0 0;
    }

    .responsive-image {
        border-radius: 24px 24px 0 0;
    }

    .carousel,
    .text-container-right {
        width: 100%;
        height: auto;
        max-width: 450px;
        border-radius: 0;
    }

    .text-container-right {
        height: auto;
        padding: 15px;
        border-radius: 0 0 24px 24px;
    }

    .mobile-book-now-button {
        align-self: center;
        font-size: 1.5rem;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        display: block;
        z-index: 10;
    }
}

.promotion-coming-soon-badge {
    display: inline-block;
    background-color: rgba(142, 125, 115, 0.9);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 12px;
    margin-bottom: 0.5rem;
}
