/* Design tokens */

:root {
    --color-primary: #00295a;
    --color-primary-hover: #0a3d7a;
    --color-primary-soft: #e8edf4;
    --color-primary-fill: #e04e17;
    --color-primary-fill-hover: #c7410f;
    --color-accent: #f15a24;
    --color-danger: #e5484d;
    --color-danger-hover: #cc3a3f;
    --color-success: #16a34a;
    --color-text: #14213a;
    --color-text-secondary: #5b6577;
    --color-text-muted: #98a1b0;
    --color-border: #dde2ea;
    --color-surface: #ffffff;
    --color-surface-2: #f3f5f8;
    --color-surface-hover: #edf0f5;
    --radius-sm: 3px;
    --radius-md: 4px;
    --radius-lg: 6px;
    --slant: 7px;
    --clip-slant: polygon(var(--slant) 0, 100% 0, calc(100% - var(--slant)) 100%, 0 100%);
    --shadow-sm: 0 0 0 1px rgba(0, 41, 90, .10), 2px 2px 0 rgba(0, 41, 90, .14);
    --shadow-md: 0 0 0 1px rgba(0, 41, 90, .12), 4px 4px 0 rgba(0, 41, 90, .16);
    --font-family: "Noto Sans TC", "Microsoft YaHei", "Hiragino Kaku Gothic Pro", sans-serif;
    --font-numeric: "Barlow Condensed", "Noto Sans TC", sans-serif;
}

body.theme-dark .toggle-switch {
    background: #2a4064;
}

body.theme-dark {
    --color-primary: #8db7ff;
    --color-primary-hover: #b0ceff;
    --color-primary-soft: rgba(141, 183, 255, .14);
    --color-primary-fill: #e04e17;
    --color-primary-fill-hover: #f15a24;
    --color-text: #e6ebf3;
    --color-text-secondary: #a3aec0;
    --color-text-muted: #75819a;
    --color-border: #23395a;
    --color-surface: #0d1b30;
    --color-surface-2: #13253f;
    --color-surface-hover: #1a2f4e;
    --shadow-sm: 0 0 0 1px rgba(141, 183, 255, .14), 2px 2px 0 rgba(0, 0, 0, .45);
    --shadow-md: 0 0 0 1px rgba(141, 183, 255, .16), 4px 4px 0 rgba(0, 0, 0, .5);
}

/* Basic */

body {
    font-family: var(--font-family);
    font-size: 16px;
    margin: 0;
    padding: 0;
    color: var(--color-text);
}

#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: '';
}


#map .gomp-ctrl-top-right .gomp-ctrl {
    margin: 12px 12px 0 0;
}

#map .gomp-ctrl-top-right .gomp-ctrl + .gomp-ctrl {
    margin-top: 8px;
}

.gomp-ctrl.gomp-ctrl-group {
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    background: var(--color-surface);
}

.gomp-ctrl.gomp-ctrl-group button {
    width: 36px;
    height: 36px;
}

.gomp-ctrl.gomp-ctrl-group button + button {
    border-top-color: var(--color-border);
}

.gomp-ctrl.gomp-ctrl-group button:first-child {
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.gomp-ctrl.gomp-ctrl-group button:last-child {
    border-radius: 0 0 var(--radius-md) var(--radius-md);
}

.gomp-ctrl.gomp-ctrl-group button:only-child {
    border-radius: var(--radius-md);
}

div.gomp-ctrl-geocoder {
    width: 100%;
    max-width: 424px;
    min-width: 424px;
}

/* Popup */

.gomp-popup-content {
    font-size: 14px;
    padding: 16px !important;
    background: var(--color-surface) !important;
    color: var(--color-text);
    border-radius: var(--radius-lg) !important;
    box-shadow: var(--shadow-md) !important;
}

.traffic-popup .gomp-popup-content {
    padding: 10px 12px !important;
}

.gomp-popup .gomp-popup-close-button {
    background-color: transparent;
    border: none;
    border-radius: 50%;
    color: var(--color-text-secondary);
    font-size: 20px;
    font-weight: 400;
    height: 28px;
    line-height: 26px;
    padding: 0;
    right: 8px;
    text-align: center;
    top: 8px;
    width: 28px;
    transition: background-color .2s, color .2s;
}

.gomp-popup .gomp-popup-close-button:hover {
    background-color: var(--color-surface-hover);
    color: var(--color-text);
}

.popup-content-container {
    width: 260px !important;
}

.gomp-popup.gomp-popup-anchor-top,
.gomp-popup.gomp-popup-anchor-bottom,
.gomp-popup.gomp-popup-anchor-bottom.traffic-popup {
    width: auto !important;
    max-width: none !important;
}

.gomp-popup-anchor-top .gomp-popup-tip,
.gomp-popup-anchor-top-left .gomp-popup-tip,
.gomp-popup-anchor-top-right .gomp-popup-tip {
    border-bottom-color: var(--color-surface) !important;
}

.gomp-popup-anchor-bottom .gomp-popup-tip,
.gomp-popup-anchor-bottom-left .gomp-popup-tip,
.gomp-popup-anchor-bottom-right .gomp-popup-tip {
    border-top-color: var(--color-surface) !important;
}

.gomp-popup-anchor-left .gomp-popup-tip {
    border-right-color: var(--color-surface) !important;
}

.gomp-popup-anchor-right .gomp-popup-tip {
    border-left-color: var(--color-surface) !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 var(--color-border);
    font-size: 1.2em;
    font-weight: 600;
    line-height: 22px;
    margin: 0;
    padding: 10px;
}

.gomp-popup-content h3 .badge {
    margin-top: 2px;
}

.popup-address-content .badge {
    margin-top: 1px;
}

.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 var(--color-border);
    padding: 10px 10px 0;
    margin-top: 10px;
    text-align: center;
}

.gomp-popup-content img {
    height: auto;
    max-width: 350px;
    object-fit: contain;
}

.gomp-popup-content .btns {
    display: flex;
    gap: 8px;
    padding: 0;
    margin-top: 12px;
}

.gomp-popup-content .btns .btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 0;
    padding: 7px 10px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
    background-color: var(--color-surface);
    color: var(--color-primary);
    box-shadow: none;
    transition: background-color .2s, border-color .2s, color .2s;
}

.gomp-popup-content .btns .btn:hover {
    background-color: var(--color-primary-soft);
}

.gomp-popup-content .btns .btn:focus {
    box-shadow: 0 0 0 3px var(--color-primary-soft);
}

.gomp-popup-content .btns .btn .fas {
    width: auto;
    margin-right: 0;
    font-size: 13px;
}

#gomp-popup-end-button {
    background-color: var(--color-primary-fill);
    border-color: var(--color-primary-fill);
    color: #fff;
}

#gomp-popup-end-button:hover {
    background-color: var(--color-primary-fill-hover);
    border-color: var(--color-primary-fill-hover);
}

#gomp-popup-share-button {
    flex: 0 0 auto;
}

#popup-input-container {
    display: none;
    padding-bottom: 10px;
}

#popup-input-container input {
    display: block;
    margin: 10px 10px 0 10px;
    width: calc(100% - 20px);
}

/* 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;
    border-radius: var(--radius-md);
}

#map-tools-toggle {
    width: 48px;
    height: 48px;
    background: var(--color-surface);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    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: var(--color-surface-hover);
}

#map-tools-toggle i {
    font-size: 18px;
    color: var(--color-primary);
    transition: transform 0.3s ease;
}

#map-tools-panel {
    position: absolute;
    bottom: 60px;
    right: 0;
    width: 280px;
    max-height: 70vh;
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    overflow-x: hidden;
    pointer-events: none;
}

#map-tools-panel.expanded {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.tool-section {
    padding: 16px;
}

.tool-section:not(.switch-item) {
    border-bottom: 1px solid var(--color-border);
}

.tool-section.switch-item {
    border-bottom: none;
    padding: 0px 16px;
}

.tool-section:nth-child(2) {
    padding: 8px 16px 0px 16px;
}

.tool-section:last-child {
    padding-bottom: 6px;
}

.tool-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 500;
    font-size: 14px;
    color: var(--color-text);
    margin-top: 14px;
    margin-bottom: 14px;
}

.map-style-options {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}

.style-option {
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.style-option:hover {
    transform: translateY(-2px);
}

.style-preview {
    width: 100%;
    aspect-ratio: 1 / 1;
    margin: 0 auto;
    border-radius: var(--radius-md);
    margin-bottom: 6px;
    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.soft {
    background-image: url('images/map_soft.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-preview.dark {
    background-image: url('images/map_dark.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.style-option.active .style-preview {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--color-primary-soft);
}

.style-option span {
    font-size: 12px;
    color: var(--color-text-secondary);
    font-weight: 500;
}

.style-option.active span {
    color: var(--color-primary);
    font-weight: 600;
}

.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: 40px;
    height: 24px;
    background: #c9d0db;
    border-radius: var(--radius-sm);
    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: 2px;
    transition: transform 0.3s ease;
    box-shadow: 1px 1px 0 rgba(0, 41, 90, .25);
}

#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: var(--color-primary);
}

#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(16px);
}

.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: var(--color-surface);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    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;
    border-radius: 3px;
}

.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: var(--color-text-secondary);
    white-space: nowrap;
    font-weight: 500;
    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: var(--color-text-muted);
    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: 380px;
    left: 12px;
    top: 12px;
    z-index: 20;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input-wrapper .new-search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
}

.search-input-wrapper .new-search-icon path {
    fill: var(--color-primary);
}

.search-input {
    width: 100%;
    height: 46px;
    padding: 0 44px 0 46px;
    background: var(--color-surface);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    border: 1px solid transparent;
    color: var(--color-text);
    font-weight: 400;
    font-size: 15px;
    transition: box-shadow .2s ease, border-color .2s ease;
    outline: none;
}

.search-input::placeholder {
    color: var(--color-text-muted);
}

.search-input:focus {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-md);
}

.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: var(--color-text-muted);
    cursor: pointer;
    transition: color 0.3s ease;
    padding: 4px;
}

.search-clear-btn:hover {
    color: var(--color-text);
}

.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: 6px;
    padding: 6px;
    width: 100%;
    background: var(--color-surface);
    box-shadow: var(--shadow-md);
    border-radius: var(--radius-lg);
    border: none;
    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: 9px 12px;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: background-color 0.2s ease;
}

.search-textsearch-list li:hover {
    background-color: var(--color-surface-hover);
}

.search-textsearch-list li.selected {
    background-color: var(--color-primary-soft);
}

.search-textsearch-list li>div:first-child {
    font-weight: 500;
    font-size: 14px;
    color: var(--color-text);
    margin-bottom: 2px;
}

.search-textsearch-list li>div:last-child {
    font-size: 12px;
    color: var(--color-text-secondary);
}

@media (max-width: 576px) {
    #search-container {
        width: calc(100vw - 4.5rem);
        left: 10px;
        top: 10px;
    }

    .search-input {
        height: 42px;
        font-size: 15px;
    }
}

@media (max-width: 576px) {
    #map-tools-panel {
        width: 240px;
    }

    #map-tools-toggle {
        width: 45px;
        height: 45px;
    }

    .tool-section {
        padding: 16px;
    }

    .map-style-options {
        gap: 6px;
    }

    .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;
    padding-bottom: 8px;
    padding-right: 28px;
}

.poup-type {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
    padding: 5px 10px;
    border-radius: var(--radius-sm);
    margin-bottom: 0;
}

.poup-type.bac-green {
    color: var(--color-success);
    background-color: rgba(22, 163, 74, .12);
}

.poup-type.bac-blue {
    color: var(--color-primary);
    background-color: var(--color-primary-soft);
}

.poup-type.bac-orange {
    color: #d97706;
    background-color: rgba(217, 119, 6, .12);
}

.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,
.fas-blue .fas,
.fas-green .fas {
    color: var(--color-text-muted);
}

.poup-content {
    display: flex;
}

.poup-content-txt {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 6px;
    color: var(--color-text);
}

.popup-title-content {
    padding: 0;
}

.popup-address-content {
    display: flex;
    padding: 0;
}

.popup-address-content .address,
.popup-description-content .description {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.5;
    margin-bottom: 0;
    padding-bottom: 4px;
    color: var(--color-text-secondary);
}

.popup-address-content .address {
    flex-wrap: nowrap;
}

.popup-address-content .address .fas,
.popup-description-content .description .fas {
    flex: 0 0 auto;
    width: 14px;
    margin-right: 6px;
    font-size: 12px;
    text-align: center;
}

.popup-description-content {
    padding: 0;
}

.popup-description-content .description p {
    display: block;
    width: 100%;
    margin-bottom: 0;
    padding-bottom: 4px !important;
}

.popup-description-content .description br {
    display: none;
}

.grey-line {
    position: relative;
}

.grey-line::after {
    content: '';
    display: block;
    width: 100%;
    height: 1px;
    background-color: var(--color-border);
    position: absolute;
    left: 0;
    bottom: 8px;
}

.section-block.active #map {
    width: calc(100% - 400px);
    left: unset;
    right: 0;
}

.section-block.active .aside {
    left: 0;
}

.section-block.active .gomp-ctrl-top-left {
    display: none;
}

.aside {
    font-family: var(--font-family);
    position: relative;
    left: -100%;
    z-index: 5;
    width: 400px;
    height: 100vh;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: .25s;
}

.mobile .aside {
    overflow: unset
}

.aside .icon {
    cursor: pointer;
    padding: 8px;
}

.aside-content {
    background-color: var(--color-surface);
    color: var(--color-text);
    height: 100%;
    padding: 20px 24px;
    font-size: 15px;
    position: relative;
    display: flex;
    flex-direction: column;
}

.aside-content .cross {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    position: absolute;
    right: 16px;
    top: 20px;
    border-radius: 50%;
    color: var(--color-text-secondary);
    transition: background-color .2s, color .2s;
}

.aside-content .cross:hover {
    background-color: var(--color-surface-hover);
    color: var(--color-text);
}

.aside-head {
    position: relative;
    padding-right: 40px;
}

.aside-head .transportation-list {
    display: flex;
    list-style: none;
    padding: 4px;
    margin: 0 0 18px;
    background-color: var(--color-surface-2);
    border-radius: var(--radius-sm);
}

.aside-head .transportation-item {
    flex: 1;
}

.aside-head .transportation-item .icon {
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: var(--radius-sm);
    color: var(--color-text-secondary);
    padding: 8px 0;
    width: 100%;
    transition: background-color .2s, color .2s;
}

.transportation-item+.transportation-item {
    margin-left: 4px;
}

.aside-head .transportation-item .icon:hover {
    color: var(--color-text);
}

.aside-head .transportation-item.active .icon {
    background-color: var(--color-surface);
    color: var(--color-primary);
    box-shadow: var(--shadow-sm);
}

.startEnd-blcok {
    display: flex;
    align-items: center;
    gap: 8px;
}

.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: 0;
    overflow: hidden;
}

.suggestions-wrapper.route-mode {
    width: auto;
    min-width: 0;
    max-width: none;
    top: calc(100% + 4px);
    left: 26px;
    right: 0;
    overflow-y: auto;
    max-height: 420px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.mobile .startEnd-blcok .suggestions-wrapper {
    right: 0;
    left: 26px;
    width: auto;
}

.startEnd-blcok .suggestions-wrapper .suggestions-list {
    background-color: var(--color-surface);
    border-radius: var(--radius-md);
    border: none;
    left: 0;
    list-style: none;
    margin: 0;
    padding: 6px;
    font-size: 13px;
    overflow: hidden;
}

.startEnd-blcok .suggestions-wrapper .suggestions-item {
    cursor: pointer;
    padding: 8px 10px;
    border-radius: var(--radius-sm);
}

.startEnd-blcok .suggestions-wrapper .suggestions-item:hover {
    background-color: var(--color-surface-hover);
}

.startEnd-blcok .startEnd-wrap {
    flex: 1;
    min-width: 0;
    position: relative;
}

.startEnd-blcok .startEnd-wrap::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 22px;
    bottom: 22px;
    border-left: 2px dotted var(--color-text-muted);
}

.startEnd-blcok .startEnd-wrap .input-block {
    display: flex;
    align-items: center;
    position: relative;
    gap: 8px;
}

.startEnd-blcok .startEnd-wrap .input-block::before {
    content: '';
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    box-sizing: border-box;
    border-radius: 50%;
    position: relative;
    z-index: 1;
}

.startEnd-blcok .startEnd-wrap .start::before {
    border: 5px solid var(--color-primary);
    background: var(--color-surface);
}

.startEnd-blcok .startEnd-wrap .end::before {
    background: var(--color-danger);
    border: 5px solid rgba(229, 72, 77, .25);
    background-clip: padding-box;
}

.startEnd-blcok .startEnd-wrap .input-block .cross {
    display: none;
}

.startEnd-blcok .startEnd-wrap .input-block span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.startEnd-blcok .startEnd-wrap .input-block input {
    flex: 1;
    min-width: 0;
    height: 42px;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    padding: 0 12px;
    font-size: 15px;
    color: var(--color-text);
    background-color: var(--color-surface-2);
    transition: border-color .2s, background-color .2s;
}

.startEnd-blcok .startEnd-wrap .input-block input::placeholder {
    color: var(--color-text-muted);
}

.startEnd-blcok .startEnd-wrap .input-block input:focus,
.startEnd-blcok .startEnd-wrap .input-block input:focus-visible {
    outline: none;
    border-color: var(--color-primary);
    background-color: var(--color-surface);
}

.startEnd-blcok .startEnd-wrap .input-block+.input-block {
    padding-top: 10px;
}

.exchange-block .icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    transform: rotate(90deg);
    border-radius: 50%;
    color: var(--color-text-secondary);
    transition: background-color .2s, color .2s;
}

.exchange-block .icon:hover {
    background-color: var(--color-surface-hover);
    color: var(--color-text);
}

.route-block {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 0 18px;
}

.route-block .route-btn {
    flex: 1;
    height: 42px;
    padding: 0 12px;
    margin: 0;
    font-size: 15px;
    font-weight: 500;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
    background-color: var(--color-surface);
    color: var(--color-text-secondary);
    cursor: pointer;
    transition: background-color .2s, border-color .2s, color .2s;
}

.route-block .route-btn:focus {
    outline: unset;
}

.route-block .route-btn:focus-visible {
    box-shadow: 0 0 0 3px var(--color-primary-soft);
}

.route-block .route-btn:hover {
    background-color: var(--color-surface-hover);
    color: var(--color-text);
}

.route-block #routeBtn {
    flex: 2;
    background-color: var(--color-primary-fill);
    border-color: var(--color-primary-fill);
    color: #fff;
}

.route-block #routeBtn:hover {
    background-color: var(--color-primary-fill-hover);
    border-color: var(--color-primary-fill-hover);
}

.aside-footer {
    position: relative;
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.aside-footer .res {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

#loading {
    align-items: center;
    background: rgba(15, 23, 42, .35);
    color: #fff;
    display: flex;
    font-size: 40px;
    height: 100vh;
    justify-content: center;
    left: 0;
    pointer-events: none;
    transition: opacity .3s;
    opacity: 0;
    position: fixed;
    top: 0;
    width: 100vw;
    z-index: 10
}

#loading.active {
    opacity: 1;
    pointer-events: unset
}

#loading.active i {
    animation: loading .8s linear infinite;
}

@keyframes loading {
    from {
        transform: rotate(0deg)
    }

    to {
        transform: rotate(360deg)
    }
}

.res {
    border: none;
}

.res .txt {
    display: block;
    font-size: 15px;
    color: var(--color-text);
    margin-bottom: 0;
}

.route-wrap {
    order: 2;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    margin: 0 -24px;
    padding: 0 24px;
}

.route-wrap::-webkit-scrollbar {
    width: 6px;
}

.route-wrap::-webkit-scrollbar-thumb {
    background-color: var(--color-border);
    border-radius: 6px;
}

.route-wrap::-webkit-scrollbar-track {
    background-color: transparent;
}

.route-wrap::-webkit-scrollbar-button {
    display: none;
}

.route-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.route-list .route-item {
    padding: 12px 0;
    position: relative;
}

.route-list .route-item.grey-line::after {
    bottom: 0px;
}

.route-list .route-item .icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    margin-right: 12px;
    padding: 0;
    border-radius: 50%;
    color: var(--color-primary);
    background-color: var(--color-primary-soft);
    font-size: 13px;
}

.route-list .route-item .icon i {
    display: block;
}

.route-list .route-item .title {
    display: flex;
    align-items: flex-start;
    min-width: 0;
}

.route-list .route-item .step-detail {
    width: 100%;
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.route-list .route-item .step-detail .title .name .txt:first-child {
    font-weight: 500;
    font-size: 14px;
    line-height: 1.5;
}

.route-list .route-item .step-detail .title .name .txt:last-child {
    font-size: 13px;
    color: var(--color-text-secondary);
}

.route-list .route-item .step-detail .distance-time .txt {
    font-size: 13px;
    line-height: 1.5;
}

.route-list .route-item .step-detail .distance-time .txt-distance {
    color: var(--color-text);
    font-weight: 500;
}

.route-list .route-item .step-detail .distance-time .txt-time {
    padding-top: 0;
    color: var(--color-text-secondary);
}

.route-list .route-item .step-detail .distance-time {
    min-width: 70px;
    text-align: right;
}

.recommend {
    order: 3;
    padding: 16px 0 0;
    text-align: center;
}

.recommend .link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 42px;
    background-color: var(--color-surface);
    color: #099268;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 0 12px;
    font-size: 14px;
    font-weight: 500;
    transition: background-color .2s;
    cursor: pointer;
}

.recommend .link:hover {
    text-decoration: unset;
    color: #099268;
    background-color: rgba(9, 146, 104, .08);
}

.recommend.mobile {
    display: none;
    padding: 0;
    padding-bottom: 12px;
    position: absolute;
    bottom: 0;
    z-index: 10;
    left: 0;
    right: 0;
    margin: auto;
}

.recommend.mobile .link {
    width: auto;
    padding: 0 20px;
    box-shadow: var(--shadow-sm);
}

.aside-footer.mobile .recommend {
    padding: 0;
    padding-top: 8px;
    font-size: 14px;
}

.res .total {
    order: 1;
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 14px 16px;
    margin-bottom: 8px;
    position: relative;
    border: none;
    border-radius: var(--radius-md);
    background-color: var(--color-primary-soft);
}

.res .total .txt {
    color: var(--color-text-secondary);
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0;
}

.res .total .txt span {
    color: var(--color-text);
}

.res .total .txt-time span {
    font-size: 22px;
    font-weight: 700;
    color: var(--color-primary);
}

.res .total .txt-distance {
    order: 2;
}

.res .total .txt-time {
    order: 1;
}

.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% - 353px - env(safe-area-inset-bottom));
    }

    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: 16px 16px 14px;
        border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    }

    .aside {
        box-shadow: none;
    }

    .aside-content {
        box-shadow: var(--shadow-md);
    }

    .aside-head .transportation-list {
        margin-bottom: 14px;
    }

    .aside-content .cross {
        top: 16px;
        right: 12px;
    }

    .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: var(--color-surface);
        padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
        box-shadow: var(--shadow-md);
    }

    .aside-footer.mobile.active {
        display: block;
    }

    .aside-footer.mobile {
        padding-top: 6px;
        z-index: 15;
    }

    .aside-footer.mobile .sheet-header {
        cursor: pointer;
        touch-action: none;
        -webkit-tap-highlight-color: transparent;
    }

    .aside-footer.mobile .sheet-grabber {
        display: block;
        width: 36px;
        height: 4px;
        margin: 0 auto 8px;
        border-radius: 2px;
        background: var(--color-border);
    }

    .aside-footer.mobile .sheet-meta {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding-top: 8px;
    }

    .aside-footer.mobile .sheet-hint {
        display: flex;
        align-items: center;
        gap: 6px;
        font-size: 13px;
        color: var(--color-text-secondary);
        cursor: pointer;
    }

    .aside-footer.mobile .recommend.mobile {
        position: static;
        padding: 0;
        margin: 0;
    }

    .aside-footer.mobile .recommend.mobile .link {
        height: 34px;
        padding: 0 14px;
        font-size: 13px;
        box-shadow: none;
    }

    .aside-footer.mobile .sheet-hint .fas {
        font-size: 10px;
        transition: transform .25s;
    }

    .aside-footer.mobile.expanded .sheet-hint .fas {
        transform: rotate(180deg);
    }

    .aside-footer.mobile .sheet-body {
        height: auto;
        max-height: 0;
        overflow: hidden;
        transition: max-height .3s ease;
    }

    .aside-footer.mobile.expanded .sheet-body {
        max-height: calc(100vh - 235px - 150px);
        max-height: calc(100dvh - 235px - 150px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
    }

    .aside-footer.mobile .route-list {
        padding-top: 4px;
    }

    .aside-footer.mobile .route-list .route-item {
        margin: 0;
        padding: 8px 4px 14px;
    }

    .aside-footer.mobile .total {
        margin-bottom: 0;
        padding: 12px 16px;
    }

    .section-block.active #search-container {
        display: none;
    }


}

@media screen and (min-width: 576px) {
    .aside-footer.mobile {
        display: none;
    }
}

.mobile-info-card-inner {
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
    background: var(--color-surface);
    color: var(--color-text);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    box-sizing: border-box;
    padding: 16px;
}

.mobile-info-card-close {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: var(--color-text-secondary);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}

.mobile-info-card-close:hover {
    background: var(--color-surface-hover);
}

.gomp-popup-content:has(.event-popup-card) .gomp-popup-close-button,
.mobile-info-card:has(.event-popup-card) .mobile-info-card-close {
    color: #fff;
}

.gomp-popup-content:has(.event-popup-card) .gomp-popup-close-button:hover,
.mobile-info-card:has(.event-popup-card) .mobile-info-card-close:hover {
    background: rgba(255, 255, 255, .2);
}

.parking-popup {
    max-width: 320px;
    width: 100%;
    box-sizing: border-box;
    font-family: 'Noto Sans TC', sans-serif;
}

.parking-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 12px;
    padding-right: 28px;
    margin-bottom: 3px;
}

.parking-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--color-text);
    flex: 1;
    min-width: 0;
    overflow-wrap: break-word;
    margin-right: 12px;
}

.parking-status {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-primary);
    background-color: var(--color-primary-soft);
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    white-space: nowrap;
}

.parking-details {
    font-size: 13px;
    line-height: 1.4;
}

.detail-row {
    display: flex;
    margin-bottom: 8px;
}

.detail-row .label {
    font-weight: 500;
    color: var(--color-text-secondary);
    min-width: 40px;
    margin-right: 8px;
}

.detail-row .value {
    color: var(--color-text);
    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: var(--color-text-muted);
    text-align: right;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--color-border);
}

.gomp-popup-content {
    border-left: 4px solid var(--color-primary);
}

.gomp-popup .gomp-popup-close-button {
    border-radius: var(--radius-sm);
}

#gomp-popup-end-button,
.route-block #routeBtn,
.poup-type,
.parking-status,
.aside-head .transportation-item.active .icon {
    clip-path: var(--clip-slant);
    border-color: transparent !important;
    border-radius: 0;
}

#gomp-popup-end-button,
.route-block #routeBtn {
    padding-left: calc(10px + var(--slant));
    padding-right: calc(10px + var(--slant));
    font-weight: 700;
    letter-spacing: .04em;
}

.poup-type {
    padding: 5px calc(8px + var(--slant));
    font-weight: 700;
    letter-spacing: .06em;
}

.poup-type.bac-blue {
    color: #fff;
    background-color: var(--color-primary);
}

.poup-type.bac-green {
    color: #fff;
    background-color: #12804a;
}

body.theme-dark .poup-type.bac-blue {
    color: #0d1b30;
}

.parking-status {
    padding: 4px calc(8px + var(--slant));
}

.aside-head .transportation-item.active .icon {
    background-color: var(--color-primary);
    color: #fff;
    box-shadow: none;
}

body.theme-dark .aside-head .transportation-item.active .icon {
    color: #0d1b30;
}

.startEnd-blcok .startEnd-wrap .start::before {
    border: 5px solid var(--color-primary);
}

.startEnd-blcok .startEnd-wrap .end::before {
    width: 14px;
    height: 14px;
    margin: 0 2px;
    border: none;
    border-radius: 0;
    background: var(--color-accent);
    transform: skewX(-20deg);
}

.startEnd-blcok .startEnd-wrap::before {
    border-left-style: dashed;
}

.res .total {
    background-color: var(--color-primary);
    border-radius: 0;
    overflow: hidden;
    padding: 12px 56px 12px 16px;
}

.res .total::after {
    content: '';
    position: absolute;
    top: 0;
    right: 14px;
    width: 22px;
    height: 100%;
    background: var(--color-accent);
    transform: skewX(-22deg);
    box-shadow: 10px 0 0 rgba(241, 90, 36, .45);
}

.res .total .txt,
.res .total .txt span {
    color: rgba(255, 255, 255, .78);
}

.res .total .txt-time span {
    color: #fff;
    font-family: var(--font-numeric);
    font-size: 30px;
    font-weight: 700;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.res .total .txt-distance {
    font-family: var(--font-numeric);
    font-size: 18px;
    font-weight: 600;
    letter-spacing: .02em;
}

body.theme-dark .res .total {
    background-color: #13253f;
    box-shadow: inset 0 0 0 1px var(--color-border);
}

.route-list .route-item .icon {
    border-radius: var(--radius-sm);
}

.route-list .route-item .step-detail .distance-time .txt {
    font-family: var(--font-numeric);
    font-size: 15px;
    font-variant-numeric: tabular-nums;
}

.search-input:focus {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-md);
}

.style-option.active .style-preview {
    box-shadow: none;
}

.style-option.active .style-preview::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 0;
    width: 16px;
    height: 16px;
    background: var(--color-accent);
    clip-path: polygon(100% 0, 100% 100%, 0 100%);
}

.route-list .route-item {
    cursor: pointer;
    margin: 0 -8px;
    padding-left: 8px;
    padding-right: 8px;
    transition: background-color .15s;
}

.route-list .route-item .icon {
    cursor: inherit;
}

.route-list .route-item:hover {
    background-color: var(--color-surface-hover);
}

.route-list .route-item:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: -2px;
}

.route-list .route-item.active {
    background-color: var(--color-primary-soft);
    box-shadow: inset 3px 0 0 var(--color-accent);
}

.route-list .route-item.active .icon {
    background-color: var(--color-primary);
    color: #fff;
}

body.theme-dark .route-list .route-item.active .icon {
    color: #0d1b30;
}
