/* 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: 15px 10px 15px !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;
    width: 240px !important;
}

.gomp-popup.gomp-popup-anchor-top {
    /* width: 240px !important; */
    width: auto !important;
    max-width: none !important;
}

.gomp-popup.gomp-popup-anchor-bottom {
    /* width: 240px !important; */
    width: auto !important;
    max-width: none !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;
}



/* 新的工具容器樣式 */
#map-tools-container {
    position: absolute;
    bottom: 45px;
    right: 13px;
    z-index: 1000;
    background-color: white;
    border-radius: 3px;
}

#map-tools-toggle {
    width: 50px;
    height: 50px;
    background: #fff;
    border-radius: 3px;
    box-shadow: 1px 1px 0 0 rgba(0, 0, 0, 0.2), 0 0 2px 0 rgba(0, 0, 0, .5);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1001;
}

#map-tools-toggle:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

#map-tools-toggle i {
    font-size: 18px;
    color: #0473ea;
    transition: transform 0.3s ease;
}

#map-tools-panel {
    position: absolute;
    bottom: 60px;
    right: 0;
    width: 280px;
    background: #fff;
    border-radius: 3px;
    box-shadow: 1px 1px 0 0 rgba(0, 0, 0, 0.2), 0 0 2px 0 rgba(0, 0, 0, .5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    pointer-events: none;
}

#map-tools-panel.expanded {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.tool-section {
    padding: 20px;
}

/* 地圖風格切換區塊保留分隔線 */
.tool-section:not(.switch-item) {
    border-bottom: 1px solid #E2E8F0;
}

/* 開關項目之間不需要分隔線 */
.tool-section.switch-item {
    border-bottom: none;
    padding: 0px 20px;
}

.tool-section:nth-child(2) {
    padding: 15px 20px 0px 20px;
}

.tool-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 14px;
    color: #2D3748;
    margin-top: 16px;
    margin-bottom: 16px;
}

/* 地圖風格切換 */
.map-style-options {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.style-option {
    flex: 1;
    min-width: 70px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.style-option:hover {
    transform: translateY(-2px);
}

.style-preview {
    width: 100%;
    height: 67.5px;
    border-radius: 8px;
    margin-bottom: 8px;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.style-preview.standard {
    background-image: url('images/map_standard.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.style-preview.light {
    background-image: url('images/map_light.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.style-preview.satellite {
    background-image: url('images/map_satellite.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.style-option.active .style-preview {
    border-color: #4299E1;
    box-shadow: 0 0 0 2px rgba(66, 153, 225, 0.2);
}

.style-option span {
    font-size: 12px;
    color: #4A5568;
    font-weight: 500;
}

.style-option.active span {
    color: #4299E1;
    font-weight: 600;
}

/* toggle 類型的衛星選項樣式 */
.style-option[data-type="toggle"].active .style-preview {
    border-color: #10B981;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

.style-option[data-type="toggle"].active span {
    color: #10B981;
    font-weight: 600;
}

/* 即時路況開關 */
.traffic-toggle,
.satellite-toggle {
    position: relative;
}

.toggle-switch {
    position: relative;
    width: 44px;
    height: 24px;
    background: #CBD5E0;
    border-radius: 12px;
    display: block;
    cursor: pointer;
    transition: background 0.3s ease;
}

.toggle-switch::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

#traffic-checkbox,
#parking-checkbox,
#highway-camera-checkbox,
#road-events-checkbox,
#weather-checkbox {
    display: none;
}

#traffic-checkbox:checked+.toggle-switch,
#parking-checkbox:checked+.toggle-switch,
#highway-camera-checkbox:checked+.toggle-switch,
#road-events-checkbox:checked+.toggle-switch,
#weather-checkbox:checked+.toggle-switch {
    background: #4299E1;
}

#traffic-checkbox:checked+.toggle-switch::after,
#parking-checkbox:checked+.toggle-switch::after,
#highway-camera-checkbox:checked+.toggle-switch::after,
#road-events-checkbox:checked+.toggle-switch::after,
#weather-checkbox:checked+.toggle-switch::after {
    transform: translateX(20px);
}

/* 路況對照表 */
.traffic-legend {
    margin-top: 12px;
    padding: 12px 8px;
    background: #F7FAFC;
    border-radius: 8px;
}


.legend-items {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.legend-color {
    width: 20px;
    height: 4px;
    border-radius: 2px;
}

.legend-item span {
    font-size: 11px;
    color: #4A5568;
}

/* 外部壅塞程度對照表 - 橫式設計 */
.traffic-legend-external {
    position: absolute;
    bottom: 45px;
    right: 76px;
    background: #fff;
    border-radius: 3px;
    box-shadow: 1px 1px 0 0 rgba(0, 0, 0, 0.2), 0 0 2px 0 rgba(0, 0, 0, .5);
    padding: 8px 12px 8px 12px;
    z-index: 1000;
    transition: all 0.3s ease;
}

/* 工具面板展開時，移到面板上方 */
.traffic-legend-external.panel-open {
    bottom: 45px;
    /* 工具面板上方 */
    right: 76px;
}


/* 漸層色條設計 */
.traffic-legend-external .legend-gradient {
    display: flex;
    align-items: center;
}

.traffic-legend-external .legend-bar {
    flex: 1;
    height: 6px;
    display: flex;
    overflow: hidden;
    position: relative;
    margin-top: 25px;
    margin-bottom: 3px;
    outline: 1px solid rgba(0, 0, 0, .3);
}

.traffic-legend-external .color-block {
    flex: 1;
    height: 6px;
    min-width: 30px;
}

.traffic-legend-external .color-block.smooth {
    background-color: #68dd9f;
}

.traffic-legend-external .color-block.medium {
    background-color: #ffc078;
}

.traffic-legend-external .color-block.heavy {
    background-color: #de86f4;
}

.traffic-legend-external .color-block.very-heavy {
    background-color: #aa3bc6;
}

.traffic-legend-external .legend-label {
    font-size: 12px;
    color: #4A5568;
    white-space: nowrap;
    font-weight: 600;
    position: relative;
}

.traffic-legend-external .legend-label.left {
    position: absolute;
    top: 6px;
    left: 10px;
}

.traffic-legend-external .legend-label.right {
    position: absolute;
    top: 6px;
    right: 10px;
}

/* 即時路況載入狀態 */
.traffic-loading {
    padding: 8px 0;
    text-align: center;
}

.traffic-loading span {
    font-size: 11px;
    color: #9CA3AF;
    font-style: italic;
}

/* 禁用狀態的開關樣式 */
.toggle-switch.disabled {
    background: #E5E7EB !important;
    cursor: not-allowed;
}

.toggle-switch.disabled::after {
    background: #9CA3AF !important;
    cursor: not-allowed;
}

#traffic-checkbox:disabled+.toggle-switch,
#parking-checkbox:disabled+.toggle-switch,
#highway-camera-checkbox:disabled+.toggle-switch,
#road-events-checkbox:disabled+.toggle-switch,
#weather-checkbox:disabled+.toggle-switch {
    background: #E5E7EB;
    cursor: not-allowed;
}

#traffic-checkbox:disabled+.toggle-switch::after,
#parking-checkbox:disabled+.toggle-switch::after,
#highway-camera-checkbox:disabled+.toggle-switch::after,
#road-events-checkbox:disabled+.toggle-switch::after,
#weather-checkbox:disabled+.toggle-switch::after {
    background: #9CA3AF;
    cursor: not-allowed;
}

/* 搜尋區塊樣式 */
#search-container {
    position: absolute;
    width: 400px;
    left: 10px;
    top: 10px;
    z-index: 20;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input-wrapper .new-search-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
}

.search-input {
    width: 100%;
    padding: 7.5px 35px 7.5px 35px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 25px;
    box-shadow: 1px 1px 0 0 rgba(0, 0, 0, 0.2), 0 0 2px 0 rgba(0, 0, 0, .5);
    border: 1px solid #e5e7eb;
    color: #374151;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    outline: none;
}

.geocoder-icon-search {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    z-index: 1;
}

.search-clear-btn {
    display: none;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #0473ea77;
    cursor: pointer;
    transition: color 0.3s ease;
    padding: 4px;
}

.search-clear-btn:hover {
    color: #0473ea;
}

.search-clear-btn.show {
    display: flex;
    align-items: center;
}

.search-clear-btn.hidden {
    display: none;
}

.search-clear-icon {
    width: 20px;
    height: 20px;
}

.search-textsearch-list {
    position: absolute;
    left: 0;
    top: 100%;
    margin-top: 4px;
    padding: 4px;
    width: 100%;
    background: white;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    border-radius: 6px;
    border: 1px solid #e5e7eb;
    z-index: 20;
    display: block;
    max-height: 588px;
    overflow-y: auto;
    list-style: none;
}

.search-textsearch-list.hidden {
    display: none;
}

/* 自動完成清單項目樣式 */
.search-textsearch-list li {
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.search-textsearch-list li:hover {
    background-color: #f3f4f6;
}

.search-textsearch-list li.selected {
    background-color: #eff6ff;
}

.search-textsearch-list li>div:first-child {
    font-weight: 600;
    color: #111827;
    margin-bottom: 2px;
}

.search-textsearch-list li>div:last-child {
    font-size: 12px;
    color: #6b7280;
}

/* 手機版搜尋區塊調整 */
@media (max-width: 576px) {
    #search-container {
        width: calc(100vw - 4rem);
    }

    .search-input {
        padding: 7.5px 35px 7.5px 35px;
        font-size: 14px;
    }
}

/* 手機版響應式設計 */
@media (max-width: 576px) {
    #map-tools-panel {
        width: 260px;
    }

    #map-tools-toggle {
        width: 45px;
        height: 45px;
    }

    .tool-section {
        padding: 16px;
    }

    .map-style-options {
        gap: 8px;
    }

    .style-option {
        min-width: 60px;
    }

    .style-preview {
        height: 40px;
    }

    /* 手機版外部對照表調整 */
    .traffic-legend-external {
        bottom: 45px;
        right: 68px;
        padding: 6px 10px;
    }

    .traffic-legend-external.panel-open {
        bottom: 45px;
        /* 手機版面板較矮 */
        right: 68px;
    }

    .traffic-legend-external .legend-items {
        gap: 8px;
        /* 手機版間距較小 */
    }

    .traffic-legend-external .legend-color {
        width: 16px;
        height: 5px;
    }

    .traffic-legend-external .legend-item span {
        font-size: 8px;
    }

    .search-textsearch-list {
        max-height: 288px;
    }
}

.popup-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;
}

.suggestions-wrapper.route-mode {
    width: auto;
    min-width: 300px;
    max-width: 550px;
    top: calc(100% + 6px);
    left: 45px;
    overflow-y: auto;
    max-height: 588px;
}

.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;
    }
}

/* 停車場 Popup 樣式 */
.parking-popup {
    min-width: 280px;
    max-width: 320px;
    font-family: 'Noto Sans TC', sans-serif;
}

.parking-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 12px;
    margin-bottom: 3px;
}

.parking-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #212529;
    flex: 1;
    margin-right: 12px;
}

.parking-status {
    font-size: 14px;
    font-weight: 600;
    color: #0473ea;
    background-color: #e8f0fe;
    padding: 4px 8px;
    border-radius: 4px;
    white-space: nowrap;
}

.parking-details {
    font-size: 13px;
    line-height: 1.4;
}

.detail-row {
    display: flex;
    margin-bottom: 8px;
}

.detail-row .label {
    font-weight: 600;
    color: #6c757d;
    min-width: 40px;
    margin-right: 8px;
}

.detail-row .value {
    color: #212529;
    flex: 1;
    word-wrap: break-word;
}

.parking-features {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 12px 0 8px 0;
}

.feature-tag {
    font-size: 11px;
    padding: 3px 6px;
    border-radius: 12px;
    color: white;
    font-weight: 500;
}

.feature-tag.public {
    background-color: #20c997;
}

.feature-tag.private {
    background-color: #6f42c1;
}

.feature-tag.accessible {
    background-color: #fd7e14;
}

.feature-tag.overnight {
    background-color: #6610f2;
}

.feature-tag.security {
    background-color: #198754;
}

.update-time {
    font-size: 11px;
    color: #6c757d;
    text-align: right;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #f8f9fa;
}