/**
 * Стили для интерактивной карты городов
 *
 * @package Empty_Theme
 */

.company-map-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #f2f6fa, #e9ecef, #e5edf5);
    position: relative;
    overflow: hidden;
}

.map-title {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    background: linear-gradient(135deg, #0071CE, #004b96, #0090ff, #00a1ff, #0071CE);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #0071CE; /* Запасной цвет */
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
    width: 100%;
    animation: gradient-animation 5s ease infinite;
}

.map-controls-container {
    margin-bottom: 20px;
}

.map-city-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.map-city-btn {
    padding: 8px 15px;
    background-color: #fff;
    border: 1px solid #0071CE;
    border-radius: 20px;
    color: #0071CE;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
}

.map-city-btn:hover {
    background-color: #e5edf5;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 113, 206, 0.1);
}

.map-city-btn.active {
    background-color: #0071CE;
    color: #fff;
    font-weight: 700;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 113, 206, 0.25);
}

.company-map-container {
    height: 500px;
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 113, 206, 0.2);
    margin-bottom: 20px;
}

.map-info-container {
    background-color: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-top: 20px;
    border: 1px solid rgba(0, 113, 206, 0.1);
    transition: all 0.3s ease;
}

.map-info-title {
    font-size: 22px;
    font-weight: 700;
    color: #0071CE;
    margin-bottom: 10px;
}

.map-info-text {
    font-size: 16px;
    line-height: 1.6;
    color: #555;
}

/* Стили для плашек на карте */
.custom-placemark {
    background-color: #0071CE;
    color: #fff;
    font-weight: bold;
    padding: 10px 15px;
    border-radius: 50px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Адаптивность для планшетов */
@media (max-width: 992px) {
    .company-map-container {
        height: 400px;
    }

    .map-title {
        font-size: 30px;
    }

    .map-city-btn {
        font-size: 13px;
        padding: 7px 12px;
    }
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .company-map-section {
        padding: 40px 0;
    }

    .company-map-container {
        height: 350px;
    }

    .map-title {
        font-size: 26px;
        margin-bottom: 20px;
    }

    .map-city-buttons {
        gap: 8px;
        margin-bottom: 15px;
        max-height: 140px;
        overflow-y: auto;
        padding: 5px;
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .map-city-btn {
        font-size: 12px;
        padding: 6px 10px;
        margin-bottom: 5px;
        flex: 0 0 auto;
    }

    .map-info-container {
        padding: 15px;
    }

    .map-info-title {
        font-size: 18px;
    }

    .map-info-text {
        font-size: 14px;
    }
}

/* Стили для очень маленьких экранов */
@media (max-width: 480px) {
    .company-map-container {
        height: 300px;
    }

    .map-city-buttons {
        max-height: 120px;
    }

    .map-city-btn {
        font-size: 11px;
        padding: 5px 8px;
    }
}
