:root {
        --primary-orange: #f18d00;
        --primary-blue: #005073;
        --accent-glow: rgba(241, 141, 0, 0.4);
        --tooltip-bg: rgba(15, 23, 42, 0.9);
        --glass-white: rgba(255, 255, 255, 0.8);
    }

    .sunfarming-widget {
        position: relative;
        width: 100%;
        max-width: 945px;
        background: #fff;
        border-radius: 20px;
        box-shadow: 0 20px 50px rgba(0,0,0,0.1);
        overflow: hidden;
        margin: 0 auto;
        font-family: 'Inter', sans-serif;
    }

    .map-wrapper {
        position: relative;
        width: 100%;
        line-height: 0;
    }

    .map-wrapper img {
        width: 100%;
        height: auto;
        display: block;
        filter: saturate(1.1);
    }

    .pin {
        position: absolute;
        width: 28px;
        height: 28px;
        transform: translate(-50%, -100%);
        cursor: pointer;
        z-index: 10;
        transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    }

    .pin:hover {
        transform: translate(-50%, -110%) scale(1.25);
        z-index: 100;
    }

    .pin-svg {
        width: 100%;
        height: 100%;
        filter: drop-shadow(0 4px 6px rgba(0,0,0,0.2));
    }

    .pin-main { color: var(--primary-orange); }
    .pin-main .pulse {
        position: absolute;
        top: 100%;
        left: 50%;
        width: 12px;
        height: 12px;
        background: var(--primary-orange);
        border-radius: 50%;
        transform: translate(-50%, -50%);
        z-index: -1;
    }

    .pin-main .pulse::after {
        content: '';
        position: absolute;
        top: 0; left: 0;
        width: 100%; height: 100%;
        border-radius: 50%;
        background: var(--primary-orange);
        animation: pulse-orange 2s infinite;
    }

    @keyframes pulse-orange {
        0% { transform: scale(1); opacity: 0.8; }
        100% { transform: scale(3.5); opacity: 0; }
    }

    .pin-ind { color: var(--primary-blue); }

    .tooltip {
        position: absolute;
        bottom: 120%;
        left: 50%;
        transform: translateX(-50%) translateY(5px);
        background: var(--tooltip-bg);
        backdrop-filter: blur(8px);
        color: white;
        padding: 6px 12px;
        border-radius: 8px;
        font-size: 12px;
        font-weight: 600;
        white-space: nowrap;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        box-shadow: 0 4px 15px rgba(0,0,0,0.2);
        pointer-events: none;
        z-index: 1000;
    }

    .pin:hover .tooltip {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(0);
    }

    .map-wrapper::after {
        content: '';
        position: absolute;
        top: 0; left: 0; width: 100%; height: 100%;
        background: rgba(0,0,0,0);
        pointer-events: none;
        transition: background 0.3s;
        z-index: 5;
    }

    .map-wrapper:has(.pin:hover)::after {
        background: rgba(0,0,0,0.1);
    }

    .legend-panel {
        padding: 20px;
        background: #fff;
        border-top: 1px solid #eee;
        display: flex;
        gap: 30px;
        justify-content: center;
    }

    .legend-item {
        display: flex;
        align-items: center;
        gap: 10px;
        font-size: 14px;
        font-weight: 600;
        color: #475569;
    }

    .dot { width: 12px; height: 12px; border-radius: 50%; }
    .dot-orange { background: var(--primary-orange); box-shadow: 0 0 10px var(--accent-glow); }
    .dot-blue { background: var(--primary-blue); }

    @media (max-width: 768px) {
        .pin { width: 22px; height: 22px; }
        .tooltip { display: none; }
        .legend-panel { flex-direction: column; gap: 10px; padding: 15px; }
    }
