/* Hotspot Image Element Styles */

/* Wrapper to maintain aspect ratio */
.hotspot-wrapper {
    position: relative;
    width: 100%;
    max-width: 100%;
}

.hotspot-container {
    position: relative;
    width: 100%;
    padding-bottom: 100%; /* Default 3:2 aspect ratio, will be adjusted by JS */
}

.hotspot-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0 !important;
    display: block;
}

/* Hotspot markers */
.hotspot {
    position: absolute;
    width: 40px;
    height: 40px;
    transform: translate(-50%, -50%);
    cursor: pointer;
    z-index: 99;
    transition: z-index 0s 0.3s;
    display: block !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

.hotspot.active {
    z-index: 100;
    transition: z-index 0s 0s;
}

.hotspot-marker {
    width: 100%;
    height: 100%;
    background: var(--hotspot-marker-color, #ff3b5c);
    opacity: 0.9;
    border: 3px solid white;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    position: relative;
    transition: all 0.3s ease;
    cursor: pointer;
    display: block;
}

.hotspot-marker::before {
    content: '+';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
}

/* Vibrating animation */
@keyframes vibrate {
    0%, 100% { 
        transform: scale(1); 
    }
    25% { 
        transform: scale(1.1); 
    }
    50% { 
        transform: scale(1); 
    }
    75% { 
        transform: scale(1.1); 
    }
}

.hotspot-marker {
    animation: vibrate 2s ease-in-out infinite;
}

/* Pulse ring effect */
@keyframes pulse-ring {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(2);
        opacity: 0;
    }
}

.hotspot-marker::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    border: 2px solid var(--hotspot-marker-color, #ff3b5c);
    opacity: 0.6;
    border-radius: 50%;
    animation: pulse-ring 2s ease-out infinite;
}

/* Hotspot sizes */
.hotspot.hotspot-small {
    width: 28px;
    height: 28px;
}

.hotspot.hotspot-small .hotspot-marker::before {
    font-size: 18px;
}

.hotspot.hotspot-medium {
    width: 40px;
    height: 40px;
}

.hotspot.hotspot-medium .hotspot-marker::before {
    font-size: 24px;
}

.hotspot.hotspot-large {
    width: 56px;
    height: 56px;
}

.hotspot.hotspot-large .hotspot-marker::before {
    font-size: 32px;
}

/* Hover and active states - NO ZOOM */
.hotspot:hover .hotspot-marker,
.hotspot:active .hotspot-marker {
    opacity: 1;
    animation: none;
}

.hotspot.active .hotspot-marker {
    background: var(--hotspot-active-color, #2ecc71);
    opacity: 0.9;
    animation: none;
}

/* Tooltip styling - SIMPLE BOTTOM LEFT/RIGHT */
.hotspot-tooltip {
    position: absolute;
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.25);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    max-height: 80vh;
    overflow-y: auto;
    width: 320px;
    max-width: calc(90vw);
    
    /* Position below hotspot */
    top: 100%;
    margin-top: 15px;
}

/* LEFT SIDE (X <= 50%): Bottom-right from hotspot */
.hotspot[data-side="left"] .hotspot-tooltip {
    left: 0;
}

/* RIGHT SIDE (X > 50%): Bottom-left from hotspot */
.hotspot[data-side="right"] .hotspot-tooltip {
    right: 0;
}

/* When active - show it */
.hotspot.active .hotspot-tooltip {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}



.hotspot-tooltip-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 2px solid #000;
    padding-right: 30px;
}

.hotspot-tooltip-content {
    color: #666;
    line-height: 1.6;
    font-size: 14px;
}

.hotspot-tooltip-content p:last-child {
    margin-bottom: 0;
}

.hotspot-tooltip-treatments {
    margin-top: 15px;
}

.hotspot-tooltip-treatments h4 {
    font-size: 14px;
    color: #555;
    margin-bottom: 8px;
    font-weight: 600;
}

.hotspot-tooltip-treatments ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hotspot-tooltip-treatments li {
    padding: 6px 0;
    padding-left: 20px;
    position: relative;
    color: #666;
}

.hotspot-tooltip-treatments li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--hotspot-active-color, #2ecc71);
    font-weight: bold;
}

/* Close button */
.hotspot-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
    line-height: 1;
    padding: 0;
}

.hotspot-close:hover,
.hotspot-close:active {
    background: #f0f0f0;
    color: #333;
}

/* Overlay for mobile */
/* Overlay styling - DISABLED */
.hotspot-overlay {
    display: none !important;
}

/* Controls */
.hotspot-controls {
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.hotspot-controls label {
    font-weight: 500;
    color: #555;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hotspot-controls input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.hotspot-controls input[type="number"] {
    width: 60px;
    padding: 4px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin: 0 5px;
}

/* Responsive adjustments */
@media (max-width: 959px) {
    .hotspot {
        width: 36px;
        height: 36px;
    }

    .hotspot-marker::before {
        font-size: 20px;
    }

    .hotspot-tooltip {
        padding: 18px;
        max-width: 340px;
    }

    .hotspot-tooltip-title {
        font-size: 16px;
    }



    .hotspot-tooltip-treatments h4 {
        font-size: 13px;
    }

    .hotspot-tooltip-treatments li {
        font-size: 12px;
    }
}

@media (max-width: 639px) {
    .hotspot {
        width: 32px;
        height: 32px;
    }

    .hotspot-marker {
        border-width: 2px;
    }

    .hotspot-marker::before {
        font-size: 18px;
    }

    .hotspot-tooltip {
        padding: 16px;
        width: 30vw !important;
        max-width: 200px;
    }

    .hotspot-controls {
        gap: 15px;
    }

    .hotspot-controls label {
        font-size: 13px;
    }
}

/* Better touch targets for mobile */
@media (hover: none) and (pointer: coarse) {
    .hotspot {
        width: 44px;
        height: 44px;
    }
}

/* Preview styles for YOOtheme Builder */
.hotspot-preview {
    padding: 20px;
    background: white;
    border-radius: 8px;
}

.hotspot-preview img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}
.hotspot-behandlungen-title {
    margin-bottom: 0 !important;
    margin-top: 20px !important;
    font-size: 
}
.hotspot-tooltip-treatments p {
    margin-top: 10px !important;
}
.hotspot-tooltip-treatments {
    margin-top: 20px;
}
.hotspot-tooltip-treatments p:not(.hotspot-behandlungen-title) {
    font-size: 14px;
}