.map-badge.has-gallery-images {
  cursor: pointer;
}

.map-badge.has-gallery-images::after {
  content: "\f03e";
  font-family: "Font Awesome 5 Free";
  position: absolute;
  top: -5px;
  right: -5px;
  background-color: rgba(13, 110, 253, 0.9);
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #232936;
  z-index: 2;
  transform: none;
  animation: none;
  opacity: 1;
}

#mapGalleryCarousel .carousel-item img {
  max-height: 70vh;
  width: auto;
  margin: 0 auto;
  object-fit: contain;
}

#mapGalleryCarousel .carousel-caption {
  background-color: rgba(0, 0, 0, 0.7);
  border-radius: 5px;
  padding: 10px;
  max-width: 80%;
  margin: 0 auto;
  bottom: 20px;
}

@keyframes gallery-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(13, 110, 253, 0.4);
  }
  70% {
    box-shadow: 0 0 0 5px rgba(13, 110, 253, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(13, 110, 253, 0);
  }
}

@media (max-width: 767.98px) {
  #mapGalleryModal .modal-dialog {
    margin: 0.5rem;
  }

  #mapGalleryCarousel .carousel-item img {
    max-height: 50vh;
  }

  #mapGalleryCarousel .carousel-caption {
    position: relative;
    bottom: 0;
    padding: 8px;
    margin-top: 10px;
  }
}

@media (prefers-reduced-motion) {
  .map-badge.has-gallery-images::after {
    animation: none;
  }
}
