body {
    font-family: Arial, sans-serif;
    background-color: #f8f9fa;
    color: #212529;
    margin: 0;
    padding: 0;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.leaflet-routing-container {
    display: none;
}

.distance-display {
    margin-top: 10px;
    padding: 15px;
    background-color: #f7c621;
    color: #000;
    border-radius: 5px;
    text-align: center;
    font-size: 1.4em;
}

.controls {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.controls input[type="text"] {
    padding: 15px;
    border: 1px solid #f7c621;
    border-radius: 5px;
    flex: 1;
    font-size: 16px;
}

.btn {
    padding: 15px 20px;
    background-color: #f7c621;
    border: none;
    border-radius: 5px;
    color: #000;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.btn-secondary{
    color: #fff;
}

.btn:hover {
    background-color: #e6b31f;
}

.btn-secondary {
    background-color: #333;
}

#map {
    width: 100%;
    height: 500px;
    border: 1px solid #f7c621;
    border-radius: 5px;
}

#swapRoute{
    height: 30px;
    background-size: 50px;
    background-repeat: no-repeat;
    background-position: center;
    align-self: center;
    width: 50px;
}

.price-display {
    margin-top: 10px;
    padding: 15px;
    background-color: #f7c621;
    color: #000;
    border-radius: 5px;
    text-align: center;
    font-size: 1.4em;
}

.control_buttons {
    flex-direction: row;
    display: flex;
    gap: 10px;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    /* Используем Flexbox */
    justify-content: center;
    /* Центрирование по горизонтали */
    align-items: center;
    /* Центрирование по вертикали */
}

.modal-content {
    background-color: #fff;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    border-radius: 10px;
    text-align: center;
}

.modal-content p {
    font-size: 18px;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    background-color: #f7c621;
    color: #000;
    border-radius: 5px;
    font-size: 1.4em;
    text-align: center;
    min-height: 35px;
}

.info-item {
    flex: 1;
    margin: 5px; /* Отступ между элементами */
}

.leaflet-control-attribution{
    font-size: smaller;
}


/* Адаптивный дизайн для планшетов */
@media (max-width: 950px) {
    .controls {
        flex-direction: column;
        gap: 10px;
    }

    #swapRoute{
        transform: rotate(90deg);
    }

    .btn,
    .btn-secondary {
        width: 100%;
    }

    #map {
        height: 50vh;
        /* Увеличение высоты карты на планшетах */
        font-size: 18px;
        /* Увеличение шрифта внутри карты */
    }
}

/* Адаптивный дизайн для мобильных устройств */
@media (max-width: 480px) {
    .container {
        padding: 10px;
    }

    .controls {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }

    .controls input[type="text"] {
        padding: 10px;
        font-size: 16px;
    }

    .btn,
    .btn-secondary {
        width: 100%;
        padding: 10px;
        font-size: 16px;
    }

    #map {
        font-size: 20px;
        /* Увеличение шрифта внутри карты */
    }

    .price-display {
        padding: 10px;
        font-size: 16px;
    }
}