.social-section {
    text-align: center;
    margin-top: 20px;
}

  #useMyLocationButton {
    position: absolute;    /* Абсолютное позиционирование относительно ближайшего родителя с position: relative */
    width: 60px;           /* Ширина иконки */
    height: 60px;          /* Высота иконки */
    cursor: pointer;       /* Указатель мыши при наведении */
    left: 70px;
    top: 20px;
    transition: transform 0.3s; /* Плавный переход трансформации при наведении */
    z-index: 4;
}

#useMyLocationButton:hover {
    transform: scale(1.1); /* Увеличение иконки при наведении */
}
.locational-container {
    position: relative;
    }

.social-links {
    display: flex;
    align-items: center; /* Центрируем элементы по горизонтали */
    gap: 10px; /* Отступ между ссылками */
    margin-left: 10px;
    flex-direction: row; /* Устанавливаем вертикальное расположение */
}

.social-link {
    display: block; /* Делаем ссылки блочными */
    width: 200px; /* Фиксированная ширина для одинакового размера кнопок */
    padding: 7px;
    background-color: #4C75A3;
    color: #ffffff;
    text-decoration: none;
    font-size: 21px;
    font-weight: bold;
    border-radius: 5px;
    transition: background-color 0.3s, transform 0.2s;
    margin-top: 5px;
}

.social-link i {
    margin-right: 10px; /* Отступ между иконкой и текстом */
    font-size: 24px;
}

.social-link:hover {
    background-color: #3B5998;
    transform: translateY(-3px); /* Легкий подъем при наведении */
}

.layout-container {
    z-index: 2;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.info-section {
    width: 45%;
    padding: 10px;
    border-radius: 5px;
    z-index: 1;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.info-section-title {
        position: relative;
        z-index: 2;
        font-size: 44px; /* Размер шрифта заголовка */
        text-align: center; /* Выравнивание текста по центру */
        color: white;
        margin: 10px;
    }

.info-section-text {
    font-size: 34px; /* Увеличенный размер шрифта для текста */
    margin-bottom: 10px; /* Добавьте отступ между абзацами, если нужно */
    margin-left: 10px;
    display: flex;
    align-items: flex-start; /* Выровнять элементы по началу */
}


.map-section {
    position: relative; /* Устанавливаем относительно для вложенных элементов */
    width: 100%;
    height: 500px;
    margin: 10px;
    border-radius: 15px;
    z-index: 1;
    overflow: hidden; /* Убедитесь, что элементы не выходят за пределы карты */
}

.controls {
    background-color: white;
    padding: 5px;
    border-radius: 5px;
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.icon-small {
    width: 35px;
    height: 35px;
    cursor: pointer;
    margin: 5px;
}

.icon-container.hidden {
    display: none;
}

.icon-container.visible {
    display: flex;
    align-items: center;
    flex-direction: column-reverse;
}

#route-info {
    margin: 0; /* Убираем внешние отступы */
    padding: 0; /* Убираем внутренние отступы */
    font-size: 20px; /* Устанавливаем размер шрифта */
    line-height: 0.6; /* Устанавливаем межстрочное расстояние для лучшей читаемости */
    width: 100%;
}

.overall-container {
    position: absolute;
    top: 15px; /* Смещаем элементы от верхнего края карты */
    right: 5px; /* Смещаем элементы от правого края карты */
    display: flex; /* Устанавливаем flex для горизонтального выравнивания */
    align-items: flex-start; /* Выравниваем элементы по началу контейнера */
    padding: 10px;
    border-radius: 5px;
    z-index: 3;
}

.icon-section {
    display: flex;
    flex-direction: column;
    background-color: #ffffff; /* Белый фон для иконки */
    padding: 12px;
    z-index: 3;
    margin-left: 10px;
    justify-content: center;
    border-radius: 5px;
    align-self: flex-start; /* Иконы остаются вверху */
}

.input-group input[type="text"] {
    padding: 5px;
    border: 2px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s ease;
}

.input-group input[type="text"]:focus {
    border-color: #666;
}

.map-button {
    background-color: #ff4c4c; /* Красная кнопка */
    color: white;
    border: none;
    padding: 5px 20px;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.map-button:hover {
    background-color: #d43f3f; /* Более темный оттенок красного при наведении */
}
.map-container {
    width: 55%;
    position: relative; /* Родительское позиционирование для абсолютных вложенных элементов */
    margin-right: 15px;
    overflow: visible; /* Убедитесь, что элементы не обрезаются */
}

/* Медиа-запросы для мобильных устройств */
@media (max-width: 768px) {
    .layout-container {
        flex-direction: column;
    }


    .map-container {
        width: 100%; /* Полная ширина для мобильных устройств */
        margin: 10px; /* Убираем боковые отступы */
    }
    .info-section {
        width: 100%;
        margin-left: 15px;
        }
    .info-section-title {
        margin-top: 20px;
        font-size: 30px; /* Уменьшенный размер шрифта для заголовка */
    }

    .info-section-text {
        font-size: 24px; /* Уменьшенный размер шрифта для текста */
    }

    .map-section {
        width: 95%;
        height: 400px;

    }


    .icon-small {
        width: 25px;
        height: 25px;
    }
    .icon-section {
    padding: 14px;
    }

    .input-group input[type="text"] {
        padding: 3px;
        font-size: 0.6em;
    }
    .overall-container {
        top: 12px; /* Смещаем элементы от верхнего края карты */
        right: 20px; /* Смещаем элементы от правого края карты */
        padding: 5px;
    }
    #route-info {
        margin: 0; /* Убираем внешние отступы */
        padding: 0; /* Убираем внутренние отступы */
        font-size: 0.7em; /* Устанавливаем размер шрифта */
        line-height: 0.4; /* Устанавливаем межстрочное расстояние для лучшей читаемости */
        width: 100%;
    }
    .map-button {
        padding: 4px 20px;
        font-size: 0.6em;
    }
    .social-link {
        width: 180px; /* Фиксированная ширина для одинакового размера кнопок */
        padding: 5px;
        font-size: 20px;
    }
    .social-links {
        flex-direction: column;
    }
      #useMyLocationButton {
        left: 8px;
        top: 100px;
    }

}
@media (min-width: 515px) and (max-width: 768px) {
.social-links {
        flex-direction: row;
    }
}
@media (min-width: 769px) and (max-width: 1000px) {
.social-links {
        flex-direction: column;
    }
}
@media (min-width: 4000px) {
.social-section {
    margin-top: 40px;
}

  #useMyLocationButton {
    width: 120px;           /* Ширина иконки */
    height: 120px;          /* Высота иконки */
    left: 140px;
    top: 40px;
}


.social-links {
    gap: 20px; /* Отступ между ссылками */
    margin-left: 20px;
}

.social-link {
    width: 390px; /* Фиксированная ширина для одинакового размера кнопок */
    padding: 14px;
    font-size: 40px;
    border-radius: 10px;
    margin-top: 10px;
}

.social-link i {
    margin-right: 20px; /* Отступ между иконкой и текстом */
    font-size: 48px;
}


.info-section {
    padding: 20px;
    border-radius: 10px;
}

.info-section-title {
        font-size: 88px; /* Размер шрифта заголовка */
        margin: 20px;
    }

.info-section-text {
    font-size: 68px; /* Увеличенный размер шрифта для текста */
    margin-bottom: 20px; /* Добавьте отступ между абзацами, если нужно */
    margin-left: 20px;
}


.map-section {
    width: 100%;
    height: 1000px;
    margin: 20px;
    border-radius: 30px;
}

.controls {
    padding: 10px;
    border-radius: 10px;
}

.icon-small {
    width: 70px;
    height: 70px;
    margin: 10px;
}


#route-info {
    font-size: 40px; /* Устанавливаем размер шрифта */
}

.overall-container {
    top: 30px; /* Смещаем элементы от верхнего края карты */
    right: 10px; /* Смещаем элементы от правого края карты */
    padding: 20px;
    border-radius: 10px;
}

.icon-section {
    padding: 24px;
    margin-left: 20px;
    border-radius: 10px;
}

.input-group input[type="text"] {
    padding: 10px;
    border: 4px solid #ccc;
    border-radius: 10px;
    font-size: 36px;
}


.map-button {
    padding: 10px 40px;
    border-radius: 10px;
    font-size: 32px;
}
.map-container {
    margin-right: 30px;
}
.leaflet-container {
    font: 20px / 1.5 "Helvetica Neue", Arial, Helvetica, sans-serif;
}

.leaflet-touch .leaflet-bar a:last-child {
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
}
.leaflet-touch .leaflet-bar a {
    width: 60px;
    height: 60px;
    line-height: 60px;
}
.leaflet-touch .leaflet-control-zoom-in, .leaflet-touch .leaflet-control-zoom-out {
    font-size: 42px;

    }
    }