﻿
#map-section .content-media-grid__reverse .content-media-grid__column{place-content:start}

#map-section .button--accent{margin-top: 3.2rem;}
#map-section .button-icon{width: auto;gap: 4.8rem;}

@media(max-width:1279px){
    #map-section .content-media-grid{flex-direction:column-reverse}
}

@media (min-width: 1280px) {
    #map-section.content-media-grid-section {padding: 8.8rem 0;}
}

@media (min-width: 1440px) {
    #map-section h2 {font-size: 4.8rem;}
}



#mappa-interattiva-wrapper{width: 100%;position: fixed;bottom: 0;top: 0;left: 0;right: 0;z-index:2;display:none;opacity:0;transition: opacity 0.4s ease;}
#mappa-interattiva-wrapper.visible {display: block;opacity: 1;}        
        
#mapcontainer{width: 100%;position: absolute;height:100svh;z-index:1}
#mapcanvas{width: 100%;position: relative;height: 100%;outline-style: none;}

#close-mappa-button{position:fixed;top:.8rem;left:.8rem;margin-top:0;width:auto;padding: .8rem 1.6rem;}


#sidebar-panel {background:rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;width: calc(100% - 1.6rem);height: calc(100% - 1.6rem);background: #fffff9;position: fixed;top: 50%;left: .8rem;border-radius: 1.6rem;overflow: hidden;z-index:2;background: var(--bg-medium); }

.sidebar-panel__header {padding: .8rem;padding: 1.6rem;background:var(--bg-soft);}
.sidebar-panel__logo{width: 130px;height: auto;display:block;}
.sidebar-panel__title {font-family: var(--ff-heading);color: #0265AE;margin: 0;font-weight: 400;font-size: 32px;letter-spacing: -1px;line-height: 1.1;}
.sidebar-panel__categories button{flex-shrink:0}
.sidebar-panel__cards{padding: 0 .8rem 1.6rem 1.6rem;overflow: auto;height: 100%;height: calc(100% - 16.7rem);box-sizing: border-box;}
.sidebar-panel__card{background: #fffff9;margin-bottom: 8px;border-radius: 8px;display:flex;gap:0;cursor:pointer}
.sidebar-panel__card-img-container{width: 33.33%;}
.sidebar-panel__card-img-container img{width: 100%;aspect-ratio: 1;height: auto;display: block;object-fit: cover;border-radius: 8px;}
.sidebar-panel__card-info{padding:.8rem;width:66.66%;position:relative}   
.sidebar-panel__card-info-title{    line-height: 1.1;;color:var(--primary-color);font-size:1.7rem;letter-spacing: .05rem;text-transform:uppercase;margin-top:0;font-weight:900;margin-bottom:0}
.sidebar-panel__card-info-category{font-size: 1.3rem;font-weight: 600;color: var(--text-color);display: inline-flex;gap: .6rem;align-items: center;line-height: 1;margin-top: 1.6rem;}
.sidebar-panel__card-info-category-dot{width:1.3rem;height:1.3rem;border-radius:50%;}
.sidebar-panel__card-info-btn{border: .1rem solid var(--primary-color);width: 35px;height: 35px;display: flex;place-content: center;align-items: center;border-radius: 50%;color: var(--primary-color);position:absolute;right:.8rem;bottom:.8rem;right:1.6rem;bottom:1.6rem}
    

#sidebar-panel__filter{padding:1.6rem .8rem .8rem;padding:1.6rem}
#sidebar-panel__filter-label{color:#333;letter-spacing:.1rem;font-size: 1.4rem;margin-bottom: .4rem;display: block;font-family: var(--ff-heading);text-transform:uppercase}

.select2-container .select2-selection--single{height:auto;border-radius:.8rem;line-height:normal}
.select2-container--default .select2-selection--single .select2-selection__rendered{padding-top:8px;padding-bottom:8px;font-family:var(--ff-heading)}
.select2-container--default .select2-selection--single .select2-selection__arrow{top:9px;}
.select2-container--default .select2-results>.select2-results__options{max-height:300px}

#sidebar-panel__details{transition: transform .5s ease;position: absolute;bottom: 0;left: 0;width: 100%;/*overflow:auto*/height: calc(100% - 6.8rem);overflow:hidden;background: var(--beige-color);}        
#sidebar-panel__details.is-hidden{transform: translateX(100%)}
#sidebar-panel__details-header{width: 100%;background:#fffff9;position:relative}
#sidebar-panel__details-header-img img{width: 100%;height:16.2rem;aspect-ratio: 197/81;object-fit: cover;    border-radius: 1.6rem 1.6rem 0 0;display:block;}
#sidebar-panel__details-content{padding: 1.6rem;height:calc(100% - 16.2rem);overflow:auto;position:relative}
.sidebar-panel__details-close-button{border: .1rem solid var(--primary-color);width: 35px;height: 35px;display: flex;place-content: center;align-items: center;border-radius: 50%;position:absolute;bottom: .8rem;right: .8rem;bottom: 1.6rem;right: 1.6rem;background: var(--accent-color);border-color: var(--accent-color);color: #000;cursor:pointer;bottom: auto;top: 1.6rem;}
#sidebar-panel__details-header-img{position:relative}
#sidebar-panel__details-header-img::after {border-radius:1.6rem 1.6rem 0 0;background: rgba(0, 0, 0, .4);    content: "";position: absolute;top: 0;left: 0;right: 0;bottom: 0;pointer-events:none;mix-blend-mode: multiply;}
#sidebar-panel__details-content-title{font-family:var(--ff-heading);font-size:2.7rem;line-height:1.1;letter-spacing: .05rem;text-transform:uppercase;font-weight:600;color:var(--primary-color);margin-top:1.6rem;    position: absolute;color: #fff;left: 1.6rem;bottom: 1.6rem;margin: 0;}

#sidebar-panel__details-content .container-loader{background:var(--beige-color);align-items: start;padding-top: 8.8rem;}

@media(min-width:1280px){
    #close-mappa-button{left:auto;right:5rem;padding:1.6rem 2.4rem}
    #sidebar-panel{width: 25%;height: calc(100% - 3.2rem);top: 1.6rem;left: 1.6rem;}
}

@media(min-width:1920px){
    sidebar-panel__details-content-title{font-size:4rem}
}


.sidebar-panel__handle {position: absolute;top: 0.6rem; left: 50%;transform: translateX(-50%);width: 36px;height: 4px;background-color: rgba(0,0,0,0.25);border-radius: 2px;transition: opacity 0.3s ease, transform 0.3s ease;cursor: grab;}

@media (min-width: 1280px) {
    .sidebar-panel__handle {display: none;}
}

/* Effetto quando l’utente tocca o trascina */
.sidebar-panel__handle:active {transform: translateX(-50%) scale(1.1);opacity: 0.8;cursor: grabbing;}
.sidebar-panel__handle {width: 40px;height: 5px;background: rgba(0,0,0,0.2);background:var(--primary-color);border-radius: 5px;backdrop-filter: blur(4px);}

/* Stile personalizzato per i tooltip Leaflet */
.leaflet-tooltip {
    font-size: 14px;          /* Dimensione del testo */
    font-weight: bold;        /* Grassetto (facoltativo) */
    color: #2c3e50;           /* Colore del testo */
    background-color: #fdfdfd;/* Colore di sfondo */
    border: 1px solid #aaa;   /* Bordo sottile */
    border-radius: 4px;       /* Angoli arrotondati */
    padding: 4px 8px;         /* Spaziatura interna */
}


@media(min-width:1920px){
    .content-media-grid__column-img img,.content-media-grid__column-slider img{aspect-ratio:3/2.5}
}