/**
 * Frontend Hotspots CSS
 * Styles for the interactive hotspots on product images
 */

/* Container for all hotspots, positioned relative to the main image */
.ski-hotspots-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* Allow clicks to pass through to the container */
    z-index: 10;
}

/* Individual hotspot styling */
.ski-hotspot {
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: rgba(199, 36, 42, 0.9); /* Red dot, matching the site accent color */
    transform: translate(-50%, -50%); /* Center the hotspot on its coordinates */
    cursor: pointer;
    pointer-events: auto; /* Enable clicks on the hotspot */
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.5); /* Subtle white outline */
    transition: all 0.2s ease-in-out;
    z-index: 15;
}

/* Hover state */
.ski-hotspot:hover {
    transform: translate(-50%, -50%) scale(1.2); /* Slightly enlarge */
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.8); /* Enhanced white outline */
}

/* Active state - white center with red border */
.ski-hotspot.active {
    background-color: white;
    border: 3px solid rgba(199, 36, 42, 1); /* Red border */
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.3); /* Add a shadow for depth */
    transform: translate(-50%, -50%) scale(1.2); /* Slightly enlarged */
}

/* Text container for hotspot descriptions */
.ski-hotspot-text-container {
    background-color: white;
    padding: 15px;
    border-radius: 4px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.15);
    z-index: 20;
    max-width: 100%;
    overflow-wrap: break-word;
    color: #333;
    font-size: 14px;
    line-height: 1.5;
}

/* For desktop, position to the left */
@media (min-width: 768px) {
    .ski-hotspot-text-container {
        position: absolute;
        left: 0;
        top: 0;
        width: 250px;
        transform: translateX(-100%) translateX(-20px);
    }
}

/* For mobile, position below */
@media (max-width: 767px) {
    .ski-hotspot-text-container {
        position: relative;
        margin-top: 20px;
        width: 100%;
    }
} 