/* Basic */

body {
    font-family: "Noto Sans TC", "Microsoft YaHei", "Hiragino Kaku Gothic Pro", sans-serif;
    font-size: 16px;
    margin: 0;
    padding: 0;
}

#map {
    bottom: 0;
    position: absolute;
    top: 0;
    width: 100%;
    /* height: 99.99vh; */
    z-index: 1;
    transition: .4s;
}

#map::before {
    display: block;
    width: 100%;
    height: 100%;
    /* background-color: #d8dee9; */
    background-color: #495057;
    opacity: 0.3;
    z-index: 3;
    position: absolute;
    left: 0;
    top: 0;
}

#map.loading::before {
    content: '';
}


div.gomp-ctrl-geocoder {
    width: 100%;
    max-width: 424px;
    min-width: 424px;
}

/* Popup */

.gomp-popup-content {
    font-size: 14px;
    padding: 20px 10px 20px !important;
}

.traffic-popup .gomp-popup-content {
    padding: 10px !important;
}

.gomp-popup-close-button {
    background-color: #0473ea;
    border: 3px solid #fff;
    border-radius: 50%;
    box-shadow: 1px 0 0 rgba(0, 0, 0, 0.1), 0 -1px 0 rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    height: 2em;
    line-height: calc(2em - 6px);
    padding: 0;
    right: -1em;
    text-align: center;
    top: -1em;
    width: 2em;
}

.gomp-popup-close-button:hover {
    background-color: #666;
}

#popup-content-container {
    padding-bottom: 10px;
}

.gomp-popup.gomp-popup-anchor-top {
    width: 240px !important;
}

.gomp-popup.gomp-popup-anchor-bottom {
    width: 240px !important;
}

.gomp-popup.gomp-popup-anchor-bottom.traffic-popup {
    width: auto !important;
}

#popup-content-container p {
    margin-bottom: 0;
}

.gomp-popup-content .badge {
    display: inline-block;
    font-size: 12px;
    font-style: normal;
    font-weight: 300;
    line-height: 1em;
    vertical-align: top;
}

.gomp-popup-content h3 .badge,
#popup-address-content .badge {
    margin-right: .3em;
}

.gomp-popup-content h3 {
    border-bottom: 1px solid #ddd;
    font-size: 1.2em;
    font-weight: 600;
    line-height: 22px;
    margin: 0;
    padding: 10px;
}

.gomp-popup-content h3 .badge {
    margin-top: 2px;
}

/* .gomp-popup-content p {
    margin: 0;
    padding-left: 10px;
    padding-right: 10px;
    padding-top: 10px;
} */

#popup-address-content .badge {
    margin-top: 1px;
}

/* #popup-description-content p {
    margin-top: -.5em;
} */

#popup-description-content .badge {
    margin-left: 10px;
    margin-right: 10px;
    margin-top: 10px;
}

#popup-description-content p>.badge:first-child {
    margin-left: 0;
}

.popup-img-box {
    border-top: 1px solid #ddd;
    padding-left: 10px;
    padding-right: 10px;
    padding-top: 10px;
    margin-top: 10px;
    text-align: center;
}

.gomp-popup-content img {
    height: auto;
    max-width: 350px;
    object-fit: contain;
}

.gomp-popup-content .btns {
    background: #eee;
    border-bottom-left-radius: 3px;
    border-bottom-right-radius: 3px;
    border-top: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    padding: 10px;
}

.gomp-popup-content .btns .btn {
    min-width: 85px;
    background-color: #4dabf7;
    color: #fff;
    border-radius: 8px;
}

.gomp-popup-content .btns .btn .fas {
    width: 14px;
    margin-right: 2px;

}

#gomp-popup-start-button {
    background-color: #495057;
}

#gomp-popup-start-button .fas,
#gomp-popup-end-button .fas {
    font-size: 16px;
}

#gomp-popup-end-button {
    background-color: #fa5252;

}

#gomp-popup-share-button {
    width: 100%;
}

#popup-input-container {
    display: none;
    padding-bottom: 10px;
}

#popup-input-container input {
    display: block;
    margin: 10px 10px 0 10px;
    width: calc(100% - 20px);
}

.gomp-popup-anchor-bottom .gomp-popup-tip:before,
.gomp-popup-anchor-bottom-left .gomp-popup-tip:before,
.gomp-popup-anchor-bottom-right .gomp-popup-tip:before {
    border-top-color: #eee;
}

/* Modal */

.modal {
    background: rgba(0, 0, 0, .5);
}

.modal-content {
    border: none;
    box-shadow: 0 0 1px 1px rgba(0, 0, 0, 0.1), 0 0 1px rgba(0, 0, 0, 0.1);
}

.modal-body {
    padding-bottom: 1.4rem;
    padding-top: 1.4rem;
}

.modal-body .input-group:last-child {
    margin-bottom: 0 !important;
}

.modal input[type="text"] {
    font-family: 'Consolas', 'Courier New', Courier, monospace;
}

.modal .modal-body button {
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E %3Cpath fill='%23ffffff' d='M4.5,20h7c1.381,0,2.5-1.119,2.5-2.5V16h1.5c1.381,0,2.5-1.119,2.5-2.5v-11C18,1.119,16.881,0,15.5,0h-7 C7.119,0,6,1.119,6,2.5V4H4.5C3.119,4,2,5.119,2,6.5v11C2,18.881,3.119,20,4.5,20z M8,2.5C8,2.225,8.225,2,8.5,2h7 C15.775,2,16,2.225,16,2.5v11c0,0.275-0.225,0.5-0.5,0.5H14V6.5C14,5.119,12.881,4,11.5,4H8V2.5z M4,6.5C4,6.225,4.225,6,4.5,6h7 C11.775,6,12,6.225,12,6.5v11c0,0.275-0.225,0.5-0.5,0.5h-7C4.225,18,4,17.775,4,17.5V6.5z'/%3E %3C/svg%3E");
    background-position: center center;
    background-repeat: no-repeat;
    background-size: 20px 20px;
    width: 2.4rem;
}

.modal .alert {
    align-items: center;
    bottom: 1rem;
    display: flex;
    font-size: 1.2em;
    justify-content: center;
    left: 1rem;
    margin-bottom: 0;
    opacity: 0;
    position: absolute;
    right: 1rem;
    top: 1rem;
    transition: opacity .5s;
    z-index: 0;
}

.modal .alert.show {
    opacity: 1;
    z-index: 10;
}

@-webkit-keyframes fadein {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadein {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@-webkit-keyframes fadeout {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

@keyframes fadeout {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

/* Snackbar */

/* #snackbar {
    visibility: hidden;
    min-width: 250px;
    margin-left: -125px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 2px;
    padding: 16px;
    position: fixed;
    z-index: 1150;
    left: 50%;
    bottom: 30px;
    font-size: 17px;
}
#snackbar.show {
    visibility: visible;
    -webkit-animation: fadein 0.5s, fadeout 0.5s 2.5s;
    animation: fadein 0.5s, fadeout 0.5s 2.5s;
}
@-webkit-keyframes fadein {
    from {bottom: 0; opacity: 0;} 
    to {bottom: 30px; opacity: 1;}
}
@keyframes fadein {
    from {bottom: 0; opacity: 0;}
    to {bottom: 30px; opacity: 1;}
}
@-webkit-keyframes fadeout {
    from {bottom: 30px; opacity: 1;} 
    to {bottom: 0; opacity: 0;}
}
@keyframes fadeout {
    from {bottom: 30px; opacity: 1;}
    to {bottom: 0; opacity: 0;}
} */
.geocoder-icon-search {
    width: 17px !important;
    left: 10px !important;
}

.geocoder-icon-close {
    margin-top: 0px !important;
}



#road-situation-wrap {
    position: absolute;
    display: none;
    flex-direction: column;
    z-index: 2;
    bottom: 110px;
    right: 13px;
    box-shadow: 1px 1px 0 0 rgba(0, 0, 0, 0.2), 0 0 2px 0 rgba(0, 0, 0, .5);
    border-radius: 3px;
    background: #fff;
    width: 50px;
    height: 210px;
}

#road-situation-switch {
    position: absolute;
    display: none;
    z-index: 2;
    width: 50px;
    height: 50px;
    bottom: 45px;
    right: 13px;
    border-radius: 3px;
    box-shadow: 1px 1px 0 0 rgba(0, 0, 0, 0.2), 0 0 2px 0 rgba(0, 0, 0, .5);
    background-color: #fff;
    overflow: hidden;
    cursor: pointer;
    transition: .2s;
    padding: 3px;
}

#road-situation-switch img {
    width: 100%;
    height: 100%;
    transition: .2s;
}

.situation-information {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;

}

.congestion-color {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    height: 60%;
}

.congestion-color::after {
    content: '暢通';
    position: absolute;
    top: -30px;
    color: #222;
    font-size: 15px;
    letter-spacing: 1px;
}

.congestion-color::before {
    content: '壅塞';
    position: absolute;
    bottom: -27px;
    color: #222;
    font-size: 15px;
    letter-spacing: 1px;
}

.congestion-color div {
    width: 7px;
    height: 25%;
    border-bottom: 2px solid white;
}

.poup-title {
    display: flex;
    justify-content: center;
    padding-bottom: 12px;
}

.bac-orange {
    background-color: #ffa94d;
}

.bac-blue {
    background-color: #339af0;
}

.bac-green {
    background-color: #51cf66;
}

.txt-orange {
    color: #ffa94d;
}

.txt-blue {
    color: #339af0;
}

.txt-green {
    color: #51cf66;
}

.fas-orange .fas {
    color: #ffa94d;
}

.fas-blue .fas {
    color: #339af0;
}

.fas-green .fas {
    color: #40c057;
}

.poup-type {
    font-size: 18px;
    color: #f7f8f9;
    border-radius: 8px;
    padding: 8px 16px;
    text-align: center;
    letter-spacing: 2px;
    font-weight: 600;
    margin-bottom: 0;
}

.poup-type span {}

.poup-content {
    display: flex;
    justify-content: center;
    /* padding-bottom: 16px; */
}

.poup-content-txt {
    font-size: 16px;
    margin-bottom: 0;
    letter-spacing: 1px;
    text-align: center;
}

.popup-title-content {
    padding: 0 6px;

}

.popup-address-content {
    display: flex;
    padding: 0 6px;

}

.popup-address-content .address {
    font-size: 16px;
    margin-bottom: 0;
    letter-spacing: 1px;
    padding-bottom: 6px;
}

.popup-address-content .address .fas {
    /* margin-right: 6px; */
    font-size: 14px;
    /* color: #40c057; */
}

.popup-description-content {
    padding: 0 6px;
}

.popup-description-content .description {
    font-size: 16px;
    margin-bottom: 0;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.popup-description-content .description p {
    display: block;
    width: 100%;
}

.popup-description-content .description .fas {
    margin-right: 6px;
    font-size: 14px;
}

.grey-line {
    position: relative;
}

.grey-line::after {
    content: '';
    display: block;
    width: 100%;
    height: 1px;
    background-color: #ced4da;
    position: absolute;
    left: 0;
    bottom: 8px;
}

.gomp-popup-content .navigation-block {}

.gomp-popup-content .navigation-block .btn {
    background-color: #4dabf7;
}

.section-block.active #map {
    width: calc(100% - 435px);
    left: unset;
    right: 0;
}

.section-block.active .aside {
    /* display: block; */
    left: 0;
}

.section-block.active .gomp-ctrl-top-left {
    display: none;
}

.aside {
    font-family: 'Noto Sans TC';
    position: relative;
    left: -100%;
    z-index: 5;
    width: 435px;
    height: 99.9vh;
    overflow: hidden;
    box-shadow: 0 0 8px 4px #adb5bd;
    transition: .25s;
    /* display: none; */
}

.mobile .aside {
    overflow: unset
}


.aside .icon {
    cursor: pointer;
    padding: 8px;
}

.aside-content {
    background-color: #fff;
    height: 100%;
    padding: 20px 40px;
    font-size: 18px;
    position: relative;
}

.aside-content .cross {
    padding: 12px;
    position: absolute;
    right: 10px;
    top: 0;
}

.aside-head {
    position: relative;
}

.aside-head nav {}

.aside-head .transportation-list {
    display: flex;
    justify-content: center;
    list-style: none;
    padding-left: 0;
}

.aside-head .transportation-item {}

.aside-head .transportation-item .icon {
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    border: 1px solid #4dabf7;
    color: #4dabf7;

    padding: 12px;
    width: 45px;
    transition: .3s;
}

.transportation-item+.transportation-item {
    margin-left: 15px;
}

.aside-head .transportation-item .icon:hover {
    background-color: #1971c2;
    border: 1px solid #1864ab;
    color: #fff;
}

.aside-head .transportation-item.active .icon {
    background-color: #1971c2;
    border: 1px solid #1864ab;
    color: #fff;
}

.aside-body {}

.startEnd-blcok {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.startEnd-blcok .input-block {
    display: flex;
    position: relative;
}

.startEnd-blcok .suggestions-wrapper {
    position: absolute;
    width: 85%;
    top: calc(100% + 6px);
    right: 0;
    z-index: 105;
    padding: 5px;
    overflow: hidden;
}

.mobile .startEnd-blcok .suggestions-wrapper {
    width: 84%;
    right: unset;
    left: 35px;
}

.startEnd-blcok .suggestions-wrapper .suggestions-list {
    background-color: #fff;

    border-radius: 0 0 20px 20px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    left: 0;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 13px;
    overflow: hidden;
}

.startEnd-blcok .suggestions-wrapper .suggestions-item {
    cursor: pointer;
    padding: 6px 12px;
}

.startEnd-blcok .suggestions-wrapper .suggestions-item:hover {
    background-color: #f3f3f3;
}

.startEnd-blcok .startEnd-wrap {}

.startEnd-blcok .startEnd-wrap .input-block {
    display: flex;
    align-items: center;
    position: relative;
}

.startEnd-blcok .startEnd-wrap .input-block .cross {
    display: flex;
    align-items: center;
    position: absolute;
    width: 30px;
    height: 30px;
    right: -40px;
    border: 1px solid #868e96;
    border-radius: 50%;
    color: #868e96;

    display: none;
}

.startEnd-blcok .startEnd-wrap .input-block .cross.acvive {
    display: block;
}

.startEnd-blcok .startEnd-wrap .input-block span {
    display: block;
    /* padding: 6px 8px; */
    color: #495057;
    padding-right: 6px;
}

.startEnd-blcok .startEnd-wrap .input-block input {
    border-radius: 6px;
    border: 1px solid #adb5bd;
    padding: 6px 8px;
    color: #495057;
    background-color: #e8f0fe;
}

.startEnd-blcok .startEnd-wrap .input-block input:focus-visible {
    outline: 1px solid #1c7ed6;
}

.startEnd-blcok .startEnd-wrap .input-block+.input-block {
    padding-top: 12px;
}

.startEnd-blcok .startEnd-wrap .start {}

.startEnd-blcok .startEnd-wrap .start span {}

.startEnd-blcok .startEnd-wrap .end {}

.startEnd-blcok .startEnd-wrap .end span {
    color: #f95252;
}


.startEnd-blcok .exchange-wrap {}


.exchange-block {}

.exchange-block .icon {
    transform: rotate(90deg);
    color: #495057;
}

.route-block {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 24px 0;
}

.route-block .add-wrap {
    padding: 0;
}

.route-block .add-wrap .add-btn {
    display: block;
    background-color: #fff;
    border: 1px solid #adb5bd;
    border-radius: 6px;
    color: #1971c2;
    padding: 8px 12px;
    transition: .3s;
}

.route-block .add-wrap .add-btn:hover {
    background-color: #1971c2;
    color: #fff;
}

.route-block .route-btn {
    /* margin-left: 12px; */
    background-color: #fff;
    color: #1971c2;
    border: 1px solid #adb5bd;
    border-radius: 6px;
    padding: 8px 12px;
    transition: .3s;
    cursor: pointer;
    width: 44%;
    margin: 0 3%;
}

.route-block .route-btn:focus {
    outline: unset;
}

.route-block .route-btn:hover {
    background-color: #1971c2;
    color: #fff;
}

.aside-footer {
    position: relative;
}

.aside-footer.active .route-wrap {
    border: 1px solid #adb5bd;
}

#loading {
    align-items: center;
    background: rgba(0, 0, 0, .5);
    color: rgba(255, 255, 255, .5);
    display: flex;
    font-size: 10vh;
    height: 100vh;
    justify-content: center;
    left: 0;
    pointer-events: none;
    transition: opacity, .5s;
    opacity: 0;
    position: fixed;
    top: 0;
    width: 100vw;
    z-index: 10
}

#loading.active {
    opacity: 1;
    pointer-events: unset
}

#loading.active i {
    animation-duration: 2s;
    animation-name: loading;
    animation-iteration-count: infinite;
    animation-timing-function: linear
}

@keyframes loading {
    from {
        color: rgba(255, 255, 255, .5);
        transform: rotate(0deg)
    }

    25% {
        transform: rotate(90deg)
    }

    50% {
        color: #fff;
        transform: rotate(180deg)
    }

    75% {
        transform: rotate(270deg)
    }

    to {
        color: rgba(255, 255, 255, .5);
        transform: rotate(360deg)
    }
}

.res {
    border: 1px solid transparent;
}

.res .txt {
    display: block;
    font-size: 18px;
    color: #495057;
    margin-bottom: 0;
}

.route-wrap {
    max-height: 400px;
    overflow-y: auto;
}



.route-wrap::-webkit-scrollbar {
    width: 6px;
    /* 寬度 */
}

.route-wrap::-webkit-scrollbar-thumb {
    background-color: #868e96;
    border-radius: 6px;
    /* 滾動條塊的颜色 */
}

.route-wrap::-webkit-scrollbar-track {
    background-color: #ced4da;
    /* 滾動條的颜色 */
}

.route-wrap::-webkit-scrollbar-button {
    display: none;
    /* 隐藏的上下箭頭 */
}


.route-list::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    width: 100%;
    height: 2px;
    background-color: #868e96;
}


.route-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.route-list .route-item {
    padding: 10px 6px;
    position: relative;
}

.route-item+.route-item {
    padding-top: 12px;
}

.route-list .route-item.grey-line::after {
    bottom: 0px;
}

.route-list .route-item .icon {
    color: #1971c2;
    padding: 0;
    /* padding: 6px; */
    padding-right: 6px;
}

.route-list .route-item .icon i {
    display: block;
}


.route-list .route-item .title {
    display: flex;
    align-items: flex-start;
}

.route-list .route-item .step-detail {
    width: 100%;
    display: flex;
    justify-content: space-between;
}

.route-list .route-item .step-detail .title {}

.route-list .route-item .step-detail .title .name {}

.route-list .route-item .step-detail .title .name .txt {
    font-weight: 600;
}

.route-list .route-item .step-detail .distance-time .txt-distance {
    color: #40c057;
}

.route-list .route-item .step-detail .distance-time .txt-time {
    padding-top: 3px;
    color: #1971c2;
}

.route-list .route-item .step-detail .distance-time {
    min-width: 75px;
    text-align: right;
}

.aside-footer.active .total::before,
.aside-footer.active .total::after {
    content: '';
}

.aside-footer.active .total {
    border: 1px solid #adb5bd;
    background-color: #e8f0fe;
}

.recommend {
    padding: 24px 0;
    text-align: center;
}

.recommend .link {
    display: inline-block;
    background-color: #099268;
    color: #fff;
    border: 1px solid #adb5bd;
    border-radius: 6px;
    padding: 8px 12px;
    transition: .3s;
    cursor: pointer;
}

.recommend .link:hover {
    text-decoration: unset;
    background-color: #12b886;
}

.recommend.mobile {
    display: none;
    padding: 0;
    padding-bottom: 12px;
    position: absolute;
    bottom: 0;
    z-index: 10;
    left: 0;
    right: 0;

    margin: auto;
}

.aside-footer.mobile .recommend {
    padding: 0;
    padding-top: 8px;
    font-size: 14px;
}

.aside-footer.mobile .recommend .link {}

.res .total {
    padding: 40px 20px;
    position: relative;
    border: none;
    background-color: #fff;
}

.res .total::before {
    /* content: ''; */
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    width: 100%;
    height: 2px;
    background-color: #868e96;
}

.res .total::after {
    /* content: ''; */
    position: absolute;
    bottom: 0;
    left: 0;
    display: block;
    width: 100%;
    height: 2px;
    background-color: #868e96;
}

.res .total .txt {
    color: #343a40;
    letter-spacing: 1.2px;
    font-weight: 600;
}

.res .total .txt span {
    color: #fa5252;
}

.res .total .txt-time-distance {}

.res .total .txt-total-distance {
    padding-top: 6px;
}

.opacity {
    opacity: 0;
}


@media screen and (max-width: 640px) {
    .geocoder-icon-close {
        width: 16px !important;
        height: 16px !important;
    }

    .geocoder-icon-search {
        top: 10px !important;
    }

    div.gomp-ctrl-geocoder {
        width: 75%;
        min-width: 300px;
    }
}

@media screen and (max-width: 576px) {

    .aside .txt,
    .res .txt,
    .route-btn,
    .aside input {
        font-size: 14px;
    }

    .aside-footer {
        display: none;
    }

    body.mobile .gomp-control-container .gomp-ctrl-top-right .gomp-ctrl-group:first-child {
        display: none;
    }

    body.mobile.footerTrue .gomp-control-container .gomp-ctrl-top-right {
        display: none;
    }

    body.mobile .section-block.active #map {
        height: calc(100% - 235px);
    }

    /* body.mobile .section-block.active #map #road-situation-wrap,
    body.mobile .section-block.active #map #road-situation-switch {
        display: none !important;
    } */

    body.mobile.footerTrue .section-block.active #map {
        height: calc(100% - 310px);
    }

    body.mobile.footerTrue .section-block.active .recommend.mobile {
        display: block;
    }

    .section-block.active #map {
        width: 100%;
        left: unset;
        right: 0;
        top: 235px;
        height: calc(100% - 235px);
        /* 
        top: unset;
        bottom: 0;
        height: calc(100% - 235px); */
    }

    .section-block.active .aside {
        /* display: block; */
        top: 0;
    }

    .route-block {
        padding-top: 14px;
        padding-bottom: 0;
    }

    .aside {
        left: unset;
        top: -300px;
        width: 100%;
        height: 100%;
    }

    .aside-content {
        padding: 20px;
    }

    .startEnd-blcok {
        justify-content: center;
    }

    .startEnd-blcok .startEnd-wrap {
        width: 100%;
    }

    .startEnd-blcok .startEnd-wrap input {
        width: 80%;
    }


    .aside-footer.mobile {
        display: none;
        width: 100%;
        position: absolute;
        left: 0;
        bottom: 0;
        z-index: 10;
        background-color: #fff;
        padding: 10px;
        box-shadow: 0 0 8px 4px #adb5bd
    }

    .aside-footer.mobile.active {
        display: block;
    }

    .aside-footer.mobile .route-wrap {
        border: 1px solid #adb5bd;
        height: 200px;
    }

    .aside-footer.mobile .total {
        border: 1px solid #adb5bd;
        background-color: #e8f0fe;
        padding: 10px 20px;
    }


}

@media screen and (min-width: 576px) {
    .aside-footer.mobile {
        display: none;
    }
}