/* Sunny Projects Map */

.sunny-map-wrapper {
    position: relative;
    margin: 20px 0;
}

.sunny-map-container {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 1;
}

/* Empty state overlay */
.sunny-map-empty-state {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.95);
    padding: 30px 40px;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    text-align: center;
    z-index: 1000;
    max-width: 80%;
}

.sunny-map-empty-state p {
    margin: 0;
    color: #54595F;
    font-size: 16px;
    line-height: 1.5;
}

/* Marker dot */
.sunny-marker {
    background: transparent !important;
    border: none !important;
}

.sunny-marker-dot {
    display: block;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    margin: 2px;
}

/* Popup styling */
.sunny-popup {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.sunny-popup-img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 4px 4px 0 0;
    margin: -13px -20px 10px;
    width: calc(100% + 40px);
    max-width: none;
}

.sunny-popup-content {
    padding: 0;
}

.sunny-popup-title {
    margin: 0 0 6px;
    font-size: 15px;
    font-weight: 600;
    color: #333;
    line-height: 1.3;
}

.sunny-popup-category {
    display: block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.sunny-popup-fve {
    display: block;
    font-size: 13px;
    color: #54595F;
    margin-bottom: 2px;
}

.sunny-popup-location {
    display: block;
    font-size: 13px;
    color: #888;
    margin-bottom: 8px;
}

.sunny-popup-link {
    display: inline-block;
    font-size: 13px;
    color: #6EC1E4;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.sunny-popup-link:hover {
    color: #61CE70;
    text-decoration: none;
}

/* Legend */
.sunny-map-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 12px;
    padding: 10px 16px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.sunny-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #54595F;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background 0.2s ease, opacity 0.2s ease;
    user-select: none;
}

.sunny-legend-item:hover {
    background: #f5f5f5;
}

.sunny-legend-item.sunny-legend-active {
    background: #e8f4fd;
    font-weight: 600;
}

.sunny-legend-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* Cluster overrides */
.marker-cluster-small {
    background-color: rgba(110, 193, 228, 0.4) !important;
}

.marker-cluster-small div {
    background-color: rgba(110, 193, 228, 0.8) !important;
    color: #fff !important;
    font-weight: 600;
}

.marker-cluster-medium {
    background-color: rgba(97, 206, 112, 0.4) !important;
}

.marker-cluster-medium div {
    background-color: rgba(97, 206, 112, 0.8) !important;
    color: #fff !important;
    font-weight: 600;
}

.marker-cluster-large {
    background-color: rgba(255, 152, 0, 0.4) !important;
}

.marker-cluster-large div {
    background-color: rgba(255, 152, 0, 0.8) !important;
    color: #fff !important;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .sunny-map-container {
        height: 350px !important;
    }

    .sunny-map-legend {
        gap: 8px;
        padding: 8px 12px;
    }

    .sunny-legend-item {
        font-size: 12px;
        padding: 3px 6px;
    }

    .sunny-popup-img {
        height: 100px;
    }
}

@media (max-width: 480px) {
    .sunny-map-container {
        border-radius: 4px;
    }

    .sunny-map-legend {
        border-radius: 4px;
    }
}
