.map-container {
    position: relative;
}

.map-container .map-title {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 5px;
}

#map {
    height: 700px;
    width: 100%;
}


#filters {
    position: absolute;
    background: #fff;
    padding: 15px;
    font-size: 14px;
    display: flex;
    flex-direction: column;
    bottom: 26px;
    gap: 7px;
    left: 130px;
    box-shadow: rgba(0, 0, 0, 0.3) 0px 1px 4px -1px;
    border-start-start-radius: 2px;
    border-end-start-radius: 2px;
    height: 185px;
    z-index: 2;
}

#filters label {
    display: flex;
    align-items: center;
    cursor: pointer;
    gap: 6px;
    position: relative;
    top: 0;
    left: 0;
    pointer-events: all;
        min-height: 20px;
}

#filters input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 17px;
    height: 17px;
    border: 2px solid #888;
    border-radius: 50%;
    display: grid;
    place-content: center;
    transition: all 0.2s ease;
    cursor: pointer;
    margin: 0;
}


/* bolinha interna */
#filters input[type="radio"]::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  transform: scale(0);
  transition: 0.2s transform ease-in-out;
}

#filters input[type="radio"]:checked::before {
  transform: scale(1);
}

/* cores por classe */
#filters input[value="All"]::before       { background: #555; }
#filters input[value="Reptilia"]::before { background: #00c000; } /* verde */
#filters input[value="Aves"]::before     { background: #0096ff; } /* azul */
#filters input[value="Mammalia"]::before { background: #c86432; } /* castanho */
#filters input[value="Amphibia"]::before { background: #b000b0; } /* roxo */

#filters input[value="Reptilia"] { border-color: #00c000; } /* verde */
#filters input[value="Aves"] { border-color: #0096ff; } /* azul */
#filters input[value="Mammalia"] { border-color: #c86432; } /* castanho */
#filters input[value="Amphibia"] { border-color: #b000b0; } /* roxo */


#legend-heatmap {
    position:absolute;
    bottom: 26px;
    left:10px;
    background:#fff;
    padding: 15px;
    border-radius:0;
    font-size:13px;
    max-width: 135px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    box-shadow: rgba(0, 0, 0, 0.3) 0px 1px 4px -1px;
    border-start-start-radius: 2px;
    border-end-start-radius: 2px;
    height: 185px;
}


#legend-heatmap .heatmap-item-wrapper {
    display:flex;
    flex-direction: column;
    gap: 7px;
}


#legend-heatmap .heatmap-item {
  display:flex;
  align-items:center;
}

#legend-heatmap .color {
  display:inline-block;
  width: 20px;
  height: 20px;
  margin-right: 6px;
  clip-path: polygon(
    25% 5%, 75% 5%,
    100% 50%,
    75% 95%, 25% 95%,
    0% 50%
  );
}


#map .gm-style-iw-d {
    font-size: 16px;
    font-weight: 300;
    line-height: 1.56;
    letter-spacing: normal;
    padding-top: 10px !important;
}


#map .gm-style-iw-chr button {
    width: 49px !important;
    height: 24px !important;
    position: absolute;
    top: 5px;
    right: 0px;
    display: flex !important;
    justify-content: center;
}

#map .gm-style-iw-chr button span {
    margin: 0 !important;
    position: relative;
}

#map .gm-style-iw-chr button span::before {
    content: "";
    -webkit-mask-image: url(/microsites/assets/img/svg/close_maps.svg);
    mask-image: url(/microsites/assets/img/svg/close_maps.svg);
    width: 100%;
    height: 100%;
    display: block;
    background-color: black;
}

.gm-style-iw-chr {
    height: 0;
}




@media(max-width: 768px) {
    #map {
        height: 400px;
    }

    #legend-heatmap {
        height: 140px;
        padding: 10px;
        font-size: 13px;
        bottom: 20px;
    }

    #legend-heatmap .heatmap-item-wrapper {
        gap: 1px;
    
    }

    #filters {
        padding: 10px;
        font-size: 13px;
        bottom: 20px;
        gap: 1px;
        height: 140px;
    }

    .map-container .map-title {
        font-size: 12px;
        margin-bottom: 2px;
    }
}