.locations {
  padding: 50px 0;
  border-bottom: 2px solid #1E3E37;
  overflow: hidden;
}

.locations h2 {
  font-size: 48px;
  margin-bottom: 86px;
}

.locations-container {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.locations-map-wrapper {
  grid-area: 1 / 2 / 2/ 3;
  position: relative;
}

.locations-map-container {
  position: absolute;
  inset: 0;
  transform: scale(150%);
  transform-origin: bottom left;
  max-width: 800px;
}

.locations-map {
  position: absolute;
  height: fit-content;
  bottom: 0;
}

.locations-map-image {
  width: 100%;
  height: auto;
}

.locations-map-marker {
  position: absolute;
  width: 3%
}

.locations-map-marker img {
  width: 100%;
  height: auto;
  cursor: pointer;
  transition: all 0.2s;
}

.locations-map-marker:hover img {
  transform: translateY(2px);
  filter: brightness(80%);
}

.locations-map-popup {
  position: absolute;
  bottom: 100%;
  background-color: #ffffff;
  padding: 10px;
  left: 50%;
  transform: translateX(-50%);
  margin-bottom: 10px;
  width: max-content;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  border-radius: 4px;
  filter: drop-shadow(0 4px 3px rgb(0 0 0 / 0.07)) drop-shadow(0 2px 2px rgb(0 0 0 / 0.06));
}

.locations-map-popup.show {
  display: block;
  opacity: 1;
  z-index: 50;
}

.locations-map-popup h2 {
  font-family: 'TroisMilleRegular';
  font-size: 10px;
  margin-bottom: 8px;
}

.locations-map-popup p {
  font-family: Montserrat;
  font-size: 9px;
  white-space: pre-wrap;
  margin-bottom: 0;
}


.locations-addresses-wrapper {
  grid-area: 1 / 1 / 2 / 3;
  padding-left: 64px;
  padding-right: 64px;
}

.locations-addresses-container {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  height: 100%;
}

.locations-addresses {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  column-gap: 20px;
}

.locations-addresses div {
  word-wrap: break-word;
}

.locations-addresses h2 {
  font-size: 24px;
  margin-bottom: 0;
}

.locations-addresses p {
  white-space: pre-wrap;
  margin-bottom: 35px;
  font-family: Montserrat;
}

.locations-map-dummy-image {
  width: 100%;
  height: auto;
  margin-left: 40px;
  margin-right: 40px;
  visibility: hidden;
}

@media only screen and (max-width: 1023px) {
  .locations-map-dummy-image {
    max-height: 720px;
  }

  .locations {
    padding-bottom: 0;
  }
  .locations-container {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }

  .locations-addresses-container {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }

  .locations-map-wrapper {
    grid-area: 2 / 1 / 3 / 2;
  }

  .locations-addresses-wrapper {
    grid-area: 1 / 1 / 1 / 2;
    padding-left: 20px;
    padding-right: 20px;
  }

  .locations-map-container {
    transform: scale(100%);
    margin: 0 auto;
  }

  .locations-addresses {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0 auto;
    width: fit-content;
  }

  .locations-map {
    inset: 0;
    margin-left: 40px;
    margin-right: 40px;
  }
}