/*圖層設定*/
.layerBox {
    display: block;
    z-index: 999;
    position: absolute;
    right: -310px;
    top: 10px;
    width: 300px;
    height: 90%;
    transition: all 0.3s;
}

.layerBox.open {
    right: 1%;
}
.hidelayerBox {
    position: absolute;
    right: 10px;
    top: 10px;
    width: 20px;
    height: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--ph-green);
}

.layerBoxScrollbar {
    width: 100%;
    overflow: hidden;
}

.layerAbgne {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    border-radius: var(--bs-border-radius-lg) !important;    
    box-shadow: 1px 1px 10px rgba(0,0,0,0.3);
    background: #fafafa;
}
    .layerAbgne ul, .layerAbgne > li {
        list-style: none;
        margin: 0;
        padding: 0;
    }
    .layerAbgne .tabs{
        display: flex;        
    }
    .layerAbgne .tabs li {  
        flex: 1;      
        padding: 10px 10px;
        border-bottom: 4px solid #fafafa;
        cursor: pointer;
    }
        .layerAbgne .tabs li.active {
            border-bottom: 4px solid var(--ph-green);
        }
        .layerAbgne .tabs li.hover {
        }

    .layerAbgne .tabs span {
        display: block;
        text-align: center;
        overflow: hidden;       
    }
    .layerAbgne .tab_container {
        padding: 10px;
        flex: 1;
        overflow: hidden;
    }
        .layerAbgne .tab_container > ul {
            position: relative;
            height: 100%;
            overflow: hidden;
        }
        .layerAbgne .tab_container .tab_content > li {
            position: absolute;
            width: 100%;
            height: 100%;
        }
@media (max-width: 767px) {
    .layerBoxBg {        
        z-index: -1;
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
    }
    .layerBoxBg.open{ 
        z-index: 3;
    }
    .layerBox {
        top: 200%;
        left: 50%;
        transform: translate(-50%,-50%);
        width: 90%;
        height: 85%;
        /* pointer-events: visible; */
    }

    .layerBox.open {
        right: auto;
        top: 50%;
        transition: all 0.3s;
    }
    .layerAbgne .tab_container ul {
        height: 100%;
    }
}


.flagArea.w50 {
    display: inline-block;
    width: 49%;
    margin-right: -1px;
    vertical-align: top;
}
.flagArea {
    background: #fff;
    margin-bottom: 10px;
    border: 1px solid #c6c6c6;
    /* border-radius: 4px; */
}
    .flagArea .title {
        display: flex;
        align-items: center;
        padding: 2px 10px;
        font-size: 1.8rem;
        border-bottom: 1px solid #c6c6c6;
    }
    .flagArea .title span{
        flex: 80%;
        line-height: 1.2;
        padding: 6px 0;
    }
.flagBox {
    display: flex;
    padding: 2px 2px;
}
.flag {}
    .flag span {
        display: block;
        line-height: 20px;
        text-align: center;
        color: #3a3a3a;
    }
        .flag span img {
            width: 100%;
            height: auto;
        }
        .flagBox img {
            width: 100%;
        }

/* checkbox滑動切換鈕==============================Start */
.move_switch_div {
    position: relative;
    display: inline-block;
    width: 80px;
    height: 24px;
}
.move_switch input, .offline_switch_id {
    display: none;
}

/* The slider */
.move_slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    -webkit-transition: .4s;
    transition: .4s;
    /* border-radius: 18px; */
}

/* 離線連線用 */
.offline_slider {
    background-color: #ccc;
}
    .offline_slider:before {
        position: absolute;
        content: "";
        height: 16px;
        width: 16px;
        /* border-radius: 13px; */
        left: 4px;
        bottom: 4px;
        background-color: white;
        -webkit-transition: .4s;
        transition: .4s;
    }
    .offline_slider:after {
        content: "關閉";
        line-height: 25px;
        text-align: right;
        display: block;
        font-size: 0.8em;
        padding-right: 20px;
    }

input:checked + .offline_slider {
    background-color: #39b54a;
}
input:focus + .offline_slider {
    box-shadow: 0 0 1px #39b54a;
}
input:checked + .offline_slider:before {
    -webkit-transform: translateX(48px);
    -ms-transform: translateX(48px);
    transform: translateX(48px);
}
input:checked + .offline_slider:after {
    text-align: left;
    padding-left: 20px;
    content: "開啟";
    color: #fff;
}

/* 顯示切換用 */
.pictchange_slider {
    background-color: #8dd2fe;
}
    .pictchange_slider:before {
        position: absolute;
        content: "";
        height: 26px;
        width: 26px;
        /* border-radius: 13px; */
        left: 4px;
        bottom: 4px;
        background-color: white;
        -webkit-transition: .4s;
        transition: .4s;
    }
    .pictchange_slider:after {
        content: "";
        line-height: 35px;
        text-align: right;
        display: block;
        font-size: 0.8em;
        padding-right: 20px;
    }

input:checked + .pictchange_slider {
    background-color: #39b54a;
}
input:focus + .pictchange_slider {
    box-shadow: 0 0 1px #39b54a;
}
input:checked + .pictchange_slider:before {
    -webkit-transform: translateX(56px);
    -ms-transform: translateX(56px);
    transform: translateX(56px);
}
input:checked + .pictchange_slider:after {
    text-align: left;
    padding-left: 20px;
    content: "照片";
}

/*  checkbox滑動切換鈕==============================End */

/* 圖層底圖套疊 */
.layerBg {
    cursor: pointer;
    position: relative;
    float: left;
    width: 48%;
    box-sizing: border-box;
    margin: 1% 1%;
    height: 120px;
    margin-bottom: 40px;
}
    .layerBg.active {
        background: rgba(var(--ph-green-rgb), 0.2)
    }
    .layerBg span {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%,-50%);
        border: 1px solid #707070;
        display: block;
        width: 106px;
        height: 106px;
        overflow: hidden;
    }
    .layerBg img {
        height: 100%;
        width: auto;
    }
    .layerBg .title {
        text-align: center;
        line-height: 20px;
        padding: 124px 10px 0 10px;
    }

    .closeGroup{
        position: absolute;
        right: 0;
        top: 0;
    }

/*圖層開關按鈕*/
.maplayerSetting {
    z-index: 2;
    position: absolute;
    bottom: 25px;
    right: 10px;
    width: auto;
    height: 50px;
}
.menuSettingBox{
	display: flex;
	text-align: center;
}
.menuSettingBox > li{
	display: block ;
	padding: 2px 2px;
}

    .menuBoxBtn{
        display: inline-block;
        width: 50px;
        height: 50px;
        text-align: center;
        border-radius: 50%;
        overflow: hidden;
    }

    .layerSettingBtn{
        background: rgba(var(--ph-green-rgb), 0.5) url(../Images/map/icon_layer.png)no-repeat;
        background-position: center center;
        background-size: 40%;
    }
    .gpsSettingBtn {
        background: rgba(var(--ph-green-rgb), 0.5) url(../Images/map/icon_navigate.png)no-repeat;
        background-position: center center;
        background-size: 40%;
    }

    .layerSettingBtn.active,
    .layerSettingBtn:hover{
        background:rgba(var(--ph-green-rgb), 1) url(../Images/map/icon_layer.png)no-repeat;
        background-position: center center;
        background-size: 40%;
    }
    .gpsSettingBtn.active,
    .gpsSettingBtn:hover{
        background:rgba(var(--ph-green-rgb), 1) url(../Images/map/icon_navigate.png)no-repeat;
        background-position: center center;
        background-size: 40%;
    }

    .showContentBtn{
        position: absolute;
        left: -130px;
        top: 100px;
        width: 130px;
        padding: 0 5px;
        background: rgba(0,0,0,0.6) url(../Images/map/icon_show.png)no-repeat;
        background-position: 97% center;
        color: #fff;
        transition: all 0.4s ease-in-out;
    }
    
    @media (max-width: 767px){
        .showContentBtn{
            left: -130px;
        }
        .layerSettingBtn:hover{
            background:rgba(0,47,73,0) url(../images/map/icon_layer.png)no-repeat;
            background-position: center center;
            background-size: 40%;
        }
    }
    .showContentBtn:hover,
    .showiframeBoxBtn:hover{
        color: #fff;
        background: rgb(180, 122, 122);
    }
    

/*圖層內的開關樣式*/
.layerTitle {
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding: 6px 10px;
    margin-bottom: 6px;
    font-size: 1.000rem;
    color: #000;
}
.layerBtnGroup{
}
.btn-icon {
    width: 20px;
    height: 20px;
    line-height: 20px;
    margin-top: 5px;
    border: 0;
    /* border-radius: 9999px; */
    cursor: pointer;
    text-align: center;
    color: #fff;
    font-size: 0.750rem;
    background: #333333;
    text-decoration: none;
    vertical-align: middle;
}

    .btn-icon i {
        line-height: 1;
    }

    .layerItem .group_open {
        display: none;
    }
    
    .layerItem .group_close {
        display: block;
    }
    
    .layerItem.active .group_close {
        display: block;
    }
    
    .layerItem.active .group_open {
        display: none;
    }
    
    .layerItem .checkboxGroup,
    .layerItem .labelradioGroup {
        display: none;
    }
    
    .layerItem.active .checkboxGroup {
        display: block;
    }
    

.checkboxGroup .labelBox a {
    line-height: 1;
    width: 20px;
    height: 20px;
    vertical-align: top;
    padding: 0 7.5px;
    margin: 4px 0 0 0;
    border: 0;
    font-size: 1rem;
    /* border-radius: 0.25em; */
}

.checkboxGroup .labelBox input[type=checkbox] {
   
    width: 20px;
    height: 20px;
    
}
.checkboxGroup .labelBox img {
    margin-top: -4px;
}
/*圖層 填色套件*/
.spectrumGroup{
    display: none;
    position: relative;
    border: 1px solid #c9c9c9;
    padding: 6px;
    margin: 10px 0;
    border-radius: 6px;
}
.btn-close-spectrum {
    position: absolute;
    top: 2px;
    right: 3px;
    color: #2a3043;
}
.spectrumGroup .name {
    padding: 0 4px 0 0px;
    border-right: 0px solid #eee;
}
.btn-close-spectrum {
    position: absolute;
    top: 0px;
    right: 3px;
    color: #2a3043;
}

    .btn-close-spectrum:hover {
        color: #000;
    }


/*顏色選擇器*/
.sp-original-input-container .sp-add-on {
    width: 24px;
    border-radius: 0px;
    border: 0px inset rgba(118, 118, 118,0) !important;
}
.sp-original-input-container .sp-add-on input{
    border: 0 !important;
}
input.spectrum.with-add-on {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-left: 0;
    border: 0;
    height: 36px;
    padding: 0 10px;
    
}
.sp-original-input-container {
    position: relative;
    display: inline-flex;    
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    overflow: hidden;
}

.sp-colorize-container {
    background-image: none !important;
}