.distance_container {
    margin: 20px 0 30px;
    width: 967px;
    -webkit-border-radius: 2px;
    border-radius: 2px;
    -webkit-box-shadow: 0 0 8px 0 rgba(94, 108, 132, 0.36);
    box-shadow: 0 0 8px 0 rgba(94, 108, 132, 0.36);
    font-family: Verdana, Tahoma, sans-serif;
}

.distance_container__header h1 {
    margin: 0;
    padding: 28px 30px;
    text-align: left;
    font-size: 20px;
    font-weight: 400;
    background: #fafafa;
    color: #246582;
}

.distance_container__main {
    display: flex;
    flex-direction: row;
    border-bottom: 1px solid #e6e8ea;
}

.distance_container__form {
    display: flex;
    flex-direction: column;
    text-align: left;
    width: 70%;
}
    .distance_point {
        display: flex;
        flex-direction: row;
        text-align: left;
    }
        .distance_point__marker {
            position: relative;
            margin: 30px;
            line-height: 15px;
            text-align: center;
            font-size: 10px;
            color: #ffffff;
        }
        .distance_point__marker::after {
            content: '';
            position: absolute;
            top: 52px;
            left: 9px;
            width: 6px;
            height: 20px;
            background: url("/img/three_dots.svg") no-repeat center;
        }
        .distance_point:last-of-type .distance_point__marker::after {
            width: 0;
            height: 0;
        }
            .marker_outer {
                position: relative;
                margin: 0;
                width: 24px;
                height: 24px;
                -webkit-border-radius: 50%;
                border-radius: 50%;
                -webkit-box-shadow: 0 0 6px 0 rgba(52, 131, 97, 0.36);
                box-shadow: 0 0 6px 0 rgba(52, 131, 97, 0.36);
            }
                .marker_inner {
                    position: absolute;
                    top: 4px;
                    left: 4px;
                    margin: 0;
                    width: 16px;
                    height: 16px;
                    background: #8e98a9;
                    -webkit-border-radius: 50%;
                    border-radius: 50%;
                    transition: background-color 500ms linear;
                }
                    .marker_inner span {
                        margin-left: 1px;
                    }
                .marker_inner_first {
                    background: #4bb989;
                }
                .marker_inner_second {
                    background: #6554c0;
                }
                .marker_inner_third {
                    background: #1485c9;
                }
                .marker_inner_fourth {
                    background: #ff8b00;
                }
                .marker_inner_fifth {
                    background: #bf2600;
                }
        .distance_point__point {
            position: relative;
        }
            @-webkit-keyframes mask_shrink {
                 from {
                     width: 490px;
                 }
                 to {
                     width: 0;
                 }
             }
            @keyframes mask_shrink {
                from {
                    width: 490px;
                }
                to {
                    width: 0;
                }
            }
            @-webkit-keyframes zPos {
                from {
                    z-index: 10;
                }
                to {
                    z-index: -10;
                }
            }
            @keyframes zPos {
                from {
                    z-index: 10;
                }
                to {
                    z-index: -10;
                }
            }
            .distance_point__mask_container {
                position: absolute;
                top: 10px;
                left: -5px;
                width: 500px;
                height: 101px;
                z-index: -10;
                animation: zPos 1.5s ease-in;
            }
                .distance_point__mask {
                    float: right;
                    height: 100%;
                    background: #ffffff;
                    animation: mask_shrink 1s ease-in;
                }
            .distance_point__direction {
                display: block;
                margin: 28px 0 0;
                font-size: 12px;
                color: #5e6c84;
            }
            .distance_point__input {
                width: 481px;
                padding: 0;
                line-height: 26px;
                border: none;
                outline: none;
                border-bottom: 1px solid #e4e4e4;
                font-size: 14px;
                color: #363636;
            }
            .distance_point__input:focus {
                border-bottom: 1px solid #5ebdf3;
            }
                /*----------------------tip divs--------------------------------------------*/
                .distance_point .transparent2 {
                    background: #ffffff;
                    -webkit-box-shadow: 0 2px 8px 0 rgba(94, 108, 132, 0.36);
                    box-shadow: 0 2px 8px 0 rgba(94, 108, 132, 0.36);
                }
                .distance_point__hint {
                    margin-top: -1px;
                    padding: 8px 0;
                    float: left;
                    /*display: none;*/
                    background: #ffffff;
                    -webkit-border-radius: 4px;
                    border-radius: 4px;
                }
                .distance_point__hint .sr,
                .distance_point__hint .srs {
                    float: left;
                    font-size: 14px;
                    color: #5e6c84;
                    padding: 8px 9px;
                    width: 392px;
                }

                /* regular item */
                .distance_point__hint .sr {
                    background-color: #ffffff;
                }

                /* active item */
                .distance_point__hint .srs {
                    background-color: #f2f3f5;
                    cursor: pointer;
                }

                /* 1st visible part of item */
                .distance_point__hint .srt {
                    margin-left: 0;
                    font-weight: 400;
                }

                /* world_part */
                .distance_point__hint .sr .ts {
                    color: #5e6c84;
                }
                .distance_point__hint .srs .ts {
                    color: #5e6c84;
                }
            .distance_point__remove {
                display: none;
                position: absolute;
                left: 462px;
                top: 42px;
                width: 24px;
                height: 24px;
                cursor: pointer;
            }
            .distance_point__add {
                display: inline-block;
                margin: 8px 0;
                font-size: 12px;
                color: #0095cc;
                cursor: pointer;
            }
                .distance_point__add_underline {
                    text-decoration: underline;
                }
.distance_submit {
    margin: 27px 0 40px 85px;
    padding: 0;
    width: 480px;
    height: 30px;
    font-size: 14px;
    color: #0095cc;
    background: #ffffff;
    border: none;
    outline: none;
    -webkit-border-radius: 4px;
    border-radius: 4px;
    -webkit-box-shadow: 0 0 8px 0 rgba(94, 108, 132, 0.38);
    box-shadow: 0 0 8px 0 rgba(94, 108, 132, 0.38);
    cursor: pointer;
}

.distance_container__static_map {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 560px;
}

.distance_container__details {
    padding: 56px 30px 0;
    text-align: left;
}
    .distance_details__error {
        position: relative;
        color: red;
        cursor: pointer;
    }
        .distance_details__error_tooltip {
            position: absolute;
            display: none;
            top: -115px;
            left: -30px;
            min-width: 275px;
            min-height: 39px;
            max-height: 39px;
            padding: 25px;
            -webkit-border-radius: 4px;
            border-radius: 4px;
            -webkit-box-shadow: -5px 2px 14px 2px rgba(127, 142, 159, 0.35);
            box-shadow: -5px 2px 14px 2px rgba(127, 142, 159, 0.35);
            background: white;
            z-index: 10;
        }
            .hint_arrow.distance__error_tooltip {
                top: 109px;
                left: 45px;
                -webkit-transform: rotate(180deg);
                -moz-transform: rotate(180deg);
                -ms-transform: rotate(180deg);
                -o-transform: rotate(180deg);
                transform: rotate(180deg);
            }
        .distance__error_tooltip-first {
            min-width: 275px;
            min-height: 68px;
            max-height: 68px;
            top: -140px;
            left: -28px;
        }
            .distance__error_tooltip-first .distance__error_tooltip {
                top: 138px
            }
    .distance_details__heading {
        margin: 0 0 8px;
        font-size: 14px;
        color: #484e59;
    }
    .distance__route {
        margin: 0 0 22px;
        font-size: 16px;
        color: #246582;
    }
    .distance_details__text {
        margin: 0 0 12px;
        font-size: 14px;
        color: #5e6c84;
    }
    .distance_details__route_container {
        position: relative;
        padding: 0;
        width: 100%;
        display: flex;
        flex-direction: row;
    }
        .distance_details__route_waypoint {
            position: relative;
            display: flex;
            justify-content: center;
            align-items: center;
            margin: 15px 0;
            height: 110px;
        }
            .distance_details__route_waypoint .distance_details__route_waypoint-text {
                position: absolute;
                display: inline-block;
                margin: 10px 0;
                width: 170px;
                font-size: 13px;
                color: #363636;
                text-align: center;
            }
            .distance_details__route_waypoint:nth-of-type(even) .distance_details__route_waypoint-text {
                top: 0;
            }
            .distance_details__route_waypoint:nth-of-type(odd) .distance_details__route_waypoint-text {
                bottom: 0;
            }
            .distance_details__route_waypoint:first-of-type .distance_details__route_waypoint-text {
                left: 0;
                text-align: left;
            }
            .distance_details__route_waypoint:last-of-type .distance_details__route_waypoint-text {
                right: 0;
                text-align: right;
            }
            .route_circle {
                text-align: center;
                font-size: 8px;
                line-height: 15px;
                color: #ffffff;
                -webkit-border-radius: 50%;
                border-radius: 50%;
            }
            .route_point__outer {
                position: relative;
                width: 32px;
                height: 32px;
                -webkit-box-shadow: 0 0 6px 0 rgba(101, 84, 192, 0.39);
                box-shadow: 0 0 6px 0 rgba(101, 84, 192, 0.39);
            }
            .route_point__mid {
                position: absolute;
                top: 4px;
                left: 4px;
                width: 24px;
                height: 24px;
                -webkit-box-shadow: 0 0 6px 0 rgba(101, 84, 192, 0.49);
                box-shadow: 0 0 6px 0 rgba(101, 84, 192, 0.49);
            }
            .route_point__inner {
                position: absolute;
                top: 47px;
                left: 8px;
                width: 16px;
                height: 16px;
            }
            @-webkit-keyframes scale_opacity{
                from {
                    transform: scale(.7, .7);
                    opacity: 1;
                }
                to {
                    transform: scale(3.5, 3.5);
                    opacity: .2;
                }
            }
            @keyframes scale_opacity {
                from {
                    transform: scale(.7, .7);
                    opacity: 1;
                }
                to {
                    transform: scale(3.5, 3.5);
                    opacity: .2;
                }
            }
            .distance_details__route_waypoint.waypoint_hover .route_point__outer,
            .distance_details__route_waypoint.waypoint_hover .route_point__mid {
                opacity: 0;
            }
            .distance_details__route_waypoint.waypoint_hover .route_circle-animated {
                position: absolute;
                width: 15px;
                height: 15px;
                -webkit-box-shadow: 0 0 6px 0 rgba(101, 84, 192, 0.49);
                box-shadow: 0 0 6px 0 rgba(101, 84, 192, 0.49);
                -webkit-animation: scale_opacity 3s infinite linear;
                -o-animation: scale_opacity 3s infinite linear;
                animation: scale_opacity 3s infinite linear;
            }
        .distance_details__route_waypoint.waypoint_hover:first-of-type .distance_details__route_waypoint-text{
            font-weight: 800;
            color: #4bb989;
        }
        .distance_details__route_waypoint.waypoint_hover:nth-of-type(2) .distance_details__route_waypoint-text{
            font-weight: 800;
            color: #6554c0;
        }
        .distance_details__route_waypoint.waypoint_hover:nth-of-type(3) .distance_details__route_waypoint-text{
            font-weight: 800;
            color: #1485c9;
        }
        .distance_details__route_waypoint.waypoint_hover:nth-of-type(4) .distance_details__route_waypoint-text{
            font-weight: 800;
            color: #ff8b00;
        }
        .distance_details__route_waypoint.waypoint_hover:nth-of-type(5) .distance_details__route_waypoint-text{
            font-weight: 800;
            color: #bf2600;
        }
        .distance_details__route_line_container {
            position: relative;
            display: flex;
            flex-direction: column;
            justify-content: center;
            margin: 35px 0;
            cursor: pointer;
        }
            .distance_details__route_line {
                display: block;
                height: 6px;
                background: #ced3da;
            }
            .distance_details__route_line-color {
                position: absolute;
                display: block;
                width: 0;
                height: 6px;
            }
            .route_line-color_first {
                background: linear-gradient(to right, #4bb989, #6554c0);
                -ms-filter: "progid:DXImageTransform.Microsoft.gradient (GradientType=0, startColorstr=#4bb989, endColorstr=#6554c0)";
                background: -webkit-linear-gradient(left, #4bb989, #6554c0);
                background: -moz-linear-gradient(left, #4bb989, #6554c0);
                background: -o-linear-gradient(left, #4bb989, #6554c0);
                background: linear-gradient(to right, #4bb989, #6554c0);
            }
            .route_line-color_second {
                background: linear-gradient(to right, #6554c0, #1485c9);
                -ms-filter: "progid:DXImageTransform.Microsoft.gradient (GradientType=0, startColorstr=#6554c0, endColorstr=#1485c9)";
                background: -webkit-linear-gradient(left, #6554c0, #1485c9);
                background: -moz-linear-gradient(left, #6554c0, #1485c9);
                background: -o-linear-gradient(left, #6554c0, #1485c9);
                background: linear-gradient(to right, #6554c0, #1485c9);
            }
            .route_line-color_third {
                background: linear-gradient(to right, #1485c9, #ff8b00);
                -ms-filter: "progid:DXImageTransform.Microsoft.gradient (GradientType=0, startColorstr=#1485c9, endColorstr=#ff8b00)";
                background: -webkit-linear-gradient(left, #1485c9, #ff8b00);
                background: -moz-linear-gradient(left, #1485c9, #ff8b00);
                background: -o-linear-gradient(left, #1485c9, #ff8b00);
                background: linear-gradient(to right, #1485c9, #ff8b00);
            }
            .route_line-color_fourth {
                background: linear-gradient(to right, #ff8b00, #bf2600);
                -ms-filter: "progid:DXImageTransform.Microsoft.gradient (GradientType=0, startColorstr=#ff8b00, endColorstr=#bf2600)";
                background: -webkit-linear-gradient(left, #ff8b00, #bf2600);
                background: -moz-linear-gradient(left, #ff8b00, #bf2600);
                background: -o-linear-gradient(left, #ff8b00, #bf2600);
                background: linear-gradient(to right, #ff8b00, #bf2600);
            }
            .distance_details__route_line_container:hover .distance_details__route_line-color {
                -webkit-transition: all .5s linear;
                -moz-transition: all .5s linear;
                -ms-transition: all .5s linear;
                -o-transition: all .5s linear;
                transition: all .5s linear;
                width: 100%;
            }
            .distance_details__distance,
            .distance_details__time {
                display: block;
                margin: 8px auto;
                min-width: 95px;
                text-align: center;
                font-size: 11px;
                color: #363636;
                opacity: .7;
                -webkit-transition: all .5s linear;
                -moz-transition: all .5s linear;
                -ms-transition: all .5s linear;
                -o-transition: all .5s linear;
                transition: all .5s linear;
            }
            .distance_details__route_line_container:hover .distance_details__distance,
            .distance_details__route_line_container:hover .distance_details__time {
                -webkit-box-shadow: 0 2px 8px 0 rgba(94, 108, 132, 0.36);
                box-shadow: 0 2px 8px 0 rgba(94, 108, 132, 0.36);
                -webkit-border-radius: 4px;
                border-radius: 4px;
                opacity: 1;
            }

.distance_container__blur_map {
    width: 100%;
    height: 244px;
    background: url("/img/map_blur.png") no-repeat center;
    text-align: center;
}
    .distance_container__blur_map a {
        text-decoration: none;
    }
    .distance_map__link {
        position: relative;
        margin: 88px 0;
        padding: 0;
        width: 307px;
        height: 69px;
        font-size: 16px;
        color: #1485c9;
        background: rgba(255, 255, 255, 0.7);
        border: none;
        outline: none;
        -webkit-border-radius: 10px;
        border-radius: 10px;
        -webkit-box-shadow: 0 0 27px 0 rgba(94, 108, 132, 0.36);
        box-shadow: 0 0 27px 0 rgba(94, 108, 132, 0.36);
        cursor: pointer;
    }
        .distance_submit span,
        .distance_map__link span {
            display: inline-block;
            position: relative;
            -webkit-transition: all 300ms ease-out;
            -moz-transition: all 300ms ease-out;
            -ms-transition: all 300ms ease-out;
            -o-transition: all 300ms ease-out;
            transition: all 300ms ease-out;
            will-change: transform;
        }
        .distance_submit:hover span,
        .distance_map__link:hover span {
            -webkit-transform: translate3d(-1rem, 0, 0);
            -moz-transform: translate3d(-1rem, 0, 0);
            -ms-transform: translate3d(-1rem, 0, 0);
            -o-transform: translate3d(-1rem, 0, 0);
            transform: translate3d(-1rem, 0, 0);
        }
        .distance_submit svg,
        .distance_map__link svg {
            position: absolute;
            width: 1.1em;
            right: 0px;
            right: 0rem;
            opacity: 0;
            top: 50%;
            transform: translateY(-50%);
            transition: all 300ms ease-out;
            will-change: right, opacity;
        }
        .distance_submit:hover svg,
        .distance_map__link:hover svg {
            opacity: 1;
            right: -2rem;
        }


    .distance_suggest__links {
        padding: 30px;
    }
        .distance_suggest__links_header {
            margin-bottom: 24px;
            text-align: left;
            font-size: 16px;
            color: #5e6c84;
        }
        .distance_suggest__links_main {
            display: flex;
            flex-direction: row;
            /*flex-wrap: wrap;*/
            width: 100%;
            /*min-height: 400px;*/
            /*max-height: 700px;*/
            text-align: center;
        }
            .distance_suggest__links_container {
                width: 50%;
                text-align: left;
            }
                .distance_suggest__link {
                    text-decoration: none;
                    font-size: 12px;
                    line-height: 24px;
                    color: #5e6c84;
                }
                .distance_suggest__link:hover {
                    text-decoration: underline;
                }
.distance__footer {
    width: 933px;
}

.ADV_POS {
    margin: 10px 25px;
}