/**
 * Marker Styles for TaniMapping
 * Custom styling for different types of markers
 */

/* Base marker styles */
.custom-marker {
    background: transparent;
    border: none;
}

.marker-icon {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    position: relative;
}

.marker-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* Marker types */
.irigasi-marker .marker-icon {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border: 3px solid #ffffff;
}

.kelompok-tani-marker .marker-icon {
    background: linear-gradient(135deg, #10b981, #059669);
    border: 3px solid #ffffff;
}

.jalur-irigasi-marker .marker-icon {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    border: 3px solid #ffffff;
}

/* Marker glow effect */
.marker-icon::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 50%;
    z-index: -1;
    opacity: 0.3;
}

.irigasi-marker .marker-icon::before {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.kelompok-tani-marker .marker-icon::before {
    background: linear-gradient(135deg, #10b981, #059669);
}

.jalur-irigasi-marker .marker-icon::before {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

/* Icon styling */
.marker-icon i {
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Custom div icon for jalur points */
.custom-div-icon {
    background: transparent;
    border: none;
}

.custom-div-icon div {
    border-radius: 50%;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.5);
}

/* Popup styling */
.leaflet-popup-content {
    margin: 8px 12px;
    line-height: 1.4;
}

.leaflet-popup-content h6 {
    color: #1f2937;
    margin-bottom: 8px;
}

.leaflet-popup-content p {
    margin-bottom: 4px;
    color: #4b5563;
}

.leaflet-popup-content strong {
    color: #1f2937;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .marker-icon {
        font-size: 14px;
    }
    
    .leaflet-popup-content {
        margin: 6px 10px;
        font-size: 14px;
    }
}
