/*  COMPONENT: MAP
//////////////////////////////////////////////////////////////////////////////*/
@layer components {
    #map {
        min-height: 640px;
        height: 50vh;
        spointer-events: none;
    }
    #map * {
        font-family: var(--font-family-copy) !important;
    }
    #map figure img {
    }

    .gm-style .gm-style-iw-c {
        border-radius: 0;
        padding: var(--spacing-m) !important;
        border-radius: 0 !important;
    }

    .gm-style .gm-style-iw-c button {
        background-image: url("../../images/icons/icon--close.svg") !important;
        width: var(--size-icon) !important;
        height: var(--size-icon) !important;
        top: 0 !important;
        right: 0 !important;
        opacity: 1 !important;
        background-size: 50% !important;
        background-repeat: no-repeat !important;
        background-position: center !important;
        max-width: 100% !important;
    }

    .gm-style .gm-style-iw-c button span {
        display: none !important;
    }

    .info-window {
        display: grid;
        grid-template-columns: 150px 150px;
        gap: var(--size-gap);
    }
    .info-window a {
        pointer-events: none;
    }

    @media (max-width: 640px) {
        .info-window {
            display: grid;
            grid-template-columns: 150px;
        }
    }

    .gm-style-iw-d {
        padding: 0 !important;
    }

    .info-window ul {
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .info-window .left {
    }

    .info-window .right {
    }

    @namespace svg url(http://www.w3.org/2000/svg);

    svg a:link,
    svg a:visited {
        cursor: info;
    }

    svg a {
        fill: var(--color-mbz-petrol);
        stroke: var(--color-white);
    }
    svg a:hover {
        fill: var(--color-mbz-red);
    }

    svg {
        pointer-events: none;
    }

    svg polygon {
        pointer-events: auto;
        cursor: pointer;
        opacity: 0.7;
    }

    svg path:hover,
    svg polygon:hover {
        opacity: 1;
    }

    #map-wrapper {
        position: relative;
    }

    #map-wrapper #overlay {
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
    }

    .ce_metamodel_content {
        margin-bottom: 0;
    }

    .component--legend {
        position: relative;
        background: rgba(255, 255, 255, 0.5);
        padding: var(--spacing-m);
        width: calc(var(--size-column) * 2 + var(--size-gap));

        display: grid;
        place-items: end start;
    }
    @media (min-width: 980px) {
        .component--legend {
            aspect-ratio: 1 / 1;
        }
    }
    .component--legend ul {
        list-style: none;
        margin: 0;
        padding: 0;
    }
    .component--legend ul li {
        display: flex;
        gap: var(--spacing-xs);
        align-items: center;
    }
    .component--legend ul li::before {
        content: "";
        width: 7px;
        height: 7px;

        border-radius: 2rem;
        border: 1px solid var(--color-black);
    }
    .component--legend ul li.baugenossenschaften::before {
        background: #f2383f;
    }
    .component--legend ul li.baugemeinschaften::before {
        background: #137bac;
    }
    .component--legend ul li.mietgemeinschaften::before {
        background: #edad03;
    }
    .component--legend ul li.mietshäusersyndikate::before {
        background: #edad03;
    }
    .component--legend .legend {
    }
}
