/* =========================================================
   ELAINE DING PROPERTY
   PAGE 03 — SECTION 04
   VIDEO PROPERTY TOUR
========================================================= */

.ed-single-tour,
.ed-single-tour * {
    box-sizing: border-box;
}

.ed-single-tour {
    --ed-bg: #f6f2ec;
    --ed-white: #ffffff;
    --ed-dark: #1c1c1c;
    --ed-text: #625e58;
    --ed-muted: #948c82;
    --ed-line: #ddd6cc;
    --ed-accent: #957d62;

    width: 100%;

    padding: 110px 0;

    background:
        linear-gradient(
            135deg,
            #f9f7f3 0%,
            var(--ed-bg) 100%
        );

    color: var(--ed-dark);

    font-family: "Manrope", sans-serif;
}


/* =========================================================
   CONTAINER
========================================================= */

.ed-single-tour__container {
    width: min(1580px, calc(100% - 90px));

    margin: 0 auto;

    display: grid;

    grid-template-columns:
        minmax(0, .72fr)
        minmax(540px, 1.28fr);

    gap: 85px;

    align-items: center;
}


/* =========================================================
   CONTENT
========================================================= */

.ed-single-tour__content {
    max-width: 700px;
}

.ed-single-tour__eyebrow {
    display: flex;

    align-items: center;

    gap: 14px;

    margin-bottom: 22px;

    color: #817970;

    font-size: 10px;

    font-weight: 800;

    letter-spacing: .15em;

    text-transform: uppercase;
}

.ed-single-tour__eyebrow span {
    color: var(--ed-dark);
}

.ed-single-tour__eyebrow i {
    width: 45px;
    height: 1px;

    background: #aaa095;
}

.ed-single-tour__content h2 {
    margin: 0;

    font-family: "DM Serif Display", serif;

    font-size: clamp(55px, 4.8vw, 84px);

    line-height: .96;

    font-weight: 400;

    letter-spacing: -.045em;
}

.ed-single-tour__content h2 em {
    display: block;

    color: var(--ed-accent);

    font-weight: 400;
}

.ed-single-tour__content > p {
    max-width: 610px;

    margin: 30px 0 0;

    color: var(--ed-text);

    font-size: 14px;

    line-height: 1.85;
}


/* =========================================================
   META
========================================================= */

.ed-single-tour__meta {
    margin-top: 45px;

    border-top: 1px solid var(--ed-line);
}

.ed-single-tour__meta > div {
    min-height: 68px;

    display: grid;

    grid-template-columns: 130px 1fr;

    align-items: center;

    gap: 20px;

    border-bottom: 1px solid var(--ed-line);
}

.ed-single-tour__meta span {
    color: var(--ed-muted);

    font-size: 8px;

    font-weight: 800;

    letter-spacing: .11em;

    text-transform: uppercase;
}

.ed-single-tour__meta strong {
    font-size: 11px;

    font-weight: 700;
}


/* =========================================================
   ACTIONS
========================================================= */

.ed-single-tour__actions {
    margin-top: 36px;

    display: flex;

    align-items: center;

    flex-wrap: wrap;

    gap: 23px;
}

.ed-single-tour__play-btn {
    min-height: 52px;

    padding: 0 21px;

    border: 0;

    background: var(--ed-dark);

    color: #ffffff;

    cursor: pointer;

    display: inline-flex;

    align-items: center;

    gap: 15px;

    font-family: "Manrope", sans-serif;

    font-size: 9px;

    font-weight: 800;

    letter-spacing: .06em;

    text-transform: uppercase;
}

.ed-single-tour__actions a {
    color: var(--ed-dark);

    text-decoration: none;

    padding-bottom: 5px;

    border-bottom: 1px solid #aaa095;

    font-size: 9px;

    font-weight: 800;

    letter-spacing: .05em;

    text-transform: uppercase;
}


/* =========================================================
   VIDEO VISUAL
========================================================= */

.ed-single-tour__visual {
    position: relative;
}

.ed-single-tour__video {
    position: relative;

    width: 100%;

    min-height: 620px;

    padding: 0;

    border: 0;

    background: #ddd;

    cursor: pointer;

    overflow: hidden;

    text-align: left;

    box-shadow:
        0 30px 75px rgba(54,46,38,.12);
}

.ed-single-tour__video img {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform .7s ease;
}

.ed-single-tour__video:hover img {
    transform: scale(1.035);
}

.ed-single-tour__overlay {
    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            180deg,
            rgba(0,0,0,.08) 20%,
            rgba(0,0,0,.08) 55%,
            rgba(0,0,0,.55) 100%
        );
}


/* =========================================================
   VIDEO TOP
========================================================= */

.ed-single-tour__video-top {
    position: absolute;

    z-index: 3;

    top: 24px;
    left: 25px;
    right: 25px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    color: rgba(255,255,255,.88);

    font-size: 8px;

    font-weight: 800;

    letter-spacing: .12em;

    text-transform: uppercase;
}


/* =========================================================
   PLAY
========================================================= */

.ed-single-tour__video-play {
    position: absolute;

    z-index: 4;

    top: 50%;
    left: 50%;

    transform: translate(-50%, -50%);

    width: 88px;
    height: 88px;

    display: grid;

    place-items: center;

    border-radius: 50%;

    background: rgba(255,255,255,.95);

    color: var(--ed-dark);

    box-shadow:
        0 18px 45px rgba(0,0,0,.18);

    transition: transform .25s ease;
}

.ed-single-tour__video:hover
.ed-single-tour__video-play {
    transform:
        translate(-50%, -50%)
        scale(1.07);
}

.ed-single-tour__video-play span {
    margin-left: 4px;

    font-size: 18px;
}


/* =========================================================
   VIDEO BOTTOM
========================================================= */

.ed-single-tour__video-bottom {
    position: absolute;

    z-index: 4;

    left: 28px;
    right: 28px;
    bottom: 27px;

    color: #ffffff;
}

.ed-single-tour__video-bottom span {
    display: block;

    margin-bottom: 8px;

    color: rgba(255,255,255,.68);

    font-size: 8px;

    font-weight: 800;

    letter-spacing: .13em;

    text-transform: uppercase;
}

.ed-single-tour__video-bottom strong {
    display: block;

    font-family: "DM Serif Display", serif;

    font-size: 29px;

    line-height: 1.1;

    font-weight: 400;
}


/* =========================================================
   MODAL
========================================================= */

body.ed-tour-modal-open {
    overflow: hidden;
}

.ed-single-tour-modal {
    position: fixed;

    z-index: 999999;

    inset: 0;

    visibility: hidden;

    opacity: 0;

    pointer-events: none;

    transition:
        opacity .3s ease,
        visibility .3s ease;
}

.ed-single-tour-modal.active {
    visibility: visible;

    opacity: 1;

    pointer-events: auto;
}

.ed-single-tour-modal__backdrop {
    position: absolute;

    inset: 0;

    background: rgba(10,10,10,.9);

    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.ed-single-tour-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-tour-modal.active
.ed-single-tour-modal__dialog {
    transform:
        translate(-50%, -50%)
        scale(1);
}

.ed-single-tour-modal__player {
    position: relative;

    width: 100%;

    aspect-ratio: 16 / 9;

    background: #000;

    box-shadow:
        0 35px 100px rgba(0,0,0,.45);
}

.ed-single-tour-modal__player iframe {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;
}

.ed-single-tour-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-tour__container {
        width: min(100% - 50px, 1100px);

        grid-template-columns: .8fr 1.2fr;

        gap: 55px;
    }

    .ed-single-tour__video {
        min-height: 540px;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 820px) {

    .ed-single-tour {
        padding: 80px 0;
    }

    .ed-single-tour__container {
        width: calc(100% - 36px);

        display: block;
    }

    .ed-single-tour__visual {
        margin-top: 55px;
    }

    .ed-single-tour__video {
        min-height: 480px;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 520px) {

    .ed-single-tour__content h2 {
        font-size: clamp(48px, 14vw, 64px);
    }

    .ed-single-tour__meta > div {
        grid-template-columns: 1fr;

        gap: 6px;

        padding: 15px 0;
    }

    .ed-single-tour__actions {
        align-items: flex-start;

        flex-direction: column;
    }

    .ed-single-tour__play-btn {
        width: 100%;

        justify-content: space-between;
    }

    .ed-single-tour__video {
        min-height: 380px;
    }

    .ed-single-tour__video-play {
        width: 68px;
        height: 68px;
    }

    .ed-single-tour__video-bottom strong {
        font-size: 24px;
    }

    .ed-single-tour-modal__dialog {
        width: calc(100% - 24px);
    }

}