/* =========================================================
   ELAINE DING PROPERTY
   PAGE 01 — SECTION 03
   FEATURED PROPERTIES + VIDEO
========================================================= */

.ed-featured-v2,
.ed-featured-v2 * {
    box-sizing: border-box;
}

.ed-featured-v2 {
    --ed-white: #ffffff;
    --ed-bg: #f7f4ef;
    --ed-dark: #1b1b1b;
    --ed-text: #625f5a;
    --ed-muted: #938c82;
    --ed-line: #ddd6cc;
    --ed-accent: #987f62;

    width: 100%;

    padding: 125px 0 110px;

    background:
        linear-gradient(
            180deg,
            #fbfaf8 0%,
            var(--ed-bg) 100%
        );

    color: var(--ed-dark);

    font-family: "Manrope", sans-serif;
}


/* =========================================================
   CONTAINER
========================================================= */

.ed-featured-v2__container {
    width: min(1580px, calc(100% - 90px));

    margin: 0 auto;
}


/* =========================================================
   HEADER
========================================================= */

.ed-featured-v2__header {
    display: grid;

    grid-template-columns:
        minmax(0, 1.2fr)
        minmax(320px, 0.5fr);

    gap: 90px;

    align-items: end;

    margin-bottom: 58px;
}


.ed-featured-v2__eyebrow {
    display: flex;

    align-items: center;

    gap: 14px;

    margin-bottom: 21px;

    color: #867f76;

    font-size: 10px;

    font-weight: 800;

    letter-spacing: .15em;

    text-transform: uppercase;
}


.ed-featured-v2__eyebrow span {
    color: var(--ed-dark);
}


.ed-featured-v2__eyebrow i {
    width: 46px;
    height: 1px;

    background: #aca195;
}


.ed-featured-v2__heading h2 {
    max-width: 920px;

    margin: 0;

    color: var(--ed-dark);

    font-family: "DM Serif Display", serif;

    font-size: clamp(56px, 5vw, 88px);

    line-height: .96;

    font-weight: 400;

    letter-spacing: -.045em;
}


.ed-featured-v2__heading h2 em {
    display: block;

    color: var(--ed-accent);

    font-weight: 400;
}


.ed-featured-v2__intro p {
    margin: 0;

    color: var(--ed-text);

    font-size: 14px;

    line-height: 1.8;
}


.ed-featured-v2__intro a {
    display: inline-flex;

    align-items: center;

    gap: 10px;

    margin-top: 22px;

    padding-bottom: 6px;

    color: var(--ed-dark);

    border-bottom: 1px solid #aaa195;

    text-decoration: none;

    font-size: 10px;

    font-weight: 800;

    letter-spacing: .06em;

    text-transform: uppercase;
}


/* =========================================================
   MAIN FEATURE PROPERTY
========================================================= */

.ed-featured-v2__main {
    display: grid;

    grid-template-columns:
        minmax(0, 1.35fr)
        minmax(380px, .65fr);

    background: var(--ed-white);

    border: 1px solid var(--ed-line);
}


.ed-featured-v2__main-image {
    position: relative;

    min-height: 610px;

    overflow: hidden;
}


.ed-featured-v2__main-image img {
    width: 100%;
    height: 100%;

    position: absolute;

    inset: 0;

    display: block;

    object-fit: cover;

    transition: transform .7s ease;
}


.ed-featured-v2__main:hover .ed-featured-v2__main-image img {
    transform: scale(1.025);
}


.ed-featured-v2__shade {
    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            180deg,
            rgba(0,0,0,.02) 45%,
            rgba(0,0,0,.42) 100%
        );
}


/* =========================================================
   BADGES
========================================================= */

.ed-featured-v2__badges {
    position: absolute;

    z-index: 4;

    top: 25px;
    left: 25px;

    display: flex;

    gap: 7px;
}


.ed-featured-v2__badges span {
    padding: 9px 13px;

    background: rgba(255,255,255,.94);

    color: #1e1e1e;

    font-size: 8px;

    font-weight: 800;

    letter-spacing: .1em;

    text-transform: uppercase;
}


.ed-featured-v2__badges span:first-child {
    background: var(--ed-dark);

    color: #ffffff;
}


/* =========================================================
   LARGE VIDEO BUTTON
========================================================= */

.ed-video-trigger {
    border: 0;

    font-family: inherit;

    cursor: pointer;
}


.ed-featured-v2__main .ed-video-trigger {
    position: absolute;

    z-index: 5;

    left: 27px;
    bottom: 27px;

    padding: 9px 21px 9px 9px;

    display: inline-flex;

    align-items: center;

    gap: 14px;

    background: rgba(255,255,255,.95);

    color: var(--ed-dark);

    box-shadow:
        0 15px 40px rgba(0,0,0,.14);

    transition:
        transform .25s ease,
        background .25s ease;
}


.ed-featured-v2__main .ed-video-trigger:hover {
    transform: translateY(-3px);

    background: #ffffff;
}


.ed-video-trigger__icon {
    width: 47px;
    height: 47px;

    display: grid;

    place-items: center;

    background: var(--ed-dark);

    color: #ffffff;

    font-size: 12px;
}


.ed-video-trigger__text {
    text-align: left;

    font-size: 11px;

    font-weight: 800;

    letter-spacing: .02em;
}


.ed-video-trigger__text small {
    display: block;

    margin-bottom: 4px;

    color: var(--ed-muted);

    font-size: 7px;

    font-weight: 800;

    letter-spacing: .14em;

    text-transform: uppercase;
}


/* =========================================================
   MAIN CONTENT
========================================================= */

.ed-featured-v2__main-content {
    padding: 48px 42px 40px;

    display: flex;

    flex-direction: column;

    justify-content: space-between;
}


.ed-featured-v2__location {
    display: block;

    margin-bottom: 15px;

    color: var(--ed-muted);

    font-size: 9px;

    font-weight: 800;

    letter-spacing: .12em;

    text-transform: uppercase;
}


.ed-featured-v2__main-top h3 {
    max-width: 470px;

    margin: 0;

    font-family: "DM Serif Display", serif;

    color: var(--ed-dark);

    font-size: clamp(36px, 3vw, 53px);

    line-height: 1;

    font-weight: 400;
}


.ed-featured-v2__price {
    margin-top: 28px;

    font-size: 22px;

    font-weight: 700;
}


/* =========================================================
   DETAILS
========================================================= */

.ed-featured-v2__details {
    margin: 45px 0 0;

    border-top: 1px solid var(--ed-line);
}


.ed-featured-v2__details > div {
    min-height: 65px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    border-bottom: 1px solid var(--ed-line);
}


.ed-featured-v2__details span {
    color: var(--ed-muted);

    font-size: 8px;

    font-weight: 800;

    letter-spacing: .11em;

    text-transform: uppercase;
}


.ed-featured-v2__details strong {
    font-size: 12px;

    font-weight: 700;
}


/* =========================================================
   MAIN FOOTER
========================================================= */

.ed-featured-v2__main-footer {
    margin-top: 38px;

    display: flex;

    align-items: center;

    gap: 23px;
}


.ed-featured-v2__details-btn {
    min-height: 50px;

    padding: 0 21px;

    display: inline-flex;

    align-items: center;

    gap: 15px;

    background: var(--ed-dark);

    color: #ffffff;

    text-decoration: none;

    font-size: 9px;

    font-weight: 800;

    letter-spacing: .06em;

    text-transform: uppercase;
}


.ed-featured-v2__wa {
    color: var(--ed-dark);

    text-decoration: none;

    border-bottom: 1px solid #b8afa4;

    padding-bottom: 5px;

    font-size: 9px;

    font-weight: 800;

    letter-spacing: .05em;

    text-transform: uppercase;
}


/* =========================================================
   SECONDARY GRID
========================================================= */

.ed-featured-v2__secondary {
    margin-top: 28px;

    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 28px;
}


.ed-featured-v2__card {
    display: grid;

    grid-template-columns: minmax(280px, .85fr) 1fr;

    min-height: 305px;

    background: #ffffff;

    border: 1px solid var(--ed-line);
}


.ed-featured-v2__card-image {
    position: relative;

    overflow: hidden;
}


.ed-featured-v2__card-image img {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform .6s ease;
}


.ed-featured-v2__card:hover img {
    transform: scale(1.035);
}


.ed-featured-v2__status {
    position: absolute;

    z-index: 3;

    top: 18px;
    left: 18px;

    padding: 8px 11px;

    background: rgba(255,255,255,.94);

    font-size: 7px;

    font-weight: 800;

    letter-spacing: .1em;

    text-transform: uppercase;
}


/* =========================================================
   MINI VIDEO
========================================================= */

.ed-featured-v2__mini-video {
    position: absolute;

    z-index: 4;

    right: 17px;
    bottom: 17px;

    width: 45px;
    height: 45px;

    display: grid;

    place-items: center;

    border-radius: 50%;

    background: #ffffff;

    color: var(--ed-dark);

    box-shadow:
        0 8px 25px rgba(0,0,0,.18);

    font-size: 11px;

    transition: transform .25s ease;
}


.ed-featured-v2__mini-video:hover {
    transform: scale(1.08);
}


/* =========================================================
   SECONDARY CONTENT
========================================================= */

.ed-featured-v2__card-content {
    padding: 32px 30px;

    display: flex;

    flex-direction: column;

    justify-content: center;
}


.ed-featured-v2__card-content > span {
    color: var(--ed-muted);

    font-size: 8px;

    font-weight: 800;

    letter-spacing: .12em;

    text-transform: uppercase;
}


.ed-featured-v2__card-content h3 {
    margin: 13px 0 0;

    font-family: "DM Serif Display", serif;

    font-size: 31px;

    line-height: 1.04;

    font-weight: 400;
}


.ed-featured-v2__card-meta {
    margin-top: 33px;

    padding-top: 19px;

    border-top: 1px solid var(--ed-line);

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 18px;
}


.ed-featured-v2__card-meta strong {
    font-size: 12px;

    font-weight: 700;
}


.ed-featured-v2__card-meta a {
    color: var(--ed-dark);

    text-decoration: none;

    font-size: 8px;

    font-weight: 800;

    letter-spacing: .06em;

    text-transform: uppercase;
}


/* =========================================================
   BOTTOM
========================================================= */

.ed-featured-v2__bottom {
    margin-top: 48px;

    padding-top: 28px;

    border-top: 1px solid var(--ed-line);

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 30px;
}


.ed-featured-v2__bottom > span {
    color: var(--ed-text);

    font-size: 12px;
}


.ed-featured-v2__bottom > a {
    color: var(--ed-dark);

    text-decoration: none;

    display: inline-flex;

    align-items: center;

    gap: 12px;

    font-size: 9px;

    font-weight: 800;

    letter-spacing: .07em;

    text-transform: uppercase;
}


/* =========================================================
   VIDEO MODAL
========================================================= */

body.ed-video-open {
    overflow: hidden;
}


.ed-video-modal {
    position: fixed;

    z-index: 999999;

    inset: 0;

    visibility: hidden;

    opacity: 0;

    pointer-events: none;

    transition:
        opacity .3s ease,
        visibility .3s ease;
}


.ed-video-modal.active {
    visibility: visible;

    opacity: 1;

    pointer-events: auto;
}


.ed-video-modal__backdrop {
    position: absolute;

    inset: 0;

    background: rgba(14,14,14,.88);

    backdrop-filter: blur(9px);
    -webkit-backdrop-filter: blur(9px);
}


.ed-video-modal__dialog {
    position: absolute;

    top: 50%;
    left: 50%;

    width: min(1180px, calc(100% - 60px));

    transform:
        translate(-50%, -47%)
        scale(.97);

    transition: transform .3s ease;
}


.ed-video-modal.active .ed-video-modal__dialog {
    transform:
        translate(-50%, -50%)
        scale(1);
}


.ed-video-modal__player {
    position: relative;

    width: 100%;

    aspect-ratio: 16 / 9;

    background: #000000;

    box-shadow:
        0 35px 100px rgba(0,0,0,.45);
}


.ed-video-modal__player iframe {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;
}


.ed-video-modal__close {
    position: absolute;

    z-index: 6;

    top: -52px;
    right: 0;

    width: 42px;
    height: 42px;

    display: grid;

    place-items: center;

    border: 1px solid rgba(255,255,255,.35);

    background: transparent;

    color: #ffffff;

    cursor: pointer;

    font-size: 27px;

    font-family: Arial, sans-serif;

    line-height: 1;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1100px) {

    .ed-featured-v2__container {
        width: min(100% - 50px, 1100px);
    }


    .ed-featured-v2__main {
        grid-template-columns: 1.1fr .9fr;
    }


    .ed-featured-v2__card {
        grid-template-columns: 1fr;

        grid-template-rows: 270px auto;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 850px) {

    .ed-featured-v2 {
        padding: 80px 0;
    }


    .ed-featured-v2__container {
        width: calc(100% - 36px);
    }


    .ed-featured-v2__header {
        display: block;

        margin-bottom: 43px;
    }


    .ed-featured-v2__intro {
        margin-top: 27px;
    }


    .ed-featured-v2__main {
        grid-template-columns: 1fr;
    }


    .ed-featured-v2__main-image {
        min-height: 500px;
    }


    .ed-featured-v2__secondary {
        grid-template-columns: 1fr;
    }


    .ed-featured-v2__card {
        grid-template-columns: .9fr 1.1fr;

        grid-template-rows: auto;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 600px) {

    .ed-featured-v2__heading h2 {
        font-size: clamp(48px, 14vw, 65px);
    }


    .ed-featured-v2__main-image {
        min-height: 380px;
    }


    .ed-featured-v2__main-content {
        padding: 30px 21px;
    }


    .ed-featured-v2__main-top h3 {
        font-size: 37px;
    }


    .ed-featured-v2__main-footer {
        align-items: flex-start;

        flex-direction: column;
    }


    .ed-featured-v2__main .ed-video-trigger {
        left: 17px;
        bottom: 17px;

        padding-right: 15px;
    }


    .ed-video-trigger__icon {
        width: 41px;
        height: 41px;
    }


    .ed-featured-v2__card {
        grid-template-columns: 1fr;

        grid-template-rows: 260px auto;
    }


    .ed-featured-v2__bottom {
        align-items: flex-start;

        flex-direction: column;
    }


    .ed-video-modal__dialog {
        width: calc(100% - 24px);
    }


    .ed-video-modal__close {
        top: -48px;
    }

}