.image-hotspots-container {
    width: 100%;
    margin: 20px 0;
}

/* Size variations */
.image-hotspots-container.image-hotspots-size-large {
    max-width: 100%;
}

.image-hotspots-container.image-hotspots-size-medium {
    max-width: 75%;
    margin-left: auto;
    margin-right: auto;
}

.image-hotspots-container.image-hotspots-size-small {
    max-width: 50%;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive adjustments for small screens */
@media (max-width: 768px) {
    .image-hotspots-container.image-hotspots-size-medium {
        max-width: 90%;
    }
    
    .image-hotspots-container.image-hotspots-size-small {
        max-width: 75%;
    }
}

@media (max-width: 480px) {
    .image-hotspots-container.image-hotspots-size-medium,
    .image-hotspots-container.image-hotspots-size-small {
        max-width: 100%;
    }
}

.image-hotspots-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
    max-width: 100%;
}

.image-hotspots-image {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
}

.image-hotspot {
    color: #fff;
    position: absolute;
    display: block;
    cursor: pointer;
    z-index: 10;
    transform: translate(-50%, -50%);
    text-decoration: none;
    border-bottom: none;
}

.image-hotspot:hover .hotspot-marker {
    transform: scale(1.2);
    box-shadow: 0 0 10px #fff;
}

.image-hotspot:hover .hotspot-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(-5px);
}

.hotspot-marker {
    display: block;
    width: clamp(20px, 3.5%, 50px);
    height: clamp(20px, 3.5%, 50px);
    background-color: #fff;
    border: clamp(2px, 0.4%, 6px) solid #fff;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    position: relative;
}

.hotspot-marker::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: clamp(6px, 1%, 16px);
    height: clamp(6px, 1%, 16px);
    background-color: #fff;
    border-radius: 50%;
}

.hotspot-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: #fff;
    padding: clamp(6px, 0.8%, 12px) clamp(8px, 1.2%, 16px);
    border-radius: clamp(3px, 0.4%, 6px);
    font-size: clamp(12px, 1.4%, 18px);
    white-space: nowrap;
    margin-bottom: clamp(8px, 1%, 12px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 20;
}

.hotspot-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #333;
}

/* Pulse animation for hotspots */
@keyframes hotspot-pulse {
    0% {
        box-shadow: 0 0 0 0 #fff;
    }
    70% {
        box-shadow: 0 0 0 15px rgba(255, 0, 0, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 0, 0, 0);
    }
}

.image-hotspot .hotspot-marker {
    animation: hotspot-pulse 2s infinite;
}
