/* ===================================
   Hotspot Widget Styles
   =================================== */

.hotspot-widget-wrapper {
    width: 100%;
    max-width: 100%;
}

/* Image Container */
.hotspot-image-container {
    position: relative;
    display: inline-block;
    width: 100%;
    max-width: 100%;
}

.hotspot-image-container img {
    width: 100%;
    height: auto;
    display: block;
}

/* Hotspot Markers Container */
.hotspot-markers-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* Hotspot Marker */
.hotspot-marker {
    position: absolute;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 3px solid #ffffff;
    background-color: rgba(255, 0, 0, 0.8);
    transform: translate(-50%, -50%);
    cursor: pointer;
    pointer-events: all;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hotspot Marker Inner */
.hotspot-marker-inner {
    display: block;
    width: 16px;
    height: 16px;
    position: relative;
    color: #ffffff;
    font-size: 20px;
    font-weight: bold;
    line-height: 16px;
}

.hotspot-marker-inner::before {
    content: '+';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Hotspot Marker Pulse Animation */
.hotspot-marker.pulse-enabled::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: inherit;
    opacity: 0.7;
    animation: hotspot-pulse 1.5s ease-out infinite;
}

@keyframes hotspot-pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.7;
    }
    70% {
        transform: translate(-50%, -50%) scale(2);
        opacity: 0;
    }
    100% {
        transform: translate(-50%, -50%) scale(2);
        opacity: 0;
    }
}

/* Hotspot Hover State */
.hotspot-marker:hover {
    transform: translate(-50%, -50%) scale(1.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Active State */
.hotspot-marker.active {
    background-color: #00ff00;
    border-color: #ffffff;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.5);
}

/* Description Container */
.hotspot-description-container {
    width: 100%;
    margin-top: 20px;
    padding: 20px;
    background-color: #f5f5f5;
    border-radius: 8px;
}

/* Description Item */
.hotspot-description-item {
    padding: 15px;
    margin-bottom: 10px;
    background-color: #ffffff;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    padding: 0 !important;
    margin: 0 !important;
}

.hotspot-description-item:last-child {
    margin-bottom: 0;
}

.hotspot-description-item.active {
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    padding: 15px !important;
    margin-bottom: 10px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    animation: fadeInUp 0.3s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Description Title */
.hotspot-description-title {
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: 600;
    color: #333333;
    line-height: 1.4;
}

/* Description Content */
.hotspot-description-content {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: #666666;
}

.hotspot-description-content p {
    margin: 0 0 10px 0;
}

.hotspot-description-content p:last-child {
    margin-bottom: 0;
}

.hotspot-description-content ul,
.hotspot-description-content ol {
    margin: 0 0 10px 20px;
    padding: 0;
}

.hotspot-description-content li {
    margin-bottom: 5px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hotspot-marker {
        width: 30px;
        height: 30px;
        border-width: 2px;
    }

    .hotspot-marker-inner {
        width: 6px;
        height: 6px;
    }

    .hotspot-description-container {
        padding: 15px;
    }

    .hotspot-description-item {
        padding: 12px;
    }

    .hotspot-description-title {
        font-size: 16px;
    }

    .hotspot-description-content {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .hotspot-marker {
        width: 25px;
        height: 25px;
    }

    .hotspot-marker-inner {
        width: 5px;
        height: 5px;
    }

    .hotspot-description-title {
        font-size: 15px;
    }

    .hotspot-description-content {
        font-size: 12px;
    }
}

/* Elementor Editor Styles */
.elementor-editor-active .hotspot-marker {
    cursor: move;
}
