.block-map {
  padding: 0 !important;
  margin: 0;
  min-height: 725px;
  background: #4b4e67;
}

@media screen and (min-width: 1023px) {
  .block-map {
    height: 100%;
  }
}

.block-map .inner-container {
  height: 100%;
  display: flex;
  flex-direction: column-reverse;
}

@media screen and (min-width: 1023px) {
  .block-map .inner-container {
    flex-direction: row;
  }
}

.block-map .inner-container > div {
  height: 100%;
}

.block-map .inner-container .block-map__container {
  height: auto;
}

/* .block-map .inner-container > div:first-child {
} */

@media screen and (max-width: 767px) {
  .block-map .inner-container .block-map__container {
    flex: auto;
    height: 400px;
  }
}

@media screen and (min-width: 768px) and (max-width: 1023px) {
  .block-map .inner-container .block-map__container {
    flex: auto;
    height: 500px;
  }
}

.block-map .inner-container .block-map__container .block-map__filter-container {
  background: #fff;
  border-radius: 40px;
  padding: 15px 25px;
  box-shadow: 0px 1px 9px 0px rgba(0, 0, 0, 0.25);
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  column-gap: 20px;
  align-items: center;
  z-index: 2;
}

.block-map
  .inner-container
  .block-map__container
  .block-map__filter-container
  .gfield_label {
  color: #5532db;
  font-size: 14px;
  line-height: 22px;
  font-family: "Open Sans", Helvetica, sans-serif;
  font-weight: 900;
  text-transform: uppercase;
}

.block-map
  .inner-container
  .block-map__container
  .block-map__filter-container
  select {
  color: #000;
  font-size: 14px;
  line-height: 22px;
  font-family: "Open Sans", Helvetica, sans-serif;
  font-weight: 400;
  border: 1px solid #000 !important;
  border-radius: 5px;
  padding: 10px 30px 10px 15px; /* Adds extra right padding */
  appearance: none; /* Remove default arrow */
  -webkit-appearance: none; /* Safari */
  -moz-appearance: none; /* Firefox */
  background: url("data:image/svg+xml,%3Csvg%20width%3D%228%22%20height%3D%225%22%20viewBox%3D%220%200%208%205%22%20fill%3D%22none%22%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%3E%3Cpath%20d%3D%22M1%201L4%204L7%201%22%20stroke%3D%22%235532DB%22%20stroke-width%3D%222%22%20stroke-miterlimit%3D%2210%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22/%3E%3C/svg%3E")
    no-repeat right 10px center;
  background-size: 10px; /* Size of custom arrow */
}

@media screen and (max-width: 480px) {
  .block-map
    .inner-container
    .block-map__container
    .block-map__filter-container {
    width: 90%;
  }

  .block-map
    .inner-container
    .block-map__container
    .block-map__filter-container
    select {
    width: 100%;
  }
}

@media screen and (min-width: 1023px) and (max-width: 1200px) {
  .block-map .inner-container > div {
    flex: 1.4;
  }

  .block-map .inner-container > div:first-child {
    flex: 1.6;
  }
}

@media screen and (min-width: 1200px) {
  .block-map .inner-container > div {
    flex: 1;
  }

  .block-map .inner-container > div:first-child {
    flex: 2;
  }
}

.block-map .block-map__content {
  margin-left: auto;
  margin-right: auto;
  padding: 40px 0 50px 0;
  width: calc(100% - 3.2rem);
  color: #ffffff;
}

@media screen and (min-width: 1023px) {
  .block-map .block-map__content {
    margin: 0;
    padding: 3.25%;
    width: 100%;
  }
}

.block-map h2 {
  font-size: 28px;
}

.block-map h2 em,
.block-map h2 strong {
  font-size: 24px !important;
}

@media screen and (min-width: 1023px) {
  .block-map h2 {
    font-size: 28px;
  }

  .block-map h2 em,
  .block-map h2 strong {
    font-size: 24px !important;
  }
}

.block-map h3 {
  font-size: 16px;
  line-height: 1.5;
}

.block-map h3 strong {
  font-size: 40px;
  display: block;
  font-family: "Open Sans";
  color: #fc4c5d;
}

.block-map__container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.block-map__popup {
  background: #ffffff;
  border-radius: 5px;
  box-shadow: 4px 10px 40px 0px rgba(0, 0, 0, 0.15);
  padding: 50px 20px 20px 20px;
  position: relative;
  z-index: 3;
  max-width: 350px;
  min-width: 310px;
}

.block-map__popup--hidden {
  display: none;
}

.block-map__popup h3 {
  color: #5532db;
  font-family: "Open Sans";
  font-size: 18px;
  font-weight: bold;
  margin: 0;
  margin-bottom: 5px;
}

.block-map__popup h4 {
  color: #000;
  font-family: "Open Sans";
  font-size: 14px;
  font-weight: bold;
  margin: 0;
  margin-bottom: 5px;
}

.block-map__popup ul {
  padding-left: 20px;
  max-height: 136px;
  overflow-y: scroll;
}

.block-map__popup a {
  color: #28194b;
  font-weight: bold;
  text-decoration: underline;
}

.block-map__popup .block-map__close-btn {
  cursor: pointer;
  height: 25px;
  width: 25px;
  position: absolute;
  top: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.block-map__popup .block-map__close-btn div {
  width: 100%;
  height: 2px;
  background: #5532db;
  position: absolute;
}

.block-map__popup .block-map__close-btn div:first-child {
  transform: rotate(45deg);
}

.block-map__popup .block-map__close-btn div:last-child {
  transform: rotate(-45deg);
}

.block-map__popup--detail {
  font-size: 14px;
  margin-top: 0;
  margin-bottom: 20px;
}

.block-map__popup--detail-header {
  font-weight: bold;
}

#healthyDemocracyMap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  transition: all ease 0.3s;
}
