#map-filter-form {
    --hf-color-prim: #f28b00;
    position: relative;
    z-index: 100;

    display: flex;
    flex-wrap: wrap;
    gap: 8px;

    margin-top: 40px;

    legend:hover,
    fieldset:has(input[type="checkbox"]:checked) legend,
    legend.open {
        background: var(--hf-color-prim);
        color: white;
        span.icon-ArrowDown:before {
            color: white;
            transform: rotate(-90deg);
        }
    }
    legend {
        display: flex;
        align-items: center;
        gap: 12px;

        margin: 0;
        padding: 12px 20px 12px 24px;

        background: #FCE8CC;
        color: black;
        transition: background .2s ease-in-out, color .2s ease-in-out;
        border-radius: 8px;
        cursor: pointer;

        span.icon-Cross {
            margin-top: 1px;
        }
        span.icon-Cross {
            display: flex;
        }
        span.icon-Cross:before,
        span.icon-ArrowDown:before {
            color: black;
            transition: color .2s ease-in-out, transform .2s ease-in-out;
        }
        span.amount {
            width: 30px;
            text-align: center;
            background: white;
            color: var(--hf-color-prim);
            border-radius: 100%;
            &.hidden {
                display: none;
            }
        }
    }
    .remove-filters legend {
        background: transparent;
        &:hover {
            background: transparent;
            color: var(--hf-color-prim);
            span.icon-Cross:before {
                color: var(--hf-color-prim);
            }
        }
    }
    legend:not(.open) + div {
        display: none;
    }
    legend + div {
        position: absolute;
        display: flex;
        gap: 10px;
        flex-direction: column;

        height: auto;
        width: max-content;

        padding: 10px;
        margin-top: 5px;

        background: #FCE8CC;
        border-radius: 8px;
        box-shadow: 0 4px 10px 2px #0000002e;

        label {
            cursor: pointer;
            font-weight: 500;
            display: flex;
            gap: 5px;
            align-items: center;
            padding: 12px;
            border-radius: 6px;
            transition: background .2s ease-in-out;
            &:hover {
                background: rgba(0,0,0,0.05);
                input {
                    box-shadow: inset 0 0 0 1px black;
                }
            }
        }
        input {
            appearance: none;
            padding: 5px;
            margin: 2px;
            background: transparent;
            border: 2px solid black;
            border-radius: 3px;
            transition: background .2s ease-in-out, box-shadow .2s ease-in-out;

            &:checked {
                background: black;
            }
        }
    }
}
#maincontent > div:has(#map-filter-form) {
    position: relative;
    z-index: 100;
}

.js-map {
    max-width: 100%;
}

@media (max-width: 768px) {
    #map-filter-form {
        fieldset legend,
        fieldset div,
        fieldset label,
        fieldset {
            width: 100%;
        }
        .remove-filters legend {
            justify-content: center;
        }
        legend {
            justify-content: space-between;
            span.amount {
                margin-right: auto;
            }
        }
    }
}

.gm-style-mtc-bbw {
    gap: 5px;
}
.gm-style-mtc-bbw > div > button {
    border-radius: 8px !important;
    font-family: Montserrat, Arial, sans-serif !important;
    font-weight: 700 !important;
}
.gm-style-mtc-bbw > div button[aria-checked="true"],
.gm-style-mtc-bbw > div:hover button {
    background-color: var(--hf-color-prim) !important;
    color: white !important;
}

.gm-style-mtc-bbw > div:not(:hover) button:not([aria-checked="true"]) {
    background-color: #FCE8CC !important;
    color: black !important;
}
#maps-input {
    width: 300px;
    background: white;
    border-radius: 8px;
    height: 40px;
    border: none;
    font-family: Montserrat, Arial, sans-serif !important;
}
#maps-search-button {
    height: 40px;
    font-family: Montserrat, Arial, sans-serif !important;
    border: none !important;
}
.gm-style #maps-search-box {
    display: flex !important;
}
#maps-search-box {
    display: none;
    gap: 5px;
    margin: 10px;
    max-width: calc(100% - 20px);
    *:not(span) {
        box-shadow: rgba(0, 0, 0, 0.3) 0px 1px 4px -1px;
    }
    .icon-Magnifier:before {
        color: white;
    }
}
@media screen and (max-width: 700px) {
    #maps-search-button {
        display: none;
    }
    #maps-search-box,
    #maps-input {
        width: 100%;
    }
    .gm-style-mtc-bbw {
        top: unset !important;
        bottom: 0;
        margin: 10px 10px 28px !important;
    }
}

.gm-style-iw-chr button {
    position: absolute !important;
    right: 0 !important;
    top: -9px !important;
    right: -10px !important;

    span {
        width: 18px !important;
        height: 18px !important;
    }
}

.gme-info-window {
    display: flex;
    flex-flow: column;
    gap: 10px;

    .big {
        font-size: 16px;
        padding-right: 20px !important;
    }

    ul {
        margin-left: 0;
        list-style-type: none;
        li {
            position: relative;
            padding-left: 10px;

            &::before {
                content: "";
                background: #F28B00;
                width: 5px;
                height: 5px;
                display: block;
                vertical-align: middle;
                border-radius: 50%;
                position: absolute;
                left: 0;
                top: 6px;
            }
        }


    }
}
