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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #fafafa;
    color: #1a1a1a;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    padding: 20px 24px 0;
}

h1 {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.subtitle {
    font-size: 13px;
    color: #888;
    margin-top: 2px;
}

nav#filters {
    display: flex;
    gap: 8px;
    padding: 14px 24px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

nav#filters::-webkit-scrollbar {
    display: none;
}

.filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border: 1.5px solid #e0e0e0;
    border-radius: 20px;
    background: #fff;
    color: #555;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s ease;
    user-select: none;
}

.filter-btn:hover {
    border-color: #bbb;
}

.filter-btn.active {
    border-color: var(--sport-color);
    background: var(--sport-color);
    color: #fff;
}

.filter-btn .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--sport-color);
    flex-shrink: 0;
}

.filter-btn.active .dot {
    background: rgba(255, 255, 255, 0.7);
}

.filter-btn .count {
    font-size: 11px;
    color: #999;
    font-weight: 400;
}

.filter-btn.active .count {
    color: rgba(255, 255, 255, 0.8);
}

#map {
    flex: 1;
    min-height: 0;
}

.clean-popup .leaflet-popup-content-wrapper {
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    padding: 12px 8px 8px;
}

.clean-popup .leaflet-popup-content {
    margin: 20px 20px 24px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 13px;
    line-height: 1.5;
}

.clean-popup .leaflet-popup-tip {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.leaflet-control-zoom a {
    border-radius: 8px !important;
}

.popup-name {
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 4px;
}

.popup-city {
    color: #777;
    font-size: 13px;
    margin-bottom: 10px;
}

.popup-sport {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.02em;
}

.popup-website {
    display: block;
    margin-top: 10px;
    font-size: 12px;
    color: #2196F3;
    text-decoration: none;
}

.popup-website:hover {
    text-decoration: underline;
}

@media (max-width: 600px) {
    header {
        padding: 14px 16px 0;
    }

    h1 {
        font-size: 17px;
    }

    nav#filters {
        padding: 10px 16px;
        gap: 6px;
    }

    .filter-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
}
