/*divs*/
#div-map-full {
  height: 85vh;
  height: 100dvh;
  width: auto;
  border: 1px solid #dce7e1;
  border-radius: 12px;
}

@media (min-width: 901px) {
  .coverage-map #div-map-full,
  .species-map #div-map-full {
    height: calc(100vh - 150px);
    height: calc(100dvh - 150px);
  }
}

@media (max-width: 900px) {
  .species-map #div-map-full {
    height: clamp(360px, 68dvh, 700px);
  }
}

@media (max-width: 560px) {
  .species-map #div-map-full {
    height: clamp(320px, 64dvh, 600px);
  }
}

#div-map-half {
  height: 500px;
  width: 40%;
  margin: 0px auto 0px;
  border: 1px solid #dce7e1;
  border-radius: 12px;
}

#map-data-tools {
  text-align: center;
  font-size: 12px;
  padding: 10px;
  background-color: #254441;
  color: #fff;
  border-radius: 8px;
}

#map-data-summary {
  padding: 10px;
  height: auto;
  max-height: 30em;
  text-align: center;
  font-size: 1em;
}

#map-data-detail {
  overflow: auto;
  height: auto;
  max-height: 60vh;
  padding: 5px;
  text-align: center;
  font-size: 0.9em;
  text-align: left;

  img {
    width: 75%;
  }
}

#map-data-charts {
  background-color: #fff;
  border: 1px solid #dce7e1;
  border-radius: 10px;
}

#map-data {
  height: auto;
  /*max-height: 30em;*/

  background-color: #fff;
  border: 1px solid #dce7e1;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgb(27 55 43 / 8%);
  font-size: 14px;
  z-index: 1000000;
}

@media (max-width: 1000px) {
  #map-data {
    position: absolute;
    top: 200px;
    width: 80%;
    margin: 0px auto 0px;
    height: fit-content;
    min-height: 150px;
    max-height: 50%;
  }
}

#map-data-header {
  text-align: right;
  padding: 10px;
  cursor: move;
  z-index: 10;
  background-color: #254441;
  border-radius: 9px 9px 0 0;
  color: #fff;
}

/*FONTS*/
.map-summary {
  font-size: 14px;
  font-weight: bold;
  color: #354c42;
}

.species-sidebar #map-data-detail {
  max-height: 34dvh;
  overflow: auto;
  padding: 0;
  text-align: left;
}

.species-sidebar #map-data-detail table {
  font-size: 13px;
}

.species-sidebar #map-data-detail th,
.species-sidebar #map-data-detail td {
  padding: 7px;
}

.species-map-legend {
  position: absolute;
  z-index: 1000;
  bottom: 16px;
  left: 16px;
  width: min(188px, calc(100% - 32px));
  max-height: calc(75% - 24px);
  overflow: auto;
  padding: 7px;
  border: 1px solid #dce7e1;
  border-radius: 10px;
  background: rgb(255 255 255 / 96%);
  box-shadow: 0 3px 12px rgb(27 55 43 / 18%);
}

.species-map-legend table {
  font-size: 9px;
}

.species-map-legend th,
.species-map-legend td {
  padding: 4px 6px;
}

.species-map-legend th {
  border-radius: 6px 6px 0 0;
}

.species-map-legend table td:first-child {
  width: 32px;
  min-width: 32px;
}

@media (max-width: 560px) {
  .species-map-legend {
    bottom: 10px;
    left: 10px;
    width: min(165px, calc(100% - 20px));
    padding: 5px;
  }
}