@font-face {
    font-family: raleway;
    src: url('../fonts/Raleway-SemiBold.ttf') format('truetype');
}

@font-face {
    font-family: raleway-bold;
    src: url('../fonts/Raleway-ExtraBold.ttf') format('truetype');
}

@font-face {
    font-family: raleway-light;
    src: url('../fonts/Raleway-Light.ttf') format('truetype');
}

html, body {
    height: 100%;
    margin: 0;
    background-color: white;
    font-family: raleway;
}

b {
    font-family: raleway-bold;
}

a.contactMe {
    text-decoration: none !important;
    color: white !important;
}

#logoUbiest {
    position: fixed;
    bottom: 1rem;
    right: 0;
    z-index: 999;
}

#logoUbiest img {
    width: 55px;
    height: 15px;
}

#loader {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    z-index: 1004;
    background: black;
    opacity: 0.7;
    text-align: center;
}

#loader img {
    width: 40px;
    height: 40px;
    opacity: 1;
    position: relative;
    top: 40%;
}

.searchSuggestion {
    background: white;
    position: absolute;
    display: none;
    z-index: 999;
    overflow: hidden;
    -moz-box-shadow: 0px 3px 8px rgb(100, 100, 100);
    -webkit-box-shadow: 0px 3px 8px rgb(100, 100, 100);
    box-shadow: 0px 3px 8px rgb(100, 100, 100);
}

.searchSuggestionItem {
    border-bottom: 1px solid #ddd;
    width: 98%;
    padding-left: 25px;
    height: 25px;
    line-height: 25px;
    overflow: hidden;
    color: #6d6e71;
    font-size: 12px;
    font-family: raleway;
    background-image: url('../images/map_pin.png');
    background-repeat: no-repeat;
    background-position: 1%;
    text-align: left;
    background-size: 9px 16px;
}

.searchSuggestionItemHover {
    /*background-color: #05356D;*/
    background-color: #DDFFFF;
    color: #6d6e71;
    background-image: url('../images/map_pin_selected.png');
    background-repeat: no-repeat;
    background-position: 1%;
    text-align: left;
    cursor: pointer;
}

#centerInMapButton {
    background: white url('../images/mirino.png') no-repeat;
    background-size: 60%;
    background-position: center;
    cursor: pointer;
}

#centerInMapButton:hover {
    background: white url('../images/mirino_hover.png') no-repeat;
    background-size: 60%;
    background-position: center;
}

.mycluster{
     background-image: url('../images/cluster.png');
     background-repeat: no-repeat;
     background-size: cover;
 }

.mycluster div{
    color: white;
    font-size: 22px;
    line-height: 50px;
    text-align: center;
    width: 50px;
    height: 50px;
}


/* DESKTOP */
@media only screen and (min-width: 768px) {

    #mapContainer {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: white;
    }

    .searchContainer {
        height: 96%;
        width: 320px;
        position: absolute;
        top: 2%;
        left: 20px;
        z-index: 999;
        background-color: white;
        overflow: hidden;
    }

    /* START FIXED CONTAINER */
    .fixedContainer {
        width: 100%;
    }

    .inputContainer {
        height: 45px;
        width: 100%;
        text-align: center;
        background-color: #f1f2f2;
    }

    .collapseButton {
        width: 14%;
        height: 100%;
        float: left;
        background: url('../images/menu_labelblue.png');
        background-position: center;
        background-size: cover;
        background-repeat: no-repeat;
        cursor: pointer;
    }

    .collapseButton.collapseButtonFull {
        /*height: 100%;*/
        height: 52px;
        background: url('../images/menu_labelblue_expand.png');
        background-position: center;
        background-size: cover;
        background-repeat: no-repeat;
    }

    .inputSearch {
        width: 56%;
        height: 95%;
        padding-left: 2%;
        padding-right: 2%;
        float: left;
        box-sizing: border-box;
        border: none;
        /*margin-left: 1%;*/
        background-color: #f1f2f2;
        color: #6d6e71;
        font-family: raleway;
    }

    .clearable{
        width: 12%;
        height: 100%;
        float:left;
        background: #f1f2f2 url('../images/input-cancel.png') no-repeat center;
    }

    .searchButton {
        width: 14%;
        height: 100%;
        float: left;
        display: inline-block;
        background: url('../images/search.png');
        background-position: center;
        background-size: cover;
        background-repeat: no-repeat;
        cursor: pointer;
    }

    .showCollapseFilters {
        height: 45px;
        width: 100%;
        margin-top: 10px;
        line-height: 45px;
        text-align: center;
    }

    .advancedSearchLabel {
        float: left;
        width: 73%;
        height: 100%;
        color: #6d6e71;
        font-size: 18px;
    }

    .funnelIcon {
        display: block;
        float: left;
        width: 15%;
        height: 90%;
        background: url('../images/tramoggia_gray.png');
        background-position: 37% 50%;
        background-size: 35%;
        background-repeat: no-repeat;
    }

    .arrowIcon {
        display: block;
        float: left;
        width: 12%;
        height: 90%;
        background: url('../images/arrow-up.png');
        background-position: 37% 50%;
        background-size: 50%;
        background-repeat: no-repeat;
        cursor: pointer;
    }

    .arrowIcon.arrowIconDown {
        background: url('../images/arrow-down.png');
        background-position: 37% 50%;
        background-size: 50%;
        background-repeat: no-repeat;
    }

    /* END FIXED CONTAINER */
    /* START COLLAPSABLE CONTAINER */
    .collapsableContainer {
        width: 100%;
        overflow-x: hidden;
        overflow-y: auto;
    }

    .filtersContainer {
        width: 96%;
        margin-left: 3%;
        font-size: 14px;
        font-family: raleway;
    }
    
    .column{
        width: 100%;
        float: left;
        clear: both;
    }

    /* END COLLAPSABLE CONTAINER */
    .resultsNumber {
        height: 5%;
        font-size: 15px;
        color: #6F6F6F;
        margin-left: 20px;
        line-height: 30px;
        display: inline-block;
    }

    .pdfButton {
        float: right;
        margin-right: 20px;
        margin-top: 3px;
    }

    .resultsContainer {
        width: 100%;
        margin-bottom: 10px;
        overflow-x: hidden;
    }

    .result {
        padding-top: 10px;
    }

    .typeResult {
        height: 100px;
        width: 20%;
        float: left;
    }

    .dataResult {
        width: 80%;
        float: left;
        padding-bottom: 10px;
    }

    .dataResult a {
        font-family: raleway-light;
        font-size: 13px;
    }

    .distanceResult {
        color: #6d6e71;
        font-size: 13px;
    }

    .nameResult {
        color: #231f20;
        font-size: 17px;
        margin-top: 5px;
    }

    .adressResult {
        color: #6d6e71;
        margin-top: 5px;
        font-size: 11px;
        font-family: raleway-light;
    }

    .phoneResult {
        color: #6d6e71;
        font-size: 13px;
        margin-top: 5px;
    }

    .buttonsContainer {
        width: 100%;
        margin-top: 5px;
    }

    .resultButton {
        height: 35px;
        line-height: 35px;
        width: 40%;
        min-width: 80px;
        float: left;
        color: white;
        text-align: center;
        background-color: #7090D8;
        text-transform: uppercase;
        font-size: 12px;
        cursor: pointer;
    }

    .resultButton.baloon.map, .resultButton.baloon.app{
        display: none;
    }

    /* BALOON START */
    .leaflet-popup-content-wrapper {
        border-radius: 0;
    }

    .enelMia-baloon-container {
        height: 100%;
        width: 100%;
        min-width: 250px;
        color:#6d6e71;
        font-size:13px;
        font-family:raleway;
        overflow: hidden;
    }

    .enelMia-baloon-container.enelMia-baloon-with-promo-container {
        height: 260px;
    }

    .enelMia-baloon-logo-name-container {
         height: 100%;
         width: 100%;
        overflow: hidden;
    }

    .enelMia-baloon-logo-name-container .enelMia-distance {
        margin-bottom:10px;
    }

    .enelMia-baloon-logo-name-container .enelMia-logo {
        height:50px;
        width:80px;
        background-repeat: no-repeat;
        float:left;
        display: block;
    }

    .enelMia-baloon-logo-name-container .enelMia-name {
        color:#231f20;
        font-size:17px;
        margin-top:5px;
        height: 100%;
        word-wrap: break-word;
        overflow: hidden;
    }

    .enelMia-baloon-address-container{
        width: 100%;
        margin-bottom: 10px;
        margin-top: 5px;
    }

    .enelMia-baloon-discount {
        color:#6d6e71;
        font-size:13px;
        width: 85%;
        min-height: 30px;
        margin-bottom: 15px;
        background-image: url('../images/discount.png');
        background-repeat: no-repeat;
        padding-left: 15%;
        background-size: 30px;
        background-position: top left;
        height: 100%;
        font-family: raleway-light;
    }

    .enelMia-baloon-promo {
        font-size:13px;
        width: 85%;
        height: 30px;
        margin-top: 10px;
        margin-bottom: 10px;
        border: 2px solid #9d261d;
        padding: 5px;
        color: #9d261d;
        font-family: raleway-light;
    }

    .enelDrive-baloon-container {
        height:100%;
        width:100%;
        color:#6d6e71;
        font-size:13px;
        font-family:raleway;
        overflow: hidden;
    }

    .enelDrive-baloon-stato {
        font-size: 12px;
        text-align: center;
        width: 80px;
    }

    .enelDrive-baloon-address {
        width:100%;
        margin-bottom:10px;
        margin-top:10px;
    }

    .enelDrive-baloon-distance {
        margin-bottom:5px;
    }

    .enelDrive-baloon-logo {
        height:60px;
        width:80px;
        background-position: center;
        background-repeat: no-repeat;
        float:left;
        display: block;
    }

    .enelDrive-baloon-name {
        color:#231f20;
        font-size:17px;
        margin-top:5px;
    }

    .enelEnergia-baloon-container {
        width:300px;
        color:#6d6e71;
        font-size:13px;
        font-family:raleway;
    }

    .enelEnergia-baloon-name {
        color:#231f20;
        font-size:17px;
    }

    /* BALOON END */

    /* DIRECTION START */
    .waypointsContainer {
        height: 120px;
        width: 100%;
        font-family: raleway;
        font-size: 15px;
        color: #6d6e71;
    }

    .manueversContainer {
        width: 100%;
        color: #6d6e71;
        overflow-x: hidden;
        overflow-y: auto;
    }

    .directionsContainer {
        width: 320px;
        position: absolute;
        top: 20px;
        left: 20px;
        z-index: 999;
        background-color: white;
        border-radius: 5px;
        max-height: 90%;
        overflow: hidden;
    }

    .backToResultsButton {
        height: 45px;
        width: 45px;
        background-image: url('../images/arrow_back.png');
        background-repeat: no-repeat;
        background-position: center;
        background-size: cover;
        float: left;
        display: block;
    }

    .titleContainer {
        height: 45px;
        width: 100%;
        display: table;
    }

    .title {
        height: 100%;
        width: 100%;
        display: table-cell;
        vertical-align: middle;
        text-align: center;
        font-weight: normal;
        background-color: #f1f2f2;
        color: #6F6F6F;
    }

    /* DIRECTION END */

}

/* MOBILE */
@media only screen and (max-width: 768px) {

    #mapContainer {
        position: absolute;
        top: 45px;
        left: 0;
        width: 100%;
        height: 100%;
        background: white;
    }

    .searchContainer {
        height:45px;
        width: 100%;
        position: fixed;
        top: 0;
        left: 0;
        z-index: 1003;
        background-color: white;
       /* overflow: hidden;*/
    }

    /* START FIXED CONTAINER */
    .fixedContainer {
        height: auto;
        width: 100%;
    }

    .inputContainer {
        height: 45px;
        width: 100%;
        text-align: center;
        background-color: #f1f2f2;
    }

    .collapseButton {
        width: 40px;
        max-width: 45px;
        height: 100%;
        float: left;
        background: url('../images/menu_labelblue.png');
        background-position: center;
        background-size: cover;
        background-repeat: no-repeat;
        cursor: pointer;
    }

    /*.collapseButton.collapseButtonFull {
        height: 100%;
        background: url('../images/menu_label.png');
        background-position: center;
        background-size: cover;
        background-repeat: no-repeat;
    }*/

    .mapButton{
        width: 40px;
        max-width: 45px;
        height: 100%;
        float: left;
        background: url('../images/menu_label_map.png');
        background-position: center;
        background-size: cover;
        background-repeat: no-repeat;
        cursor: pointer;
    }

    .inputSearch {
        width: 52%;
        height: 95%;
        /*padding-left: 2%;
        padding-right: 2%;*/
        float: left;
        box-sizing: border-box;
        border: none;
        outline:transparent;
        background-color: #f1f2f2;
        color: #6d6e71;
        font-family: raleway;
    }

    .clearable{
       /* width: 12%;*/
        width: 40px;
        height: 100%;
        float:left;
        background: #f1f2f2 url('../images/input-cancel.png') no-repeat center;
    }

    .searchButton {
        width: 40px;
        max-width: 45px;
        height: 100%;
        float: right;
        display: inline-block;
        background: url('../images/search.png');
        background-position: center;
        background-size: cover;
        background-repeat: no-repeat;
        cursor: pointer;
    }

    .arrowIcon.arrowIconDown {
        background: url('../images/arrow-down.png');
        background-position: 37% 50%;
        background-size: 50%;
        background-repeat: no-repeat;
    }

    /* END FIXED CONTAINER */
    /* START COLLAPSABLE CONTAINER */
    .collapsableContainer {
        height: 100%;
        width: 100%;
        display: block;
        position: absolute;
        top: 45px;
        z-index: 1002;
        background-color: white;
    }

    .tabsShowContainer{
        position: fixed;
        width: 100%;
        height: 45px;
        background-color: #3c5862;
        overflow: hidden;
        z-index: 1002;
    }

    .showCollapseFilters, .showResultList{
        height: 40px;
        width: 50%;
        float: left;
        background-color: white;
        line-height: 45px;
        text-align: center;
    }

    .showCollapseFilters.active, .showResultList.active{
        background-color:  #3c5862;
    }

    .advancedSearchLabel, .listResultLabel {
        /*float: left;*/
       /* width: 80%;*/
        height: 100%;
        color: #6d6e71;
        font-size: 15px;
        text-align: left;
    }

    .active .advancedSearchLabel, .active .listResultLabel{
        color: white;
    }

    .funnelIcon {
        display: block;
        float: left;
        width: 45px;
        height: 100%;
        background: url('../images/tramoggia_gray.png');
        background-position: 37% 50%;
        background-size: 53%;
        background-repeat: no-repeat;
    }

    .active .funnelIcon{
        background: url('../images/tramoggia_white.png');
        background-position: 37% 50%;
        background-size: 53%;
        background-repeat: no-repeat;
    }

    .listIcon {
        display: block;
        float: left;
        width: 45px;
        height: 100%;
        background: url('../images/list_2.png');
        background-position: 37% 50%;
        background-size: 53%;
        background-repeat: no-repeat;
    }

    .active .listIcon{
        background: url('../images/list_white.png');
        background-position: 37% 50%;
        background-size: 53%;
        background-repeat: no-repeat;
    }

    .viewContainer{
        position: absolute;
        height: 100%;
        width: 100%;
        top: 45px;
        z-index: 1001;
        overflow-x: hidden;
        background-color: #ffffff;
    }


    .filtersContainer {
        width: 96%;
        margin-top: 15px;
        margin-left: auto;
        margin-right: auto;
        font-size: 14px;
        font-family: raleway;
    }

    .searchFilteredButton{
        height: 60px;
        width: 96%;
        clear: both;
        margin: 15px auto 10px auto;
        background-color: #5CB14A;
        font-size: 18px;
        text-transform: uppercase;
        text-align: center;
        line-height: 58px;
        cursor: pointer;
        color: white;
    }

    .column{
        width: 49%;
        float: left;
    }


    /* END COLLAPSABLE CONTAINER */
    .resultsNumber {
        width: 100%;
        height: 5%;
        font-size: 15px;
        color: #6F6F6F;
        margin-left: 20px;
        line-height: 30px;
        display: inline-block;
    }

    .resultsContainer {
        width: 100%;
        overflow-x: hidden;
    }

    .result {
        padding-top: 10px;
    }

    .typeResult {
        height: 100px;
        width: 20%;
        float: left;
    }

    .dataResult {
        width: 80%;
        float: left;
        padding-bottom: 10px;
    }

    .dataResult a {
        font-family: raleway-light;
        font-size: 13px;
    }

    .distanceResult {
        color: #6d6e71;
        font-size: 13px;
    }

    .nameResult {
        color: #231f20;
        font-size: 17px;
        margin-top: 5px;
    }

    .adressResult {
        color: #6d6e71;
        margin-top: 5px;
        font-size: 11px;
        font-family: raleway-light;
    }

    .phoneResult {
        color: #6d6e71;
        font-size: 13px;
        margin-top: 5px;
    }

    .buttonsContainer {
        width: 100%;
        margin-top: 5px;
    }

    .resultButton {
        height: 35px;
        line-height: 35px;
        width: 40%;
        float: left;
        color: white;
        text-align: center;
        background-color: #7090D8;
        text-transform: uppercase;
        font-size: 12px;
        cursor: pointer;
    }

    .resultButton.baloon{
        width: 49%;
        display: block;
        float: left;
    }

    .resultButton.baloon.map, .resultButton.baloon.app{
        display: block;
        float: right;
    }

    .resultButton.baloon.expand{
        width: 100%!important;
    }

    .reservationButton.resultButton {
        width: 100%;
        margin-top: 2px;
        margin-left: auto!important;
        margin-right: auto!important;
    }

    .closeBaloonContainer{
        position: absolute;
        top:-10px;
        right: 16px;
    }

    /* BALOON START */
    .leaflet-popup-content-wrapper {
        border-radius: 0;
    }

    .baloonContainer{
        height: 100%;
        width:100%;
        display: block;
    }

    .baloonContainer > div > div{
        margin-top: 20px;
    }

    .enelDrive-baloon-container,
    .enelMia-baloon-container {
        width:85%;
        position: relative;
        margin: 20px auto 20px auto;
        color:#6d6e71;
        font-size:13px;
        font-family:raleway;
    }

    .enelDrive-baloon-stato {
        font-size: 8px;
        text-align: center;
        width: 80px;
    }

    .enelMia-baloon-container.enelMia-baloon-with-promo-container {
        height: 260px;
    }

    .enelMia-baloon-logo-name-container {
        width: 100%;
        overflow: hidden;
    }

    .enelMia-baloon-logo-name-container .enelMia-distance {
        margin-bottom:10px;
    }

    .enelMia-baloon-logo-name-container .enelMia-logo {
        height:50px;
        width:80px;
        background-repeat: no-repeat;
        float:left;
        display: block;
    }

    .enelMia-baloon-logo-name-container .enelMia-name {
        color:#231f20;
        font-size:17px;
        margin-top:5px;
    }

    .enelMia-baloon-address-container{
        width: 100%;
        margin-bottom: 10px;
        margin-top: 10px;
    }

    .enelMia-baloon-discount {
        color:#6d6e71;
        font-size:13px;
        width: 85%;
        min-height: 30px;
        margin-bottom: 15px;
        background-image: url('../images/discount.png');
        background-repeat: no-repeat;
        padding-left: 15%;
        background-size: 30px;
        background-position: top left;
        font-family: raleway-light;
    }

    .enelMia-baloon-promo {
        font-size:13px;
        width: 85%;
        height: 30px;
        margin-top: 10px;
        margin-bottom: 10px;
        border: 2px solid #9d261d;
        padding: 5px;
        color: #9d261d;
        font-family: raleway-light;
    }

    .enelDrive-baloon-address {
        width:100%;
        margin-bottom:10px;
        margin-top:10px;
    }

    .enelDrive-baloon-distance {
        margin-bottom:5px;
    }

    .enelDrive-baloon-logo {
        height:60px;
        width:80px;
        background-position: center;
        background-repeat: no-repeat;
        float:left;
        display: block;
    }

    .enelDrive-baloon-name {
        color:#231f20;
        font-size:17px;
        margin-top:5px;
    }

    .enelEnergia-baloon-container {
        height:100%;
        width:85%;
        margin-top: 20px;
        margin-left: auto;
        margin-right: auto;
        color:#6d6e71;
        font-size:13px;
        font-family:raleway;
    }

    .enelEnergia-baloon-name {
        color:#231f20;
        font-size:17px;
    }

    /* BALOON END */

    /* DIRECTION START */
    .waypointsContainer {
        height: 120px;
        width: 100%;
        font-family: raleway;
        font-size: 15px;
        color: #6d6e71;
    }

    .manueversContainer {
        width: 100%;
        color: #6d6e71;
        overflow-x: hidden;
        overflow-y: auto;
    }

    .directionsContainer {
        width: 320px;
        position: absolute;
        top: 20px;
        left: 20px;
        z-index: 999;
        background-color: white;
        border-radius: 5px;
        max-height: 90%;
        overflow: hidden;
    }

    .backToResultsButton {
        height: 45px;
        width: 45px;
        background-image: url('../images/arrow_back.png');
        background-repeat: no-repeat;
        background-position: center;
        background-size: cover;
        float: left;
        display: block;
    }

    .titleContainer {
        height: 45px;
        width: 100%;
        display: table;
    }

    .title {
        height: 100%;
        width: 100%;
        display: table-cell;
        vertical-align: middle;
        text-align: center;
        font-weight: normal;
        background-color: #f1f2f2;
        color: #6F6F6F;
    }

    /* DIRECTION END */
}