/*
|--------------------------------------------------------------------------
| Qorezo Composable Rendering Layer
|--------------------------------------------------------------------------
| Component: Amenities Section Variants
| Scope: Marketing Homepage Composer Only (.home-composer)
|
| Contract Rules:
| - MUST declare explicit position: relative on the variant namespace root
|   prior to applying position: absolute on children.
| - MUST NOT declare raw aesthetic tokens (#hex, color names, literal fonts).
| - MUST NOT use bare HTML tag selectors.
| - MUST NOT use arbitrary !important declarations.
|--------------------------------------------------------------------------
*/

/* ==========================================================================
   1. VARIANT: Editorial (formerly royal)
   ========================================================================== */

.page-home .home-composer .section-amenities.section-amenities--editorial {
    position: relative;
    min-height: 95vh;
    margin: var(--margin-page);
}

.page-home .home-composer .section-amenities--editorial .amenity__title {
    font-family: var(--font-family-primary);
    font-weight: var(--font-weight-bold);
    font-size: clamp(1.25rem, 1.8vw, 1.75rem);
    line-height: var(--line-height-relaxed);
    color: var(--text-primary);
}

.page-home .home-composer .section-amenities--editorial .amenity__desc {
    padding-top: 2rem;
}

.page-home .home-composer .section-amenities--editorial .amenity__underline {
    display: inline-block;
    width: 2.75rem;
    height: .25rem;
    background: var(--brand-primary-color);
    border-radius: 999px;
    margin-bottom: clamp(.5rem, 1vw, .75rem);
}

.page-home .home-composer .section-amenities--editorial .amenity-article {
    display: flex;
    flex-direction: column;
    margin-top: -3rem;
    margin-bottom: 5rem;
}

.page-home .home-composer .section-amenities--editorial .amenity {
    display: flex;
    position: relative;
    padding: 5rem 0rem;
}

.page-home .home-composer .section-amenities--editorial .amenity > * {
    margin-right: -6rem;
}

.page-home .home-composer .section-amenities--editorial .amenity__media {
    display: flex;
    position: relative;
    z-index: var(--z-above, 2);
}

.page-home .home-composer .section-amenities--editorial .amenity img {
    display: flex;
    max-width: 450px;
    height: auto;
}

.page-home .home-composer .section-amenities--editorial .amenity__card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: var(--background-primary);
    padding-left: 7rem;
    position: relative;
    transform: translateY(20%);
    width: 100%;
    min-height: 392px;
    z-index: var(--z-above, 1);
}

.page-home .home-composer .section-amenities--editorial .amenity--right .amenity__card {
    padding-left: 2rem;
    padding-right: 7rem;
}

/* Editorial Variant Mobile Breakpoint */
@media screen and (max-width: 1024px) {
    .page-home .home-composer .section-amenities--editorial .amenity {
        display: flex;
        flex-direction: column;
        position: relative;
    }

    .page-home .home-composer .section-amenities--editorial .amenity > * {
        margin-right: 0rem;
    }

    .page-home .home-composer .section-amenities--editorial .amenity__media,
    .page-home .home-composer .section-amenities--editorial .amenity__media img {
        margin: 0;
        max-width: 100%;
    }

    .page-home .home-composer .section-amenities--editorial .amenity--left,
    .page-home .home-composer .section-amenities--editorial .amenity--right {
        margin: 0;
        padding: 1rem;
    }

    .page-home .home-composer .section-amenities--editorial .amenity--left .amenity__card,
    .page-home .home-composer .section-amenities--editorial .amenity--right .amenity__card {
        padding: 2rem;
        transform: translateY(0%);
        margin: 0;
    }

    .page-home .home-composer .section-amenities--editorial .amenity__desc {
        padding: 0;
    }

    .page-home .home-composer .section-amenities--editorial .amenity__card {
        padding: 0rem;
        width: 100%;
        min-height: 300px;
    }
}


/* ==========================================================================
   2. VARIANT: Cards (formerly blue/boutique)
   ========================================================================== */

.page-home .home-composer .section-amenities.section-amenities--cards {
    position: relative;
    min-height: 95vh;
    margin: var(--margin-page);
}

.page-home .home-composer .section-amenities--cards .amenities-cards__grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.page-home .home-composer .section-amenities--cards .amenities-cards__card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    vertical-align: middle;
    text-align: center;
    width: 10rem;
    height: 8rem;
    border: var(--border-primary);
    box-shadow: var(--box-shadow-primary);
    background: linear-gradient(rgba(246, 246, 246, 0.96), rgba(246, 246, 246, 0.96)), var(--background-image);
    background-size: cover, 100% auto;
    background-repeat: no-repeat;
    background-attachment: fixed;
    position: relative;
    transition: var(--transition-smooth);
    overflow: hidden;
}

/* Hover and Ripple Effects */
.page-home .home-composer .section-amenities--cards .amenities-cards__card:hover {
    transform: translateY(-5px);
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.2);
    border-color: var(--brand-primary-color);
}

.page-home .home-composer .section-amenities--cards .amenities-cards__card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
    z-index: var(--z-flat, 0);
    transform: scale(1);
    transition: var(--transition-smooth);
}

.page-home .home-composer .section-amenities--cards .amenities-cards__card:hover::before {
    transform: scale(1.05);
}

.page-home .home-composer .section-amenities--cards .amenities-cards__card i {
    font-size: 2rem;
    z-index: var(--z-above, 1);
    transition: color 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.page-home .home-composer .section-amenities--cards .amenities-cards__card:hover i {
    color: var(--brand-primary-color);
    transform: scale(1.2);
}

.page-home .home-composer .section-amenities--cards .amenities-cards__card h4 {
    font-size: 1rem;
    z-index: var(--z-above, 1);
    transition: color 0.3s ease-in-out;
}

.page-home .home-composer .section-amenities--cards .amenities-cards__card:hover h4 {
    color: var(--brand-primary-color);
}

.page-home .home-composer .section-amenities--cards .amenities-cards__card::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    top: 50%;
    left: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 10%, transparent 70%);
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    z-index: var(--z-above, 2);
    transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out;
}

.page-home .home-composer .section-amenities--cards .amenities-cards__card:hover::after {
    transform: translate(-50%, -50%) scale(2);
    opacity: 1;
}


/* ==========================================================================
   3. VARIANT: Carousel (formerly nature)
   ========================================================================== */

.page-home .home-composer .section-amenities.section-amenities--carousel {
    position: relative;
    min-height: 85vh;
    --amenities-gap: clamp(1rem, 2vw, 2.5rem);
    --amenity-width: clamp(220px, 22vw, 300px);
    --amenity-aspect: 3 / 4;
}

.page-home .home-composer .section-amenities--carousel .amenities-carousel__grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 2rem 0;
}

.page-home .home-composer .section-amenities--carousel .amenities-carousel__icon-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 10rem;
    height: 8rem;
    border: var(--border-primary);
    box-shadow: var(--box-shadow-primary);
    background: linear-gradient(rgba(246, 246, 246, 0.96), rgba(246, 246, 246, 0.96)), var(--background-image);
    background-size: var(--background-image-size, cover);
    background-repeat: no-repeat;
    position: relative;
    transition: var(--transition-smooth);
    overflow: hidden;
}

.page-home .home-composer .section-amenities--carousel .amenities-carousel__icon-card:hover {
    transform: translateY(-5px);
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.2);
    border-color: var(--brand-primary-color);
}

.page-home .home-composer .section-amenities--carousel .amenities-carousel__icon-card i {
    font-size: 2rem;
    z-index: var(--z-above, 1);
    transition: color 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.page-home .home-composer .section-amenities--carousel .amenities-carousel__icon-card:hover i {
    color: var(--brand-primary-color);
    transform: scale(1.2);
}

.page-home .home-composer .section-amenities--carousel .amenities-carousel__icon-card h4 {
    font-size: 1rem;
    z-index: var(--z-above, 1);
    transition: color 0.3s ease-in-out;
}

.page-home .home-composer .section-amenities--carousel .amenities-carousel__icon-card:hover h4 {
    color: var(--brand-primary-color);
}

/* Amenities Carousel Styling */
.page-home .home-composer .section-amenities--carousel .amenities-carousel {
    padding: var(--section-padding-y, 5rem) var(--section-padding-x-desktop, 7.5rem);
    position: relative;
}

.page-home .home-composer .section-amenities--carousel .amenities-carousel__viewport {
    position: relative;
    overflow: hidden;
}

.page-home .home-composer .section-amenities--carousel .amenities-carousel__track {
    position: relative;
    z-index: var(--z-above, 1);
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: var(--amenity-width);
    gap: var(--amenities-gap);
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--amenities-gap);
    padding-inline: var(--amenities-gap);
    padding-block: .25rem 0;
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, rgb(0,0,0) 4%, rgb(0,0,0) 96%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, rgb(0,0,0) 4%, rgb(0,0,0) 96%, transparent 100%);
}

.page-home .home-composer .section-amenities--carousel .amenities-carousel__track::-webkit-scrollbar {
    display: none;
}

.page-home .home-composer .section-amenities--carousel .amenities-carousel__card {
    scroll-snap-align: start;
    list-style: none;
    text-align: center;
}

.page-home .home-composer .section-amenities--carousel .amenities-carousel__card-figure {
    margin: 0;
    border-radius: var(--border-radius-secondary, .75rem);
    overflow: hidden;
    box-shadow: var(--box-shadow-primary, 0 10px 30px rgba(0, 0, 0, .1));
    background: var(--background-tertiary);
}

.page-home .home-composer .section-amenities--carousel .amenities-carousel__card-img {
    display: block;
    width: 100%;
    aspect-ratio: var(--amenity-aspect);
    object-fit: cover;
    transform: translateZ(0);
}

.page-home .home-composer .section-amenities--carousel .amenities-carousel__card-caption {
    margin-top: .9rem;
    color: var(--text-secondary);
    font-size: clamp(.95rem, 1vw, 1.05rem);
}

.page-home .home-composer .section-amenities--carousel .amenities-carousel__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    inline-size: 42px;
    block-size: 42px;
    display: grid;
    place-items: center;
    background: var(--background-primary);
    border: 1px solid rgba(0, 0, 0, .08);
    border-radius: 999px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
    color: var(--color-secondary);
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
    z-index: var(--z-overlay, 10);
    pointer-events: auto;
}

.page-home .home-composer .section-amenities--carousel .amenities-carousel__nav:hover {
    transform: translateY(-50%) scale(1.04);
}

.page-home .home-composer .section-amenities--carousel .amenities-carousel__nav[disabled] {
    opacity: .35;
    pointer-events: none;
}

.page-home .home-composer .section-amenities--carousel .amenities-carousel__nav--prev {
    left: min(1rem, 2vw);
}

.page-home .home-composer .section-amenities--carousel .amenities-carousel__nav--next {
    right: min(1rem, 2vw);
}

/* Accessibility visually-hidden helper */
.page-home .home-composer .visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
