.esq-map-container {
  background-color: #ebf0f3;
}
.esq-map {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
}
.esq-map-container svg {
  width:100%;
  height: auto;
  display: block;
}
.esq-map-legend {
  color: #230050;
  line-height: 1.3;
  padding: 1rem;
}
.esq-map-legend-title {
  font-size: 18px;
  font-family: "Overpass", sans-serif;
}
.esq-map-legend-desc {
  font-size: 12px;
  display: none;
}

/**/

.esq-select {
  width: 90%;
  padding: .7rem;
  border-radius: 4px;
  box-shadow: 0 5px 15px rgba(48, 49, 59,.3);
  border: none;
  margin: 0 5%;
  position: relative;
}

@media only screen and (min-width: 680px) {
  .esq-map-legend {
    position: absolute;
    left: 1rem;
    bottom: 1rem;
  }
  .esq-map-legend-title {
    font-weight: bold;
  }
  .esq-map-legend-desc {
    display: block;
  }
  .esq-select {
    position: absolute;
    right: 2rem;
    bottom: 2rem;
    width: auto;
    margin: 0;
  }
}

/**/

.esq-popup {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255,255,255,.95);
  box-shadow: 0 5px 15px rgba(48, 49, 59,.3);
  border-radius: 2px;
  width: 80%;
  max-width: 80%;
  max-height: 90%;
  overflow: hidden;
  overflow-y: auto;
  z-index: 99;
}
.esq-popup-heading {
  text-transform: uppercase;
  background-color: #230050;
  color: white;
  padding: .9rem 1.2rem;
  font-weight: bold;
  font-family: "Overpass", sans-serif;
  font-size: 18px;
  position: relative;
}
.esq-popup-heading::before, .esq-popup-heading::after {
  content: '';
  position: absolute;
  right: 1.2rem;
  top: .9rem;
  cursor: pointer;
  width: .25rem;
  height: 1rem;
  background-color: white;
  transform: rotate(45deg);
  border-radius: 2px;
}
.esq-popup-heading::after {
  transform: rotate(-45deg);
}
.esq-popup-item a {
  position: relative;
  text-decoration: none;
  display: block;
  padding: 1.2rem;
  border-top: 1px solid #d6e1e8;
  z-index: 1;
  overflow: hidden;
  color: #333;
  line-height: 1.3;
}
.esq-popup-item:nth-of-type(2) a {
  border-top: none;
}
.esq-popup-item a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: #f0f6fa;
  z-index: -1;
  transform: scale(0, 1);
  transition: transform .6s;
  transform-origin: 100% 0;
}
.esq-popup-item a:hover::before {
  transform: scale(1, 1);
  transition: transform .3s;
  transform-origin: 0 0;
}
.esq-popup-item a img {
  float: left;
  margin-right: 1rem;
  padding: 0;
  box-shadow: none;
  background: none;
  border: none;
  width: auto;
  height: auto;
}
.esq-popup-txt {
  overflow: hidden;
  display: block;
}
.esq-popup-name {
  display: block;
  font-size: 16px;
  font-weight: bold;
}
.esq-popup-body {
  font-size: 12px;
  padding-top: .6rem;
  display: block;
}

@media only screen and (min-width: 680px) {
  .esq-popup {
    position: absolute;
    display: flex;
    flex-wrap: wrap;
  }
  .esq-popup-heading {
    width: 100%;
  }
  .esq-popup-item {
    width: 50%;
  }
  .esq-popup-item a {
    height: 100%;
    border-right: 1px solid #d6e1e8;
  }
  .esq-popup-item:nth-of-type(3) a {
    border-top: none;
  }
  .esq-popup-item:nth-of-type(odd) a {
    border-right: none;
  }
  .esq-popup-item a img {
    float: none;
    margin: 0 auto 1rem;
    display: block;
  }
}