/*
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
*/
/* 
    Created on : 30-apr-2015, 16.08.42
    Author     : Michele
*/

.mappa__wrap{
    display: block;
    position: absolute;
    left: 25px;
    bottom: 65px;
    overflow: hidden;
    z-index: 30;
    transition: width 0.5s ease-in-out, height 0.5s ease-in-out;
    -webkit-transition: width 0.5s ease-in-out, height 0.5s ease-in-out;
    -moz-transition: width 0.5s ease-in-out, height 0.5s ease-in-out;
    -o-transition: width 0.5s ease-in-out, height 0.5s ease-in-out;
}
.mappa__wrap--small{
    width: 220px;
    height: 160px;
}
.mappa__wrap--big{
    width: 535px;
    height: 480px;
}
.mappa__fullscreen.mappa__wrap--big{
    width: 90%;
    height: 90%;
    left: 5%;
    bottom: 5%;
}
.mappa__map{
    display: block;
    position: absolute;
    background-image: url(../images/map/mappa.png); 
    padding: 0;
    margin: 0;
    width: 1305px;
    height: 922px;
    transition: transform 0.5s ease-in-out;
    -webkit-transition: transform 0.5s ease-in-out;
    -moz-transition: transform 0.5s ease-in-out;
    -o-transition: transform 0.5s ease-in-out;
    cursor: pointer;
}
.mappa__fullscreen.mappa__map{
    width: 1800px;
    height: 1271px;
    background-image: url(../images/map/mappa2.png);
    transform: translate(0px, 0px);
}
.mappa__map:active, .mappa__map--drag{
    transition: none;
}
.mappa__arrow{
    display: block;
    width: 0px;
    height: 0px;
    position: absolute;
    right: 10px;
    top: 5px;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-right: 10px solid white;
    transform: rotate(135deg);
    cursor: pointer;
}
.mappa__wrap--small .mappa__arrow{
    display: none;
}
.mappa__fullscreen .mappa__arrow{   
    width: 50px;
    height: 50px;
    top: 0px;
    right: 0px;
    border: none;
    transform: none;
    background-image: url(../images/map/close_map.png);
}
.mappa__utente{
    display: block;
    position:absolute;
    width: 61px;
    height: 61px;
    background-image: url(../images/map/utente.png);
    transition: top .3s linear 0.2s, left .3s linear 0.2s;
    -webkit-transition: top .3s linear 0.2s, left .3s linear 0.2s;
    -moz-transition: top .3s linear 0.2s, left .3s linear 0.2s;
    -o-transition: top .3s linear 0.2s, left .3s linear 0.2s;
    overflow: hidden;
    z-index: 2;
    transform-origin: 50% 50%;
    -webkit-transform-origin: 50% 50%;
    -moz-transform-origin: 50% 50%;
    -o-transform-origin: 50% 50%;

}
.mappa__tappa{
    display: block;
    position: absolute;
    cursor: pointer;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
}
.mappa__tappa > div{
    background-color: inherit;
    position: absolute;
    top: -25%;
    right: 23px;
    display: none;
    border-left-color: inherit;
    color: white;
    padding: 10px 5px;
    z-index: 30;
    font-size: 0.7em;
    width: 150px;
    text-align: center;
}
.mappa__tappa:hover div{
    display: inline-block;
}
.mappa__tappa > div div{
    width: 0px;
    height: 0px;
    position: absolute;
    right: -6px;
    top: 4px;
    border-top: 7px solid transparent;
    border-bottom: 7px solid transparent;
    border-left: 7px solid;
    border-left-color: inherit;
} 
.mappa__tappa--0{
    background-color: #c11b21;
    border-left-color: #c11b21;
}
.mappa__tappa--2{
    background-color: #84bb2f;
    border-left-color: #84bb2f;
}
.mappa__tappa--1{
    background-color: #1caa6c;
    border-left-color: #1caa6c;
}
.mappa__tappa--3{
    background-color: #f8b648;
    border-left-color: #f8b648;
}
.mappa__tappa--4{
    background-color: #c0b8a7;
    border-left-color: #c0b8a7;
}
.mappa__tappa--5{
    background-color: #1376af;
    border-left-color: #1376af;
}
.mappa__tappa--6{
    background-color: #52bfee;
    border-left-color: #52bfee;
}
.mappa__tappa--7{
    background-color: #937cb6;
    border-left-color: #937cb6;
}
.mappa__tappa--new{
    background-image: url(../images/map/new.png);
}
.mappa__tappa--visited{
    background-image: url(../images/map/visited.png);
}
.mappa__button{
    display: none;
}
.mappa__legenda{
    display: none;
    position: absolute;
    bottom: 15px;
    left: 30px;
    width: 100%;
    height: 50px;
}
.mappa__fullscreen .mappa__legenda{
    display: block;
}
.mappa__legenda__element{
    display: inline-block;
    position: relative;
    padding: 5px;
}
.mappa__legenda__tipo{
    position: absolute;
    left: 50%;
    transform: translate(-50%, 0);
    -webkit-transform: translate(-50%, 0);
    -moz-transform: translate(-50%, 0);
    -ms-transform: translate(-50%, 0);
    width: 21px;
    height: 21px;
    border-radius: 50%;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
}
.mappa__legenda__tipo--title{
    position: relative;
    top: 30px;
    width: 100%;
    text-align: center;
    color: white;
    text-transform: uppercase;
    font-size: 0.6em;
}
.mappa__legenda__tipo--0{
    background-color: #c11b21;
}
.mappa__legenda__tipo--2{
    background-color: #84bb2f;
}
.mappa__legenda__tipo--1{
    background-color: #1caa6c;
}
.mappa__legenda__tipo--3{
    background-color: #f8b648;
}
.mappa__legenda__tipo--4{
    background-color: #c0b8a7;
}
.mappa__legenda__tipo--5{
    background-color: #1376af;
}
.mappa__legenda__tipo--6{
    background-color: #52bfee;
}
.mappa__legenda__tipo--7{
    background-color: #937cb6;
}

.mappa__drone{
    width: 30px;
    height: 30px;
    display: none;
    position: absolute;
    top: 20px;
    left: 20px;
    background-image: url('../images/map/icona_drone_mappa.png');
    cursor: pointer;
}
.mappa__drone > div{
    position: absolute;
    top: 0%;
    left: 126%;
    display: none;
    text-align: center;
    color: black;
    border-right-color: rgb(241, 236, 220);
    background-color: rgb(241, 236, 220);
    
    padding: 10px 5px;
    z-index: 30;
    font-size: 0.7em;
    width: 150px;
}
.mappa__drone:hover div{
    display: block;
}
.mappa__drone > div div{
    width: 0px;
    height: 0px;
    position: absolute;
    left: -7px;
    top: 4px;
    border-top: 7px solid transparent;
    border-bottom: 7px solid transparent;
    border-right: 7px solid;
    border-right-color: inherit;
} 
.mappa__fullscreen .mappa__drone{
    display: block;
}
.mappa__wrap--big .mappa__drone{
    display: block;
}
@media screen and (min-width: 640px) and (max-width: 1280px) {

    .mappa__mobile.mappa__button{
        display: block;
        width: 30px;
        height: 30px;
        background: #EDE8D4 url('../images/map/pin.png') no-repeat center center;
        position: absolute;
        bottom: 65px;
        left: 25px;
        z-index: 31;
        transition: bottom 0.5s ease-in-out;
        -webkit-transition: bottom 0.5s ease-in-out;
        -moz-transition: bottom 0.5s ease-in-out;
        -o-transition: bottom 0.5s ease-in-out;
        cursor: pointer;
    }
    .mappa__mobile .mappa__tappa:hover div{
        display: none;
    }
}
@media screen and (max-width: 639px) {
    .mappa__button{
        display: block;
        width: 30px;
        height: 30px;
        background: #EDE8D4 url('../images/map/pin.png') no-repeat center center;
        position: absolute;
        bottom: 65px;
        transition: none;
        -webkit-transition: none;
        -moz-transition: none;
        -o-transition: none;
        z-index: 29;
        left: 10px;
        cursor: pointer;
    }
    .mappa__mobile .mappa__tappa:hover div{
        display: none;
    }
    .mappa__wrap{
        display: block;
        position: absolute;
        left: 0px;
        bottom: 0px;
        overflow: hidden;
        z-index: 30;
        transition: height 0.5s ease-in-out;
        -webkit-transition: height 0.5s ease-in-out;
        -moz-transition: height 0.5s ease-in-out;
        -o-transition: height 0.5s ease-in-out;
    }
    .mappa__wrap--small{
        width: 0px;
        height: 0px;
    }
    .mappa__wrap--big{
        width: 100%;
        height: 100%;
        z-index: 40;
    }
    .mappa__arrow{
        display: none;
    }
    .mappa__button--open {
        z-index: 41;
    }
}
