* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

#header {
    background: #2c3e50;
    color: white;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

#header h1 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
}

#stats {
    font-size: 0.85rem;
    opacity: 0.9;
}

/* Desktop layout */
@media (min-width: 640px) {
    #header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 1rem 2rem;
    }

    #header h1 {
        font-size: 1.5rem;
    }

    #stats {
        font-size: 0.9rem;
    }
}

#map {
    flex: 1;
    width: 100%;
    min-height: 400px;
    position: relative;
}

#info {
    background: #ecf0f1;
    padding: 0.75rem 2rem;
    font-size: 0.85rem;
    color: #555;
    border-top: 1px solid #ddd;
}

#info p {
    margin: 0.25rem 0;
}

#info a {
    color: #3498db;
    text-decoration: none;
}

#info a:hover {
    text-decoration: underline;
}

.leaflet-popup-content {
    margin: 0.75rem;
    min-width: 200px;
}

.leaflet-popup-content h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    color: #2c3e50;
}

.leaflet-popup-content p {
    margin: 0.25rem 0;
    font-size: 0.9rem;
    color: #555;
}

/* Custom marker cluster styles */
.marker-cluster-small {
    background-color: rgba(181, 226, 140, 0.6);
}

.marker-cluster-small div {
    background-color: rgba(110, 204, 57, 0.6);
}

.marker-cluster-medium {
    background-color: rgba(241, 211, 87, 0.6);
}

.marker-cluster-medium div {
    background-color: rgba(240, 194, 12, 0.6);
}

.marker-cluster-large {
    background-color: rgba(253, 156, 115, 0.6);
}

.marker-cluster-large div {
    background-color: rgba(241, 128, 23, 0.6);
}

/* Custom building marker */
.custom-building-marker {
    background: none;
    border: none;
    cursor: pointer;
}

.custom-building-marker svg {
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

/* Locate Me button */
.locate-me-button {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1000;
    background: white;
    border: 2px solid rgba(0,0,0,0.2);
    border-radius: 4px;
    padding: 8px 12px;
    cursor: pointer;
    box-shadow: 0 1px 5px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
    color: #333;
}

.locate-me-label {
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
}

.locate-me-button:hover:not(:disabled) {
    background: #f8f9fa;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

.locate-me-button:active:not(:disabled) {
    transform: scale(0.95);
}

.locate-me-button:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.locate-me-button.loading svg {
    animation: rotate 1s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}
