/* ===============================
   КАРТА РОССИИ — АВТОЭКСПЕРТ
   =============================== */

/* Общий контейнер */
.map-wrapper {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
    font-family: 'Open Sans', Arial, sans-serif;
}

/* Заголовок */
.map-title {
    text-align: center;
    color: #ff6600;
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 25px;
    text-transform: uppercase;
}

/* Переключатель вкладок */
.map-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.tab-btn {
    background: #f2f2f2;
    border: none;
    padding: 10px 25px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.tab-btn.active {
    background: #ff6600;
    color: #fff;
    font-weight: bold;
}

.tab-btn:hover {
    background: #ff8533;
    color: #fff;
}

/* Вкладки */
.tab-content {
    display: none;
    animation: fadeIn 0.4s ease;
}

.tab-content.active {
    display: block;
}

/* Анимация появления */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Контейнер карты */
#map-container {
    width: 100%;
    height: 600px;
    border-radius: 10px;
    background: #e9ecef;
    overflow: hidden;
    box-shadow: inset 0 0 8px rgba(0,0,0,0.05);
}

/* Попап карты */
.map-popup {
    position: absolute;
    background: #fff;
    border: 1px solid #ccc;
    padding: 8px 12px;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    display: none;
    z-index: 10;
}

/* ===============================
   СПИСОК РЕГИОНОВ
   =============================== */
.region-list-wrapper {
    padding: 25px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
}

.region-list-wrapper h3 {
    color: #222;
    font-size: 22px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
}

/* Фильтр федеральных округов */
.region-filter {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 25px;
}

.filter-item {
    background: #f4f4f4;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 8px 18px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.25s ease;
}

.filter-item:hover,
.filter-item.active {
    background: #ff6600;
    color: #fff;
    border-color: #ff6600;
    box-shadow: 0 2px 8px rgba(255, 102, 0, 0.3);
}

/* Список регионов в три колонки */
.regions-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
}

.column {
    flex: 1;
    min-width: 260px;
}

/* Элемент региона */
.region-item {
    margin-bottom: 10px;
}

.region-item a {
    display: block;
    padding: 10px 15px;
    background: #fafafa;
    border-radius: 6px;
    border: 1px solid #eee;
    color: #333;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.25s ease;
}

.region-item a:hover {
    background: #ff6600;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

/* ===============================
   АДАПТИВНОСТЬ
   =============================== */
@media (max-width: 900px) {
    .regions-list {
        flex-direction: column;
        gap: 20px;
    }
    .column {
        min-width: 100%;
    }
    .map-wrapper {
        margin: 20px;
        padding: 15px;
    }
}
