/* Grid per shortcode [properties_list] e per archivio */
.rem-properties-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
    gap:20px;
}
.rem-card{
    border:1px solid #ddd;
    border-radius:8px;
    padding:12px;
    background:#fff;
    box-shadow:0 2px 6px rgba(0,0,0,.05);
    text-align:left;
}

.rem-thumb{
    width:100%;
    height:200px; /* altezza fissa per avere tutte le card uguali */
    object-fit:cover; /* riempi mantenendo proporzioni */
    border-radius:6px;
    background:#f2f2f2;
    display:block;
    border:1px solid #eee;
}
.rem-title{
    font-size:1rem;
    font-weight:600;
    margin:10px 0 4px;
}
.rem-title a{
    color:#111;
    text-decoration:none;
}
.rem-title a:hover{
    text-decoration:underline;
}
.rem-location{
    font-size:.9rem;
    color:#666;
    margin:0 0 4px;
}
.rem-price{
    font-size:1rem;
    font-weight:600;
    color:#111; /* <-- NIENTE VERDE. Usa colore testo primario (#111, puoi cambiarlo nel tuo tema) */
    margin:0;
}

/* Sezione dettagli proprietà */
.rem-property-details{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
    gap:12px;
    margin:20px 0;
    font-size:.95rem;
}
.rem-detail-item{
    border:1px solid #eee;
    border-radius:6px;
    padding:10px 12px;
    background:#fafafa;
}
.rem-detail-label{
    font-size:.75rem;
    color:#777;
    text-transform:uppercase;
    letter-spacing:.03em;
    margin-bottom:4px;
    display:block;
    font-weight:600;
}
.rem-detail-value{
    font-size:1rem;
    font-weight:600;
    color:#111;
}

/* Swiper wrapper + arrows */
.rem-swiper-wrapper{
    position:relative;
    margin-bottom:20px;
}
.rem-swiper-main{
    width:100%;
    margin-bottom:10px;
}
.rem-swiper-main .swiper-slide{
    position:relative;
    overflow:hidden;
}
.rem-slide-img{
    width:100%;
	height: auto;
    max-height:500px;
    object-fit:cover;
    cursor:zoom-in;
    transition:transform .3s ease;
}
.swiper-slide:hover .rem-slide-img{
    transform:scale(1.05);
}
.rem-swiper-prev,
.rem-swiper-next{
    position:absolute;
    top:50%;
    transform:translateY(-50%);
    background:rgba(0,0,0,.5);
    color:#fff;
    font-size:24px;
    line-height:1;
    padding:.5rem .75rem;
    border-radius:4px;
    cursor:pointer;
    user-select:none;
    z-index:10;
}
.rem-swiper-prev{ left:10px; }
.rem-swiper-next{ right:10px; }
.rem-swiper-prev:hover,
.rem-swiper-next:hover{
    background:rgba(0,0,0,.7);
}

/* THUMBNAILS SWIPER */
.rem-swiper-thumbs{
    width:100%;
}
.rem-swiper-thumbs .swiper-slide{
    width:auto;
    height:150px;
    cursor:pointer;
    opacity:.6;
    border:2px solid transparent;
    border-radius:4px;
    overflow:hidden;
}
.rem-swiper-thumbs .swiper-slide-thumb-active,
.rem-swiper-thumbs .swiper-slide.swiper-slide-thumb-active{
    opacity:1;
    border-color:#111; /* bordo sul thumb attivo, puoi cambiare colore */
}
.rem-thumb-slide{
    display:flex;
    align-items:center;
    justify-content:center;
    background:#000;
}
.rem-thumb-img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}

/* Lightbox */
.rem-lightbox-overlay{
    position:fixed;
    left:0;
    top:0;
    width:100vw;
    height:100vh;
    background:rgba(0,0,0,.9);
    display:none;
    align-items:center;
    justify-content:center;
    z-index:99999;
}
.rem-lightbox-overlay.active{
    display:flex;
}
.rem-lightbox-inner{
    position:relative;
    max-width:90vw;
    max-height:90vh;
}
.rem-lightbox-img{
    max-width:90vw;
    max-height:90vh;
    object-fit:contain;
}
.rem-lightbox-close,
.rem-lightbox-prev,
.rem-lightbox-next{
    position:absolute;
    color:#fff;
    font-size:28px;
    line-height:1;
    background:rgba(0,0,0,.5);
    padding:.5rem .75rem;
    border-radius:4px;
    cursor:pointer;
    user-select:none;
}
.rem-lightbox-close{
    top:10px;
    right:10px;
}
.rem-lightbox-prev{
    top:50%;
    left:-50px;
    transform:translateY(-50%);
}
.rem-lightbox-next{
    top:50%;
    right:-50px;
    transform:translateY(-50%);
}
@media(max-width:600px){
    .rem-lightbox-prev{left:10px;}
    .rem-lightbox-next{right:10px;}
}

/* Brochure / Planimetria layout affiancato */
.rem-files-section-wrapper{
    display:flex;
    flex-wrap:wrap;
    gap:20px;
    margin-top:2rem;
    margin-bottom:2rem;
}
.rem-files-column{
    flex:1 1 200px;
    max-width:300px;
    border:1px solid #eee;
    border-radius:6px;
    padding:12px;
    background:#fafafa;
    max-height:250px;         /* limite altezza */
    overflow-y:auto;          /* scroll verticale interno */
}
.rem-section-title{
    font-size:1.1rem;
    font-weight:600;
    margin:0 0 .75rem;
}
.rem-download-list{
    list-style:none;
    padding:0;
    margin:0;
    display:flex;
    flex-direction:column;    /* molto importante: colonna verticale dentro il box */
    gap:.5rem;
}
.rem-download-link{
    display:inline-block;
    padding:.5rem .75rem;
    border:1px solid #ccc;
    border-radius:4px;
    text-decoration:none;
    font-size:.9rem;
    color:#000;
    background:#fff;
}
.rem-download-link:hover{
    background:#f5f5f5;
}

/* Contenuto descrizione */
.rem-property-content{
    margin:20px 0;
    line-height:1.5;
    font-size:1rem;
}

/* Header property */
.rem-property-title{
    margin:10px 0;
    font-size:1.5rem;
    font-weight:600;
}
.rem-property-location{
    color:#666;
    margin:0 0 5px;
    font-size:1rem;
}
.rem-property-price{
    font-size:1.2rem;
    font-weight:700;
    color:#111; /* niente verde */
    margin:0 0 10px;
}