@mixin media-600 {
    @media (max-width: 600px) {
        @content;
    }
}
@mixin media-min-800 {
    @media (min-width: 801px) {
        @content;
    }
}

@mixin webkitBox($lineClamp) {
    display: -webkit-box;
    white-space: normal;
    overflow: hidden;
    text-overflow: ellipsis;
    /*! autoprefixer: ignore next */
    -webkit-box-orient: vertical;
    -webkit-line-clamp: $lineClamp;
    word-break: break-word;
}

$color-hover: #03c9ff !default;
@mixin color-hover($name: 'color', $value: null, $default: $color-hover) {
    #{$name}: $value var('#29335d', $default);
}
.site-map.standard {
    .map-marker {
        position: absolute;
        transform: translate(-50%, -50%);
        .marker-pop {
            display: none;
            position: absolute;
            left: 50%;
            bottom: calc(100% + 10px);
            transform: translateX(-50%);
            z-index: 4;

            &:after {
                content: '';
                position: absolute;
                width: 100%;
                height: 12px;
                left: 0;
                top: 100%;
            }
            &.bottom {
                top: calc(100% + 10px);
                bottom: auto;
                &:after {
                    top: -12px;
                }
            }
        }
        &.active {
            z-index: 2;
            .marker-pop {
                display: block;
            }
        }
        &:hover {
            z-index: 2;
            @include media-min-800 {
                .marker-pop {
                    display: block;
                }
            }
        }
    }

    .marker-house {
        .marker-shape {
            padding: 0 10px;
            line-height: 30px;
            border-radius: 20px;
            font-size: 12px;
            display: block;
            color: #ffffff;
            position: relative;
            box-shadow: 0 4px 8px 0 rgba(0, 10, 30, 0.2);
            white-space: nowrap;
            background-color: var(--lofty-map-point-bgColor, #191919);
            &.highlight {
                @include color-hover('background-color');
                &:before {
                    @include color-hover('border-top', 7px solid);
                }
            }
        }
        .marker-pop {
            width: 350px;
            max-width: 95vw;
            box-shadow: 0 2px 6px 0 rgba(0, 0, 0, 0.2);
            background-color: #ffffff;
            a {
                display: block;
                padding: 10px;
                text-decoration: none!important;
                .house-top {
                    display: flex;
                    padding-bottom: 10px;
                    .img-container {
                        width: 80px;
                        height: 60px;
                        flex: none;
                    }
                    .house-info {
                        margin-left: 10px;
                        flex: 1;
                        overflow: hidden;
                        .price {
                            font-size: 20px;
                            line-height: 24px;
                            color: #202437;
                        }
                        .info {
                            margin-top: 6px;
                            display: flex;
                            align-items: center;
                            font-size: 12px;
                            line-height: 1;
                            color: #797e8b;
                            .desc-span + .desc-span:before {
                                content: '|';
                                display: inline;
                                margin: 0 8px;
                            }
                        }
                        .addr {
                            margin-top: 6px;
                            font-size: 12px;
                            line-height: 13px;
                            color: #a0a3af;
                        }
                    }
                }
                .house-bottom {
                    border-top: 1px solid #f0f1f5;
                    padding-top: 10px;
                    display: flex;
                    .detail {
                        flex: 1;
                        overflow: hidden;
                        p {
                            font-size: 12px;
                            line-height: 1.5;
                            color: #a0a3af;
                        }
                    }
                    .house-mls-logo {
                        margin-left: 10px;
                        max-width: 100px;
                        max-height: 36px;
                        flex: none;
                    }
                }
            }
            &.multi {
                padding: 0;
                .house-header {
                    color: #797e8b;
                    line-height: 30px;
                    padding: 0 10px;
                    border-bottom: 1px solid #ebecf1;
                    .lofty-icon-pinterest:before {
                        color: #999;
                        margin-right: 2px;
                    }
                }
                > ul {
                    max-height: 210px;
                    overflow: auto;
                }
            }
        }
        &.active {
            .marker-shape {
                background-color: var(--lofty-map-point-hoverColor, #505050);
                &:before {
                    border-top-color: rgb(50,50,50);
                }
            }
        }
    }

    .marker-icon {
        .lofty_iconfont {
            position: relative;
            display: block;
            color: #bbcbd7;
            z-index: 1;
        }
        .marker-pop {
            padding: 10px 15px;
            font-size: 13px;
            border-radius: 4px;
            color: #fff;
            background-color: rgba(30, 43, 57, 0.9);
            white-space: nowrap;
            box-shadow: 0 5px 10px 0 rgba(0, 0, 0, 0.4);
            .pointer {
                content: '';
                display: block;
                width: 0;
                height: 0;
                border-left: 7px solid transparent;
                border-right: 7px solid transparent;
                border-top: 7px solid #323e4a;
                position: absolute;
                left: 50%;
                bottom: -6px;
                transform: translateX(-50%);
            }
            &.bottom {
                .pointer {
                    border-top: none;
                    border-bottom: 7px solid #323e4a;
                    bottom: initial;
                    top: -6px;
                }
            }
        }
        &.school {
            width: 60px;
            height: 60px;
            border-radius: 50%;
            background-color: rgba(25, 25, 25, 0.1);
            display: flex;
            align-items: center;
            justify-content: center;
            &:before {
                content: '';
                width: 28px;
                height: 28px;
                background-color: rgba(25, 25, 25, 1);
                border-radius: 50%;
                position: absolute;
                border: solid 1px #fff;
            }
            .lofty_iconfont {
                font-size: 18px;
                color: #fff;
                z-index: 10;
            }
        }
        &.business {
            .lofty_iconfont {
                color: #ffb300;
            }
        }
        &.subway {
            .lofty_iconfont::before {
                font-size: 12px;
                line-height: 25px;
                height: 25px;
                transform: scale(0.83);
                display: inline-block;
            }
            .lofty_iconfont::after {
                background: #2177e4;
                border-radius: 5px;
            }
        }
        &.location {
            .lofty_iconfont {
                font-size: 40px;
                color: rgba(95, 56, 8, 1);
                @include media-600 {
                    font-size: 30px;
                }
            }
        }
    }

    .marker-school {
        .lofty_iconfont {
            position: relative;
            display: block;
            color: #bbcbd7;
            z-index: 1;
            .count {
                position: absolute;
                width: 15px;
                height: 15px;
                line-height: 15px;
                top: -10px;
                right: -6px;
                border-radius: 50%;
                text-align: center;
                background: #fff;
            }
            &:after {
                content: '';
                display: inline-block;
                width: 25px;
                height: 25px;
                border-radius: 50%;
                border: 1px solid #fff;
                background-color: var(--lofty-map-point-bgColor, #191919);
                position: absolute;
                left: 50%;
                top: 50%;
                transform: translate(-50%, -50%);
                z-index: -1;
            }
            &:before {
                font-size: 16px;
                color: #fff;
            }
            &.highlight {
                &:after {
                    background-color: var(--lofty-map-point-hoverColor, #505050);
                }
            }
        }
        .marker-pop {
            background-color: #fff;
            width: 250px;
            padding: 0;
            border: 1px solid #ebecf0;
            box-shadow: 0 3px 2px 0 rgba(170, 186, 218, 0.22);
            .school-list {
                max-height: 210px;
                overflow: auto;
                padding: 20px;
                position: relative;
                li {
                    list-style: none;
                }
                .info {
                    display: flex;
                    .left {
                        color: #505050;
                        width: 100%;
                        .name {
                            height: 36px;
                            font-size: 14px;
                            line-height: 1.4;
                            margin-bottom: 8px;
                            font-family: "SF-UI-Text Bold";
                            @include webkitBox(2);
                            width: 160px;
                        }
                        .tip {
                            font-size: 12px;
                            color: #a8a8a8;
                            white-space: nowrap;
                        }
                    }
                    .right {
                        width: 50px;
                        flex-grow: 0;
                        flex-shrink: 0;
                        .rating {
                            width: 36px;
                            height: 36px;
                            line-height: 36px;
                            font-size: 18px;
                            text-align: center;
                            border-radius: 50%;
                            vertical-align: middle;
                            color: white;
                            margin: 0 auto 8px;
                            background: #bbcbd7;
                            &.middle {
                                background: #77b0fd;
                            }
                            &.high {
                                background: #49d975;
                            }
                        }
                        .tip {
                            margin-top: 3px;
                            font-size: 12px;
                            color: #a8a8a8;
                            white-space: nowrap;
                        }
                    }
                }
                .link {
                    display: block;
                    width: 100%;
                    font-size: 12px;
                    border-radius: 2px;
                    text-align: center;
                    margin-top: 20px;
                    padding-top: 18px;
                    border-top: 1px solid #dcdcdc;
                    cursor: pointer;
                    color: #022448;
                    & + .info {
                        margin-top: 15px;
                        padding-top: 15px;
                        position: relative;
                        &:before {
                            content: '';
                            position: absolute;
                            top: 0;
                            left: -20px;
                            right: -20px;
                            height: 1px;
                            background: #dcdcdc;
                        }
                    }
                    &.novisible {
                        display: none;
                    }
                }
            }
            .pointer {
                border-top-color: #fff;
            }
            &.bottom {
                .pointer {
                    border-bottom-color: #fff;
                }
            }
        }
        &.active {
            .lofty_iconfont {
                &:after {
                    background-color: rgba(4, 35, 67, 1.00)
                }
            }
        }
    }

    .marker-aggre {
        font-size: 14px;
        color: #fff;
        border-radius: 50%;
        text-align: center;
        background-color: var(--lofty-map-point-bgColor, #191919);
        box-shadow: 0 4px 8px 0 rgba(0, 10, 30, 0.2);
        cursor: pointer;
        .marker-shape {
            padding-top: 100%;
            height: 0;
            .info {
                margin-top: -50%;
                line-height: 100%;
                padding: 10px;
                transform: translateY(-50%);
                display: flex;
                flex-direction: column;
            }
        }
        &.active {
            background-color: var(--lofty-map-point-hoverColor, #505050);
        }
    }

    .marker-city {
        white-space: nowrap;
        .marker-address {
            padding: 8px 12px;
            border-radius: 4px;
            color: #ffffff;
            background-color: #505050;
            box-shadow: 0 4px 8px 0 rgba(0, 10, 30, 0.2);
            &:before {
                content: '';
                width: 0;
                height: 0;
                border-left: 7px solid transparent;
                border-right: 7px solid transparent;
                border-top: 7px solid #505050;
                position: absolute;
                bottom: -6px;
                left: 50%;
                transform: translateX(-50%);
            }
        }
        .marker-pop {
            position: relative;
            box-shadow: 0 1px 6px 0 rgba(0, 0, 0, 0.2);
            > .detail {
                text-align: center;
                padding: 10px 30px;
                border-radius: 4px 4px 0 0;
                color: #fff;
                @include color-hover('background-color');
                .address {
                    font-size: 16px;
                }
                .info {
                    color: #d2f5ff;
                }
                &.no-price {
                    border-radius: 4px;
                    &:before {
                        content: '';
                        width: 0;
                        height: 0;
                        border-left: 7px solid transparent;
                        border-right: 7px solid transparent;
                        border-top: 7px solid;
                        @include color-hover('border-top-color');
                        position: absolute;
                        bottom: -6px;
                        left: 50%;
                        transform: translateX(-50%);
                    }
                }
            }
            > .price {
                text-align: center;
                padding: 8px 30px;
                border-radius: 0 0 4px 4px;
                color: #292e3f;
                background-color: #ffffff;
                &:before {
                    content: '';
                    width: 0;
                    height: 0;
                    border-left: 7px solid transparent;
                    border-right: 7px solid transparent;
                    border-top: 7px solid #fff;
                    position: absolute;
                    bottom: -6px;
                    left: 50%;
                    transform: translateX(-50%);
                }
            }
        }
        &.active {
            .marker-address {
                display: none;
            }
        }
    }

    .search-radius {
        z-index: 200!important;
    }
}

.gm-style-pbc {
    z-index: 1000 !important;
    pointer-events: none;
}
