.page-header {
    text-align: center;
    padding: 28px 20px 10px;
    font-size: 22px;
    font-weight: 800;
    color: #1a2a4a;
    letter-spacing: -0.3px;
}
.page-sub {
    text-align: center;
    font-size: 13px;
    color: #7a90b8;
    margin-bottom: 18px;
    font-weight: 600;
}

.map-container {
    width: 1280px; max-width: 100%;
    margin: 0 auto;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 4px 32px rgba(30,60,160,0.09);
    position: relative;
    overflow: hidden;
}
#map { display: block; width: 100%; height: auto; cursor: grab; user-select: none; }
#map.dragging { cursor: grabbing; }

/* Регионы — цвет устанавливается через JS-атрибут fill */
#regions path {
    stroke: #ffffff;
    stroke-width: 0.3;
    fill: #e0e5ef;
    cursor: pointer;
    transition: filter 0.15s;
}
#regions path:hover { filter: brightness(0.88); }

/* Кнопки зума */
#zoom-controls {
    position: absolute; top: 16px; right: 16px;
    display: flex; flex-direction: column; gap: 6px; z-index: 50;
}
.zoom-btn {
    width: 36px; height: 36px;
    background: #fff; border: 1px solid #d0daf0; border-radius: 10px;
    font-size: 20px; font-weight: 700; color: #4a6fa5; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 2px 10px rgba(60,100,200,0.12);
    transition: background 0.12s, color 0.12s; line-height: 1;
}
.zoom-btn:hover { background: #4a6fa5; color: #fff; }
.zoom-btn:active { transform: scale(0.93); }

/* Легенда */
#legend {
    position: absolute; bottom: 18px; left: 18px;
    background: rgba(255,255,255,0.96);
    border: 1px solid #dce6f7;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 12px;
    font-weight: 700;
    color: #1a2a4a;
    box-shadow: 0 2px 12px rgba(60,100,200,0.1);
    z-index: 50;
}
#legend .legend-title { font-size: 11px; color: #7a90b8; margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.5px; }
.legend-bar {
    width: 200px; height: 12px;
    border-radius: 6px;
    background: linear-gradient(to right, #f58745, #eee040, #12b05a);
    margin-bottom: 4px;
}
.legend-labels { display: flex; justify-content: space-between; font-size: 11px; color: #5a7aa0; }
.legend-none { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 11px; color: #5a7aa0; }
.legend-none-box { width: 14px; height: 14px; border-radius: 3px; background: #e0e5ef; border: 1px solid #c8d0e0; flex-shrink: 0; }

/* Tooltip */
#tip {
    position: fixed; pointer-events: none; z-index: 100;
    background: #fff; border: 1px solid #d0daf0; border-radius: 10px;
    padding: 8px 13px; font-size: 13px; font-weight: 700; color: #1a2a4a;
    box-shadow: 0 4px 18px rgba(60,100,200,0.13);
    display: none; white-space: nowrap;
}
#tip .tip-count { font-size: 11px; color: #7a90b8; font-weight: 600; margin-top: 2px; }
#tip.on { display: block; }

/* Модальное окно */
#modal-bg {
    display: none; position: fixed; inset: 0;
    background: rgba(30,50,100,0.22); z-index: 200;
    align-items: center; justify-content: center; backdrop-filter: blur(2px);
}
#modal-bg.on { display: flex; }
#modal {
    background: #fff; border-radius: 18px;
    box-shadow: 0 12px 60px rgba(30,60,160,0.18);
    padding: 32px 28px 24px; width: 520px; max-width: 95vw;
    max-height: 82vh; overflow-y: auto; position: relative;
    animation: modalIn 0.22s cubic-bezier(.4,0,.2,1);
}
@keyframes modalIn {
    from { opacity: 0; transform: translateY(20px) scale(0.97); }
    to   { opacity: 1; transform: none; }
}
#modal::-webkit-scrollbar { width: 4px; }
#modal::-webkit-scrollbar-thumb { background: #d0daf0; border-radius: 2px; }
#modal-close {
    position: absolute; top: 16px; right: 18px;
    background: none; border: none; font-size: 22px;
    color: #a0aec0; cursor: pointer; transition: color 0.12s;
}
#modal-close:hover { color: #4a6fa5; }
#modal-header { margin-bottom: 20px; padding-right: 28px; }
#modal-region-name { font-size: 20px; font-weight: 800; color: #1a2a4a; line-height: 1.3; }
#modal-count-badge {
    display: inline-block; margin-top: 6px;
    background: #e8f0fe; color: #3a6ab5;
    font-size: 12px; font-weight: 700;
    padding: 3px 10px; border-radius: 20px;
}
.modal-no-sports { text-align: center; color: #a0aec0; font-size: 14px; padding: 28px 0; }
.modal-no-sports .icon { font-size: 36px; margin-bottom: 8px; }

.sports-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sport-chip {
    background: #f4f7fd; border: 1px solid #dce6f7;
    border-radius: 10px; padding: 10px 12px;
    font-size: 13px; font-weight: 700; color: #1a2a4a;
    display: flex; align-items: center; gap: 8px;
}
.sport-chip .sport-icon { font-size: 18px; flex-shrink: 0; }