/* Community Static Map Styles */
.ip-comm-map-static {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.community-static-map {
    width: 100%;
    height: auto;
    max-width: 1291px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.community-static-map:hover {
    transform: scale(1.02);
}

.map-pins-legend {
    margin-top: 20px;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 8px;
    border: 1px solid #dee2e6;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.map-pins-legend h4 {
    margin: 0 0 15px 0;
    font-size: 18px;
    font-weight: 600;
    color: #343a40;
    border-bottom: 2px solid #007bff;
    padding-bottom: 8px;
}

.map-pins-legend ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 8px;
}

.map-pins-legend li {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.map-pins-legend li:hover {
    background: rgba(255, 255, 255, 0.9);
}

.pin-marker {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    margin-right: 10px;
    border: 2px solid #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .map-pins-legend {
        padding: 15px;
        margin-top: 15px;
    }
    
    .map-pins-legend h4 {
        font-size: 16px;
        margin-bottom: 12px;
    }
    
    .map-pins-legend ul {
        grid-template-columns: 1fr;
        gap: 6px;
    }
    
    .map-pins-legend li {
        padding: 6px 10px;
        font-size: 14px;
    }
    
    .pin-marker {
        width: 12px;
        height: 12px;
        margin-right: 8px;
    }
}

/* Loading state for static map */
.community-static-map[src=""] {
    background: linear-gradient(90deg, #f0f0f0 25%, transparent 37%, transparent 63%, #f0f0f0 75%);
    background-size: 400% 100%;
    animation: shimmer 1.5s ease-in-out infinite;
}

@keyframes shimmer {
    0% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}