/* ==========================
   AMENITIES (REFINED LUXURY THEME)
========================== */

.amenities {
    background-color: #f8fafc;
    border-radius: 15px;
    padding: 3rem 2rem;
    margin: 2rem auto;
    box-shadow: 0 10px 24px rgba(15, 118, 110, 0.16);
    animation: fadeIn 1s ease-out;
}

/* Heading */
.amenities h2 {
    color: #0f766e; /* deep teal */
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
}

.amenities h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: #1abc9c;
    border-radius: 2px;
}

/* ==========================
   GRID
========================== */

.amenities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    justify-items: center;
}

/* ==========================
   CARD
========================== */

.amenities .item {
    background: linear-gradient(135deg, #f0fbf9, #e6f7f4);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    width: 100%;
    max-width: 250px;
    transition: all 0.35s ease;
    box-shadow: 0 8px 18px rgba(15, 118, 110, 0.2);
    position: relative;
    overflow: hidden;
}

/* Subtle shine */
.amenities .item::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 255, 255, 0.45),
        transparent
    );
    transform: rotate(45deg);
    opacity: 0;
}

.amenities .item:hover::before {
    opacity: 1;
    animation: shine 0.6s ease;
}

@keyframes shine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

/* Hover */
.amenities .item:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 32px rgba(15, 118, 110, 0.35);
}

/* ==========================
   TEXT
========================== */

.amenities .item strong {
    color: #0f766e;
    font-size: 1.2rem;
    display: block;
    margin-bottom: 0.5rem;
}

.amenities .item p {
    color: #334155; /* premium readable text */
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ==========================
   ICON
========================== */

.amenity-icon {
    font-size: 42px;
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #1abc9c;
    transition: transform 0.3s ease;
}

.amenities .item:hover .amenity-icon {
    transform: scale(1.2);
}

/* ==========================
   RESPONSIVE
========================== */

@media (max-width: 768px) {
    .amenities-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1.5rem;
    }

    .amenities h2 {
        font-size: 2rem;
    }

    .amenities .item {
        padding: 1.5rem;
        max-width: 200px;
    }

    .amenities .item strong {
        font-size: 1.1rem;
    }

    .amenities .item p {
        font-size: 0.85rem;
    }

    .amenities {
        padding: 2rem 1rem;
        margin: 1rem auto;
    }
}

@media (max-width: 480px) {
    .amenities-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .amenities h2 {
        font-size: 1.75rem;
    }

    .amenities .item {
        padding: 1.25rem;
        max-width: none;
    }

    .amenities .item strong {
        font-size: 1rem;
    }

    .amenities .item p {
        font-size: 0.8rem;
    }

    .amenities {
        padding: 1.5rem 1rem;
        border-radius: 10px;
    }
}
