/* 
Theme Name: Immobiliare ViviExtra
Template: hello-elementor
*/

/* Add your custom styles here */


.agenzia-dettagli {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}
.agenzia-dettagli dt {
    font-weight: bold;
    flex: 0 0 25%;
    margin-bottom: 5px;
}
.agenzia-dettagli dd {
    flex: 0 0 73%;
    margin: 0;
    padding: 0;
    margin-bottom: 5px;
}

.scheda_agenzia_wrapper .logo_agenzia{
    max-width: 320px;
    padding: 55px;
    background: #fff;
    border-radius: 25px;
    border: 1px solid #BCBCBC;
}

/* === ARCHIVE ANNUNCI STYLES === */

.annunci-archive {
    padding: 20px 0;
}

ul.caratteristiche-immobile{
    list-style-type: none;
    margin: 0;
    padding: 0;
    font-size: 16px;
    line-height: 31px;
    columns: 2;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Breadcrumb */
.breadcrumb {
    margin-bottom: 20px;
    font-size: 14px;
    color: #666;
}

.breadcrumb a {
    color: #007cba;
    text-decoration: none;
}

/* Filtri */
.annunci-filters {
    background: #C3E0F0;
    padding: 20px 0;
    border-radius: 0;
    margin-bottom: 30px;
}

.annunci-filters .filters-title{
    display: none;
}

.filters-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: no-wrap;
    align-items: flex-end;
    justify-content: space-between;
}

.filter-group {
    flex: 1 0;
    min-width: 150px;
}
.filter-group.small {
    min-width: 70px;
}

.filter-group label {
    display: block;
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
}

.filter-group input,
.filter-group select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #666;
    border-radius: 4px;
    font-size: 14px;
    background: #fff;
    border-radius: 3px;
}
.filter-group select{
    padding: 9px 12px;
}

.btn-altro,
.btn-cerca {
    padding: 8px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
}

.btn-altro {
    background: #6c757d;
    color: white;
}

.btn-cerca {
    background: #007cba;
    color: white;
}

@media screen and (max-width: 1080px){
    .annunci-filters{
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        overflow-y: auto;
        z-index: 999;
        padding-top: 50px;
        display: none;
    }
    .annunci-filters.active{
        display: block;
    }
    .annunci-filters .filters-title{
        display: block;
        font-weight: bold;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    .annunci-filters .filters-row{
        flex-direction: column;
        height: 100%;
    }
    .annunci-filters .filter-group.small,
    .annunci-filters .filter-group{
        flex: 0 0 100%;
        width: 100%;
    }
    .annunci-filters .filter-group label{
        color: var(--e-global-color-text);
        font-size: 13px;
        font-weight: medium;
        text-transform: uppercase;
        letter-spacing: .8px;
    }
    .annunci-filters .filter-actions{
        margin-top: auto;
        width: 100%;
    }
}

/* Riga risultati */
.results-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #ddd;
    margin-bottom: 30px;
}

.results-controls {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-top: -120px;
}

.view-toggle {
    display: flex;
    gap: 5px;
}

.btn-mappa,
.btn-schede {
    padding: 8px 15px;
    border: 1px solid var(--e-global-color-secondary);
    background: var(--e-global-color-secondary);
    color: white;
    cursor: pointer;
    font-size: 12px;
}

.btn-mappa.active,
.btn-schede.active {
    background: var(--e-global-color-primary);
    color: white;
}

/* Griglia annunci */
.grid-view .annunci-grid{
    display: flex;
    align-items: stretch;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 30px;
}
.grid-view .annunci-grid .annuncio-card{
    flex: 0 0 calc( 33% - 17px );
}

.grid-view.map-view .annunci-grid .annuncio-card{
    flex: 0 0 100%;
}

.annunci-results{
    margin-bottom: 30px;
}

.grid-view.map-view .annunci-grid{
    align-items: flex-start;
    justify-content: flex-start;
}

.grid-view.map-view{
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: space-between;
}
.grid-view.map-view .annunci-grid{
    flex: 0 0 33%;
}

/* Vista Mappa */
.grid-view.map-view .map-content {
    width: calc( 67% - 30px );
    overflow-x: visible;
}
.grid-view.map-view .map-content .map-sticky{
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100%;
}
.grid-view.map-view .map-content #leaflet-map {
    width: 100%;
    height: 100%;
}

.btn-filtra{
    display: none;
}

@media screen and (max-width: 1080px){
    .grid-view .annunci-grid .annuncio-card{
        flex: 0 0 100%;
    }
    .results-controls{
        margin: 0;
    }
    .btn-mappa,
    .btn-schede {
        display: none;
    }
    .btn-filtra{
        display: inline-block;
    }
    .map-content {
        display: none;
    }
    h1.page-title{
        font-size: 24px;
        font-weight: medium;
    }
}


/* Stili custom per marker Leaflet */
.custom-marker {
    background: #1D7FBB;
    border: 2px solid #fff;
    border-radius: 50%;
    width: 25px;
    height: 25px;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(52, 152, 219, 0.6); }
  70% { box-shadow: 0 0 0 15px rgba(52, 152, 219, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 152, 219, 0); }
}

.custom-marker.highlighted {
    background: #A61916;
    animation: pulse 1.5s infinite;
    z-index: 99999;
}

/* Popup mappa */
.leaflet-popup-content{
    margin: 0;
}
.marker-popup-content{
    padding: 13px 24px 13px 20px;
}
.marker-popup h4 {
    margin: 0 0 8px 0;
    font-size: 14px;
    color: #333;
}

.popup-price {
    margin: 0 0 8px 0;
    font-weight: bold;
    color: #007cba;
    font-size: 16px;
}

.popup-link {
    display: inline-block;
    background: #007cba;
    color: white;
    padding: 6px 12px;
    text-decoration: none;
    border-radius: 4px;
    font-size: 12px;
}

.popup-link:hover {
    background: #005a8b;
    color: white;
}

/* Card annuncio */
.annuncio-card {
    background: white;
    border-radius: 15px;
    border: 1px solid var(--e-global-color-text);
    overflow: hidden;
}

.card-image {
    position: relative;
    height: 260px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 500ms all ease-in-out;
}

.annuncio-card:hover .card-image img{
    transform: scale(1.1);
}

.card-overlay {
    position: absolute;
    top: 25px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
}

.card-favorite {
    background: rgba(0,0,0,0.6);
    border-radius: 15px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin-left: 20px;
    color: #fff;
}

.card-status {
    padding: 4px 8px;
    padding-right: 30px;
    border-radius: 0;
    font-size: 13px;
    font-weight: medium;
    color: white;
    letter-spacing: 0.8px;
    background: rgba(0,0,0,0.6);
}

.card-price {
    font-weight: bold;
    margin-top: -60px;
    display: flex;
    height: 60px;
    justify-content: flex-end;
    align-items: center;
    color: #fff;
    z-index: 2;
    position: relative;
    padding-right: 25px;
    text-shadow: 0 0 10px #000;
}
.card-price a{
    font-size: 26px;
    color: white;
    display: block;
    text-shadow: 0 0 10px #000;
}

.card-info {
    padding: 0 15px 15px;
}

.card-title {
    margin: 20px 0;
    font-size: 18px;
    font-weight: bold;
    line-height: 22px;
}

.card-title a {
    color: #333;
    text-decoration: none;
    display: block;
}

.card-details {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
    font-weight: medium;
    color: #999;
    margin: 20px 0;
}

.card-details i.fal{
    font-size: 18px;
}

.card-bottom{
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-code {
    font-size: 13px;
    color: var(--e-global-color-text);
    font-weight: bold;
}


.navigation.pagination{
    display: flex;
    justify-content: center;
    margin: 25px 0;
}

.navigation.pagination .nav-links > *{
    color: var(--e-global-color-text);
    font-size: 16px;
    padding: 6px 10px;
    background: #efefef;
    border-radius: 5px;
}

.navigation.pagination .nav-links .current{
    font-weight: bold;
}


.annunci-simili-title {
    /* font-size: 28px;*/
    font-weight: bold; 
    margin-bottom: 30px;
    text-align: center;
}

.annunci-simili-carousel {
    margin: 0 -15px;
}

.annunci-simili-carousel .annuncio-card {
    margin: 0 15px;
}


/* Stili per i dots */
.annunci-simili-carousel .slick-dots {
    bottom: -40px;
}

.annunci-simili-carousel .slick-dots li button:before {
    font-size: 12px;
    color: #333;
}

.annunci-simili-carousel .slick-dots li.slick-active button:before {
    color: var(--e-global-color-secondary);
}

/* Responsive */
@media (max-width: 1024px) {
    .annunci-simili-carousel .slick-prev {
        left: -30px;
    }
    
    .annunci-simili-carousel .slick-next {
        right: -30px;
    }
}

@media (max-width: 768px) {
    .annunci-simili-carousel .slick-prev,
    .annunci-simili-carousel .slick-next {
        display: none !important;
    }
}

.viviextra-menu-utente ul{
    margin: 0;
    padding: 0;
    list-style-type: none;
    display: flex;
}

.viviextra-menu-utente ul li{
    margin-left: 20px;
}

.viviextra-menu-utente ul a{
    color: #000;
    font-size: 13px;
    display: flex;
    align-items: center;
    font-weight: medium;
}
.viviextra-menu-utente ul a i{
    margin-right: 5px;
}