/* -------------------------------------------------------------
   Секция 7777_map: Полноширинная карта (от края до края)
------------------------------------------------------------- */
.map-section {
    position: relative;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    height: 650px;
    background-color: #0D0D0D !important;
    overflow: hidden;
    clip-path: none !important;
    -webkit-clip-path: none !important;
    transform: none !important;
}

.map-section::before,
.map-section::after {
    display: none !important;
}

.map-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background-color: #0D0D0D !important;
}

/* 
   Применяем фильтр ко ВСЕМУ холсту карты.
   Поскольку дефолтный фон подложек Яндекс Карт бежево-белый, 
   фильтр invert(92%) превращает весь подстилающий холст при зуме в тёмный цвет сайта #0B0B0C!
*/
.yamap-instance {
    width: 100%;
    height: 100%;
    background-color: #ffffff !important;
    filter: grayscale(100%) invert(92%) contrast(120%) brightness(0.85) !important;
}

/* 
   Скрываем ТОЛЬКО точечно:
   - "Создать свою карту"
   - "Условия использования"
   - "Логотип Яндекс Карт"
   Оставляя кнопки "Как добраться" и "Доехать на такси"!
*/
.yamap-instance [class*="-logo"],
.yamap-instance [class*="-copyright"] a,
.yamap-instance [class*="-user-maps"],
.yamap-instance a[href*="terms"],
.yamap-instance a[href*="constructor"] {
    display: none !important;
}

/* Оверлей карточки */
.map-overlay-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    pointer-events: none;
    display: flex;
    align-items: center;
    max-width: 1440px;
    left: 50%;
    transform: translateX(-50%);
    padding: 0 40px;
    box-sizing: border-box;
}

.map-info-card {
    pointer-events: auto;
    width: 380px;
    background: rgba(18, 18, 20, 0.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 35px 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
    transition: pointer-events 0.1s ease;
}

.map-card-badge {
    display: inline-block;
    font-family: var(--font-accent, 'Oswald', sans-serif);
    font-size: 11px;
    letter-spacing: 2px;
    color: #C3001E;
    margin-bottom: 12px;
    text-transform: uppercase;
    font-weight: 700;
}

.map-card-title {
    font-family: var(--font-accent, 'Oswald', sans-serif);
    font-size: 26px;
    font-weight: 700;
    color: #FFFFFF;
    margin: 0 0 28px 0;
    line-height: 1.15;
    letter-spacing: 0.5px;
}

.map-info-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.map-info-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.map-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #C3001E;
    flex-shrink: 0;
}

.map-info-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.map-info-text .label {
    font-size: 10px;
    letter-spacing: 1.2px;
    color: #777777;
    text-transform: uppercase;
    font-weight: 600;
}

.map-info-text .value {
    font-size: 14px;
    color: #E2E2E2;
    font-weight: 500;
    line-height: 1.35;
}

.btn-route {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 48px;
    background: #C3001E;
    border-radius: 8px;
    color: #FFFFFF;
    text-decoration: none;
    font-family: var(--font-accent, 'Oswald', sans-serif);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1.5px;
    transition: background-color 0.2s ease;
}

.btn-route:hover {
    background: #A00018;
}

@media (max-width: 900px) {
    .map-section {
        height: auto;
        display: flex;
        flex-direction: column;
        width: 100%;
        left: 0;
        right: 0;
        margin: 0;
    }
    .map-wrapper {
        position: relative;
        height: 380px;
    }
    .map-overlay-container {
        position: relative;
        transform: none;
        left: 0;
        padding: 20px;
        height: auto;
    }
    .map-info-card {
        width: 100%;
        box-sizing: border-box;
    }
}
