.staynest-marker {
  width: 42px;
  height: 42px;
  background-color: #ef2755;
  border-radius: 50%;
  position: relative;
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;

  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
  perspective: 500px;
}

/* Pin point */
.staynest-marker::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  background-color: #ef2755;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  z-index: 0;
}

.home-icon,
.staynest-logo {
  position: absolute;
  z-index: 1;

  backface-visibility: hidden;
  transition:
    transform 0.6s ease,
    opacity 0.3s ease;
}

.home-icon {
  color: white;
  font-size: 20px;
}

.staynest-logo {
  width: 25px;
  height: 25px;
  object-fit: contain;

  filter: brightness(0) invert(1);

  opacity: 0;
  transform: rotateY(180deg);
  transition:
    transform 0.6s ease,
    opacity 0.3s ease;
}

/* Hover */
.staynest-marker:hover .home-icon {
  transform: rotateY(180deg);
  opacity: 0;
}

.staynest-marker:hover .staynest-logo {
  transform: rotateY(0deg);
  opacity: 1;
}

.mapboxgl-popup-content {
  padding: 16px 40px 16px 18px !important;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.mapboxgl-popup-content p {
  margin: 0;
  color: #222;
  font-size: 14px;
  line-height: 1.5;
}

/* Close button */
.mapboxgl-popup-close-button {
  top: 7px !important;
  right: 7px !important;

  width: 24px !important;
  height: 24px !important;

  padding: 0 !important;
  border: none !important;

  background: transparent !important;

  color: #717171 !important;
  font-size: 20px !important;
  line-height: 24px !important;
  text-align: center !important;

  cursor: pointer;
}

.mapboxgl-popup-close-button:hover {
  color: #ef2755 !important;
}

/* Popup arrow */
.mapboxgl-popup-tip {
  border-top-color: #ffffff;
}

.popup {
  margin: 0 !important;
  font-size: 12px !important;
  color: #717171 !important;
  font-weight: 400 !important;
}
