/* =========================================================
   ELAINE DING PROPERTY
   PAGE 03 — SINGLE PROPERTY
   SECTION 01 — PROPERTY HERO
========================================================= */

html,body.edpm-property-template{margin:0!important;padding:0!important;width:100%!important;max-width:none!important}.edpm-property-template .wp-site-blocks,.edpm-property-template main.edpm-single-property,.edpm-single-property{width:100%!important;max-width:none!important;margin:0!important;padding:0!important;overflow:hidden}.edpm-property-template>header:not(.ed-header),.edpm-property-template>footer:not(.ed-footer){display:none!important}.edpm-single-property>section{width:100%!important;max-width:none!important;margin-left:0!important;margin-right:0!important}.edpm-lightbox{position:fixed;inset:0;z-index:999999;display:none;align-items:center;justify-content:center;padding:40px;background:rgba(10,10,10,.94)}.edpm-lightbox.active{display:flex}.edpm-lightbox img{max-width:calc(100vw - 140px);max-height:calc(100vh - 80px);object-fit:contain}.edpm-lightbox button{position:absolute;border:0;background:rgba(255,255,255,.14);color:#fff;cursor:pointer}.edpm-lightbox__close{right:24px;top:20px;width:46px;height:46px;border-radius:50%;font-size:30px}.edpm-lightbox__prev,.edpm-lightbox__next{top:50%;width:48px;height:60px;font-size:24px;transform:translateY(-50%)}.edpm-lightbox__prev{left:22px}.edpm-lightbox__next{right:22px}.edpm-lightbox-open{overflow:hidden}.edpm-gallery-trigger{cursor:pointer}.edpm-image-placeholder{display:block;width:100%;height:100%;min-height:320px;background:#eee8df}@media(max-width:767px){.edpm-lightbox{padding:65px 12px 30px}.edpm-lightbox img{max-width:100%;max-height:calc(100vh - 100px)}.edpm-lightbox__prev{left:8px}.edpm-lightbox__next{right:8px}}

.ed-single-hero,
.ed-single-hero * {
    box-sizing: border-box;
}

.ed-single-hero {
    --ed-bg: #faf8f5;
    --ed-white: #ffffff;
    --ed-dark: #1c1c1c;
    --ed-text: #625e58;
    --ed-muted: #958d83;
    --ed-line: #ddd6cc;
    --ed-accent: #957d62;

    width: 100%;

    padding: 82px 0 45px;

    background: var(--ed-bg);

    color: var(--ed-dark);

    font-family: "Manrope", sans-serif;
}


/* =========================================================
   CONTAINER
========================================================= */

.ed-single-hero__container {
    width: min(1580px, calc(100% - 90px));

    margin: 0 auto;
}


/* =========================================================
   TOP
========================================================= */

.ed-single-hero__top {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 30px;

    margin-bottom: 34px;
}

.ed-single-hero__breadcrumbs {
    display: flex;

    align-items: center;

    flex-wrap: wrap;

    gap: 9px;

    color: var(--ed-muted);

    font-size: 8px;

    font-weight: 700;

    letter-spacing: .06em;

    text-transform: uppercase;
}

.ed-single-hero__breadcrumbs a {
    color: var(--ed-muted);

    text-decoration: none;
}

.ed-single-hero__breadcrumbs strong {
    color: var(--ed-dark);

    font-weight: 800;
}

.ed-single-hero__status {
    padding: 9px 14px;

    background: var(--ed-dark);

    color: #ffffff;

    font-size: 8px;

    font-weight: 800;

    letter-spacing: .11em;

    text-transform: uppercase;
}


/* =========================================================
   HEADING
========================================================= */

.ed-single-hero__heading {
    display: grid;

    grid-template-columns:
        minmax(0, 1.25fr)
        minmax(260px, .4fr);

    gap: 65px;

    align-items: end;

    margin-bottom: 43px;
}

.ed-single-hero__location {
    display: block;

    margin-bottom: 16px;

    color: var(--ed-muted);

    font-size: 9px;

    font-weight: 800;

    letter-spacing: .13em;

    text-transform: uppercase;
}

.ed-single-hero__heading h1 {
    max-width: 900px;

    margin: 0;

    font-family: "DM Serif Display", serif;

    font-size: clamp(60px, 5.8vw, 104px);

    line-height: .93;

    font-weight: 400;

    letter-spacing: -.05em;
}

.ed-single-hero__heading h1 em {
    display: block;

    color: var(--ed-accent);

    font-weight: 400;
}

.ed-single-hero__heading-right {
    padding-bottom: 7px;

    text-align: right;
}

.ed-single-hero__price-label {
    display: block;

    margin-bottom: 8px;

    color: var(--ed-muted);

    font-size: 8px;

    font-weight: 800;

    letter-spacing: .12em;

    text-transform: uppercase;
}

.ed-single-hero__price {
    display: block;

    font-family: "DM Serif Display", serif;

    font-size: 34px;

    line-height: 1;

    font-weight: 400;
}


/* =========================================================
   GALLERY
========================================================= */

.ed-single-hero__gallery {
    display: grid;

    grid-template-columns:
        minmax(0, 1.45fr)
        minmax(330px, .55fr);

    gap: 15px;
}

.ed-single-hero__main-image {
    position: relative;

    min-height: 610px;

    overflow: hidden;

    background: #ddd;
}

.ed-single-hero__main-image img {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform .7s ease;
}

.ed-single-hero__main-image:hover img {
    transform: scale(1.025);
}

.ed-single-hero__main-overlay {
    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            180deg,
            transparent 52%,
            rgba(0,0,0,.43) 100%
        );
}


/* =========================================================
   VIDEO
========================================================= */

.ed-single-hero__video {
    position: absolute;

    z-index: 4;

    left: 25px;
    bottom: 24px;

    display: inline-flex;

    align-items: center;

    gap: 13px;

    padding: 9px 19px 9px 9px;

    border: 0;

    background: rgba(255,255,255,.96);

    color: var(--ed-dark);

    cursor: pointer;

    font-family: "Manrope", sans-serif;

    box-shadow:
        0 14px 38px rgba(0,0,0,.14);
}

.ed-single-hero__video > span {
    width: 46px;
    height: 46px;

    display: grid;

    place-items: center;

    background: var(--ed-dark);

    color: #ffffff;

    font-size: 10px;
}

.ed-single-hero__video div {
    text-align: left;

    font-size: 10px;

    font-weight: 800;
}

.ed-single-hero__video small {
    display: block;

    margin-bottom: 4px;

    color: var(--ed-muted);

    font-size: 7px;

    font-weight: 800;

    letter-spacing: .12em;

    text-transform: uppercase;
}


/* =========================================================
   SIDE GALLERY
========================================================= */

.ed-single-hero__side-gallery {
    display: grid;

    grid-template-rows: 1fr 1fr;

    gap: 15px;
}

.ed-single-hero__side-gallery > div {
    position: relative;

    min-height: 0;

    overflow: hidden;

    background: #ddd;
}

.ed-single-hero__side-gallery img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    transition: transform .6s ease;
}

.ed-single-hero__side-gallery > div:hover img {
    transform: scale(1.035);
}

.ed-single-hero__gallery-button {
    position: absolute;

    right: 17px;
    bottom: 17px;

    min-height: 42px;

    padding: 0 15px;

    border: 0;

    background: rgba(255,255,255,.95);

    color: var(--ed-dark);

    cursor: pointer;

    display: inline-flex;

    align-items: center;

    gap: 11px;

    font-family: "Manrope", sans-serif;

    font-size: 8px;

    font-weight: 800;

    letter-spacing: .06em;

    text-transform: uppercase;
}


/* =========================================================
   INFO BAR
========================================================= */

.ed-single-hero__info {
    margin-top: 16px;

    padding: 26px 28px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 35px;

    background: #ffffff;

    border: 1px solid var(--ed-line);
}

.ed-single-hero__specs {
    flex: 1;

    display: grid;

    grid-template-columns: repeat(5, 1fr);
}

.ed-single-hero__specs > div {
    padding: 0 22px;

    border-right: 1px solid var(--ed-line);
}

.ed-single-hero__specs > div:first-child {
    padding-left: 0;
}

.ed-single-hero__specs > div:last-child {
    border-right: 0;
}

.ed-single-hero__specs span {
    display: block;

    margin-bottom: 7px;

    color: var(--ed-muted);

    font-size: 7px;

    font-weight: 800;

    letter-spacing: .11em;

    text-transform: uppercase;
}

.ed-single-hero__specs strong {
    display: block;

    font-size: 11px;

    font-weight: 700;
}


/* =========================================================
   ACTIONS
========================================================= */

.ed-single-hero__actions {
    flex-shrink: 0;

    display: flex;

    align-items: center;

    gap: 20px;
}

.ed-single-hero__primary {
    min-height: 51px;

    padding: 0 20px;

    display: inline-flex;

    align-items: center;

    gap: 14px;

    background: var(--ed-dark);

    color: #ffffff;

    text-decoration: none;

    font-size: 8px;

    font-weight: 800;

    letter-spacing: .06em;

    text-transform: uppercase;
}

.ed-single-hero__secondary {
    color: var(--ed-dark);

    text-decoration: none;

    padding-bottom: 4px;

    border-bottom: 1px solid #afa69a;

    font-size: 8px;

    font-weight: 800;

    letter-spacing: .06em;

    text-transform: uppercase;
}


/* =========================================================
   VIDEO MODAL
========================================================= */

body.ed-single-video-open {
    overflow: hidden;
}

.ed-single-video-modal {
    position: fixed;

    z-index: 999999;

    inset: 0;

    visibility: hidden;

    opacity: 0;

    pointer-events: none;

    transition:
        opacity .3s ease,
        visibility .3s ease;
}

.ed-single-video-modal.active {
    visibility: visible;

    opacity: 1;

    pointer-events: auto;
}

.ed-single-video-modal__backdrop {
    position: absolute;

    inset: 0;

    background: rgba(12,12,12,.9);

    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.ed-single-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-single-video-modal.active
.ed-single-video-modal__dialog {
    transform:
        translate(-50%, -50%)
        scale(1);
}

.ed-single-video-modal__player {
    position: relative;

    width: 100%;

    aspect-ratio: 16 / 9;

    background: #000;
}

.ed-single-video-modal__player iframe {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;
}

.ed-single-video-modal__close {
    position: absolute;

    z-index: 5;

    top: -52px;
    right: 0;

    width: 42px;
    height: 42px;

    border: 1px solid rgba(255,255,255,.35);

    background: transparent;

    color: #ffffff;

    cursor: pointer;

    font-size: 27px;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1100px) {

    .ed-single-hero__container {
        width: min(100% - 50px, 1100px);
    }

    .ed-single-hero__gallery {
        grid-template-columns: 1.15fr .85fr;
    }

    .ed-single-hero__main-image {
        min-height: 550px;
    }

    .ed-single-hero__info {
        align-items: flex-start;

        flex-direction: column;
    }

    .ed-single-hero__specs {
        width: 100%;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 820px) {

    .ed-single-hero {
        padding-top: 65px;
    }

    .ed-single-hero__container {
        width: calc(100% - 36px);
    }

    .ed-single-hero__heading {
        display: block;
    }

    .ed-single-hero__heading-right {
        margin-top: 22px;

        text-align: left;
    }

    .ed-single-hero__gallery {
        grid-template-columns: 1fr;
    }

    .ed-single-hero__main-image {
        min-height: 480px;
    }

    .ed-single-hero__side-gallery {
        grid-template-columns: repeat(2, 1fr);

        grid-template-rows: 240px;
    }

    .ed-single-hero__specs {
        grid-template-columns: repeat(3, 1fr);

        row-gap: 22px;
    }

    .ed-single-hero__specs > div {
        border-right: 0;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 520px) {

    .ed-single-hero__top {
        align-items: flex-start;

        flex-direction: column;
    }

    .ed-single-hero__heading h1 {
        font-size: clamp(52px, 15vw, 70px);
    }

    .ed-single-hero__main-image {
        min-height: 390px;
    }

    .ed-single-hero__side-gallery {
        grid-template-columns: 1fr;

        grid-template-rows: repeat(2, 220px);
    }

    .ed-single-hero__specs {
        grid-template-columns: repeat(2, 1fr);
    }

    .ed-single-hero__actions {
        width: 100%;

        align-items: flex-start;

        flex-direction: column;
    }

    .ed-single-hero__primary {
        width: 100%;

        justify-content: space-between;
    }

    .ed-single-video-modal__dialog {
        width: calc(100% - 24px);
    }

}
