.c-interactive-map__mapbox.mapboxgl-map {
    min-height: 660px;
    width: 100%;
    font-size: 1rem;
    line-height: 1.6875rem;
    font-family: "Basis",sans-serif;
    font-weight: 300;
    color: #323232;
}

@media (min-width: 500px) {
    .c-interactive-map__mapbox.mapboxgl-map {
        min-height: 740px;
    }
}

@media (min-width: 768px) {
    .c-interactive-map__mapbox.mapboxgl-map {
        min-height: 840px;
    }
}

@media (min-width: 1025px) {
    .c-interactive-map__mapbox.mapboxgl-map {
        min-height: 880px;
    }
}

/* .c-interactive-map h4 {
     margin-bottom: 16px;
} */

.hidden {
    display: none;
}

.mapboxgl-marker {
    cursor: pointer;
}

.mapboxgl-marker span {
    background-image: url('../img/pin-grey.svg');
    background-size: 39px 52px;
    background-repeat: no-repeat;
    padding: 16px 10px;
    transition: backgorund-image .2s ease-in-out;
}

.mapboxgl-marker.mapboxgl-marker-active span {
    background-image: url('../img/pin-white.svg');
}

.mapboxgl-marker span svg {
    width: 18px;
}

.mapboxgl-marker.c-interactive-map__category-map-center span svg path {
    fill: white;
}

.mapboxgl-marker:not(.c-interactive-map__category-map-center) span svg path {
    fill: #1A2D38;
}

.c-interactive-map__marker.c-interactive-map__category-map-center span {
    background-image: url('../img/pin-blue.svg');
    background-size: 70px 93px;
    background-repeat: no-repeat;
    padding: 37px 17px;
}

.c-interactive-map__marker.c-interactive-map__category-map-center span svg {
    height: 32px;
    width: 38px;
    margin-left: 0;
}

.c-interactive-map__category-toggle#category-map-center {
    display: none;
}

.c-interactive-map {
    position: relative;
}

.c-interactive-map__sidebar {
    display: none;
    position: absolute;
    top: 4.65rem;
    bottom: 2.25rem;
    left: 0.75rem;
    padding: 24px;
    z-index: 8;
    background-color: rgb(251,251,249);
    overflow-y: scroll;
    width: 262px;
}

@media (min-width: 500px) {
    .c-interactive-map__sidebar {
        width: 400px;
        right: unset;
    }
}

@media (min-width: 768px) {
    .c-interactive-map__legend {
        display: none;
    }
    
    .c-interactive-map__sidebar {
        top: 0.75rem;
        display: block;
        padding: 50px 40px;
        width: 375px;
        background-color: rgba(251,251,249,.94);
    }
}

@media (min-width: 1025px) {
    .c-interactive-map__sidebar {
        top: 6.25rem;
        bottom: 6.25rem;
        left: 6.25rem;
    }
}

.c-interactive-map__sidebar h4 {
    margin-top: 32px;
}

.mapboxgl-popup {
    transform: unset !important;
    left: 0.75rem !important;
    top: 0.75rem !important;
    right: 0.75rem !important;
    max-width: 262px !important;
    overflow-y: scroll;
    pointer-events: auto !important;
    box-shadow: 0 1px 2px rgb(0 0 0 / 10%);
    z-index: 5;
}

@media (min-width: 500px) {
    .mapboxgl-popup {
        max-width: 300px !important;
        right: unset;
    }
}

@media (min-width: 768px) {
    .mapboxgl-popup {
        left: calc(375px + 0.75rem) !important;
        bottom: 2.25rem !important;
        pointer-events: none !important;
    }
}

@media (min-width: 1025px) {
    .mapboxgl-popup {
        left: calc(375px + 6.25rem) !important;
        top: 6.25rem !important;
        bottom: 6.25rem !important;
    }
}

.mapboxgl-popup-tip {
    display: none;
}

.mapboxgl-popup .mapboxgl-popup-close-button {
    background-color: #DBDBD3;
    color: #1A2D38;
    padding: 0 8px;
    font-size: 34px;
    line-height: 1;
    transition: background-color .2s ease-in-out;
}

.mapboxgl-popup .mapboxgl-popup-close-button:hover {
    background-color: #DBDBD3;
    opacity: 0.5;
}

.mapboxgl-popup .mapboxgl-popup-content {
    padding: 0;
    background: unset;
    box-shadow: none;
    border-left: 1px solid #DBDBD3;
    background-color: rgba(251,251,249,.94);
    border-radius: 0;
}

.mapboxgl-popup-content img {
    width: 100%;
}

.c-interactive-map__popup-body {
    padding: 38px 40px;
}

.c-interactive-map__popup-link.btn--copy__icon {
    font-size: 1rem;
}

.c-interactive-map__categories {
    padding: 0;
    list-style: none;
}

.c-interactive-map__category-toggle {
    text-decoration: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    color: inherit;
    margin: 8px 0;
    font-size: 1rem;
    font-weight: 300;
    color: #1A2D38;
    transition: font-weight .2s ease-in-out;
}

@media (min-width: 768px) {
    .c-interactive-map__category-toggle {
        margin: 16px 0;
    }
}

.c-interactive-map__category-toggle svg path {
    fill: #1A2D38;
}

.c-interactive-map__category-toggle.active,
.c-interactive-map__category-toggle:hover {
    font-weight: 600;
}

.c-interactive-map__category-toggle svg {
    margin-right: 21px;
}

.c-interactive-map__legend.btn {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 3;
    padding: 16px 24px !important;
}

/*.c-interactive-map__legend.active {*/
    /*left: 12.45rem;*/
    /*color: transparent;*/
/*}*/

/*@media (min-width: 500px) {*/
/*    .c-interactive-map__legend.active {*/
        /*left: 21.025rem;*/
    /*}*/
/*}*/

@media (min-width: 768px) {
    .c-interactive-map__legend {
        display: none !important;
    }
}

.c-interactive-map__legend.btn--primary__navy {
    position: absolute;
    border-radius: 0;
    padding: 14px 24px;
    transition: background-color .25s ease-in-out,border .25s ease-in-out;
}

.c-interactive-map__legend svg {
    margin-left: 16px;
    transition: transform .3s ease-in-out;
}