/*
    File: css/components/accommodation-options.css
    Description: Styles for the accommodation options section (centering text).
*/

.accommodation-options {
    padding: 50px 20px;
    background-color: #fff;
    text-align: center; /* Center the main title */
}

.accommodation-options__intro {
    max-width: 800px;
    margin: 0 auto 30px; /* Center the intro text */
    color: #777;
}

.accommodation-options__container {
    display: flex;
    flex-direction: column;
    gap: 60px;
    max-width: 900px;
    width: 100%;
    margin: 0 auto; /* Center the container */
    align-items: center; /* Center the bungalow options */
}

.accommodation-options__type {
    text-align: center; /* Center text within each bungalow option */
    max-width: 550px;
    width: 100%;
}

.accommodation-options__title {
    font-size: 1.8em;
    color: #000;
    margin-bottom: 15px;
}

/* Styles for the carousel container */
.carousel {
    position: relative;
    width: 300px; /* Desired width for the carousel */
    margin: 0 auto 20px; /* Center the carousel horizontally and add space at the bottom */
    overflow: hidden;
}

.carousel-track-container {
    overflow: hidden;
}

.carousel-track {
    display: flex;
    transform: translateX(0);
    transition: transform 0.3s ease-in-out;
    gap: 10px; /* Space between images */
}

.carousel-track img {
    width: 300px;
    height: 450px;
    object-fit: cover;
    flex-shrink: 0;
}

.carousel-button {
    position: absolute;
    top: 50%;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    transform: translateY(-50%);
    z-index: 1;
    font-size: 1.5em;
}

.carousel-button.prev { left: 10px; }
.carousel-button.next { right: 10px; }

.visuallyhidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.accommodation-options__description {
    color: #333;
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 550px;
    margin-left: auto;
    margin-right: auto; /* Center the description */
}

.accommodation-options__actions {
    display: flex;
    justify-content: center; /* Center the buttons */
    gap: 20px;
}

.accommodation-options__actions a.button {
    display: inline-block;
}

.spacer {
    height: 30px; /* Adjust the height to control the space */
    width: 100%; /* Ensure it takes the full available width */
}

/* Media queries for small screens */

@media (max-width: 768px) {
    .accommodation-options {
        padding: 40px 15px;
    }

    .accommodation-options__intro {
        margin-bottom: 20px;
    }

    .accommodation-options__container {
        gap: 40px;
    }

    .accommodation-options__type {
        max-width: 100%;
    }

    .carousel {
        width: 100%;
    }

    .carousel-track img {
        width: 100%;
        height: auto;
    }

    .carousel-button {
        font-size: 1.2em;
    }

    .accommodation-options__description {
        margin-bottom: 20px;
    }

    .accommodation-options__actions {
        flex-direction: column;
        gap: 10px;
    }
}
