/* mapofedem.css - файл очищен */

/* CSS переменные для процента скрола, масштаба и позиции фона (обновляются JavaScript) */
:root {
    --mapofedem-scroll: 0;
    --mapofedem-zoom: 100;
    --mapofedem-bg-position: center center;
}

.mapofedem-title-wrapper {
    position: relative;
    height: 0;
}

.mapofedem-title {
    position: absolute;
    top: 0rem;
    left: 50%;
    transform: translateX(-50%) !important;
    z-index: 300; /* выше, чем .oblaka (200) */
    font-family: 'Calmius', serif;
    font-weight: 900;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #65743A;
    text-shadow: 
        0 2px 15px rgba(101, 116, 58, 0.8), 
        0 0 25px rgba(101, 116, 58, 0.6),
        0 0 50px rgba(101, 116, 58, 0.3),
        0 0 100px rgba(101, 116, 58, 0.1);
    background: none;
    padding: 0;
    border-radius: 0;
    font-size: clamp(2.5rem, 6vw, 4rem);
    box-shadow: none;
    border: none;
}

.mapofedem {
    background: url(../map_final.png) no-repeat center center;
    background-size: 115%;
    background-attachment: fixed;
    height: 800vh;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    /* Плавные переходы для устранения дёргания */
    transition: background-size 0.1s ease-out, background-position 0.1s ease-out;
    /* Поддержка изменения позиции фона */
    background-position: var(--mapofedem-bg-position, center center);
}

.mapofedem-plate {
    background: url(../map_final.png) no-repeat center center;
    background-size: cover;
    width: 100vw;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    border: none;
    text-align: center;
    max-width: none;
}

.mapofedem-plate h1 {
    font-family: "Boldonse", serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    color: #f4e8b0;
    margin: 0;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 
        0 2px 15px rgba(244, 232, 176, 0.8), 
        0 0 25px rgba(244, 232, 176, 0.6),
        0 0 50px rgba(244, 232, 176, 0.3);
    line-height: 1.2;
}

/* Мобильная версия для mapofedem */
@media (max-width: 768px) {
    .mapofedem-title {
        top: -10px;
        padding: 0 0 0;
        font-size: 6vw;
        letter-spacing: 2px;
    }
    .mapofedem {
        background-size: 400%; /* Начальная точка для мобильных */
        background-position: 20.6% 32.5%; /* Начальная позиция для мобильных */
    }
}

/* Специальные стили для Safari только на ПК (не на мобильных) */
@media screen and (min-width: 769px) {
    @supports (-webkit-appearance: none) {
        .mapofedem {
            padding: 20px 0;
            margin: 60px 0 0;
        }
        
        .mapofedem-plate {
            padding: 20px 0;
        }
    }
    
    @media screen and (-webkit-min-device-pixel-ratio: 0) {
        _::-webkit-full-page-media, _:future, :root .mapofedem {
            padding: 20px 0;
            margin: 60px 0 0;
        }
        
        _::-webkit-full-page-media, _:future, :root .mapofedem-plate {
            padding: 20px 0;
        }
    }
}