/* =====================================================
   ZKR REAL ESTATE
   LOCATION KUALA LUMPUR — HOME
===================================================== */

.zkr-home-rental {
    background: #0a0a0a;
    color: #f4f2ed;

    padding:
        clamp(100px, 10vw, 140px)
        32px;
}


.zkr-home-rental__container {
    width: min(1280px, 100%);
    margin: 0 auto;

    display: grid;

    grid-template-columns:
        minmax(340px, .72fr)
        minmax(0, 1.28fr);

    gap:
        clamp(60px, 8vw, 120px);

    align-items: center;
}


/* =====================================================
   CONTENT
===================================================== */

.zkr-home-rental__content {
    max-width: 500px;
}


.zkr-section-label--light {
    color: #f4f2ed;
}


.zkr-home-rental__title {
    margin: 0;

    font-family:
        Didot,
        "Bodoni MT",
        Georgia,
        serif;

    font-size:
        clamp(54px, 5vw, 76px);

    line-height: .95;

    letter-spacing: -3px;

    font-weight: 400;
}


.zkr-home-rental__title em {
    font-weight: 400;

    font-style: italic;
}


/* DESCRIPTION */

.zkr-home-rental__description {
    max-width: 460px;

    margin:
        40px 0 0;

    font-family:
        Inter,
        Arial,
        sans-serif;

    font-size: 16px;

    line-height: 1.6;

    color:
        rgba(244,242,237,.78);
}


.zkr-home-rental__promise {
    max-width: 430px;

    margin:
        20px 0 0;

    font-family:
        Inter,
        Arial,
        sans-serif;

    font-size: 13px;

    line-height: 1.6;

    color:
        rgba(244,242,237,.48);
}


/* =====================================================
   WHATSAPP
===================================================== */

.zkr-home-rental__whatsapp {
    min-height: 52px;

    width: fit-content;

    margin-top: 35px;

    padding:
        0 22px;

    display: inline-flex;

    align-items: center;
    justify-content: space-between;

    gap: 45px;

    border-radius: 999px;

    background: #f4f2ed;
    color: #0a0a0a;

    text-decoration: none;

    font-family:
        Inter,
        Arial,
        sans-serif;

    font-size: 10px;

    letter-spacing: 1px;

    transition:
        background 180ms ease,
        transform 180ms ease;
}


.zkr-home-rental__whatsapp:hover {
    background: #d4c7b6;

    transform:
        translateY(-2px);
}


/* =====================================================
   SHOWCASE
===================================================== */

.zkr-rental-showcase {
    position: relative;

    width: 100%;

    aspect-ratio: 4 / 5;

    max-height: 760px;

    overflow: hidden;

    border-radius: 10px;

    background: #8c8175;
}


/* SLIDES */

.zkr-rental-showcase__slides {
    position: absolute;

    inset: 0;
}


.zkr-rental-showcase__slide {
    position: absolute;

    inset: 0;

    opacity: 0;

    transform:
        scale(1.04);

    transition:
        opacity 1.2s
        cubic-bezier(.4,0,.2,1),

        transform 7s
        cubic-bezier(.2,.7,.2,1);
}


.zkr-rental-showcase__slide.active {
    opacity: 1;

    transform:
        scale(1);
}


.zkr-rental-showcase__slide img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
}


/* DARK GRADIENT */

.zkr-rental-showcase::after {
    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            to bottom,
            rgba(0,0,0,.10),
            rgba(0,0,0,.05) 50%,
            rgba(0,0,0,.48)
        );

    pointer-events: none;

    z-index: 2;
}


/* =====================================================
   TOP
===================================================== */

.zkr-rental-showcase__top {
    position: absolute;

    top: 28px;
    left: 28px;
    right: 28px;

    z-index: 4;

    display: flex;

    align-items: center;
    justify-content: space-between;

    font-family:
        Inter,
        Arial,
        sans-serif;

    font-size: 8px;

    letter-spacing: 1.8px;

    color: white;
}


/* =====================================================
   BOTTOM
===================================================== */

.zkr-rental-showcase__bottom {
    position: absolute;

    left: 30px;
    right: 30px;
    bottom: 28px;

    z-index: 4;

    display: flex;

    align-items: flex-end;
    justify-content: space-between;

    gap: 30px;

    color: white;
}


.zkr-rental-showcase__eyebrow {
    display: block;

    margin-bottom: 7px;

    font-family:
        Inter,
        Arial,
        sans-serif;

    font-size: 8px;

    letter-spacing: 2px;
}


.zkr-rental-showcase__caption {
    font-family:
        Didot,
        Georgia,
        serif;

    font-size:
        clamp(32px, 3vw, 46px);

    line-height: 1;

    font-style: italic;
}


/* =====================================================
   PROGRESS
===================================================== */

.zkr-rental-progress {
    display: flex;

    gap: 7px;
}


.zkr-rental-progress__item {
    width: 35px;

    padding:
        8px 0;

    appearance: none;

    border: 0;

    background: transparent;

    cursor: pointer;
}


.zkr-rental-progress__item span {
    display: block;

    position: relative;

    overflow: hidden;

    width: 100%;
    height: 1px;

    background:
        rgba(255,255,255,.35);
}


.zkr-rental-progress__item span::after {
    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 0;
    height: 100%;

    background: white;
}


.zkr-rental-progress__item.active
span::after {
    animation:
        zkrRentalProgress
        5.5s
        linear
        forwards;
}


@keyframes zkrRentalProgress {

    from {
        width: 0;
    }

    to {
        width: 100%;
    }

}


/* =====================================================
   TABLETTE
===================================================== */

@media (min-width: 768px) and (max-width: 1180px) {

    .zkr-home-rental {
        padding:
            96px
            24px;
    }


    .zkr-home-rental__container {
        grid-template-columns:
            .85fr
            1.15fr;

        gap: 45px;
    }


    .zkr-home-rental__title {
        font-size:
            clamp(48px, 6vw, 62px);
    }


    .zkr-rental-showcase {
        aspect-ratio: 4 / 5;
    }

}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 767px) {

    .zkr-home-rental {
        padding:
            72px
            20px;
    }


    .zkr-home-rental__container {
        display: flex;

        flex-direction: column;

        gap: 50px;
    }


    .zkr-home-rental__content {
        max-width: none;
    }


    .zkr-home-rental__title {
        font-size:
            clamp(44px, 12vw, 52px);

        letter-spacing: -2px;
    }


    .zkr-home-rental__description {
        margin-top: 28px;

        font-size: 16px;
    }


    .zkr-home-rental__promise {
        font-size: 16px;
    }


    .zkr-home-rental__whatsapp {
        width: 100%;

        min-height: 52px;
    }


    .zkr-rental-showcase {
        aspect-ratio: 4 / 5;
    }


    .zkr-rental-showcase__top {
        top: 20px;
        left: 20px;
        right: 20px;
    }


    .zkr-rental-showcase__bottom {
        left: 20px;
        right: 20px;
        bottom: 20px;

        flex-direction: column;

        align-items: flex-start;
    }


    .zkr-rental-showcase__caption {
        font-size: 30px;
    }

}


/* =====================================================
   REDUCED MOTION
===================================================== */

@media (prefers-reduced-motion: reduce) {

    .zkr-rental-showcase__slide {
        transition-duration: .01ms;
    }

}