.leaflet-container,
.irs {
    font-family: "Roboto", -apple-system, BlinkMacSystemFont, "Avenir Next", "Avenir", "Segoe UI", "Lucida Grande", "Helvetica Neue", "Helvetica", "Fira Sans", "Roboto", "Noto", "Droid Sans", "Cantarell", "Oxygen", "Ubuntu", "Franklin Gothic Medium", "Century Gothic", "Liberation Sans", sans-serif;
}

.region-map h6 {
    font-size: 1.2em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.region-map-container {
    position: relative;
    height: 0;
    padding-bottom: 60%;
    z-index: 20;
}

.region-map-container .map {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* controls */

.region-map-controls {
    position: relative;
    padding: 2rem;
    background-color: #fff;
    z-index: 10;
}

.region-map-controls form {
    display: flex;
    flex-wrap: wrap;
}

.region-map-controls select {
    min-width: 120px;
    max-width: 200px;
    margin-bottom: 0;
    font-size: 1.8em;
}

.region-map-controls .map-control {
    margin-right: 2em;
    margin-bottom: 2em;
}

.region-map-controls .map-control.hidden {
    visibility: hidden;
    margin-right: 0;
}

.region-map-controls .map-control h6 {
    color: #2a2594;
}

.region-map-controls .decade-control {
    flex-grow: 1;
    min-width: 300px;
    margin-right: 0;
}

.region-map-controls .decade-control .range-slider-container {
    max-width: calc(100% - 60px);
    margin: 0 auto;
}

.region-map-controls .irs--round {
    height: 24px;
}

.region-map-controls .irs-bar {
    top: 10px;
    background-color: #1634ff;
}

.region-map-controls .irs-single {
    top: -1px;
    padding: 6px;
    z-index: 50;
    border-radius: 0;
    background-color: #1634ff;
}

.region-map-controls .irs-single:before {
    display: none;
}

.region-map-controls .irs-handle {
    top: 0;
    opacity: 0;
}

.region-map-controls .irs-line {
    top: 10px;
}

.region-map-controls .irs-line,
.region-map-controls .irs-handle,
.region-map-controls .irs-bar,
.region-map-controls .irs-single {
    cursor: pointer;
}

/*

 LEGEND
 
*/

.region-map-legend {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  z-index: 2;
}

.region-map-legend .legend-title {
  position: absolute;
  right: 100%;
  top: 50%;
  width: 150px;
  margin: 0;
  padding: 0.5em;
  text-align: center;
  transform-origin: 100% 0;
  transform: rotate(-90deg) translate(50%, -100%);
  
}

.region-map-legend .legend-label {
  position: absolute;
  right: 100%;
  padding: 0.5em;
  white-space: nowrap;
}

.region-map-legend .legend-label.max {
  top: 0;
}

.region-map-legend .legend-label.min {
  bottom: 0;
}

.legendTitle { 
}

.legendLabel {
  display: block;
  text-align: center;
  margin: 10px 0; }

.legendRows {
  display: flex;
  flex-direction: column;
  width: 30px;
  height: 100%;
  /*min-height: 250px;*/
  margin: auto; }

.legendRow {
  flex: 1;
  position: relative;
  cursor: pointer; }

  .legendRow:hover .legendColor {
    transform: scaleX(1.5) scaleY(2);
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.25);
    z-index: 5; }
  .legendRow:hover .legendUnit {
    right: calc(100% + 10px);
    transition: right 0s ease 0s, opacity 0.2s ease 0s;
    opacity: 1; }

.legendColor {
  position: relative;
  height: 100%;
  box-shadow: 0 0 5px transparent;
  transition: 0.1s;
  z-index: 2; }

.legendUnit {
  position: absolute;
  right: -200px;
  top: 50%;
  padding: 4px 8px;
  background-color: #fff;
  opacity: 0;
  border: 2px solid #a9b5e4;
  font-size: 1.2em;
  line-height: 1;
  white-space: nowrap;
  transform: translateY(-50%);
  transition: right 0s ease 0.2s, opacity 0.2s ease 0s;
  z-index: 1; }


.legendRow.zero .legendColor {
  min-height: 30px;
}

.legendRow.zero .legendUnit {
  right: 50%;
  padding: 0;
  opacity: 1;
  border: none;
  background-color: transparent;
  transform: translate(50%, -50%);
  z-index: 20;
}
 
@media (max-width: 600px) {
    .region-map-container {
        height: 60vh;
        padding-bottom: 0;
    }
}