/* --- Premium Amenities Redesign --- */

/* Aggressive Spacing Reset for Title Alignment */
#amenities.tab-pane {
    padding-top: 0 !important;
}

#amenities .section-title {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

#amenities .section-title h2 {
    margin-top: 0 !important;
    padding-top: 0 !important;
    /* Set to 0 to match gallery exactly */
}

.amenities-section-premium {
    /* Match default tab section spacing (same as Gallery) */
    padding: 2rem 0 !important;
    background-color: #fff !important;
    overflow: hidden !important;
    display: block !important;
}

.amenities-grid-premium {
    display: grid !important;
    grid-template-columns: repeat(5, 1fr) !important;
    gap: 30px !important;
    /* Let shared .section-title margin control spacing */
    margin-top: 0 !important;
    width: 100% !important;
}

.amenity-item {
    text-align: center !important;
    padding: 30px 20px !important;
    background: #fff !important;
    border: 1px solid #eee !important;
    border-radius: 8px !important;
    transition: all 0.4s ease !important;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUpPremium 0.8s forwards !important;
}

/* Staggered Animations */
.amenity-item:nth-child(1) {
    animation-delay: 0.1s !important;
}

.amenity-item:nth-child(2) {
    animation-delay: 0.2s !important;
}

.amenity-item:nth-child(3) {
    animation-delay: 0.3s !important;
}

.amenity-item:nth-child(4) {
    animation-delay: 0.4s !important;
}

.amenity-item:nth-child(5) {
    animation-delay: 0.5s !important;
}

.amenity-item:nth-child(6) {
    animation-delay: 0.6s !important;
}

.amenity-item:nth-child(7) {
    animation-delay: 0.7s !important;
}

.amenity-item:nth-child(8) {
    animation-delay: 0.8s !important;
}

.amenity-item:nth-child(9) {
    animation-delay: 0.9s !important;
}

.amenity-item:nth-child(10) {
    animation-delay: 1.0s !important;
}

.amenity-icon-wrapper {
    width: 80px !important;
    height: 80px !important;
    margin: 0 auto 20px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.4s ease !important;
    background: transparent !important;
}

.amenity-icon-wrapper iconify-icon,
.amenity-icon-wrapper svg {
    color: #caa45f !important;
    /* Gold Icons */
    font-size: 64px !important;
    /* Iconify size */
    width: 64px !important;
    height: 64px !important;
    transition: all 0.4s ease !important;
}

.amenity-item h5 {
    font-family: 'Poppins', sans-serif !important;
    font-size: 16px !important;
    color: #333 !important;
    /* Dark text */
    font-weight: 500 !important;
    line-height: 1.5 !important;
    margin: 0 !important;
    transition: color 0.3s ease !important;
}

/* Hover State */
.amenity-item:hover {
    transform: translateY(-10px) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
    border-color: #caa45f !important;
    /* Gold border on hover */
}

.amenity-item:hover iconify-icon,
.amenity-item:hover svg {
    transform: scale(1.1) !important;
}

.amenity-item:hover h5 {
    color: #caa45f !important;
    /* Gold text on hover */
}

/* Keyframes */
@keyframes fadeInUpPremium {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Grid */
@media (max-width: 1199px) {
    .amenities-grid-premium {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 767px) {
    .amenities-grid-premium {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .amenities-section-premium {
        padding: 2rem 0 !important;
    }

    .amenity-item h5 {
        font-size: 13px !important;
    }
}