/*
Theme Name:     Milano-associazioni
Theme URI:      
Description:    Divi child theme.
Author:         Me
Author URI:     
Template:       Divi
Version:        0.1.0
*/


/* Generic */

#main-content .container{
    margin: 0px !important;
    padding-left: 0px !important;
    padding-right: 0px !important;
    width: 100% !important;
    max-width: none !important;
}

.bootstrap-select .dropdown-menu li{
    line-height: 1 !important;
    list-style-type: none;
    color: #333 !important;
    font-size: 14px;
}

.bootstrap-select .dropdown-menu.inner{
    padding: 0px !important;
}

.bootstrap-select .dropdown-menu.inner.show{
    padding: 0px !important;
}

.leaflet-container a{
    color: #333 !important;
}

.leaflet-container{
    font-family: 'Open Sans', sans-serif !important;
}

.milano-map-icon{
    
}

/* Map */

#map{
    height: 600px;
}

#map .form-control{
    padding: 6px 12px !important;
}

#map .bootstrap-select.form-control{
    padding: 0px !important;
}

.options{
    background:#5F7077;
    color:#fff;
    padding: 10px 20px;
    margin-right: 0px !important;
    margin-top: 30px !important;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

.chronology{
    background:#483800;
    color:#fff;
    padding: 10px 20px;
    margin-right: 0px !important;
    margin-bottom: 0px !important;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
}

.search .search-body, .options .options-body, .chronology .chronology-body, .timeline .timeline-body, .popup .popup-body, .expandedoptions .expandedoptions-body, .advancedsearch .advancedsearch-body, .history .history-body{
    display: block !important;
} 

.leaflet-control-attribution{
    display: none !important;
}

.expandedoptions .header .title, .advancedsearch .header .title{
    font-family: 'Open Sans', sans-serif !important;
    font-size: 14px;
    font-weight: 700;
    margin-top: 20px !important;
    color: #5F7077 !important;
}

.expandedoptions .header .close, .advancedsearch .header .close{
    margin-top: 13px !important;
}

.expandedoptions .title, .advancedsearch .title{
    margin-top: 0px !important;
    font-family: 'Playfair Display',Georgia,"Times New Roman",serif !important;
}

.expandedoptions, .advancedsearch{
    margin: 0px !important;
}

.expandedoptions.in{
    animation: rightInAnimation 0.5s ease-in forwards;
}

.expandedoptions.out{
    animation: rightOutAnimation 0.5s ease-in forwards;
}

.advancedsearch.in{
    animation: leftInAnimation 0.5s ease-in forwards;
}

.advancedsearch.out{
    animation: leftOutAnimation 0.5s ease-in forwards;
}

@keyframes rightInAnimation{
    0% {
        transform: translate3d(600px,0px,0px);
    }

    100% {
        transform: translate3d(0px,0px,0px);
    }
}

@keyframes rightOutAnimation{
    0% {
        transform: translate3d(0px,0px,0px);
    }

    100% {
        transform: translate3d(600px,0px,0px);
    }
}

@keyframes leftInAnimation{
    0% {
        transform: translate3d(-600px,0px,0px);
    }

    100% {
        transform: translate3d(0px,0px,0px);
    }
}

@keyframes leftOutAnimation{
    0% {
        transform: translate3d(0px,0px,0px);
    }

    100% {
        transform: translate3d(-600px,0px,0px);
    }
}


.expandedoptions-body, .advancedsearch-body{
    width: 600px;
    -webkit-box-shadow: 0 0px 15px rgba(0,0,0,.5);
    box-shadow: 0 0px 15px rgba(0,0,0,.5);
    background-color: #fff;
}

.expandedoptions-body .header, .advancedsearch-body .header{
    height: 60px !important;
    background: #DAE1E3;
    color: #5F7077;
    padding: 15px;
    border-bottom: 1px solid #e5e5e5;
}

.expandedoptions-body .body{
    height: 540px !important;
    padding: 0px 20px 20px 20px !important;
}

.expandedoptions-body .body .options-list{
    max-height: 265px !important;
    overflow-y: scroll;
}

.advancedsearch-body .body{
    height: 540px !important;
    padding: 20px;
}

input[type='radio'] {
    -webkit-appearance: none;
    border: none;
    float: left;
}

input[type='radio']:before {
    content:'';
    display:block;
    width:10px;
    height:10px;
    margin: 20% auto; 
    margin-top: -4px;   
    border-radius:50%;    
}

input[type='radio']:checked:before {
    font-family: "Material Icons";
    content: "\e5ca";
      color: #CA9D00;
    font-size: 25px;
}

label{
    font-weight: 400;
    width: 100%;
}

input:checked + .radioLabel, input:checked + .checkLabel {
    color: #CA9D00;
}


.radioLabel, .checkLabel{
    margin-left: 35px;
    border-bottom: 1px solid #f0f0f0;
    font-weight: 400;
    padding-bottom: 8px;
    padding-top: 5px; 
    font-size: 14px;
}

input[type='checkbox'] {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 1px solid #f0f0f0;
    border-radius: 50%;
    float: left;
    margin-top: 6px;
}
input[type='checkbox']:checked {
    border: 1px solid #CA9D00;
}
input[type='checkbox']:before {
    content:'';
    display:block;
    width:10px;
    height:10px;
    margin-top: 4px;
    margin-left: 4px;
    border-radius:50%;  
}
input[type='checkbox']:checked:before {
    background:#CA9D00;
    border: 1px solid #CA9D00;
}

.option{
    font-size: 15;
    padding-bottom: 10px;
}

.option .title{
    font-weight: 700;
    font-size: 17px;
    padding-bottom: 10px;
    padding-top: 10px;
}

.mapButton{
    background: #CA9D00;
    color: #fff !important;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 0px;
    padding: 10px;
}

a.mapButton{
    color: #fff !important;
}

.mapButton:hover{
    color: #fff;
}

.button-right{
    position: absolute !important;
    bottom: 0px !important;
    right: 20px !important;
}

.radioLabelSearch{
    margin-left: 35px;
    font-weight: 400;
    padding-bottom: 8px;
    padding-top: 5px; 
}

input:checked + .radioLabelSearch {
    color: #CA9D00;
}

.popup-body .title{
    font-size: 15px;
    color: #CA9D00;
    padding-bottom:10px;
}

.popup-body .subtitle{
    font-size: 13px;
}

.popup-body .body{
    padding-bottom: 5px;
    font-size: 11px;
}

/* Timeline */

.bottom .modal-dialog {
    -webkit-transform: translate3d(0, -25%, 0);
    transform: translate3d( 0, -25%, 0);
}

.timeline{
   width: 100%;
   background-color: #483800DD;
   z-index: 10;
   position: relative;
   margin: 0px !important;
   color: #fff;
}

.timeline.in{
    animation: bottomInAnimation 0.5s ease-in forwards;
}

.timeline.out{
    animation: bottomOutAnimation 0.5s ease-in forwards;
}

@keyframes bottomInAnimation{
    0% {
        transform: translate3d(0px,100px,0px);
    }

    100% {
        transform: translate3d(0px,0px,0px);
    }
}

@keyframes bottomOutAnimation{
    0% {
        transform: translate3d(0px,0px,0px);
    }

    100% {
        transform: translate3d(0px,100px,0px);
    }
}


.hide{
    display: none;
}

.leaflet-bottom.leaflet-right{
    width: 100%;
}

.timeline-container{
    padding: 20px;
    margin-left: auto;
    margin-right: auto;
    width: max-content;
}

.timeline-container .date{
    float: left;
    font-size: 13px;
    text-align: center;
}
.timeline-container .date .point{
    background-color: #fff;
    z-index: 11;
    border-radius: 24px;
    padding: 2px;
    height: 24px;
    width: 24px;
    margin-bottom: 10px;
    margin-right: auto;
    margin-left: auto;
    cursor: pointer;
}

.timeline-container .date .point.selected .selection{
    background-color: #CA9D00;
    z-index: 12;
    border-radius: 20px;
    height: 20px;
    width: 20px;
}

.timeline-container .line {
    background-color: #FFFFFFDD;
    z-index: 10;
    height: 1px;
    width: 42px;
    float: left;
    margin-top: 12px;
    margin-left: -3px;
    margin-right: -3px;
}

.timeline .line.selected {
    height: 4px;
    width: 42px;
    margin-top: 10px;
}

.timeline-all-container{
    float: left;
    margin-left: 40px;
}
.timeline-all-container .date{
    float: left;
    font-size: 13px;
    text-align: center;
}
.timeline-all-container .date .point{
    background-color: #fff;
    z-index: 11;
    border-radius: 30px;
    padding: 3px;
    height: 30px;
    width: 30px;
    margin-bottom: 4px;
    margin-right: auto;
    margin-left: auto;
    cursor: pointer;
}

.timeline-all-container .date .point.selected .selection{
    background-color: #CA9D00;
    z-index: 12;
    border-radius: 24px;
    height: 24px;
    width: 24px;
}

.timeline-play-container{
    padding: 20px 40px;
}

.timeline-play-container .play-button{
    background-color: #483800;
    color: #FFF;
    border-radius: 50px;
    border: 2px solid #FFF;
    height: 50px;
    padding: 10px 20px;
    font-size: 18px;
    font-weight: bold;
    width: 266px;
    cursor: pointer;
}

.timeline-play-container .play-button .point{
    background-color: #fff;
    border-radius: 42px;
    height: 42px;
    width: 42px;
    float: right;
    margin-top: -8px;
    margin-right: -18px;
    color: #CA9D00;
    text-align: center;
}

.timeline-play-container .play-button .point .icon{
    font-size: 35px !important;
    margin-top: 3px;
}

.close-container{
    float: right;
    margin-right: 10px;
    margin-top: 10px;
    color: #FFFFFFDD;
    cursor: pointer;
}

#pauseHistory{
    display: none;
}

/* History */

.history{
    width: 100%;
    margin: 0px !important;
    height: 510px;
}

.history .history-body{
    height: 100%;
    width: 100%;
    position: absolute;
    bottom: 0px;
}

.history-timeline{
    background-color: transparent !important;
    background-image: linear-gradient(transparent, #483800DD 100%) !important;
}

.history .history-body .history-message{
    color: #fff;
    font-size: 50px;
    font-family: 'Playfair Display',Georgia,"Times New Roman",serif !important;
    font-style: italic;
    width: 30%;
    float: right;
    margin-right: 10%;
    margin-top: 50px;
}

/* Style */

.search{ 
    background: #fff;
    box-shadow: 0 0 15px rgba(0,0,0,0.2);
    width: 400px;
    margin-top: 30px !important;
}

.search .row{
    padding: 6px 8px;
    margin-left: 0px;
    margin-right: 8px;
}

.searchInput{
    width: 95% !important;
    box-shadow: none;
    height: 46px;
    border: none !important;
    font-size: 18px;
    color: #5E7078;
}
.searchInput:focus{
    box-shadow: none;
    border: none;
}

.has-error .searchInput{
    border: 1px solid #a94442;
    -webkit-box-shadow: none !important;
    box-shadow: none !important;
}

.advancedSearchButton{
    background: #DAE1E3;
    text-transform: uppercase;
    width: 100%;
    height: 25px;
    color:#5F7077;
    text-align: center;  
    padding-top: 3px;
    cursor: pointer;
}

.searchSelect button, .searchSelect button:hover, .searchSelect button::selection{
    background: #1B6D8D !important;
    height: 34px !important;
    color: #fff !important;
    border-radius: 0 !important;
    border: 0px !important;
}

.searchSelect .selected .active{
    background: #1B6D8D !important;
    color: #fff !important;
}

.searchSelect .dropdown-item:active{
    background: #1B6D8D !important;
    color: #fff !important;
}

.searchSelectLight button, .searchSelectLight button:hover, .searchSelectLight button::selection{
    background: #fff !important;
    height: 34px !important;
    color: #5F7077 !important;
    border-radius: 0 !important;
    border: 1px solid #BFC6C9!important;
    
}

.searchSelectLight .selected .active{
    background: #5F7077 !important;
    color: #fff !important;
}

.searchSelectLight .dropdown-item:active{
    background: #5F7077 !important;
    color: #fff !important;
}


.searchSelectLight .dropdown-menu{
    max-height: 170px !important;
}

.searchSelectLight .dropdown-menu .inner{
    max-height: 160px !important;
}

.searchSelectLight .dropdown-menu li a{
    color: #5F7077 !important;
} 

.searchSelect .dropdown-menu, .searchSelectLight .dropdown-menu{
    border-radius: 0 !important;
}

.searchSelect button .filter-option-inner-inner, .searchSelectLight button .filter-option-inner-inner{
    text-overflow: ellipsis !important;
}

.advancedsearch .option-icon{
    font-size: 35px !important;
    color: #5F7077 !important;
    cursor: pointer !important;
}

.advancedSearchOptions{
    height: 320px !important;
    overflow-y: scroll !important; 
    overflow-x: hidden !important;
}

.searchRow{
    padding-left: 10px;
    padding-right: 10px;
    padding-bottom: 10px;
}

.advancedSearchOptions .form-group{
    margin: 0px !important;
}

.searchOptionInput{
    border-radius: 0;
    box-shadow: none;
    padding: 6px 12px !important;
    height: 34px !important;
}

.searchOptionInput:focus{
    box-shadow: none;
    border: 1px solid #ccc !important;
}

/*.searchSelect .filter-option-inner-inner, .searchSelect .dropdown-menu{
    text-align: center;
}*/

.search-results, .advancedSearchResults{
    display: none;
}

.search-results .results-input{
    padding: 10px;
    background: #DAE1E3;    
}

.search-results .results-input .searchSelect{
    padding-bottom: 10px;
}

.search-results .results-input .searchInputs{
    color:#5F7077;
    margin-left: auto;
    margin-right: auto;
    width: max-content;
}

.search-results .results-input .searchInputs input{
    width: 60px;
    margin-left: 10px;
    margin-right: 10px;
}

.search-results .results-input .searchInputs .form-control{
    display: initial;
}

.search-results .results{
    padding: 10px 15px;
    max-height: 300px;
    overflow: scroll;
}

.search-results .results .result, .advancedSearchResults .result{
    font-size: 20px;
    padding-top: 5px;
    padding-bottom: 5px;
    width: 100%;
    border-bottom: 1px solid #DAE1E3;
    font-family: 'Playfair Display',Georgia,"Times New Roman",serif !important;
    font-weight: 700 !important;
    white-space: normal !important;
    word-wrap: break-word !important;
}
.search-results .results .result.empty, .advancedSearchResults .result.empty{
    font-size: 17px;
    padding-bottom: 10px;
}

.search-results .results .result .description, .search-results .results .result .description:hover, 
.advancedSearchResults .result .description, .advancedSearchResults .result .description:hover{
    float: left !important;
    width: 100% !important;
    text-decoration: none !important;
}

.search-results .results .result .icon, .advancedSearchResults .result .icon{
    float: right;
}

.advancedSearchResults{
    max-height: 440px;
    padding-left: 15px;
    overflow: scroll;
}


#map-small{
    height: 400px;
    width: 400px;
}

@media screen and (max-width: 1100px) {
    .timeline-play-container{
        padding: 20px 40px;
    }
    
    .timeline-play-container .play-button{
        width: 50px !important;
    }

    .timeline-play-container .play-button .play-text{
        display: none !important
    }

    .timeline-container .line{
        width: 20px !important;
    }

    .history-message{
        margin-right: 0px !important;
        width: 40% !important;
        font-size: 35px !important;
    }
}

@media screen and (max-width: 740px) {
    .timeline-container{
        display: none;
    }

    .search{
        width: 315px !important;
    }

    .search .searchInput{
        width: 100% !important;
    }

    .options{
        display: none !important;
    }

    .history-message{
        font-size: 30px !important;
    }
}

@media screen and (max-width: 650px) {
    .options{
        display: none !important;
    }

    .advancedSearchButton{
        display: none !important;
    }

    .history-message{
        display: none !important;
    }
}