﻿body {
    font-family: 'Microsoft JhengHei', Tahoma, 微軟正黑體, 'Trebuchet MS', Arial, san-serif;
}

html, body, #mapdiv {
    height: 100%;
    width: 100vw;
}


#CurrentCoordinate {
    background-color: #fff;
    padding: 2px 10px;
    margin: 0;
    opacity: 0.8;
}

#legend {
    display: none;
}


#legend2 {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 180px;
    padding: 8px;
    background-color: #fff;
    margin-right: 5px;
    margin-bottom: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2), 0 -1px 0px rgba(0, 0, 0, 0.02);
    z-index: 401;
    border-radius: 5px;
}

    #legend2 ul {
        list-style: none;
        margin: 0;
        padding: 0;
    }

        #legend2 ul li {
            line-height: 30px;
            padding: 0 5px;
            font-size: 14px;
        }

            #legend2 ul li span {
                display: inline-block;
                width: 25px;
                height: 16px;
                margin-right: 3px;
                margin-bottom: -3px;
                border: 1px solid #333;
            }

#customprintbutton {
    position: absolute;
    right: 20px;
    top: 90px;
    z-index: 401;
}

    #customprintbutton #btnPrint {
        padding: 5px 9px;
        background-clip: padding-box;
        border: 2px solid rgba(0,0,0,0.2);
    }

#custombutton {
    position: absolute;
    right: 20px;
    top: 0;
    z-index: 401;
}

    #custombutton button {
        border: 1px solid rgba(0,0,0,0.2);
    }

    #custombutton #btnBaseMapxs {
        padding: 5px 9px;
        background-clip: padding-box;
        border: 2px solid rgba(0,0,0,0.2);
    }

    #custombutton #BaseMapMenuxs {
        display: none;
        height: 350px;
        overflow-y: scroll;
    }

    #custombutton #btnAbout {
        background-clip: padding-box;
        border: 2px solid rgba(0,0,0,0.2);
        padding: 4px 12px;
    }

    #custombutton #btnShowInfo {
        background-clip: padding-box;
        border: 2px solid rgba(0,0,0,0.2);
        padding: 5px 10px;
    }

    #custombutton #btnHoleDataxs {
        padding: 5px 6px;
        background-clip: padding-box;
        border: 2px solid rgba(0,0,0,0.2);
    }

        #custombutton #btnHoleDataxs > img {
            width: 20px;
        }

#drawcontrol {
    position: absolute;
    left: 10px;
    bottom: 235px;
    z-index: 401;
}

    #drawcontrol #btnDrawPolyline {
        width: 34px;
        height: 34px;
        background-image: url(image/spritesheet.png);
        background-image: linear-gradient(transparent, transparent), url(image/spritesheet.svg);
        background-repeat: no-repeat;
        background-size: 300px 30px;
        background-clip: padding-box;
        border: 2px solid rgba(0,0,0,0.2);
    }

    #drawcontrol #btnDrawPolygon {
        width: 34px;
        height: 34px;
        background-image: url(image/spritesheet.png);
        background-image: linear-gradient(transparent, transparent), url(image/spritesheet.svg);
        background-repeat: no-repeat;
        background-size: 300px 30px;
        background-clip: padding-box;
        border: 2px solid rgba(0,0,0,0.2);
        background-position: -29px 0px;
    }

#BaseMapxs, #btnBaseMapxs, #btnHoleDataxs {
    display: none;
}


#navbar {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 1001;
    padding: 10px;
}

    #navbar > #logogroup {
        display: inline-block;
    }

        #navbar > #logogroup > #logo {
            display: inline-block;
            font-size: 14px;
            font-weight: bold;
        }

        #navbar > #logogroup > #logo-txt {
            font-size: 14px;
            font-weight: bold;
            display: inline-block;
            margin-right: 5px;
            line-height: 1.4;
            vertical-align: middle;
        }

    #navbar > #RightTools {
        display: inline-block;
        position: relative;
    }

        #navbar > #RightTools > #SearchBarContent {
            display: inline-flex;
        }


/*#region 定位功能 */
#btnPositionMenu {
    height: 40px;
    width: 130px;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2), 0 -1px 0px rgba(0, 0, 0, 0.02);
    cursor: pointer;
    background-color: #0D8D76;
    color: #fff;
    border-radius: 2px 0 0 2px;
}

#SearchBar_Data {
    width: 270px;
    height: 40px;
}


#BtnPositionSearch {
    background-color: #0D8D76;
    color: #fff;
    border-radius: 0 2px 2px 0;
    border: 0;
    cursor: pointer;
    width: 40px;
    height: 40px;
}

#btnHoleData {
    border: 0;
    margin-left: 5px;
    padding: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2), 0 -1px 0px rgba(0, 0, 0, 0.02);
    cursor: pointer;
}

    #btnHoleData > img {
        width: 40px;
    }

#PositionMenu {
    font-size: 14px;
    display: none;
    position: absolute;
    z-index: 1;
    width: 130px;
    list-style: none;
    padding: 10px;
    background-color: #fff;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2), 0 -1px 0px rgba(0, 0, 0, 0.02);
    border-radius: 0px 0px 5px 5px;
}

    #PositionMenu > li {
        padding: 5px;
        cursor: pointer;
    }

        #PositionMenu > li.active {
            background-color: #0D8D76;
            color: #FFF;
        }

        #PositionMenu > li:hover {
            background-color: #D6E5E8;
            color: #000;
        }

#btnBaseMap {
    margin-left: 5px;
    height: 40px;
    width: 90px;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2), 0 -1px 0px rgba(0, 0, 0, 0.02);
    cursor: pointer;
    background-color: #0D8D76;
    color: #fff;
    border-radius: 2px 0 0 2px;
}
/*底圖切換按鈕*/
#BaseMapMenu {
    display: none;
    margin-left: 5px;
    position: absolute;
    z-index: 1;
    width: 270px;
    max-height: 400px;
    overflow-y: scroll;
    font-size: 14px;
    list-style: none;
    padding: 10px;
    background-color: #fff;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2), 0 -1px 0px rgba(0, 0, 0, 0.02);
    border-radius: 0px 0px 5px 5px;
}

    #BaseMapMenu > li {
        padding: 5px;
        cursor: pointer;
    }

        #BaseMapMenu > li.layer.active {
            background-color: #0D8D76;
            color: #FFF;
        }

        #BaseMapMenu > li.layer:hover {
            background-color: #D6E5E8;
            color: #000;
        }

/*相關資訊*/
#AboutList {
    display: none;
    position: absolute;
    z-index: 1;
    width: 150px;
    font-size: 14px;
    list-style: none;
    padding: 10px;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2), 0 -1px 0px rgba(0, 0, 0, 0.02);
    border-radius: 5px;
    right: 0;
    top: 50px;
}

    #AboutList > li {
        padding: 5px;
        cursor: pointer;
    }

        #AboutList > li > a {
            color: #000;
            text-decoration: none;
        }

        #AboutList > li:hover {
            background-color: #D6E5E8;
            color: #000;
        }
/*定位查詢結果*/
#SearchResultBox {
    display: none;
    position: absolute;
    top: 40px;
    left: 130px;
    width: 310px;
    max-height: 250px;
    overflow: auto;
    padding: 0px 0;
    background-color: #fff;
    border-right: 1px solid #ccc;
    border-left: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
}

    #SearchResultBox > .SearchResultRow {
        padding: 8px;
        border-bottom: 1px solid #F2F2F2;
        cursor: pointer;
    }

        #SearchResultBox > .SearchResultRow:hover {
            background-color: #f0f0f0;
        }

        #SearchResultBox > .SearchResultRow > .result-title {
            color: #000;
            font-size: 13px;
            line-height: 1.2;
        }

        #SearchResultBox > .SearchResultRow > .result-area {
            color: #ccc;
            font-size: 12px;
            line-height: 1.6;
        }



/*行政區定位*/




#AdminBox {
    display: none;
    position: absolute;
    top: 0;
    left: 130px;
    width: 450px;
    overflow: auto;
    background-color: #fff;
    padding: 12px 12px;
    border: 1px solid #ccc;
}

#AdminListBox ul {
    font-size: 0px;
}

#AdminListBox li {
    display: inline-block;
    border-radius: 3px;
    margin-top: 5px;
}

    #AdminListBox li > a {
        display: inline-block;
        padding: 8px 4px;
        color: #555;
        background-color: #fff;
        border: 1px solid #fff;
        text-decoration: none;
        font-size: 14px;
        border-radius: 4px;
    }

        #AdminListBox li > a:hover {
            background-color: #f0f0f0;
            color: #000;
        }

#AdminVillageListBox {
    margin-top: 10px;
    max-height: 300px;
    overflow-x: hidden;
    display: none;
}

    #AdminVillageListBox li {
        position: relative;
        display: block;
        padding: 5px;
        border-radius: 4px;
        display: inline-block;
        border: 1px solid #fff;
        border-radius: 3px;
        margin: 5px;
        font-size: 14px;
    }

        #AdminVillageListBox li:hover {
            background-color: #ddd;
        }

        #AdminVillageListBox li a:hover {
            text-decoration: none;
        }

#AdminVillageListBoxClear {
    display: none;
}

/*#region 地籍定位 */

#GisBox {
    display: none;
    position: absolute;
    top: 0;
    left: 130px;
    width: 450px;
    overflow: auto;
    background-color: #fff;
    padding: 12px 12px;
    border: 1px solid #ccc;
}
/*#endregion */

/*#endregion */

/*#endregion */


/*#region rewrite leaflet*/
.leaflet-container {
    font-family: 'Microsoft JhengHei', Tahoma, 微軟正黑體, 'Trebuchet MS', Arial, san-serif;
}

.leaflet-popup-content {
    padding: 10px;
    margin: 0;
}
/*#endregion */



@media print {
    * {
        -webkit-print-color-adjust: exact !important;
    }
}

@page {
    size: landscape;
}

/*平板*/
@media screen and (max-width: 768px) {


    #BaseMapMenu {
        right: 0;
    }

    #SearchResultBox, #AdminBox, #GisBox {
        left: 0;
        width: 320px;
    }

    #btnBaseMapArea, #btnHoleData {
        display: none;
    }

    #SearchBar_Data {
        width: 150px;
    }

    #custombutton {
        bottom: 20px;
        right: 10px;
        top: auto;
    }

    #BaseMapxs, #btnBaseMapxs, #btnHoleDataxs {
        display: block;
    }

    #BaseMapMenuxs {
        display: block;
        position: absolute;
        right: 40px;
        width: 270px;
        background-color: #fff;
        text-align: center;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2), 0 -1px 0px rgba(0, 0, 0, 0.02);
        padding: 7px;
        bottom: -80px;
        list-style: none;
        font-size: 14px;
        background-clip: padding-box;
        border: 2px solid rgba(0,0,0,0.2);
    }

        #BaseMapMenuxs > li {
            padding: 5px;
            cursor: pointer;
        }

            #BaseMapMenuxs > li.layer.active {
                background-color: #0D8D76;
                color: #FFF;
            }

            #BaseMapMenuxs > li.layer:hover {
                background-color: #D6E5E8;
                color: #000;
            }

    #legend2 {
        display: none;
    }

    #AboutList {
        right: 40px;
        top: 50px;
    }

    #modalassess img {
        width: 70px;
    }
}

@media screen and (max-width: 812px) {
    #navbar > #logogroup {
        display: none;
    }
}
/*手機*/
@media screen and (max-width: 480px) {
    #navbar {
        padding: 5px;
    }

        #navbar > #logogroup {
            display: none;
        }

    #customprintbutton {
        display: block;
        bottom: 220px;
        right: 10px;
        top: auto;
    }

    #custombutton {
        display: block;
        bottom: 80px;
        right: 10px;
        top: auto;
    }

    #legend {
        display: block;
        margin: 0;
        width: 100%;
        padding: 5px 0px;
        position: absolute;
        right: 0;
        bottom: 0;
        background-color: #fff;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2), 0 -1px 0px rgba(0, 0, 0, 0.02);
        z-index: 400;
    }

        #legend #legendBottom {
            display: inline-block;
            width: 30vw;
        }

        #legend #legendContent {
            width: 67%;
            display: inline-block;
        }

        #legend > #legendContent > ul {
            list-style: none;
            padding: 0;
            margin-bottom: -5px;
        }

        #legend #legendContent li {
            padding: 0;
            line-height: 30px;
            display: inline-block;
            font-size: 12px;
        }

            #legend #legendContent li > span {
                display: inline-block;
                width: 16px;
                height: 16px;
                margin-right: 3px;
                margin-bottom: -3px;
                border: 1px solid #333;
            }

    #AboutList {
        right: 40px;
        top: 60px;
    }

    .leaflet-bottom.leaflet-left {
        margin-bottom: 70px;
    }

    #CurrentCoordinate {
        display: none;
    }

    .leaflet-control-scale {
        display: none;
    }

    .leaflet-popup-content {
        max-width: 300px;
    }
}
