/**
 * CityGrinder Maps - Frontend Styles
 */

.citygrinder-map-container {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    background-color: #f5f0e0;
    border-radius: 4px;
    overflow: hidden;
}

.citygrinder-map-container svg {
    display: block;
    width: 100%;
    height: auto;
}

.citygrinder-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    color: #666;
    font-family: sans-serif;
    font-size: 14px;
}

.citygrinder-loading::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 10px;
    border: 2px solid #ddd;
    border-top-color: #666;
    border-radius: 50%;
    animation: citygrinder-spin 1s linear infinite;
}

@keyframes citygrinder-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Interactive controls */
.citygrinder-controls {
    display: flex;
    gap: 10px;
    padding: 10px;
    background: #f5f5f5;
    border-top: 1px solid #ddd;
}

.citygrinder-controls button {
    padding: 8px 16px;
    background: #0073aa;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.citygrinder-controls button:hover {
    background: #005a87;
}

/* Responsive */
@media (max-width: 600px) {
    .citygrinder-map-container {
        border-radius: 0;
    }
}
