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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    height: 100vh;
    overflow: hidden;
}

.container {
    display: flex;
    height: 100vh;
}

.controls {
    width: 300px;
    background: #f5f5f5;
    padding: 20px;
    overflow-y: auto;
    border-right: 1px solid #ddd;
}

.controls h1 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
}

.controls h3 {
    font-size: 14px;
    margin-bottom: 10px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.transport-selector {
    margin-bottom: 30px;
}

.transport-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.transport-btn {
    width: 50px;
    height: 50px;
    border: 2px solid #ddd;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    font-size: 24px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.transport-btn:hover {
    border-color: #4CAF50;
    transform: scale(1.05);
}

.transport-btn.active {
    border-color: #4CAF50;
    background: #e8f5e9;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

.range-selector {
    margin-bottom: 20px;
}

#rangeSlider {
    width: 100%;
    margin: 10px 0;
}

#rangeValue {
    display: block;
    text-align: center;
    font-weight: bold;
    color: #4CAF50;
    font-size: 18px;
}

.info {
    margin-top: 20px;
    padding: 15px;
    background: #e3f2fd;
    border-radius: 8px;
    border-left: 4px solid #2196F3;
}

.info p {
    font-size: 13px;
    color: #1976D2;
    line-height: 1.5;
}

#map {
    flex: 1;
    height: 100vh;
}

/* Loading indicator */
.loading {
    position: absolute;
    top: 20px;
    right: 20px;
    background: white;
    padding: 10px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    display: none;
    z-index: 1000;
}

.loading.active {
    display: block;
}

.loading::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #4CAF50;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    margin-left: 10px;
    vertical-align: middle;
}

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

/* Scoring filters */
.scoring-filters {
    margin-bottom: 20px;
    padding: 15px;
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.filter-mode-toggle {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
}

.filter-mode-btn {
    flex: 1;
    padding: 8px 16px;
    border: 2px solid #ddd;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
}

.filter-mode-btn:hover {
    border-color: #4CAF50;
}

.filter-mode-btn.active {
    border-color: #4CAF50;
    background: #e8f5e9;
    color: #2e7d32;
}

.avg-filter,
.individual-filters {
    margin-top: 10px;
}

.filter-item {
    margin-bottom: 12px;
}

.filter-item label {
    display: block;
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
    font-weight: 500;
}

.filter-value {
    font-weight: bold;
    color: #4CAF50;
    margin-left: 5px;
}

.scoring-slider,
#avgSlider {
    width: 100%;
    margin: 5px 0;
}

#avgValue {
    font-weight: bold;
    color: #4CAF50;
    margin-left: 5px;
}
