.image-mapping-widget {
    margin: 2rem 0;
}

.image-mapping-header {
    text-align: center;
    margin-bottom: 2rem;
}

.image-mapping-heading {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #333;
}

.image-mapping-description {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.6;
}

/* Description positioning styles */
.description-above,
.description-below {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.description-above {
    margin-bottom: 2rem;
}

.description-below {
    margin-top: 2rem;
}

.description-ontop {
    position: absolute;
    z-index: 15;
    background: rgba(255, 255, 255, 0.95);
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    max-width: 300px;
    transform: translate(0, 0);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

/* Font size specific styling for descriptions */
.image-mapping-description {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Responsive font sizing for different description positions */
.description-ontop * {
    line-height: 1.2 !important;
}

.description-ontop p {
    margin: 0.25em 0 !important;
}

/* Specific font size overrides to prevent wrapping */
.description-ontop [style*="font-size: 8px"] { line-height: 1.1 !important; }
.description-ontop [style*="font-size: 10px"] { line-height: 1.1 !important; }
.description-ontop [style*="font-size: 11px"] { line-height: 1.2 !important; }
.description-ontop [style*="font-size: 12px"] { line-height: 1.2 !important; }
.description-ontop [style*="font-size: 14px"] { line-height: 1.3 !important; }

/* Description font size classes */
.desc-font-tiny { font-size: 8px !important; line-height: 1.1 !important; }
.desc-font-verysmall { font-size: 10px !important; line-height: 1.1 !important; }
.desc-font-small { font-size: 12px !important; line-height: 1.2 !important; }
.desc-font-medium { font-size: 14px !important; line-height: 1.3 !important; }
.desc-font-large { font-size: 16px !important; line-height: 1.4 !important; }
.desc-font-verylarge { font-size: 18px !important; line-height: 1.4 !important; }
.desc-font-extralarge { font-size: 20px !important; line-height: 1.4 !important; }
.desc-font-huge { font-size: 24px !important; line-height: 1.4 !important; }

.image-mapping-container {
    position: relative;
    display: inline-block;
    width: 100%;
    max-width: 100%;
}

.image-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
    line-height: 0;
}

.mapping-image {
    width: 100%;
    height: auto;
    display: block;
}

.hotspot {
    position: absolute;
    z-index: 100;
    cursor: pointer;
    transform: translate(-50%, -50%);
    pointer-events: auto; /* Ensure hotspots can receive mouse events */
    /* Create isolated stacking context for each hotspot */
    isolation: isolate;
}

.hotspot-marker {
    position: relative;
    z-index: 1;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #5cff96;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(92, 255, 150, 0.3);
    pointer-events: auto; /* Ensure markers can receive hover events */
}

/* Hotspot Color Classes */
.hotspot-color-usedefault .hotspot-marker {
    background: #5cff96; /* Fallback to green if somehow UseDefault reaches CSS */
    box-shadow: 0 2px 8px rgba(92, 255, 150, 0.3);
}

.hotspot-color-green .hotspot-marker {
    background: #5cff96;
    box-shadow: 0 2px 8px rgba(92, 255, 150, 0.3);
}

.hotspot-color-blue .hotspot-marker {
    background: #007bff;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}

.hotspot-color-red .hotspot-marker {
    background: #dc3545;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
}

.hotspot-color-orange .hotspot-marker {
    background: #fd7e14;
    box-shadow: 0 2px 8px rgba(253, 126, 20, 0.3);
}

.hotspot-color-purple .hotspot-marker {
    background: #6f42c1;
    box-shadow: 0 2px 8px rgba(111, 66, 193, 0.3);
}

.hotspot-color-teal .hotspot-marker {
    background: #20c997;
    box-shadow: 0 2px 8px rgba(32, 201, 151, 0.3);
}

.hotspot-color-pink .hotspot-marker {
    background: #d63384;
    box-shadow: 0 2px 8px rgba(214, 51, 132, 0.3);
}

.hotspot-color-yellow .hotspot-marker {
    background: #ffc107;
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.3);
}

/* Hotspot Text Color Classes */
.hotspot-text-usedefault .hotspot-marker {
    color: white !important; /* Fallback to white if somehow UseDefault reaches CSS */
}

.hotspot-text-white .hotspot-marker {
    color: white !important;
}

.hotspot-text-black .hotspot-marker {
    color: #212529 !important;
}

.hotspot-text-lightgray .hotspot-marker {
    color: #dee2e6 !important;
}

.hotspot-text-darkgray .hotspot-marker {
    color: #6c757d !important;
}

/* Hotspot Number Text Color Classes - target the actual number element */
.hotspot-text-usedefault .hotspot-number {
    color: white !important;
}

.hotspot-text-white .hotspot-number {
    color: white !important;
}

.hotspot-text-black .hotspot-number {
    color: #212529 !important;
}

.hotspot-text-lightgray .hotspot-number {
    color: #dee2e6 !important;
}

.hotspot-text-darkgray .hotspot-number {
    color: #6c757d !important;
}

/* Hotspot Icon Text Color Classes - target icon elements */
.hotspot-text-usedefault .hotspot-icon {
    color: white !important;
}

.hotspot-text-white .hotspot-icon {
    color: white !important;
}

.hotspot-text-black .hotspot-icon {
    color: #212529 !important;
}

.hotspot-text-lightgray .hotspot-icon {
    color: #dee2e6 !important;
}

.hotspot-text-darkgray .hotspot-icon {
    color: #6c757d !important;
}

/* Hotspot FontAwesome Icon Text Color Classes - target <i> elements */
.hotspot-text-usedefault .hotspot-marker i {
    color: white !important;
}

.hotspot-text-white .hotspot-marker i {
    color: white !important;
}

.hotspot-text-black .hotspot-marker i {
    color: #212529 !important;
}

.hotspot-text-lightgray .hotspot-marker i {
    color: #dee2e6 !important;
}

.hotspot-text-darkgray .hotspot-marker i {
    color: #6c757d !important;
}

/* Hotspot Styles */
.image-mapping-container[data-hotspot-style="pulse"] .hotspot-marker {
    animation: pulse 2s infinite;
}

.image-mapping-container[data-hotspot-style="pulse"] .hotspot-color-green .hotspot-marker::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 50%;
    border: 2px solid #5cff96;
    animation: pulse-ring 2s infinite;
}

.image-mapping-container[data-hotspot-style="pulse"] .hotspot-color-blue .hotspot-marker::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 50%;
    border: 2px solid #007bff;
    animation: pulse-ring 2s infinite;
}

.image-mapping-container[data-hotspot-style="pulse"] .hotspot-color-red .hotspot-marker::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 50%;
    border: 2px solid #dc3545;
    animation: pulse-ring 2s infinite;
}

.image-mapping-container[data-hotspot-style="pulse"] .hotspot-color-orange .hotspot-marker::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 50%;
    border: 2px solid #fd7e14;
    animation: pulse-ring 2s infinite;
}

.image-mapping-container[data-hotspot-style="pulse"] .hotspot-color-purple .hotspot-marker::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 50%;
    border: 2px solid #6f42c1;
    animation: pulse-ring 2s infinite;
}

.image-mapping-container[data-hotspot-style="pulse"] .hotspot-color-teal .hotspot-marker::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 50%;
    border: 2px solid #20c997;
    animation: pulse-ring 2s infinite;
}

.image-mapping-container[data-hotspot-style="pulse"] .hotspot-color-pink .hotspot-marker::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 50%;
    border: 2px solid #d63384;
    animation: pulse-ring 2s infinite;
}

.image-mapping-container[data-hotspot-style="pulse"] .hotspot-color-yellow .hotspot-marker::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 50%;
    border: 2px solid #ffc107;
    animation: pulse-ring 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

@keyframes pulse-ring {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.5); opacity: 0; }
}

.image-mapping-container[data-hotspot-style="plus"] .hotspot-marker {
    background: transparent;
    border: 2px solid #5cff96;
}

.image-mapping-container[data-hotspot-style="plus"] .hotspot-color-usedefault .hotspot-marker {
    border: 2px solid #5cff96;
}

.image-mapping-container[data-hotspot-style="plus"] .hotspot-color-green .hotspot-marker {
    border: 2px solid #5cff96;
}

.image-mapping-container[data-hotspot-style="plus"] .hotspot-color-blue .hotspot-marker {
    border: 2px solid #007bff;
}

.image-mapping-container[data-hotspot-style="plus"] .hotspot-color-red .hotspot-marker {
    border: 2px solid #dc3545;
}

.image-mapping-container[data-hotspot-style="plus"] .hotspot-color-orange .hotspot-marker {
    border: 2px solid #fd7e14;
}

.image-mapping-container[data-hotspot-style="plus"] .hotspot-color-purple .hotspot-marker {
    border: 2px solid #6f42c1;
}

.image-mapping-container[data-hotspot-style="plus"] .hotspot-color-teal .hotspot-marker {
    border: 2px solid #20c997;
}

.image-mapping-container[data-hotspot-style="plus"] .hotspot-color-pink .hotspot-marker {
    border: 2px solid #d63384;
}

.image-mapping-container[data-hotspot-style="plus"] .hotspot-color-yellow .hotspot-marker {
    border: 2px solid #ffc107;
}

/* Plus outline color overrides (borders) */
.image-mapping-container[data-hotspot-style="plus"] .hotspot-text-usedefault .hotspot-marker {
    border: 2px solid white !important;
}

.image-mapping-container[data-hotspot-style="plus"] .hotspot-text-white .hotspot-marker {
    border: 2px solid white !important;
}

.image-mapping-container[data-hotspot-style="plus"] .hotspot-text-black .hotspot-marker {
    border: 2px solid #212529 !important;
}

.image-mapping-container[data-hotspot-style="plus"] .hotspot-text-lightgray .hotspot-marker {
    border: 2px solid #dee2e6 !important;
}

.image-mapping-container[data-hotspot-style="plus"] .hotspot-text-darkgray .hotspot-marker {
    border: 2px solid #6c757d !important;
}

.hotspot-plus {
    font-size: 16px;
    font-weight: bold;
    color: #5cff96;
}

.hotspot-color-usedefault .hotspot-plus {
    color: #5cff96;
}

.hotspot-color-green .hotspot-plus {
    color: #5cff96;
}

.hotspot-color-blue .hotspot-plus {
    color: #007bff;
}

.hotspot-color-red .hotspot-plus {
    color: #dc3545;
}

.hotspot-color-orange .hotspot-plus {
    color: #fd7e14;
}

.hotspot-color-purple .hotspot-plus {
    color: #6f42c1;
}

.hotspot-color-teal .hotspot-plus {
    color: #20c997;
}

.hotspot-color-pink .hotspot-plus {
    color: #d63384;
}

.hotspot-color-yellow .hotspot-plus {
    color: #ffc107;
}

/* Plus text color overrides */
.hotspot-text-usedefault .hotspot-plus {
    color: white !important;
}

.hotspot-text-white .hotspot-plus {
    color: white !important;
}

.hotspot-text-black .hotspot-plus {
    color: #212529 !important;
}

.hotspot-text-lightgray .hotspot-plus {
    color: #dee2e6 !important;
}

.hotspot-text-darkgray .hotspot-plus {
    color: #6c757d !important;
}

.image-mapping-container[data-hotspot-style="pin"] .hotspot-marker {
    background: #5cff96;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
}

.image-mapping-container[data-hotspot-style="pin"] .hotspot-color-usedefault .hotspot-marker {
    background: #5cff96;
}

.image-mapping-container[data-hotspot-style="pin"] .hotspot-color-green .hotspot-marker {
    background: #5cff96;
}

.image-mapping-container[data-hotspot-style="pin"] .hotspot-color-blue .hotspot-marker {
    background: #007bff;
}

.image-mapping-container[data-hotspot-style="pin"] .hotspot-color-red .hotspot-marker {
    background: #dc3545;
}

.image-mapping-container[data-hotspot-style="pin"] .hotspot-color-orange .hotspot-marker {
    background: #fd7e14;
}

.image-mapping-container[data-hotspot-style="pin"] .hotspot-color-purple .hotspot-marker {
    background: #6f42c1;
}

.image-mapping-container[data-hotspot-style="pin"] .hotspot-color-teal .hotspot-marker {
    background: #20c997;
}

.image-mapping-container[data-hotspot-style="pin"] .hotspot-color-pink .hotspot-marker {
    background: #d63384;
}

.image-mapping-container[data-hotspot-style="pin"] .hotspot-color-yellow .hotspot-marker {
    background: #ffc107;
}

.image-mapping-container[data-hotspot-style="pin"] .hotspot-marker i {
    transform: rotate(45deg);
}

.hotspot:hover .hotspot-marker {
    transform: scale(1.2);
}

.hotspot-color-green:hover .hotspot-marker {
    box-shadow: 0 4px 12px rgba(92, 255, 150, 0.4);
}

.hotspot-color-blue:hover .hotspot-marker {
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.4);
}

.hotspot-color-red:hover .hotspot-marker {
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
}

.hotspot-color-orange:hover .hotspot-marker {
    box-shadow: 0 4px 12px rgba(253, 126, 20, 0.4);
}

.hotspot-color-purple:hover .hotspot-marker {
    box-shadow: 0 4px 12px rgba(111, 66, 193, 0.4);
}

.hotspot-color-teal:hover .hotspot-marker {
    box-shadow: 0 4px 12px rgba(32, 201, 151, 0.4);
}

.hotspot-color-pink:hover .hotspot-marker {
    box-shadow: 0 4px 12px rgba(214, 51, 132, 0.4);
}

.hotspot-color-yellow:hover .hotspot-marker {
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.4);
}

/* Hotspot Number Styling */
.hotspot-number {
    font-size: 12px;
    font-weight: bold;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

/* Different styles for numbered hotspots */
.show-numbers .hotspot-marker,
.image-mapping-container[data-hotspot-style="numbered"] .hotspot-marker {
    background: #5cff96 !important;
    border-radius: 50% !important;
    border: 2px solid white;
    box-shadow: 0 2px 8px rgba(92, 255, 150, 0.4);
}

.image-mapping-container[data-hotspot-style="numbered"] .hotspot-color-usedefault .hotspot-marker {
    background: #5cff96 !important;
    box-shadow: 0 2px 8px rgba(92, 255, 150, 0.4);
}

/* Numbered outline color overrides (borders) */
.image-mapping-container[data-hotspot-style="numbered"] .hotspot-text-usedefault .hotspot-marker {
    border: 2px solid white !important;
}

.image-mapping-container[data-hotspot-style="numbered"] .hotspot-text-white .hotspot-marker {
    border: 2px solid white !important;
}

.image-mapping-container[data-hotspot-style="numbered"] .hotspot-text-black .hotspot-marker {
    border: 2px solid #212529 !important;
}

.image-mapping-container[data-hotspot-style="numbered"] .hotspot-text-lightgray .hotspot-marker {
    border: 2px solid #dee2e6 !important;
}

.image-mapping-container[data-hotspot-style="numbered"] .hotspot-text-darkgray .hotspot-marker {
    border: 2px solid #6c757d !important;
}

.image-mapping-container[data-hotspot-style="numbered"] .hotspot-color-green .hotspot-marker {
    background: #5cff96 !important;
    box-shadow: 0 2px 8px rgba(92, 255, 150, 0.4);
}

.image-mapping-container[data-hotspot-style="numbered"] .hotspot-color-blue .hotspot-marker {
    background: #007bff !important;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.4);
}

.image-mapping-container[data-hotspot-style="numbered"] .hotspot-color-red .hotspot-marker {
    background: #dc3545 !important;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.4);
}

.image-mapping-container[data-hotspot-style="numbered"] .hotspot-color-orange .hotspot-marker {
    background: #fd7e14 !important;
    box-shadow: 0 2px 8px rgba(253, 126, 20, 0.4);
}

.image-mapping-container[data-hotspot-style="numbered"] .hotspot-color-purple .hotspot-marker {
    background: #6f42c1 !important;
    box-shadow: 0 2px 8px rgba(111, 66, 193, 0.4);
}

.image-mapping-container[data-hotspot-style="numbered"] .hotspot-color-teal .hotspot-marker {
    background: #20c997 !important;
    box-shadow: 0 2px 8px rgba(32, 201, 151, 0.4);
}

.image-mapping-container[data-hotspot-style="numbered"] .hotspot-color-pink .hotspot-marker {
    background: #d63384 !important;
    box-shadow: 0 2px 8px rgba(214, 51, 132, 0.4);
}

.image-mapping-container[data-hotspot-style="numbered"] .hotspot-color-yellow .hotspot-marker {
    background: #ffc107 !important;
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.4);
}

/* Numbered text color overrides */
.image-mapping-container[data-hotspot-style="numbered"] .hotspot-text-usedefault .hotspot-marker {
    color: white !important;
}

.image-mapping-container[data-hotspot-style="numbered"] .hotspot-text-white .hotspot-marker {
    color: white !important;
}

.image-mapping-container[data-hotspot-style="numbered"] .hotspot-text-black .hotspot-marker {
    color: #212529 !important;
}

.image-mapping-container[data-hotspot-style="numbered"] .hotspot-text-lightgray .hotspot-marker {
    color: #dee2e6 !important;
}

.image-mapping-container[data-hotspot-style="numbered"] .hotspot-text-darkgray .hotspot-marker {
    color: #6c757d !important;
}

/* Numbered style overrides pulse animation */
.image-mapping-container[data-hotspot-style="numbered"] .hotspot-marker {
    animation: none;
}

.image-mapping-container[data-hotspot-style="numbered"] .hotspot-marker::before {
    display: none;
}

/* Handle double-digit numbers */
.hotspot-number {
    min-width: 20px;
    text-align: center;
}

/* Ensure numbers are always visible over any hotspot style */
.show-numbers .hotspot-marker .hotspot-number {
    position: relative;
    z-index: 1;
}

/* Hover effect for numbered hotspots */
.show-numbers.hotspot:hover .hotspot-marker,
.image-mapping-container[data-hotspot-style="numbered"] .hotspot:hover .hotspot-marker {
    transform: scale(1.1);
}

.image-mapping-container[data-hotspot-style="numbered"] .hotspot-color-green:hover .hotspot-marker {
    background: #2ee670 !important;
}

.image-mapping-container[data-hotspot-style="numbered"] .hotspot-color-blue:hover .hotspot-marker {
    background: #0056b3 !important;
}

.image-mapping-container[data-hotspot-style="numbered"] .hotspot-color-red:hover .hotspot-marker {
    background: #b02a37 !important;
}

.image-mapping-container[data-hotspot-style="numbered"] .hotspot-color-orange:hover .hotspot-marker {
    background: #dc6402 !important;
}

.image-mapping-container[data-hotspot-style="numbered"] .hotspot-color-purple:hover .hotspot-marker {
    background: #5a32a3 !important;
}

.image-mapping-container[data-hotspot-style="numbered"] .hotspot-color-teal:hover .hotspot-marker {
    background: #1aa179 !important;
}

.image-mapping-container[data-hotspot-style="numbered"] .hotspot-color-pink:hover .hotspot-marker {
    background: #b02a5b !important;
}

.image-mapping-container[data-hotspot-style="numbered"] .hotspot-color-yellow:hover .hotspot-marker {
    background: #d39e00 !important;
}

/* Popover Styles */
.hotspot-popover {
    position: absolute !important;
    bottom: 100% !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    background: white !important;
    border: 1px solid #ddd !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15) !important;
    padding: 1rem !important;
    min-width: 250px !important;
    max-width: 350px !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: all 0.3s ease !important;
    z-index: 999999 !important;
    margin-bottom: 10px !important;
    pointer-events: none !important;
    /* Force a new stacking context to break out of parent transform */
    transform-style: preserve-3d !important;
    will-change: transform, opacity !important;
}

.hotspot-popover.always-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Hover/click states are now handled by JavaScript for fixed positioning */

.popover-arrow {
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid white;
    z-index: 1;
}

.popover-arrow::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -8px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid #ddd;
}

.hotspot-title {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: #333;
}

.hotspot-content {
    margin-bottom: 1rem;
    color: #666;
    font-size: 0.9rem;
    line-height: 1.4;
}

.hotspot-content:last-child {
    margin-bottom: 0;
}

.hotspot-actions {
    text-align: center;
}

.hotspot-link {
    text-decoration: none;
    font-size: 0.9rem;
}

.hotspot-link i {
    margin-left: 0.25rem;
    font-size: 0.8rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hotspot-popover {
        min-width: 200px;
        max-width: 280px;
        font-size: 0.85rem;
    }
    
    .hotspot-marker {
        width: 20px;
        height: 20px;
        font-size: 10px;
    }
    
    .hotspot-number {
        font-size: 10px;
    }
    
    .image-mapping-heading {
        font-size: 1.5rem;
    }
    
    .description-ontop {
        max-width: 250px;
        padding: 0.75rem;
        font-size: 0.9rem;
    }
    
    .description-above,
    .description-below {
        font-size: 1rem;
        padding: 0 1rem;
    }
}

/* Error/Empty States */
.image-mapping-placeholder,
.image-mapping-no-hotspots {
    text-align: center;
    padding: 2rem;
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
}

.no-hotspots-message {
    margin-top: 1rem;
    color: #6c757d;
    font-style: italic;
}

/* Coordinate Helper Styles */
.coordinate-helper-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
}

.grid-line-v, .grid-line-h {
    position: absolute;
    background: rgba(255, 0, 0, 0.3);
}

.grid-line-v {
    width: 1px;
    height: 100%;
    top: 0;
}

.grid-line-h {
    width: 100%;
    height: 1px;
    left: 0;
}

.coord-label-x, .coord-label-y {
    position: absolute;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #ccc;
    padding: 2px 4px;
    font-size: 10px;
    font-weight: bold;
    color: #333;
    border-radius: 2px;
}

.coord-label-x {
    top: -20px;
    transform: translateX(-50%);
}

.coord-label-y {
    left: -25px;
    transform: translateY(-50%);
}

.coordinate-display {
    position: absolute;
    bottom: -30px;
    left: 0;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-family: monospace;
    z-index: 1055;
}

.show-coordinate-helper .mapping-image {
    cursor: crosshair;
}