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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

header {
    margin-bottom: 20px;
}

h1 {
    color: #2c3e50;
}

main {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

@media (min-width: 1024px) {
    main {
        flex-direction: row;
    }
    
    #map-container {
        flex: 2;
    }
    
    #dashboard {
        flex: 1;
    }
}

#map-container {
    position: relative;
    height: 80vh!important;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

#map {
    height: 100%;
    width: 100%;
}

#loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255,255,255,0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    z-index: 1000;
}

#dashboard {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.card {
    background-color: white;
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

h2 {
    font-size: 18px;
    margin-bottom: 12px;
    color: #2c3e50;
}

/* Custom map controls */
.map-control {
    background-color: white;
    border-radius: 4px;
    padding: 10px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.3);
    margin: 10px;
    font-size: 14px;
}

.day-filter select {
    padding: 5px;
    border-radius: 4px;
    border: 1px solid #ccc;
    background-color: white;
    min-width: 120px;
}

.legend-item {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
    font-size: 12px;
}

.legend-item span {
    display: inline-block;
    width: 15px;
    height: 15px;
    margin-right: 5px;
    border-radius: 2px;
}

/* Dashboard styles */
.stat-card {
    display: flex;
    justify-content: space-between;
    padding: 8px 12px;
    border-radius: 4px;
    margin-bottom: 8px;
    background-color: #f8f9fa;
}

.stat-value {
    font-weight: bold;
}

.pattern-card, .city-card {
    padding: 8px 12px;
    border-radius: 4px;
    margin-bottom: 8px;
    border-left: 4px solid #ddd;
    background-color: #f8f9fa;
}

.days-indicator {
    display: flex;
    gap: 2px;
    margin-top: 4px;
}

.day-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

footer {
    margin-top: 20px;
    text-align: center;
    font-size: 14px;
    color: #666;
}
