* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Roboto', sans-serif;
    background-color: white;
}
header {
    background-color: white;
    color: black;
    padding: 16px 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}
h1 {
    font-size: 24px;
    font-weight: 700;
}
.header-right {
    display: flex;
    align-items: stretch;
    gap: 24px;
}
.legend-wrapper {
    display: flex;
    align-items: flex-start;
}
.legend {
    display: flex;
    gap: 20px;
    font-size: 14px;
    align-items: flex-start;
}
.legend-group {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    user-select: none;
}
.legend-item:hover {
    opacity: 0.8;
}
.legend-item.hidden span {
    opacity: 0.4;
}
.legend-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid;
}
.legend-item.hidden .legend-dot {
    background: white !important;
}
.legend-item.hidden svg path {
    fill: white;
}
.legend-star {
    width: 12px;
    height: 12px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

/* Slider */
.slider-container {
    display: flex;
    align-items: stretch;
    gap: 8px;
}
.all-btn {
    font-family: 'Roboto', sans-serif;
    font-size: 12px;
    font-weight: 700;
    padding: 0 12px;
    border: 2px solid #333;
    border-radius: 4px;
    background: white;
    color: #333;
    cursor: pointer;
    white-space: nowrap;
    align-self: stretch;
}
.all-btn.active {
    background: #333;
    color: white;
}
.all-btn:hover {
    opacity: 0.85;
}
.slider-label {
    font-family: 'Roboto', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #333;
    min-width: 32px;
    text-align: center;
}
.slider-wrapper {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 300px;
}
.slider-track {
    position: relative;
    width: 100%;
    height: 24px;
}
.slider-track-bg {
    position: absolute;
    top: 11px;
    left: 0;
    right: 0;
    height: 2px;
    background: #ccc;
    border-radius: 1px;
    z-index: 0;
}
.slider-track input[type="range"] {
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    height: 24px;
    margin: 0;
    z-index: 1;
}
.slider-track input[type="range"]::-webkit-slider-runnable-track {
    height: 0;
    background: transparent;
}
.slider-track input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    pointer-events: all;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #333;
    border: 2px solid white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
    cursor: pointer;
}
.slider-track input[type="range"]::-moz-range-track {
    height: 0;
    background: transparent;
    border: none;
}
.slider-track input[type="range"]::-moz-range-thumb {
    pointer-events: all;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #333;
    border: 2px solid white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
    cursor: pointer;
}
.slider-ticks {
    display: flex;
    justify-content: space-between;
    padding: 0 8px;
    margin-top: -2px;
}
.slider-tick {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.slider-tick-mark {
    width: 1px;
    height: 6px;
    background: #333;
}
.slider-tick-label {
    font-size: 9px;
    color: #333;
    margin-top: 1px;
}
.slider-container.disabled .slider-wrapper {
    opacity: 0.3;
    pointer-events: none;
}
.slider-container.disabled .slider-label {
    color: #999;
}

/* Tabs */
.controls-bar {
    display: flex;
    align-items: center;
    background: white;
    border-bottom: 2px solid #ddd;
}
.tabs {
    display: flex;
    gap: 0;
    background: #f0f0f0;
}
.tab {
    padding: 8px 24px;
    border: none;
    background: #f0f0f0;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    color: #666;
}
.tab.active {
    color: #333;
    border-bottom-color: #333;
    background: white;
}
.tab:hover {
    color: #333;
}

/* Map */
.tab-content {
    display: none;
    width: 100%;
    height: calc(100vh - 95px);
}
.tab-content.active {
    display: block;
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 10px 1rem;
    }
    h1 {
        font-size: 18px;
    }
    .header-right {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .legend {
        flex-wrap: wrap;
        gap: 10px;
        font-size: 12px;
    }
    .slider-wrapper {
        width: 200px;
    }
    .tab-content {
        height: calc(100vh - 135px);
    }
}
