.image-container {
  position: relative;
  width: 100%;
}
.car{
  max-width: 1800px;
  margin-left: auto;
  margin-right: auto;
}
.overlay-text {
  position: absolute;
  top: 10%; /* Możesz dostosować w zależności od tego, gdzie chcesz, żeby pojawił się tekst */
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  text-align: center;
  color: white;
  font-size: clamp(14px, 3vw, 36px) !important;
  padding: 10px;
  z-index: 1; /* Upewnia się, że tekst pojawi się nad zdjęciem */
}
.image-container img {
  width: 100%;
  height: auto;
  display: block;
}

.hotspot {
  position: absolute;
  width: 14px;
  height: 14px;
  background: radial-gradient(circle, transparent 3px, #ffffff 3px);
  border-radius: 50%;
  cursor: pointer;
  transform: translate(-50%, -50%);
  z-index: 5;

  transition: transform 0.3s ease, background-color 0.3s ease;
  animation: pulse 2s infinite; /* efekt oddechu */
}

.hotspot:hover {
  transform: translate(-50%, -50%) scale(1.5); /* lekki powiększający efekt */
  background-color: rgb(224, 62, 45);          /* zmiana koloru na hover */
}

/* animacja pulsowania */
@keyframes pulse {
  0% {
    transform: translate(-50%, -50%) scale(1);
    box-shadow: 0 0 0 0 rgba(224, 62, 45, 0.5);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.4);
    box-shadow: 0 0 10px 10px rgba(224, 62, 45, 0);
  }
  100% {
    transform: translate(-50%, -50%) scale(1);
    box-shadow: 0 0 0 0 rgba(224, 62, 45, 0);
  }
}

#image-container-map .hotspot {
  background: radial-gradient(circle, #e03e2d 3px, #ffffff 3px);
}
#image-container-map .hotspot:hover {
  transition: opacity 3s ease, transform 3s ease;
  background: radial-gradient(circle, transparent 3px, #ffffff 3px);
}
@media (max-width: 767.98px) {
  .overlay-text {
    position: relative;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    text-align: center;
    color: white;
    font-size: clamp(18px, 3vw, 36px) !important;
    padding: 10px;
    z-index: 1;
  }
}
.popover {
  position: absolute;
  z-index: 10;
  background: rgba(103, 10, 0, 0.6);
  color: white;
  backdrop-filter: blur(14px);
  padding: 1rem;
  max-width: 400px;
  min-width: 300px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  border-radius: 0.5rem;

  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

.popover.show {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}
.popover.hide {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}
.popover-header {
  padding-left: 0px;
  font-weight: bold;
  margin-bottom: 0.5rem;
  background: transparent;
}
.popover-body{
  color: white !important;
}
.popover-btn-close {
  position: absolute;
  top: -6px;
  right: 0.5rem;
  cursor: pointer;
  font-size: 1.2rem;
  color: white;
}
