/**
 * All of the CSS for your public-facing functionality should be
 * included in this file.
 */

.mm-map-container {
  width: 100% !important;
  height: 700px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-inline: 0 !important;
  position: relative;
}

.mm-map-container.framed {
  overflow: hidden;
  border-width: 0.15rem;
  border-style: solid;
  border-color: rgb(191, 191, 191);
}

@media only screen and (max-width: 1280px) {
  .mm-map-container {
    height: 450px;
    overflow-y: hidden;
  }
}

.mm-map-container > .leaflet-container {
  width: 100%;
  min-height: 100%;
  background-color: #fff;
  overflow: visible !important;
  z-index: 10;
}

.mm-map-divicon {
  white-space: nowrap;
}

.leaflet-tooltip {
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
  font-size: 14px;
}

.leaflet-tooltip::before {
  border-top-color: transparent !important;
}

svg.world-map path {
  fill: rgb(187, 187, 187) !important;
}

.map-color-marker-container {
  width: 26px;
  height: 30px;
  position: relative;
}

/* pulsating element */
.map-color-marker-container::before {
  content: "";
  position: absolute;
  width: 80px;
  height: 80px;
  aspect-ratio: 1;
  border-radius: 100%;
  top: -10px;
  left: 50%;
  border: 0;
  border-collapse: collapse;
  transform-origin: center center;
  transform: translateX(-50%);
}

.map-color-marker-container:hover::before,
.pulsating .map-color-marker-container::before {
  animation: pulse-animation 1s infinite;
}

@keyframes pulse-animation {
  0% {
    background-color: rgba(0, 0, 0, 0.8);
    transform: translateX(-50%) scale(0%);
  }
  100% {
    background-color: rgba(0, 0, 0, 0);
    transform: translateX(-50%) scale(100%);
  }
}

.map-color-marker {
  width: 25px;
  height: 25px;
  border: 2px solid white;
  border-radius: 50% 50% 50% 0;
  background: #6c6c6c;
  position: absolute;
  transform: rotate(-45deg);
}

.map-color-marker::after {
  content: "";
  width: 30%;
  height: 30%;
  border-radius: 50%;
  background-color: white;
  left: 35%;
  top: 35%;
  position: absolute;
}

.map-color-marker-container .title {
  position: absolute;
  transform-origin: center center;
  top: 28px;
  transform: translateX(-50%);
  width: 100%;
  margin-left: 50%;
  min-width: 100px;
  text-align: center;
  font-size: 160%;
  line-height: 110%;
  transition: opacity;
  transition-duration: 0.3s;
  background-color: rgba(255, 255, 255, 0.797);
  border-radius: 1rem;
}

.color-marker-popup-desktop {
  font-size: 14px;
}

.color-marker-popup-mobile .popup-link {
  font-size: 16px;
  display: flex;
  flex-direction: row;
  align-items: center;
}

.marker-link {
  position: absolute;
  inset: 0;
  z-index: 10;
}

/* Mobile arrows */
.mm-map-mobile-arrows-container {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 20;
  flex-direction: row;
  align-items: center;
  pointer-events: none;
  width: 100%;
  left: 50%;
  transform: translateX(-50%);
}

@media only screen and (max-width: 1000px) {
  .mm-map-mobile-arrows-container {
    display: flex;
  }
}

.mm-map-mobile-arrows-container > * {
  flex: 1;
}

.mm-map-mobile-arrows-container .arrow-right {
  display: flex;
  flex-direction: row;
  justify-content: end;
}

.mm-map-mobile-arrows-container .arrow {
  display: flex;
  align-items: center;
  width: 3rem;
  height: 3rem;
}

.mm-map-mobile-arrows-container .dashicons {
  font-size: 3rem;
  opacity: 0.3;
  width: 3rem;
  height: 3rem;
  opacity: 0;
}

.mm-map-mobile-arrows-container .arrow-left .dashicons {
  animation: fade-left 2s 5;
  animation-delay: 1s;
}

.mm-map-mobile-arrows-container .arrow-right .dashicons {
  animation: fade-right 2s 5;
  animation-delay: 1s;
}


@keyframes fade-left {
  0% {
    opacity: 0.4;
    transform: translateX(0%);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%);
  }
}

@keyframes fade-right {
  0% {
    opacity: 0.4;
    transform: translateX(0%);
  }
  100% {
    opacity: 0;
    transform: translateX(50%);
  }
}
