/* ============================================================================
   css/components/amenities.css
   AMENITIES / FACILITIES SECTION
   4 per row × 2 rows — Circular icons — Modal on click
   ============================================================================ */

.amenities.section {
    margin: 40px auto;
    padding: 0 18px;
}

.amenities-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    max-width: 1100px;
    margin: 0 auto;
}

.amenity {
    background: #ffffff;
    border-radius: 14px;
    padding: 22px 10px;
    border: none;
    cursor: pointer;
    text-align: center;
    box-shadow: 0 6px 20px rgba(0,0,0,0.06);
    transition: transform 220ms ease, box-shadow 220ms ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 120px;
}

.amenity:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 34px rgba(0,0,0,0.12);
}

/* circular icon area */
.amenity .ami-icon {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    margin: 0 auto 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: #fff;
    box-shadow: 0 6px 14px rgba(0,0,0,0.06);
}

/* Colors for each icon (picked to look modern & vivid) */
.amenity:nth-child(1) .ami-icon { background: #ef4444; } /* red */
.amenity:nth-child(2) .ami-icon { background: #f97316; } /* orange */
.amenity:nth-child(3) .ami-icon { background: #f59e0b; } /* amber */
.amenity:nth-child(4) .ami-icon { background: #10b981; } /* green */
.amenity:nth-child(5) .ami-icon { background: #3b82f6; } /* blue */
.amenity:nth-child(6) .ami-icon { background: #8b5cf6; } /* purple */
.amenity:nth-child(7) .ami-icon { background: #06b6d4; } /* teal */
.amenity:nth-child(8) .ami-icon { background: #ef4444; } /* repeat red */

/* label text */
.amenity .label {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    text-transform: none;
}

/* small caption (optional) */
.amenity .short {
    font-size: 13px;
    color: #475569;
    margin-top: 4px;
}

/* FACILITY MODAL */
#facility-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 99999;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

#facility-modal.open {
    display: flex;
}

#facility-modal .lb-shell {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    max-width: 720px;
    width: 100%;
    position: relative;
    box-shadow: 0 12px 34px rgba(0,0,0,0.12);
}

#facilityClose {
    position: absolute;
    right: 12px;
    top: 10px;
    font-size: 22px;
    background: none;
    border: none;
    cursor: pointer;
    color: #111827;
}

/* Responsive behavior */
@media (max-width: 1100px) {
    .amenities-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .amenities-grid { grid-template-columns: repeat(2, 1fr); }
    .amenity { padding: 16px; min-height: 100px; }
    .amenity .ami-icon { width: 60px; height: 60px; font-size: 22px; }
    #facility-modal .lb-shell { padding: 16px; }
}
