.es-price-container {
    .es-price {
        white-space: nowrap;
    }
}

.es-single {
    font-size: 10px;

    .es-single__basic {
        .es-control-wrap {
            text-align: right;

            .es-btn--request-info {
                margin-top: 24px;
            }
        }
    }

    .es-dymanic-content {
        font-size: 13px;
        line-height: 1.8em;
        margin: 30px 0;
    }

    &.es-single--single-left-slider {
        .property-title {
            margin: 0 0 12px;
        }

        .es-mobile-gallery-wrap {
            .es-control {
                display: none;
            }
        }

        .es-slider {
            .es-control {
                display: none;
            }
        }

        .es-single__left-slider {
            display: flex;
            flex-wrap: wrap;

            .es-slider {
                flex: 0 0 60%;
                min-width: 0;
                margin-right: 30px;
            }

            .es-listing__meta {
                margin-bottom: 30px;
            }

            .es-price-container {
                display: flex;
                flex-wrap: wrap;
                margin-bottom: 15px;

                .es-price {
                    order: 2;
                    flex: 1 0 100%;
                }

                .es-badge {
                    order: 1;
                    margin-bottom: 10px;
                }
            }
        }
    }

    .es-single__address-container {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        //margin: 0 -15px 20px -15px;
        align-items: center;
        margin-bottom: 17px;

        .es-address, .es-listing__terms {
            margin: 0 0 5px;
        }
    }

    .property-title {
        font-size: 2.6em;
        font-weight: 600;
        line-height: 1.7em;
        color: #263238;
        margin: 0 0 16px;
    }

    .es-price {
        font-size: 3.2em;
        font-weight: 500;
    }

    .es-address {
        font-weight: 600;
        color: #4C5A67;
        display: block;
        margin-bottom: 24px;
    }

    &.es-single--single-slider {
        .es-mobile-gallery-wrap {
            .es-control {
                display: none;
            }
        }

        .property-title {
            margin: 0 0 15px;
        }

        .es-address {
            margin-bottom: 20px;
        }
    }

    .es-single__header {
        display: flex;
        flex-wrap: wrap;
        width: 100%;

        .es-single__header-terms {
            flex: 1 0 100%;
            margin-bottom: 13px;
        }

        .es-single__header-left {
            flex: 1;
            margin-right: 20px;
        }

        .es-single__header-right {
            flex: 0;
            text-align: right;
            position: relative;
            white-space: nowrap;

            .es-price {
                position: relative;
                top: -5px;
            }

            .es-price-badge {
                position: absolute;
                top: -40px;
                right: 0;
            }

            .es-btn--request-info {
                margin-top: 10px;
            }
        }
    }
}

.es-property-section {
    margin: 40px 0;

    .es-property-section__title {
        font-size: 2.2em;
        color: #4e5a6a;
        line-height: 1.5em;
        font-weight: 500;
        letter-spacing: .2px;
        display: block;
        position: relative;
        overflow: hidden;
        margin: 0;

        &:after {
            width: 100%;
            height: 2px;
            content: '';
            display: inline-block;
            background: #EFF3F5;
            position: absolute;
            top: 15px;
            margin-left: 20px;
        }
    }

    .es-property-fields {
        margin: 0;
        padding: 0;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
        grid-column-gap: 30px;

        &, .es-property-field {
            list-style: none;
            padding: 0;
        }

        .es-property-field {
            font-weight: 400;
            font-size: 1.4em;
            line-height: 1.7em;
            color: #263238;
            margin: 5px 0 20px;

            .es-property-field__terms {
                a {
                    line-height: 2.3;
                }

                .es-icon {
                    font-size: 1.8em;
                    color: #B0BEC5;
                    vertical-align: middle;
                    margin-right: 0.6em;
                    position: relative;
                    top: -2px;
                }

                &.es-property-field__terms--icons {
                    a {
                        line-height: 2.9;
                    }
                }
            }

            b {
                font-weight: 400;
            }

            .es-property-field__label {
                font-weight: 700;
                display: block;
                margin-bottom: 9px;
            }

            .es-property-field__value {
                font-weight: 400;
                display: block;
            }

            .es-property-field__sep {
                display: none;
            }

            &.es-property-field--post_content, &.es-property-field--document, &.es-property-field--image, &.es-property-field--video {
                flex: 1 0 100%;
                grid-column: 1/3;

                .es-property-field__label {
                    display: none;
                }
            }
        }
    }

    &.es-property_section--features {
        .es-property-fields {
            .es-property-field {
                .es-property-field__label {
                    margin-bottom: 6px;
                }
            }
        }

        .es-property-field__terms {
            a {
                display: table;
            }

            a:nth-child(n+5) {
                display: none;
            }
        }

        &.es-property_section--features--show-all {
            a:nth-child(n+5) {
                display: table;
            }
        }
    }

    &.es-property_section--basic-facts {
        .es-property-fields {
            .es-property-field {
                margin-bottom: 4px;

                .es-property-field__label {
                    font-weight: 400;
                    display: inline;
                    margin-bottom: 0;
                }

                .es-property-field__value {
                    display: inline;
                }

                .es-property-field__sep {
                    display: inline;
                }
            }
        }
    }

    .es-property-section__content {
        padding: 19px 0 0;
    }

    &.es-property_section--location {
        .es-property-section__content {
            padding: 25px 0 0;
        }
    }

    &.es-property_section--request_form {
        .es-property-section__content {
            padding: 20px 5% 20px;
            margin-top: 20px;
        }

        .es-property-fields {
            text-align: center;

            .es-property-field {
                &, a {
                    color: #fff;
                }
            }
        }
    }
}

.es-property-map {
    height: 350px;

    .es-properties__map, .es-map {
        height: inherit;
    }

    & + .es-property-fields {
        margin-top: 20px;
    }
}

.es-property-field__value a {
    color: #263238;
    //line-height: 2.3;
}

.es-documents {
    display: grid;
    font-size: 10px;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    grid-column-gap: 30px;
    grid-row-gap: 10px;

    .es-document {
        display: flex;
        align-items: center;
        margin: 10px 0;
        background: #FFFFFF;
        box-shadow: 0 1px 4px rgba(38, 50, 56, 0.2);
        padding: 25px;
        font-size: 1.2em;
        line-height: 1.6em;
        color: #4C5A67;

        &:hover {
            box-shadow: 0 2px 8px rgba(38, 50, 56, 0.15);
        }

        .es-document__info {
            flex: 1;
        }

        .es-document__title {
            margin: 0 0 5px;
            display: block;

            &.es-document__title--caption {
                font-weight: 700;
                color: #263238;
            }
        }

        a {
            text-decoration: none;
            border: 0;
            outline: none;
        }

        .es-icon_file {
            color: #DADADA;
            font-size: 2em;
            margin-right: 15px;
        }

        .es-icon_download {
            font-size: 1.7em;
            margin-left: 15px;
        }

        .es-listing__terms {
            margin-bottom: 0;
        }
    }
}

.es-images {
    font-size: 10px;
    display: grid;
    grid-column-gap: 30px;
    grid-row-gap: 30px;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));

    .es-image {
        .es-image__background {
            padding-top: 80%;
        }

        .es-image__name {
            color: #263238;
            font-size: 1.2em;
            line-height: 1.6em;
            font-weight: bold;
            margin-top: 15px;
            display: block;
        }
    }
}

.es-appointments {
    margin: 0;
    padding: 0;

    &, li {
        list-style: none;
    }

    li {
        margin: 5px 0 9px;
        padding: 0;
    }

    li {
        b, span {
            font-size: 1.4em;
            line-height: 1.7em;
            color: #263238;
        }

        b {
            font-weight: bold;
            display: inline-block;
            min-width: 40%;
        }

        span {
            font-weight: normal;
        }
    }
}

body.mfp-zoom-out-cur {
    overflow: hidden;
}

.mfp-bg.es-property-magnific {
    opacity: 1;
    background: #fff;
}

.mfp-wrap.es-property-magnific {
    font-size: 10px;

    .mfp-figure {
        background: #fff;

        &:after {
            content: unset;
        }
    }

    .mfp-content {
        margin: 0 12%;
        padding-top: 70px;

        @media screen and(max-width:460px) {
            margin: 0 15%;
        }
    }

    img.mfp-img {
        max-width: 85%;
        padding: 40px 0 20px;
    }

    .mfp-title {
        text-align: center;
        font-style: normal;
        font-weight: normal;
        font-size: 1.4em;
        line-height: 1.71em;
        padding: 0;

        /* Surface1/On-Surface1 */

        color: #263238;
    }

    .mfp-arrow {
        &:before, &:after {
            content: unset;
        }
    }

    .mfp-close {
        padding: 0 16px;
        opacity: 1;
        width: auto;
        right: unset;
    }

    .es-mfp-arrow {
        width: 44px;
        height: 44px;
        line-height: 44px;
        padding: 0;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        outline: none;
        margin-top: 35px;

        .es-icon {
            color:#263238;
        }

        &.es-mfp-arrow-left {
            left: 2%;
        }

        &.es-mfp-arrow-right {
            right: 2%;
        }

        .es-icon {
            font-size: 0.9em;
        }

        .es-icon_chevron-right {
            margin-left: 6px;
        }

        .es-icon_chevron-left {
            margin-left: 6px;
        }
    }

    .mfp-top-bar {
        position: fixed;
        top: 20px;
        left: 0;
        width: 100%;

        .mfp-top-bar__inner {
            position: relative;
            width: 100%;
        }

        .mfp-close {
            left: 2%;
            width: auto;
            cursor: pointer;
        }

        .mfp-counter {
            left: 50%;
            right: unset;
            top: 20px;
            transform: translateY(-50%) translateX(-50%);
            font-size: 1.4em;
            color: #263238;
        }

        .mfp-control {
            position: absolute;
            right: 2%;
        }
    }
}

.es-entity-field--full-width {
    grid-column: 1 / -1;
}

.es-entity-field__value {
    iframe, video, img {
        max-width: 100%;
    }

    .wp-video, .wp-video-shortcode {
        width: unset !important;
        max-width: 100%;
    }
}

.es-entity-field--post_content {
    margin: 5px 0 0;

    .es-entity-field__value {
        p:last-child {
            margin-bottom: 0;
        }
    }

    &.es-entity-field--post_content--collapsed {
        .es-entity-field__value {
            overflow: hidden;
            max-height: 89px;
        }
    }

    .es-full-content-link {
        margin-top: 15px;
    }
}

.admin-bar {
    .mfp-wrap.es-property-magnific {
        .mfp-top-bar {
            top: 50px;
        }
    }
}

@media screen and (max-width: 782px) {
    .admin-bar {
        .mfp-wrap.es-property-magnific {
            .mfp-top-bar {
                top: 60px;
            }
        }
    }
}
