body{
    margin:0px;
    padding:0px;
}
a{
    color: inherit;
}

&::-webkit-scrollbar {
    width: 5px;
}
&::-webkit-scrollbar {
  background: #ddd;
}
&::-webkit-scrollbar-thumb {
background: #666;
}



pc{
    display: block;
}
m{
    display: none;
}

.hidden{
    display: none;
}



 /* placeholder */

::-webkit-input-placeholder { /* Chrome/Opera/Safari */
color: #d9d9d9;
}
::-moz-placeholder { /* Firefox 19+ */
color: #d9d9d9;
}
:-ms-input-placeholder { /* IE 10+ */
color: #d9d9d9;
}
:-moz-placeholder { /* Firefox 18- */
color: #d9d9d9;
}


/*  form  */
/* -----------------------------------*/

input,
textarea,
select {
    outline: 0;
    box-shadow: none !important;
    font-size: 14px;

    -webkit-user-select: text; /* Chrome, Opera, Safari */
    -moz-user-select: text; /* Firefox 2+ */
    -ms-user-select: text; /* IE 10+ */
    user-select: text; /* Standard syntax */

    vertical-align: top;

    resize: none;
}


body[login="true"]{
    .LoginWrap, .LoginWrapCancel{
        display: none;
    }
    .loginMenu_m{
        display: none;
    }
}
body[login="false"]{
    .loginUser{
        display: none;
    }
    .loginMenu_m{
        display: none;
    }
}

.iframecover{
    background-color: #FFF;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.2;
    z-index: 1000;
    cursor: pointer;
}


.locationeach{
    width: 65px;
    height: 30px;
    font-size: 14px;
    letter-spacing: 0;
    background-color: #c9a56e;
    text-align: center;
    color: #FFF;
    line-height: 30px;
    border-radius: 3px;
    border: 1px solid #FFF;
    box-shadow: 0px 0px 9px #0000005e;
    border-radius: 50px;


    &.active{
        background-color: #ffa22a;
    }


    &[social="true"]{
        background-color: #56ac59;
    }


    .number{
        position: absolute;
        background-color: #FFF;
        color: #8e682d;
        height: 20px;
        line-height: 20px;
        width: 20px;
        border-radius: 5px;
        margin-left: -15px;
        margin-top: -5px;
        box-shadow: 0px 0px 9px #0000005e;
        font-size: 12px;
        font-weight: bold;
        border: 1px solid #b58740;


        &[val="1"]{
            display: none;
        }
    }



}

/* iframe */
body[iframe="true"].pc{

    nav, .subwrap{
        display: none;
    }

    .InfoWrap{
        top: 30px;
        max-height: calc(100vh - 60px);

        .scrollwrap{
            max-height: calc(100vh - 345px);
        }
    }
    .ListWrap{
        top: 30px;
    }
}
body[iframe="true"].m{

    nav, .subwrap{
        display: none;
    }

    .InfoWrap{
        top: 30px;
        height: calc(100% - 60px);
        max-height: calc(100% - 60px);
    }

}






/* 房客地圖標誌 */

.tenanteach{
    width: 65px;
    height: 30px;
    font-size: 14px;
    letter-spacing: 0;
    background-color: #b9740a;
    text-align: center;
    color: #FFF;
    line-height: 30px;
    border-radius: 3px;
    border: 1px solid #FFF;
    box-shadow: 0px 0px 9px #0000005e;
    border-radius: 50px;


    &.active{
        background-color: #ffa22a;
    }

    &[gender="couples"]{
        background-color: #59bb73;
    }
    &[gender="male"]{
        background-color: #3aa6bc;
    }
    &[gender="female"]{
        background-color: #f67161;
    }


    .range{
        background-color: #ffffff59;
        width: 0px;
        height: 0px;
        z-index: -1;
        position: absolute;
        border-radius: 300px;
        border: 5px solid #FFF;
        top: -150px;
        left: -150px;
        margin-top: 7px;
        margin-left: 25px;

        border-width: 0px;

        -webkit-transition: opacity 0.3s; /* For Safari 3.1 to 6.0 */
        -moz-transition: opacity 0.3s;
        -o-transition: opacity 0.3s;
        transition: opacity 0.3s;

        display: none;
    }

}


.tenanteach.active .range{

    border-width: 5px;

    width: 300px;
    height: 300px;
    opacity: 1;
}


select {
    background-color: #FFF;
    outline: 0;
    box-shadow: none !important;
    border: 1px solid #FFF;
    padding: 5px;
    padding-left: 15px;
    padding-right: 15px;
    font-size: 14px;
    width: calc(100% - 34px);

    -webkit-transition: border 0.3s; /* For Safari 3.1 to 6.0 */
    -moz-transition: border 0.3s;
    -o-transition: border 0.3s;
    transition: border 0.3s;

    resize: none;
}


/* noteAlert  */
/* ...............................  */
.noteAlert{
    display: none;

    background-color: #0000009c;
    width: 300px;
    position: fixed;
    top: 50%;
    left: 50%;
    z-index: 999;
    margin-left: -150px;
    margin-top: -50px;
    border-radius: 10px;
    text-align: center;

    i{
                color: #FFF;
                font-size: 50px;
                margin-top: 17px;
    }

    .text {
        color: #FFF;
        text-align: center;
        margin: 15px;
        font-size: 18px;
        margin-top: 5px;
    }
}



/*  ListWrap */
/*  .......................... */
.ListWrap{
    background-color: #FFF;
    width: 300px;
    position: fixed;
    z-index: 1000;
    right: 30px;
    top: 140px;
    display: block;
    border-radius: 5px;
    box-shadow: 0px 0px 25px #00000024;
    z-index: 1001;




    &.hide{
        z-index: -1;
        opacity: 0;
    }


    .cancel{
        background-color: #FFF;
        width: 40px;
        height: 40px;
        position: absolute;
        right: 0px;
        top: 0px;
        cursor: pointer;
        background-image: url(/images/icon/cancel.svg);
        background-size: 50%;
        background-position: center;
        background-repeat: no-repeat;
    
    }

    
    
    .roadtext{
        font-size: 20px;
        text-align: center;
        color: #c29d64;
        padding-bottom: 10px;
        padding-top: 15px;
        border-bottom: 1px solid #e9e9e9;
    } 

    .list{
        max-height: calc(100vh - 400px);
        overflow-y: auto;


        li{
            
            border-bottom: 1px solid #ececec;
            font-size: 14px;
            cursor: pointer;
            padding-left: 15px;
            padding-right: 15px;
            padding-top: 10px;
            padding-bottom: 10px;


            &.active{
                background-color: #F9F9F9;
            }


            &:hover{
                background-color: #fef8ed;
            }

            .name{
                overflow: hidden;
                white-space: nowrap;
                text-overflow: ellipsis;
                font-weight: bold;
                color: #555;
                font-size: 15px;
                margin-bottom: 3px;
            }
            .rent{
                color: #de7932;
                text-align: right;
                margin-top: 5px;
                font-weight: bold;
            }
            .intro{
                color: #909090;

                span{
                    padding-right: 8px;
                    border-right: 1px solid #dfdfdf;
                    margin-right: 8px;


                    &[val="社會住宅"]{
                        color: #56ac59;
                    }
                }
            }
        }
    }
}




/* LoginWrap 登入 */
/* ................................. */

.LoginWrap{
    background-color: #FFF;
    width: 400px;
    height: 650px;
    position: fixed;
    z-index: 1000;
    left: calc(50% - 200px);
    top: 140px;
    display: block;
    border-radius: 5px;
    box-shadow: 0px 0px 25px #00000024;
    z-index: 1005;

    .wrap{

        padding: 40px;


    }

    .each{
        margin-bottom: 15px;

        input {
            border-top: 0px;
            border-right: 0px;
            border-left: 0px;
            border-bottom: 1px solid #cfcfcf;
            background-color: transparent;
            padding-left: 0px;
            padding-right: 0px;
            width: 100%;
            margin-top: 10px;
            width: calc(100% - 20px);
    
            padding: 10px;


            &:focus{
                border-bottom: 1px solid #000;
            }
        }
    }

    .btn{
        text-align: center;
        color: #FFF;
        margin-top: 20px;
        margin-bottom: 20px;
        padding: 15px;
        cursor: pointer;
        -webkit-transition: all 0.3s;
        -moz-transition: all 0.3s;
        -o-transition: all 0.3s;
        transition: all 0.3s;
        background: #f3e2c7;
        background: -moz-linear-gradient(-45deg, #f3e2c7 0%, #c19e67 50%, #b68d4c 51%, #e9d4b3 100%);
        background: -webkit-linear-gradient(-45deg, #f3e2c7 0%, #c19e67 50%, #b68d4c 51%, #e9d4b3 100%);
        background: linear-gradient(135deg, #f3e2c7 0%, #c19e67 50%, #b68d4c 51%, #e9d4b3 100%);
        filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#f3e2c7', endColorstr='#e9d4b3', GradientType=1);
    }

    .status{
        text-align: center;
        font-size: 15px;
        color: #986f30;
    }

    

}

.LoginWrapCancel{
    background-color: #ffffffbd;
    width: 100%;
    height: 100%;
    position: fixed;
    z-index: 999;
}


/* InfoWrap */
/* ................................. */

.InfoWrap{
    background-color: #FFF;
    width: 400px;
    height: 650px;
    position: fixed;
    z-index: 1000;
    left: 30px;
    top: 140px;
    display: block;
    border-radius: 5px;
    box-shadow: 0px 0px 25px #00000024;
    z-index: 1006;
    max-height: calc(100vh - 165px);


    .topin{

        padding: 25px;
        padding-bottom: 0px;
        border-bottom: 1px solid #eaeaea;
    }

    .in{
        padding: 25px;



    }

    .scrollwrap{
        height: 380px;
        overflow-y: auto;
        padding: 25px;
        max-height: calc(100vh - 425px);

        .photo{
            background-color: #f9f9f9;
            min-height: 180px;
            margin-bottom: 20px;
            background-size: cover;
            background-position: center;
            border-radius: 5px;
        }
    }

    .cancel{
        background-color: #FFF;
        width: 40px;
        height: 40px;
        position: absolute;
        right: 0px;
        top: 0px;
        cursor: pointer;
        background-image: url(/images/icon/cancel.svg);
        background-size: 50%;
        background-position: center;
        background-repeat: no-repeat;
    
    }


    

    .intro{
        font-size: 15px;
        padding-left: 25px;
        padding-right: 25px;
        background-color: #f9f9f9;
        padding-top: 20px;
        padding-bottom: 25px;

        word-break: break-all;
        margin-top: 15px;

        
    }
    


    &.hide{
        z-index: -1;
        opacity: 0;
    }

    .btn{

        border: 1px solid #c5c5c5;
        text-align: center;
        position: absolute;
        bottom: 30px;
        width: calc(100% - 60px);
        height: 50px;
        line-height: 50px;
        box-shadow: 0px 0px 5px #00000024;
        border-radius: 5px;
        cursor: pointer;


        &:hover{
            background-color: #f9f9f9;
        }
        &:active{
            line-height: 55px;
        }
    }


    .dataeachs{
        display: inline-block;
    }

    .each{
        margin-bottom: 5px;
        font-size: 15px;


        &[thename="rent"]{
            text-align: center;
            font-size: 20px;
            margin-bottom: 9px;
            font-weight: bold;
            color: #8f6728;
            font-weight: bold;

            .value[thename="rentText"]{
                font-size: 20px;
            }
            .value[thename="rentUnit"]{
                font-size: 14px;
                
            }
            .value[thename="deposit"]{
                font-size: 14px;
                display: block;
                color: #d2ae77;
                font-weight: 400;
                margin-bottom: 15px;
                
            }
        }



        .label{
            display: inline-block;
            color: #8f6728;
        }

        .value{

            display: inline-block;

            &[thename="name"]{
                font-size: 21px;
                margin-right: 10px;
                overflow: hidden;
                white-space: nowrap;
                text-overflow: ellipsis;
                width: 100%;
            }

        }


    }
}

.InfoWrapHide{
    
    &.hide{
        display: none;
    }
}

li{
    list-style: none;
}


/* room */
body[url1="room"]{

    nav .btnsWrap li.part[type="new_room"]{
        display: inline-block;
    }
    nav .btnsWrap_m .in li.part[type="new_room"]{
        display: block;
    }

}

/* tenant */
body[url1="tenant"]{

    nav .btnsWrap li.part[type="new_tenant"]{
        display: inline-block;
    }
    nav .btnsWrap_m .in li.part[type="new_tenant"]{
        display: block;
    }
}




/* nav */
/* ......................................... */
nav{




    .loginUser{
        background-color: #FFF;
        width: 40px;
        height: 40px;
        border-radius: 100px;
        position: absolute;
        right: 15px;
        top: 9px;
        background-size: cover;
        background-position: center;
        cursor: pointer;
        z-index: 1008;
    }



    .loginMenu{
        background-color: #FFF;
        width: 200px;
        position: absolute;
        box-shadow: 0px 0px 25px #0000004a;
        right: 0px;
        top: 69px;
        border-radius: 3px;
        z-index: 1008;


        &:before{
            content: '';
            width: 0;
            height: 0;
            border-left: 7px solid transparent;
            border-right: 7px solid transparent;
            border-bottom: 14px solid white;
            transform: scaleX(2);
            display: block;
            margin-top: -14px;
            position: absolute;
            right: 28px;
            
            
        }


        li{
            display: block;
            cursor: pointer;
            color: #000;
            text-align: center;
            font-size: 14px;
            padding: 13px;

            &:hover{
                background-color: #ececec;
            }
        }
    }
    .loginMenuCancel{
        background-color: #FFF;
        position: fixed;
        z-index: 1000;
        left: 0px;
        top: 0px;
        width: 100%;
        height: 100%;
        z-index: 1007;
        opacity: 0;
    }

    /* pc */

    .btnsWrap {
        position: absolute;
        right: 230px;
        color: #2a2a2a;
        font-size: 15px;

        li {
            color: #FFF;
            font-size: 14px;
            display: inline-block;
            padding-left: 12px;
            padding-right: 12px;
            cursor: pointer;
            height: 60px;
            line-height: 60px;
            font-weight: 400;
            letter-spacing: 1.5px;

            &.part{
                display: none;
            }

        }

       
    }


    /* m */
    .btnsWrap_m {
        background-color: #c5aa7f;
        width: 80%;
        position: fixed;
        height: 100%;
        right: -100%;
        opacity: 0;
        -webkit-transition: all 0.3s;
        -moz-transition: all 0.3s;
        -o-transition: all 0.3s;
        transition: all 0.3s;
        z-index: 1010;


        &.active{
            right: 0%;
            opacity: 1;
        }

        .menuBtnClose {
            position: absolute;
            right: 0px;
            top: 0px;
            padding: 20px;
            cursor: pointer;
            z-index: 1;
        }

        .menuBtnClose svg {
            width: 20px;
            fill: #FFF;
        }

        .in {
            padding: 30px;
            padding-top: 70px;

            li {
                line-height: 50px;
                cursor: pointer;
                font-weight: 400;
                color: #FFF;

                &.part{
                    display: none;
                }

                
            }
        }

        horizon {
            background-color: #FFF;
            height: 1px;
            display: block;
            margin-top: 10px;
            margin-bottom: 10px;
            opacity: 0.3;
        }
    }


    .centerwrap{
        max-width: 1240px;
        margin: auto;
        display: block;
        height: 100%;
        position: relative;
    }



    /* m */
    .menuBtn{
        width: 64px;
        height: 64px;
        position: absolute;
        right: 0px;
        cursor: pointer;

        user-select:none;
		-webkit-user-select:none; 

        li{
            position: absolute;
            height: 2px;
            width: 18px;
            background-color: #FFF;

            &:nth-child(1){
                top: 24px;
                left: 29px;
                width: 12px;
            }
            &:nth-child(2){
                top: 30px;
                left: 23px;
            }
            &:nth-child(3){
                top: 36px;
                left: 23px;
                width: 12px;
            }
        }
    }


    /*  wrap */
    /*  ........................ */
    .wrap{

        position: fixed;
        height: 60px;
        width: 100%;
        z-index: 1006;
        left: 0px;
        top:0px;
        background-color: #e2b97a;
        color: #FFF;

        .logo{
            position: absolute;
            height: 35px;
            left: 40px;
            top: 11px;
        }

        .userChange{
            background-color: #FFF;
            height: 35px;
            width: 150px;
            position: absolute;
            right: 65px;
            top: 10px;
            border-radius: 50px;
            color: #FFF;
            font-size: 15px;
            font-weight: 500;
            text-align: center;
            line-height: 36px;
            overflow: hidden;
            border: 2px solid #FFF;

            li{
                display: inline-block;
                width: 50%;
                margin-left: 0;
                margin-right: 0;
                cursor: pointer;
                position: absolute;
                z-index: 8;
                left: 0px;
                cursor: pointer;


                &[type="tenant"]{
                    left: 0px;
                }
                &[type="room"]{
                    left: 50%;
                }
            }
            .unselected{
                width: 75px;
                height: 40px;
                background-color: #ded0bb;
                position: absolute;
                z-index: 0;
                left: 0px;
            }
        }
    }

    

}


body[url1="tenant"] nav .wrap .userChange{ 
    li[type="tenant"]{
        color: #956a28
    }
    .unselected{
        left: 50%;
    }
}
body[url1="room"] nav .wrap .userChange{ 
    li[type="room"]{
        color: #956a28
    }
    .unselected{
        left: 0%;
    }
}


.map{
    position: fixed;
    height:100%;
    width:100%;
    background-color: #f9f9f9;
    top: 0;
    left: 0;
}



.map{

    height: 100%;
    width: 100%;
    background-color: rgb(249, 249, 249);
    position: relative;
    display: block;
    position: absolute;
}

/*  leaflet */
/*  ............................. */

.leaflet-div-icon{
    background:transparent;
    border: none;
}
.leaflet-left {
    left: 12px;
    top: auto;
    bottom: 20px;
}

  /*  rwd  */
/* -----------------------------------*/




@media screen and (max-width: 1024px) {

    pc{
        display: none;
    }
    m{
        display: block;
    }


    .InfoWrap  .scrollwrap .photo {
        min-height: 165px;
    }


    .InfoWrapHide{
        position: fixed;
        z-index: 1005;
        width: 100%;
        height: 100%;
        background-color: #000;
        opacity: 0.2;
    }


    /*  .InfoWrap{ */
    /*      width: 100%; */
    /*      height: 300px; */
    /*      position: fixed; */
    /*      left: 0px; */
    /*      top: auto; */
    /*      bottom: 0px; */
    /*  } */


    /*  .InfoWrap{ */
    /*      height: auto; */
    /*      position: relative; */
    /*      left: 0px; */
    /*      margin-top: calc(100vh - 300px");*/
    /*      bottom: 0px; */
    
    /*  } */

    /*  .InfoWrap .intro{ */
    /*      height: auto; */
    /*      margin-bottom: 55px; */
    /*  } */


    .InfoWrap{
        width: calc(100% - 60px);
        height: calc(100% - 125px);
        max-height: calc(100% - 125px);
        top: 90px;

        -webkit-transition: all 0.3s;
        -moz-transition: all 0.3s;
        -o-transition: all 0.3s;
        transition: all 0.3s;


    }
    .InfoWrap .each .value[thename="name"]{
        font-size: 18px;
    }
    .InfoWrap .each {
        font-size: 14px;
    }
    .InfoWrap .in{
        padding-bottom: 10px;
    }
    .InfoWrap .intro{
        font-size: 14px;
        padding-top: 15px;
        padding-bottom: 15px;
    }
    .InfoWrap .btn{
        height: 45px;
        bottom: 45px;
        line-height: 45px;
        font-size: 15px;
        bottom: 20px;
    }

    .InfoWrap.hide{
        z-index: 1005;
        opacity: 1;
        left: 100vw;
    }

    /* list */
    .ListWrap{
        bottom: 0px;
        top: auto;
        min-height: 0px;
        height: 250px;
        left: 0px;
        width: 100%;

        -webkit-transition: all 0.3s;
        -moz-transition: all 0.3s;
        -o-transition: all 0.3s;
        transition: all 0.3s;
    }
    .ListWrap.hide{
        z-index: 1005;
        opacity: 1;
        bottom: -250px;
    }


    .ListWrap .list{
        height: 190px;
        overflow-y: auto;
    }
    .InfoWrap .scrollwrap{
        height: calc(100% - 255px);
        max-height: calc(100% - 255px);
    }


    /*  nav */
    nav .wrap .logo{
        left: 14px;
        height: 30px;
        top: 14px;
    }
    nav .wrap .userChange {
        right: 60px;
        top: 10px;
        width: 120px;
        font-size: 13px;
    }


    nav .wrap .userChange .unselected{
        width: 60px;
    }



    /*   */
    .LoginWrap{
        width: 86%;
        left: 7%;
        height: calc(100vh - 250px);
    }
}