/* Amenities Page Specific Styles */

#amenities-content p {
    text-align: justify; /* Justify paragraph text */
    margin-bottom: 1rem;
}

#amenities-content ul {
    list-style: disc;
    margin-left: 2rem;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

#amenities-content h3 {
    margin-top: 2rem;
    margin-bottom: 0.5rem;
    font-size: 1.8rem;
    text-align: center;
}

/* Carousel Styles - Updated for Manual Scroll */
.carousel {
    position: relative;
    /* width: 100%; */ /* Replaced by full-width logic below */
    /* max-width: 900px; */ /* Optional: Constrain width if needed */
    /* margin: 2rem auto; */ /* Center and add vertical space - REMOVED TOP MARGIN */
    /* margin-left: auto; */ /* Handled by full-width logic */
    /* margin-right: auto; */ /* Handled by full-width logic */
    margin-bottom: 2rem; /* Keep bottom margin */
    overflow: hidden; /* Hide the parts of the track outside the viewport */

    /* Full width styles */
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    margin-top: 0; /* Explicitly remove top margin */

    /* Responsive height using aspect ratio - REMOVED, JS will handle height */
    /* height: 0; */
    /* padding-bottom: 56.25%; */ /* 16:9 aspect ratio (9 / 16 * 100). Adjust if needed. */
    min-height: 100px; /* Prevent collapse while loading */
    transition: height 0.5s ease-in-out, transform 0.5s ease-in-out; /* Smooth height and slide changes */

    /* height: 60vh; */ /* Replaced by padding-bottom */
    background-color: #eee; /* Background for the container */
}

.carousel-track {
    display: flex;
    position: absolute; /* Position track absolutely within padding-based container */
    top: 0;
    left: 0;
    width: calc(100% * var(--num-images)); /* Calculate track width based on image count (JS sets --num-images) */
    height: 100%; /* Track takes full height of carousel */
    transition: transform 0.5s ease-in-out; /* Smooth slide */
}

.carousel-image {
    /* width: 100%; */ /* Width will be 1 / num_images of the track */
    width: calc(100% / var(--num-images)); /* Calculate image width dynamically (JS sets --num-images) */
    height: 100%; /* Each image takes the full height of the .carousel container */
    flex-shrink: 0; /* Prevent images from shrinking */
    object-fit: contain; /* Show the whole image, letterboxed if necessary */
}

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

.carousel-button.prev {
    left: 15px;
}

.carousel-button.next {
    right: 15px;
}

.carousel-button:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* Hide buttons initially if needed, JS will show/hide */
.carousel-button.hidden {
    display: none;
}

/* Style adjustments for content below carousel */
#amenities-content h2 {
    margin-top: 2rem; /* Add space above the heading now that it's below */
}
