/* ===========================================
   HOTSPOT MARKERS (Custom Overlay)
   =========================================== */
.hotspot-marker {
    position: absolute;
    cursor: pointer;
    z-index: 50;
    /* Allow interactions */
    pointer-events: auto;
    /* Center the bottom tip on the coordinate */
    transform: translate(-50%, -100%);
    /* Smooth movement if coordinates change, though mainly for opacity/transform */
    transition: z-index 0s, opacity 0.2s;
}

.hotspot-bubble {
    background: #ffffff;
    color: #1c1c1e;
    padding: 6px 10px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 2px solid #fff;
    transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Bouncy pop */
    position: relative;
    /* For tip positioning */
}

.hotspot-index {
    background: var(--primary);
    color: white;
    font-size: 11px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-weight: 800;
}

.hotspot-text {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hotspot-tip {
    position: absolute;
    bottom: -6px;
    left: 50%;
    margin-left: -6px;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #ffffff;
    transition: border-top-color 0.25s;
}

/* --- STATES --- */

/* Selected: Highlights and pops up */
.hotspot-marker.selected {
    z-index: 100 !important;
}

.hotspot-marker.selected .hotspot-bubble {
    transform: scale(1.15) translateY(-4px);
    border-color: var(--primary);
    background: var(--primary);
    color: white;
    box-shadow: 0 8px 20px rgba(205, 32, 38, 0.4);
}

.hotspot-marker.selected .hotspot-index {
    background: white;
    color: var(--primary);
}

.hotspot-marker.selected .hotspot-tip {
    border-top-color: var(--primary);
}

/* Dimmed: Fades out */
.hotspot-marker.dimmed {
    opacity: 0.4;
    z-index: 10;
}

/* Red Variant (Recents) */
.hotspot-marker.hotspot-red .hotspot-bubble {
    border-color: #CD2026;
    color: #CD2026;
}

.hotspot-marker.hotspot-red .hotspot-index {
    background: #CD2026;
    color: white;
}

.hotspot-marker.hotspot-red .hotspot-tip {
    border-top-color: #CD2026;
    /* Match border/index */
}

/* Force Marker Label Visibility */
.custom-marker-label {
    color: #000000 !important;
    font-size: 20px !important;
    font-weight: 900 !important;
    opacity: 1 !important;
    font-family: 'Arial', sans-serif !important;
    text-shadow: none !important;
    /* Remove shadow to keep it clean black */
}