:root {
    --bg-black: rgba(0, 0, 0, 0.9);
    --bg-border: 0.05em solid rgba(85, 85, 85, 0.75);
    --high-light: #0ec94f;
    --text-light: #d3d3d3;
    --radius: 0.25em;
    --black: #343434;
    --green: #43b529;
    --orange: #f39800;
    --red: #a50b0b;
    --gray: #a2a2a2;
    --header-top: 4.375em;
    --timebar-main-color: #13151A;
}

/* 地圖控制 <map-ctrl> */
#map_ctrl {
    position: absolute;
    display: flex;
    flex-direction: row-reverse;
    right: .5rem;
    z-index: 10;
    top: 0.5rem;
}

/* 地圖控制 - 選項 */
.map-tool_icon {
    width: 80%;
    height: 80%;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

.icon-map {
    background-image: url(../../../Image/map/basemap_icon.png);
}

.icon-boundary {
    background-image: url(../../../Image/map/earth_icon.png);
}

#map_ctrl .map-ctrl-tab {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-direction: column;
    width: fit-content;
    gap: 5px;
}

#map_ctrl .map-ctrl-tab>span {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 2em;
    height: 2em;
    margin: 0.1em;
    transition: 0.2s;
    cursor: pointer;
    border-radius: 3px;
    background-color: var(--white);
}

#map_ctrl .map-ctrl-tab .map-ctrl-icon-title {
    position: absolute;
    right: 3em;
    color: #fff;
    white-space: nowrap;
    font-size: 0.9em;
    transition: 0.2s;
    display: none;
    font-weight: 600;
    background: var(--text_color);
    padding: 3px 10px;
    border-radius: 6px;
}

#map_ctrl .map-ctrl-tab .map-ctrl-icon-title::before {
    font-family: '';
    content: '▶';
    position: absolute;
    right: -.55rem;
    font-size: 16px;
    top: .16rem;
    color: var(--text_color);
}

#map_ctrl .map-ctrl-tab .map-ctrl-icon-title.active {
    display: inline;
}

/* 地圖控制 - 選單*/
#map_ctrl input[type="radio"],
#map_ctrl input[type="checkbox"] {
    display: none;
}

#map_ctrl label {
    position: relative;
    display: block;
    padding: 0px 10px 0px 32px;
    margin-bottom: 0;
    line-height: 24px;
    background-color: rgba(255, 255, 255, 0.85);
    cursor: pointer;
    color: #333;
}

#map_ctrl label input:checked~span.checked_icon {
    background-color: var(--text_color);
    box-shadow: 0 0 0 2px #eee inset;
}

#map_ctrl label span.checked_icon {
    position: absolute;
    left: 10px;
    top: 4px;
    display: inline-block;
    vertical-align: middle;
    width: 16px;
    height: 16px;
    border: 2px solid var(--about_site_content_p);
    border-radius: 50%;
}

#map_ctrl .map-ctrl-menu {
    position: absolute;
    top: 0;
    right: 4em;
    width: max-content;
    padding: 12px;
    color: var(--about_site_content_p);
    background-color: var(--white);
    border-radius: var(--Corner-Small);
    overflow-y: auto;
}

#map_ctrl .selected_input {
    display: flex;
    flex-direction: column;
    gap: 10px;

}

#map_ctrl .map-ctrl-menu .text-end {
    margin-right: -0.75em;
}

/* 地圖控制 layer */
#map_ctrl .map-ctrl-layer-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5em 0;
}

/* 地圖控制 - 層級 */
#map_ctrl .map-ctrl-drag-part {
    cursor: grab;
}

#map_ctrl .map-ctrl-drag-part:hover i {
    color: #fff;
    transition: 0.2s;
}

/* 地圖控制 - 透明度 */
#map_ctrl .map-ctrl-opacity:hover select {
    color: #fff;
    transition: 0.2s;
}

#map_ctrl .map-ctrl-opacity select {
    padding: 0.25em 0;
    border: none;
    border-bottom: 0.1em solid var(--text-light);
    color: var(--text-light);
    background-color: transparent;
    cursor: pointer;
}

#map_ctrl .map-ctrl-opacity option {
    color: #555;
}

/* .map_tool_bar {
    position: absolute;
    bottom: 0;
    width: -webkit-fill-available;
    background: #000;
    z-index: 1;
    padding: 6px 16px;
} */

#kxd_map {
    position: relative;
}

/* 經緯度 */

.cursor-latlng-tool {
    display: none;
}

.latlng {
    position: absolute;
    z-index: 1;
    right: 0;
    bottom: 1rem;
    background-color: #000;
    display: flex;
    flex-direction: row-reverse;
    justify-content: center;
    align-items: center;
    width: 228px;
    color: var(--latlng-tool-color);
    font-weight: 600;
}

/* 經緯度 */

/* colorbar */
.kxd-map-container .map-ctrl .map-high-item[data-v-3c1e3793] {
    z-index: 1 !important
}

.colorbar {
    bottom: 2.5em !important;
}

/* colorbar */

/* 工具 */
.map-btn {
    position: relative;
}

.map-pane-tag.show[data-v-ace4ab76] {
    display: none !important;
}

/* 工具 */

/* 時間軸 */
.timebar {
    position: absolute !important;
    width: 60.5%;
    right: 228px;
    bottom: 1px;
    align-items: center;
    padding: .25rem;
}

.timebar-block-item>span::before {
    border: unset !important;
}

.timebar-block-item>span:after {
    border-top: 0.7em solid rgba(76, 86, 106, 0.60) !important;
    border-radius: var(--Corner-Extra-small, 4px);
}

.timebar-block-item>span {
    background: rgba(76, 86, 106, 0.60) !important;
    top: -2.8em !important;
    font-size: 12px;
    border-radius: unset !important;
    padding: .35rem 0.4em !important;
    color: #FFF !important;
    box-shadow: unset !important;
}

.timebar-block-item.active>span {
    border-radius: 4px !important;
    background-color: #F6AC1B !important;
    color: #000 !important;
    font-size: 13px;
    min-height: unset !important;
    z-index: 10 !important;
}

.timebar-block-item.active>span:after {
    border-top: 0.7em solid #F6AC1B !important;
    border-radius: var(--Corner-Extra-small, 4px);
    color: #FFF;
}

.timebar-block-item:hover {
    z-index: 11;
}

.timebar-progress {
    height: 1.7rem !important;
    margin-right: 0em !important;
}

.timebar-progress:before {
    box-shadow: unset !important;
}

.timebar-ctrl-btn {
    outline: none !important;
    width: 2em !important;
    height: 2em !important;
    margin-right: 0.1em !important;
    background-color: #fff !important;
    box-shadow: 0 0.125em 0.25em rgb(0 0 0 / 20%) !important;
    border: 0.1em solid #cccccc !important;
    border-radius: 0.25em !important;
}

.timebar-btn-play:before {
    color: #4C566A;
}

.map-item-style {
    background-color: unset !important;
    border: unset !important;
    border-radius: unset !important;
}

.timebar-select,
.timebar-date-item {
    display: none;
}

.map-shadow {
    box-shadow: unset !important;
}

.timebar-progress:before,
.timebar-progress .timebar-hover-value,
.timebar-progress .timebar-value {

    border-radius: unset !important;

}

.timebar-block .timebar-block-item:first-child span,
.timebar-block .timebar-block-item:last-child span {
    opacity: 1;
}

/* 時間軸 */

/* marker */
.icon-maker-item .icon-maker-text,
.icon-maker-circle-item .icon-maker-text {
    bottom: 1.2em !important;
    z-index: 2;
    font-size: 14px;
}

.icon-maker-item .fa {
    margin-top: 0.3em !important;
}

.icon-maker-item.icon-maker-medium {
    font-size: 1.3em;
}


/* marker */

@media (max-width:1400px) {
    .timebar {
        width: 55%;
        right: 232px;
    }
}

@media (max-width:992px) {

    /* 工具列 */
    #map_ctrl .map-ctrl-tab {
        width: -webkit-fill-available;
        flex-direction: row-reverse;
    }

    #map_ctrl {
        position: unset;
    }

    .map_tool_bar {
        position: absolute;
        bottom: 0;
        width: -webkit-fill-available;
        background: #000;
        z-index: 1;
        padding: 6px 6px;
        display: flex;
        justify-content: flex-start;
        gap: 3%;
    }

    .map-tool_icon {
        width: 100%;
        height: 100%;
        background-color: black;
    }

    .icon-map {
        background-image: url(../../../Image/map/earth_box_phone_icon.svg);
    }

    .icon-boundary {
        background-image: url(../../../Image/map/earth_phone_icon.svg);
    }

    #map_ctrl .map-ctrl-tab .map-ctrl-icon-title.active {
        display: none;
    }

    #map_ctrl .map-ctrl-tab>span {
        background-color: unset;
        width: 1.6em;
        height: 1.6em;
        margin: unset;
    }

    #map_ctrl .map-ctrl-menu {
        bottom: 3rem;
        left: .5em;
        top: unset;
        right: unset;
    }


    .eye_icon {
        width: 21px;
        height: 21px;
        background-image: url(../../../Image/map/eye_hide_icon.png);
        background-size: cover;
    }

    .eye_icon.active {
        background-image: url(../../../Image/map/eye_icon.png);
    }

    .color_bar_text {
        white-space: nowrap;
        color: var(--border_color);
        font-size: 14px;
    }

    .color_bar_text.active {
        color: var(--orange-30FEF8EB, #FEF8EB);
    }

    .color_bar_block {
        display: flex;
        align-items: center;
        padding: 4px;
        gap: 4px;
        border-radius: var(--Corner-Extra-small);
        border: 1px solid var(--text_color);
        background: #13151A;
    }

    .colorbar {
        font-size: 0.7em !important;
        bottom: 8.5em !important;
    }

    /* 工具列 */

    /* 標籤 */
    .leaflet-control-attribution {
        display: none;
    }

    /* 經緯度 */
    .latlng {
        width: fit-content;
        position: unset;
        font-size: .8rem;
        text-align: center;
    }

    /* 經緯度 */

    /* 時間軸 */
    .timebar {
        position: absolute !important;
        width: 90%;
        right: 27px;
        bottom: 40px;
        align-items: center;
        padding: .25rem;
    }

    .timebar.active {
        bottom: var(--chart_modal_height);
    }

    .timebar-ctrl {
        margin: unset !important;
        margin-right: .5rem !important;
    }

    .timebar-ctrl-btn {
        width: 1.5em !important;
        height: 1.5em !important;
    }

    .timebar-block-item>span {
        font-size: 10px;
        left: -35px;
    }

    .timebar-block-item.active>span {
        font-size: 10px;
    }

    .timebar-block-item>span:after {
        left: 4px !important;
    }

    .timebar-block-item:last-child span {
        left: -37px;
    }

    /* 時間軸 */

}