﻿:root {
    --building-color: #28a745;
    --house-color: #28a745;
    --shop-color: #28a745;
    --warehouse-color: #28a745;
}

body, html {
    height: 100%;
    margin: 0;
    padding: 0
}

#map {
    height: 100%;
    width: 100%
}

.mapProperty {
    align-items: center;
    background-color: #fff;
    border-radius: 50%;
    color: #263238;
    display: flex;
    font-size: 14px;
    gap: 15px;
    height: 30px;
    justify-content: center;
    padding: 4px;
    position: relative;
    width: 30px
}

    .mapProperty, .mapProperty:after {
        transition: all .3s ease-out
    }

        .mapProperty:after {
            border-left: 9px solid transparent;
            border-right: 9px solid transparent;
            border-top: 9px solid #fff;
            content: "";
            height: 0;
            left: 50%;
            position: absolute;
            top: 95%;
            transform: translate(-50%);
            width: 0;
            z-index: 1
        }

        .mapProperty .icon {
            align-items: center;
            color: #fff;
            display: flex;
            justify-content: center

        }

            .mapProperty .icon svg {
                height: 20px;
                width: auto
            }

        .mapProperty .details {
            display: none;
            flex: 1;
            flex-direction: column
        }

        .mapProperty .address {
            color: #9e9e9e;
            font-size: 10px;
            margin-bottom: 10px;
            margin-top: 5px
        }

        .mapProperty .features {
            align-items: flex-end;
            display: flex;
            flex-direction: row;
            gap: 10px
        }

            .mapProperty .features > div {
                align-items: center;
                background: #f5f5f5;
                border: 1px solid #ccc;
                border-radius: 5px;
                display: flex;
                font-size: 10px;
                gap: 5px;
                padding: 5px
            }

        .mapProperty.highlight {
            background-color: #fff;
            border-radius: 8px;
            box-shadow: 10px 10px 5px #0003;
            height: auto;
            padding: 8px 15px;
            width: auto
        }

            .mapProperty.highlight:after {
                border-top: 9px solid #fff
            }

            .mapProperty.highlight .details {
                display: flex
            }

            .mapProperty.highlight .icon svg {
                height: 50px;
                width: 50px
            }

        .mapProperty .bed {
            color: #ffa000
        }

        .mapProperty .bath {
            color: #03a9f4
        }

        .mapProperty .size {
            color: #388e3c
        }

        .mapProperty.highlight:has(.fa-house) .icon {
            color: var(--house-color)
        }

        .mapProperty:not(.highlight):has(.fa-house) {
            background-color: var(--house-color)
        }

            .mapProperty:not(.highlight):has(.fa-house):after {
                border-top: 9px solid var(--house-color)
            }

        .mapProperty.highlight:has(.fa-building) .icon {
            color: var(--building-color)
        }

        .mapProperty:not(.highlight):has(.fa-building) {
            background-color: var(--building-color)
        }

            .mapProperty:not(.highlight):has(.fa-building):after {
                border-top: 9px solid var(--building-color)
            }

        .mapProperty.highlight:has(.fa-warehouse) .icon {
            color: var(--warehouse-color)
        }

        .mapProperty:not(.highlight):has(.fa-warehouse) {
            background-color: var(--warehouse-color)
        }

            .mapProperty:not(.highlight):has(.fa-warehouse):after {
                border-top: 9px solid var(--warehouse-color)
            }

        .mapProperty.highlight:has(.fa-shop) .icon {
            color: var(--shop-color)
        }

        .mapProperty:not(.highlight):has(.fa-shop) {
            background-color: var(--shop-color)
        }

            .mapProperty:not(.highlight):has(.fa-shop):after {
                border-top: 9px solid var(--shop-color)
            }
