.aha-map-container {
    border: solid 1px #e7e7e7;
    display: grid;
    grid-template-areas:
            "toggles map map"
            "legend legend legend";
    grid-template-columns: auto 1fr;
    grid-template-rows: auto 1fr;
}

.aha-map-map {
    width: 100%;
    position: relative;
    overflow: hidden;
    min-height: 600px;
    grid-area: map;
}

.aha-map-toggles {
    background-color: #f9f9f9;
    min-width: 150px;
    grid-area: toggles;
}

.aha-map-toggle-item {
    border-bottom: solid 1px #e7e7e7;
    background-color: #1f1d1e;
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    line-height: 1.1;
    transition: filter 0.3s ease, background-color 0.3s ease, opacity 0.3s ease;
    cursor: pointer;
}

.aha-map-toggle-item:last-child {
    border-bottom: none;
}

.aha-map-toggle-item.active {
    background-color: #f16d21;
}

.aha-map-toggle-item:hover,
.aha-map-toggle-item.active:hover {
    opacity: .7;
}

.aha-map-legend {
    display: flex;
    grid-area: legend;
    align-items: center;
    gap: 20px;
    padding: 5px;
}

.aha-map-legend-item {
    display: flex;
    gap: 5px;
    align-items: center;
    border-right: solid 1px #e7e7e7;
    padding-right: 1rem;
}

.aha-map-legend-item:last-child {
    border-right: none;
}

.aha-map-legend-item img {
    max-width: 25px;
}

.aha-map-legend-item .legend-line {
    height: 5px;
    width: 25px;
    min-width: 25px;
    display: inline-block;
}

.aha-map-infowindow {
    font-weight: bold;
}

@media(max-width: 870px){
    .aha-map-legend {
        min-width: auto;
    }
}

@media(max-width: 630px){
    .aha-map-map {
        min-height: auto;
    }
}