/* =========================================================
   ELAINE DING PROPERTY
   PAGE 02 — SECTION 03
   PROPERTY LISTING GRID
========================================================= */

.ed-property-grid__items--list {
    grid-template-columns: 1fr !important;
}

.ed-property-grid__items--list .ed-property-card {
    display: grid;
    grid-template-columns: minmax(280px, 38%) 1fr;
}

.ed-property-grid__items--list .ed-property-card__media {
    min-height: 100%;
}

.edpm-no-results {
    grid-column: 1 / -1;
    padding: 50px 0;
    color: #625e58;
    text-align: center;
}

@media (max-width: 767px) {
    .ed-property-grid__items--list .ed-property-card {
        display: block;
    }
}

.ed-property-grid,
.ed-property-grid * {
    box-sizing: border-box;
}

.ed-property-grid {
    --ed-white: #ffffff;
    --ed-bg: #faf8f5;
    --ed-dark: #1c1c1c;
    --ed-text: #625e58;
    --ed-muted: #968e84;
    --ed-line: #ddd6cc;
    --ed-accent: #957d62;

    width: 100%;

    padding: 45px 0 115px;

    background: #ffffff;

    color: var(--ed-dark);

    font-family: "Manrope", sans-serif;
}


/* =========================================================
   CONTAINER
========================================================= */

.ed-property-grid__container {
    width: min(1580px, calc(100% - 90px));

    margin: 0 auto;
}


/* =========================================================
   GRID
========================================================= */

.ed-property-grid__items {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 30px 25px;
}


/* =========================================================
   CARD
========================================================= */

.ed-property-card {
    min-width: 0;

    background: var(--ed-white);

    border: 1px solid var(--ed-line);

    transition:
        transform .3s ease,
        box-shadow .3s ease,
        border-color .3s ease;
}

.ed-property-card:hover {
    transform: translateY(-4px);

    border-color: #c8bcae;

    box-shadow:
        0 24px 55px rgba(59, 50, 41, .09);
}


/* =========================================================
   MEDIA
========================================================= */

.ed-property-card__media {
    position: relative;

    height: 340px;

    overflow: hidden;

    background: #e3dfd9;
}

.ed-property-card__media > a {
    display: block;

    width: 100%;
    height: 100%;
}

.ed-property-card__media img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    transition:
        transform .65s ease;
}

.ed-property-card:hover .ed-property-card__media img {
    transform: scale(1.035);
}


/* =========================================================
   BADGES
========================================================= */

.ed-property-card__badges {
    position: absolute;

    z-index: 3;

    top: 17px;
    left: 17px;

    display: flex;

    flex-wrap: wrap;

    gap: 7px;
}

.ed-property-card__badge {
    padding: 8px 11px;

    background: rgba(255,255,255,.94);

    color: var(--ed-dark);

    font-size: 7px;

    font-weight: 800;

    letter-spacing: .1em;

    text-transform: uppercase;
}

.ed-property-card__badge--dark {
    background: var(--ed-dark);

    color: #ffffff;
}


/* =========================================================
   VIDEO BUTTON
========================================================= */

.ed-property-card__video {
    position: absolute;

    z-index: 4;

    right: 17px;
    bottom: 17px;

    min-height: 40px;

    padding: 0 14px 0 9px;

    border: 0;

    background: rgba(255,255,255,.96);

    color: var(--ed-dark);

    cursor: pointer;

    display: inline-flex;

    align-items: center;

    gap: 9px;

    box-shadow:
        0 9px 25px rgba(0,0,0,.14);

    font-family: "Manrope", sans-serif;

    font-size: 8px;

    font-weight: 800;

    letter-spacing: .05em;

    text-transform: uppercase;
}

.ed-property-card__video span {
    width: 26px;
    height: 26px;

    display: grid;

    place-items: center;

    border-radius: 50%;

    background: var(--ed-dark);

    color: #ffffff;

    font-size: 7px;
}


/* =========================================================
   BODY
========================================================= */

.ed-property-card__body {
    padding: 25px 24px 24px;
}

.ed-property-card__location {
    display: block;

    margin-bottom: 10px;

    color: var(--ed-muted);

    font-size: 8px;

    font-weight: 800;

    letter-spacing: .12em;

    text-transform: uppercase;
}

.ed-property-card__body h3 {
    min-height: 59px;

    margin: 0;

    font-family: "DM Serif Display", serif;

    font-size: 29px;

    line-height: 1.03;

    font-weight: 400;
}

.ed-property-card__body h3 a {
    color: var(--ed-dark);

    text-decoration: none;
}

.ed-property-card__price {
    margin-top: 18px;

    color: var(--ed-dark);

    font-size: 19px;

    font-weight: 800;
}

.ed-property-card__price small {
    color: var(--ed-muted);

    font-size: 9px;

    font-weight: 700;
}


/* =========================================================
   SPECS
========================================================= */

.ed-property-card__specs {
    margin-top: 25px;

    padding: 19px 0;

    display: grid;

    grid-template-columns: repeat(4, 1fr);

    border-top: 1px solid var(--ed-line);
    border-bottom: 1px solid var(--ed-line);
}

.ed-property-card__specs > div {
    padding: 0 11px;

    border-right: 1px solid var(--ed-line);
}

.ed-property-card__specs > div:first-child {
    padding-left: 0;
}

.ed-property-card__specs > div:last-child {
    padding-right: 0;

    border-right: 0;
}

.ed-property-card__specs span {
    display: block;

    margin-bottom: 6px;

    color: var(--ed-muted);

    font-size: 6px;

    font-weight: 800;

    letter-spacing: .1em;
}

.ed-property-card__specs strong {
    display: block;

    font-size: 10px;

    line-height: 1.3;

    font-weight: 700;
}


/* =========================================================
   FOOTER
========================================================= */

.ed-property-card__footer {
    margin-top: 22px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 18px;
}

.ed-property-card__view {
    min-height: 43px;

    padding: 0 16px;

    display: inline-flex;

    align-items: center;

    gap: 11px;

    background: var(--ed-dark);

    color: #ffffff;

    text-decoration: none;

    font-size: 8px;

    font-weight: 800;

    letter-spacing: .06em;

    text-transform: uppercase;
}

.ed-property-card__wa {
    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;
}


/* =========================================================
   PAGINATION
========================================================= */

.ed-property-grid__pagination {
    margin-top: 70px;

    padding-top: 35px;

    border-top: 1px solid var(--ed-line);

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 7px;
}

.ed-property-grid__pagination a,
.ed-property-grid__pagination button {
    width: 43px;
    height: 43px;

    display: grid;

    place-items: center;

    border: 1px solid var(--ed-line);

    background: #ffffff;

    color: var(--ed-dark);

    text-decoration: none;

    cursor: pointer;

    font-family: "Manrope", sans-serif;

    font-size: 9px;

    font-weight: 800;
}

.ed-property-grid__pagination a.active {
    background: var(--ed-dark);

    border-color: var(--ed-dark);

    color: #ffffff;
}

.ed-property-grid__pagination button:disabled {
    opacity: .35;

    cursor: default;
}

.ed-property-grid__pagination span {
    padding: 0 7px;

    color: var(--ed-muted);
}


/* =========================================================
   VIDEO MODAL
========================================================= */

body.ed-property-video-open {
    overflow: hidden;
}

.ed-property-video-modal {
    position: fixed;

    z-index: 999999;

    inset: 0;

    visibility: hidden;

    opacity: 0;

    pointer-events: none;

    transition:
        opacity .3s ease,
        visibility .3s ease;
}

.ed-property-video-modal.active {
    visibility: visible;

    opacity: 1;

    pointer-events: auto;
}

.ed-property-video-modal__backdrop {
    position: absolute;

    inset: 0;

    background: rgba(12,12,12,.9);

    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.ed-property-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-property-video-modal.active
.ed-property-video-modal__dialog {
    transform:
        translate(-50%, -50%)
        scale(1);
}

.ed-property-video-modal__player {
    position: relative;

    width: 100%;

    aspect-ratio: 16 / 9;

    background: #000000;

    box-shadow:
        0 35px 100px rgba(0,0,0,.45);
}

.ed-property-video-modal__player iframe {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;
}

.ed-property-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;

    line-height: 1;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1180px) {

    .ed-property-grid__container {
        width: min(100% - 50px, 1180px);
    }

    .ed-property-grid__items {
        grid-template-columns: repeat(2, 1fr);
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 720px) {

    .ed-property-grid {
        padding-bottom: 80px;
    }

    .ed-property-grid__container {
        width: calc(100% - 36px);
    }

    .ed-property-grid__items {
        grid-template-columns: 1fr;

        gap: 22px;
    }

    .ed-property-card__media {
        height: 350px;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 500px) {

    .ed-property-card__media {
        height: 290px;
    }

    .ed-property-card__body {
        padding: 22px 18px;
    }

    .ed-property-card__body h3 {
        min-height: auto;

        font-size: 27px;
    }

    .ed-property-card__specs {
        grid-template-columns: repeat(2, 1fr);

        gap: 15px 0;
    }

    .ed-property-card__specs > div {
        padding: 8px 0;

        border-right: 0;
    }

    .ed-property-card__footer {
        align-items: flex-start;

        flex-direction: column;
    }

    .ed-property-card__view {
        width: 100%;

        justify-content: space-between;
    }

    .ed-property-video-modal__dialog {
        width: calc(100% - 24px);
    }

}
