/* Zillow-style marker hover effect cleanup */
.zillow-style-marker {
    z-index: 1000 !important;
}

/* 
   MARKER DOT - Parent 
*/
.marker-dot {
    /* transition: transform 0.2s;  <-- Keep transform, remove color transition if causing ghosting */
}

.marker-dot:hover {
    background-color: #000000 !important;
    /* Force Black Dot on Hover */
    transform: scale(1.1);
    z-index: 9999;
}

/* Marker Label Bubbles */
.marker-label-bubble {
    position: absolute;
    left: 15px;
    bottom: 15px;
    background-color: #e0e0e0;
    /* Light Grey Background */
    color: #000000;
    padding: 5px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    border: none;
    pointer-events: auto;
    /* Instant color change - no transition for background to prevent 'red ghost' */
    transition: transform 0.2s ease;
}

/* Connector Line Default */
.marker-connector-line {
    /* Set stroke via CSS to override SVG attribute */
    stroke: #000000;
}

/* 
   GROUP HOVER EFFECTS - UNIFIED ENTITY
*/

/* 1. When hovering DOT -> Turn Label Black */
.marker-dot:hover .marker-label-bubble {
    background-color: #000000 !important;
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.4);
}

/* 2. When hovering LABEL -> Turn Label Black (Reinforcement) */
.marker-label-bubble:hover {
    background-color: #000000 !important;
}

/* 3. When hovering DOT -> Turn Line Black */
.marker-dot:hover .marker-connector-line {
    stroke: #000000 !important;
}