/* =======================
   GLOBAL STYLES
======================= */
.main {
    background-color: #F6F4EB;
}

h1 {
    color: red;
}

/* =======================
   HEADER SECTION
======================= */
#header-bg {
    opacity: 0.6;
    object-fit: cover;
    z-index: 0;
}

.header-container {
    height: 400px;
}

    .header-container h1 {
        color: #F6F4EB !important;
    }

.header-text-container {
    z-index: 1;
}

.header-text {
    font-family: 'Varela Round', serif;
    font-size: 1rem;
    line-height: 1.4;
    color: #F6F4EB;
}

/* =======================
   AMENITY CARD STYLING
======================= */
.amenity-card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    background-color: #fff;
}

    .amenity-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    }

    /* =======================
   CAROUSEL IMAGES
======================= */
    .amenity-card .carousel-item img {
        width: 100%;
        aspect-ratio: 16/9; /* ? uniform image size ratio */
        object-fit: cover;
        border-top-left-radius: 12px;
        border-top-right-radius: 12px;
        cursor: pointer;
        transition: transform 0.3s ease, filter 0.3s ease;
    }

        .amenity-card .carousel-item img:hover {
            transform: scale(1.03);
            filter: brightness(0.9);
        }

/* Responsive aspect ratio tweaks */
@media (max-width: 992px) {
    .amenity-card .carousel-item img {
        aspect-ratio: 4 / 3; /* ? slightly taller on tablets */
    }
}

@media (max-width: 576px) {
    .amenity-card .carousel-item img {
        aspect-ratio: 1 / 1; /* ? square look for mobile */
    }
}

/* =======================
   CAROUSEL CONTROLS
======================= */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(31, 15, 15, 0.8);
    border-radius: 50%;
    padding: 12px;
    transition: background-color 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

    .carousel-control-prev-icon:hover,
    .carousel-control-next-icon:hover {
        background-color: rgb(27, 15, 15);
    }

/* =======================
   CARD BODY
======================= */
.amenity-card .card-body {
    padding: 1.2rem;
    background-color: #fff;
    text-align: left;
}

.amenity-card .card-title {
    font-family: 'Lora', serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: #001F3F;
    margin-bottom: 0.5rem;
}

.amenity-card .card-text {
    font-family: 'Varela Round', sans-serif;
    font-size: 0.9rem;
    color: #555;
}

/* =======================
   BUTTON STYLING
======================= */
.amenity-card .btn-outline-dark {
    font-size: 0.8rem;
    border-radius: 20px;
    padding: 5px 12px;
    transition: all 0.3s ease;
}

    .amenity-card .btn-outline-dark:hover {
        background-color: #001F3F;
        color: #fff;
    }

/* =======================
   COLLAPSE (POLICIES LIST)
======================= */
.amenity-card .collapse ul {
    text-align: left;
    margin-top: 0.5rem;
}

.amenity-card .collapse li {
    font-size: 0.85rem;
    color: #001F3F;
    margin-bottom: 4px;
}

/* =======================
   MODAL IMAGE VIEW
======================= */
#imageModal .modal-content {
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
}

#imageModal img {
    max-height: 85vh;
    width: auto;
    border-radius: 8px;
}

/* Modal Fade Animation */
.modal.fade .modal-dialog {
    transition: transform 0.3s ease-out;
    transform: scale(0.95);
}

.modal.show .modal-dialog {
    transform: scale(1);
}

/* Modal Carousel Images */
.modal .carousel-item img {
    max-height: 80vh;
    object-fit: contain;
}

.modal-content {
    background-color: rgba(0, 0, 0, 0.8);
}

/* =======================
   AMENITIES GRID CONTAINER
======================= */
.container,
.row {
    margin: 0 auto;
    padding: 1rem; /* ? Adds breathing space on both sides */
}

    .row.g-4 {
        --bs-gutter-x: 1.5rem; /* ? Adjusts Bootstrap gap between cards */
        --bs-gutter-y: 2rem; /* Vertical spacing between rows */
    }
