.amenities {
    position: relative;
}

.amenities-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 4rem;

    @media only screen and (max-width: 1023px) {
        padding: 2rem;
    }
}

.amenities-wrapper .inner {
    display: flex;
    flex-direction: column;
    gap: 0.5rem
}

.amenities-wrapper .inner .title {
    color: var(--color-coconut-husk);
    text-transform: uppercase;
}

.amenities-wrapper .inner p {
    max-width: 40%;

    @media only screen and (max-width: 1023px) {
        max-width: 100%;
    }
}

.amenities-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.2rem 2rem;
    margin: 0;
    padding: 0;
    list-style: none;

    @media only screen and (max-width: 1023px) {
        grid-template-columns: repeat(2, 1fr);
    }

    @media only screen and (max-width: 600px) {
        grid-template-columns: 1fr;
    }
}

.amenity {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.amenity .icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 1.6rem;
    height: 1.6rem;
}

.amenity .icon i {
    color: var(--color-coconut-husk);
    font-size: 1.2rem;
}

.amenity .icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.amenity .label {
    color: var(--color-coconut-husk);
    font-size: var(--font-size-sm);
}

.amenities-collapsible {
    position: relative;
    overflow: hidden;
    height: 220px;
    transition: height .45s ease;

    @media only screen and (max-width: 1023px) {
        height: 440px;
    }

    @media only screen and (max-width: 600px) {
        height: 360px;
    }
}

.amenities-collapsible::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 140px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, #fff 60%, #fff 100%);
    pointer-events: none;
}

.amenities-collapsible.is-open::after {
    display: none;
}

.amenities-toggle {
    display: flex;
    justify-content: center;
    margin-top: -2rem;
}

.amenities-toggle:focus {
    outline: 2px solid var(--color-coconut-husk);
    outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }

    .amenities-collapsible {
        transition: none !important;
    }
}