/* rooms_hero_section.css */

/* Root Variables */
:root {
    --primary-color: #e8ebef; /* Adjust to match your brand color */
}

/* Hero Carousel Section */
.hero-carousel-section {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

/* Ensure Carousel and Items Take Full Height */
.carousel,
.carousel-inner,
.carousel-item {
    height: 100%;
}

/* Hero Carousel Images */
.hero-carousel-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Overlay for Better Text Visibility */
.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Carousel Caption Styling */
.carousel-caption {
    z-index: 2;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    max-width: 80%;
    padding: 20px;
}

.carousel-caption h3 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    margin-bottom: 10px;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.carousel-caption p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    margin-bottom: 20px;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Explore Button Styling */
.btn-explore {
    display: inline-block;
    padding: 10px 20px;
    font-size: clamp(0.875rem, 1.5vw, 1rem);
    color: #fff;
    background-color: transparent;
    border: 2px solid var(--primary-color);
    border-radius: 25px;
    text-decoration: none;
    transition: all 0.4s ease;
    position: relative;
    z-index: 1;
}

.btn-explore::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary-color);
    z-index: -1;
    transition: transform 0.4s ease;
    transform: scale(0);
    border-radius: inherit;
}

.btn-explore:hover::before,
.btn-explore:focus::before {
    transform: scale(1); /* Expand background color */
}

.btn-explore:hover,
.btn-explore:focus {
    color: #fff;
    background-color: transparent; /* Ensure the button remains transparent */
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Carousel Controls */
.carousel-control-prev,
.carousel-control-next {
    width: 10%;
}

/* Carousel Indicators */
.carousel-indicators {
    margin-bottom: 1rem;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.134);
    border: none;
    margin: 0 5px;
}

.carousel-indicators button.active {
    background-color: #ffffffc9;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-carousel-section {
        height: 70vh;
    }
}

@media (max-width: 576px) {
    .hero-carousel-section {
        height: 60vh;
    }

    .carousel-caption {
        max-width: 90%;
    }
}

@media (orientation: landscape) and (max-height: 500px) {
    .hero-carousel-section {
        height: 100vh;
    }

    .carousel-caption h3 {
        font-size: clamp(1.25rem, 3vw, 2rem);
    }

    .carousel-caption p {
        font-size: clamp(0.875rem, 1.5vw, 1rem);
    }

    .btn-explore {
        padding: 8px 16px;
    }
}
