.listing-map-layout {
    position: relative;
}

.has-reusable-listing-map .col-list-wrap {
    transition: none !important;
}

.listing-map-layout::after {
    content: "";
    display: block;
    clear: both;
}

.listing-map-panel {
    z-index: 40;
    overflow: hidden;
    background: #ecf6f8;
}

.listing-map-panel .listing-map-shell,
.listing-map-panel .card-map-shell,
.listing-map-panel .card-map-canvas {
    height: 100%;
    min-height: 100%;
}

.listing-map-panel .listing-map-close {
    position: absolute;
    top: 10px;
    right: 72px;
    z-index: 5;
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 6px;
    background: #ffffff;
    color: #22a836;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.18);
    cursor: pointer;
}

.listing-map-panel .listing-map-close:hover {
    background: #f8fafc;
}

.listing-map-back-to-filters {
    display: none;
    position: absolute;
    right: -40px;
    width: 40px;
    height: 40px;
    top: 15px;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #fff;
    line-height: 40px;
    text-decoration: none;
    background: #017915;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.22);
    z-index: 12;
    border-top-right-radius: 6px;
    border-bottom-right-radius: 6px;
}

.listing-map-back-to-filters span {
    position: absolute;
    height: 40px;
    min-width: 150px;
    line-height: 40px;
    visibility: hidden;
    opacity: 0;
    top: 0;
    font-size: 12px;
    left: -150px;
    margin-top: 20px;
    transition: all 300ms;
    font-weight: 500;
    color: #fff;
    background: #017915;
    border-top-left-radius: 6px;
    border-bottom-left-radius: 6px;
}

.listing-map-back-to-filters:hover,
.listing-map-back-to-filters:focus {
    color: #fff;
}

.listing-map-back-to-filters:hover span {
    margin-top: 0;
    visibility: visible;
    opacity: 1;
}

.listing-map-back-to-filters:hover i {
    animation: bounce 1s;
}

.theme-theme1 .listing-map-back-to-filters {
    background: #18458B;
}

.theme-theme1 .listing-map-back-to-filters span {
    background: #18458B;
}

.theme-theme2 .listing-map-back-to-filters {
    background: #017915;
}

.theme-theme2 .listing-map-back-to-filters span {
    background: #017915;
}

@media only screen and (min-width: 1065px) {
    .has-reusable-listing-map .to-top {
        display: none !important;
    }

    .listing-map-back-to-filters {
        display: flex;
    }

    .listing-map-layout--with-map {
        --listing-map-list-width: 900px;
        background: #ecf6f8;
    }

    .listing-map-layout--with-map > .listing-map-panel--desktop {
        position: absolute;
        top: 0;
        right: 0;
        left: var(--listing-map-list-width);
        height: calc(100vh - 110px);
    }

    .listing-map-panel--mobile {
        display: none;
    }
}

@media only screen and (min-width: 1065px) and (max-width: 1224px) {
    .listing-map-layout--with-map {
        --listing-map-list-width: 800px;
    }

    .listing-map-layout--with-map > .listing-map-panel--desktop {
        left: var(--listing-map-list-width);
    }
}

@media only screen and (max-width: 1064px) {
    .listing-map-back-to-filters {
        display: none;
    }

    .listing-map-panel--desktop {
        display: none;
    }

    .listing-map-panel--mobile {
        position: fixed;
        top: 110px;
        width: 100%;
        right: -100%;
        height: calc(100vh - 110px);
        transition: right 300ms ease;
        z-index: 1200;
    }

    body.hidnav .listing-map-panel--mobile {
        top: 50px;
        height: calc(100vh - 50px);
    }

    .listing-map-panel--mobile.is-open {
        right: 0;
    }

    .listing-map-panel--mobile .listing-map-close {
        display: flex;
    }

    .listing-map-panel--mobile .gm-style .gm-fullscreen-control {
        margin-right: 16px;
    }
}
