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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
}

#app {
    display: flex;
    height: 100vh;
}

#controls {
    width: 320px;
    min-width: 320px;
    padding: 16px;
    overflow-y: auto;
    background: #f5f5f5;
    border-right: 1px solid #ddd;
}

#controls h2 {
    margin-bottom: 12px;
    font-size: 18px;
}

details {
    margin-bottom: 12px;
}

summary {
    cursor: pointer;
    font-weight: 600;
    margin-bottom: 8px;
}

#controls label {
    display: block;
    font-size: 14px;
    padding: 3px 0;
    cursor: pointer;
}

.weight-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    font-size: 14px;
}

.weight-row label {
    flex: 1;
}

.weight-row input[type="range"] {
    width: 120px;
}

.weight-val {
    display: inline-block;
    width: 20px;
    font-weight: bold;
    text-align: right;
}

#sidebar {
    border-top: 1px solid #ccc;
    margin-top: 16px;
    padding-top: 12px;
}

#sidebar h3 {
    font-size: 16px;
    margin-bottom: 8px;
}

.score-row {
    display: flex;
    justify-content: space-between;
    padding: 2px 0;
    font-size: 14px;
}

.total-score {
    font-size: 16px;
    font-weight: bold;
    border-top: 1px solid #ccc;
    padding-top: 6px;
    margin-top: 4px;
}

#map {
    flex: 1;
}
