/**
 * Draw Attention Custom Pins CSS
 * 
 * Styles for custom pin markers in Draw Attention Pro
 */

/* Custom pin marker container */
.custom-pin-marker {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    cursor: pointer;
    z-index: 1000;
}

/* SVG icons within pin markers */
.custom-pin-marker svg {
    display: block;
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.3));
    transition: transform 0.2s ease;
}

/* Hover effects for pin markers */
.custom-pin-marker:hover svg {
    transform: scale(1.1);
}

/* Pin marker popup styling */
.leaflet-popup-content {
    font-family: inherit;
    margin: 8px 12px;
    line-height: 1.4;
}

.leaflet-popup-content strong {
    display: block;
    margin-bottom: 4px;
    color: #333;
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .custom-pin-marker svg {
        filter: drop-shadow(1px 1px 2px rgba(0,0,0,0.3));
    }
    
    .custom-pin-marker:hover svg {
        transform: scale(1.05);
    }
}

/* Hide the original pin elements from your theme */
#site-plan-pins {
    display: none !important;
}

.sfc-pin {
    display: none !important;
}

/* Ensure pins appear above other map elements */
.leaflet-marker-pane .custom-pin-marker {
    z-index: 1001 !important;
}

/* Custom pin states - styling already handled in SVG */
/* Coming Soon pins have yellow fill (#FCF712) */
/* Available pins have green fill (#7FFF00) */
/* Reserved/Sold pins have red fill (#FF3131) */

/* Animation for pin loading */
@keyframes pinAppear {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.custom-pin-marker {
    animation: pinAppear 0.3s ease-out;
}

/* Accessibility improvements */
.custom-pin-marker:focus {
    outline: 2px solid #0073aa;
    outline-offset: 2px;
    border-radius: 50%;
}

/* Popup styling improvements */
.leaflet-popup-content-wrapper {
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.leaflet-popup-tip {
    box-shadow: none;
}

/* Legend styling to match your existing design */
.legend {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    padding: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.legend-item {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.legend-item:last-child {
    margin-bottom: 0;
}

.legend-item svg {
    margin-right: 8px;
    flex-shrink: 0;
}

.legend-item-text {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}
