.price-request-button.price-eur-wrapper {
    min-width: 180px;
    max-width: 260px;
    width: 100%;
}

/* Migliora la spaziatura della griglia su mobile */
@media (max-width: 768px) {
    .price-grid {
        gap: 6px 8px;
        padding: 12px;
    }
    
    .price-cell.value {
        font-size: 16px;
    }
    
    .price-cell.currency {
        font-size: 11px;
    }
}

.hero-right {
    align-items: flex-end;
}

.btn.view-gallery {
    min-width: 260px;
    max-width: 260px;
    width: 100%;
    box-sizing: border-box;
}
.related-filter-btn {
    background: none !important;
    color: var(--e-global-color-primary) !important;
    font-weight: bold !important;
    border: none;
    font-size: 15px;
    padding: 0 !important;
    border-radius: 999px;
    cursor: pointer;
    transition: color .2s;
}
.related-filter-btn[aria-selected="true"],
.related-filter-btn:hover {
    color: #8B4513 !important;
    background: none !important;
}



.property-hero {
    position: relative;
    height: 100vh; /* altezza full screen */
    display: flex;
    align-items: flex-end; /* contenuto in basso */
    color: var(--e-global-color-aa5884c);
    overflow: hidden;
}

/* Hero Carousel */
.hero-carousel {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.05);
    transition: opacity 0.6s ease-in-out, transform 0.6s ease-in-out;
    cursor: pointer;
}

.hero-slide:hover .overlay {
    background-image: linear-gradient(180deg, #00000020 56%, #28373ED7 81%);
}

.hero-slide.active {
    opacity: 1;
    transform: scale(1);
}

.hero-slide.fading-out {
    opacity: 0.5;
}

.hero-slide .overlay {
    position: absolute;
    inset: 0;
    /* Sfondo trasparente sopra, più scuro in basso */
    background-image: linear-gradient(180deg, #00000000 56%, #28373EC7 81%);
    filter: brightness(100%) contrast(100%) saturate(100%) blur(0px) hue-rotate(0deg);
    z-index: 1;
    content: "";
}

/* Navigation Arrows - Override Elementor styles */
.property-hero .hero-nav {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 3 !important;
    background: var(--e-global-color-aa5884c) !important;
    border: none !important;
    border-radius: 50px !important;
    width: 25px !important;
    height: 25px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: var(--e-global-color-secondary) !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    font-family: inherit !important;
    font-size: inherit !important;
    font-weight: inherit !important;
    backdrop-filter: none !important;
}

.property-hero .hero-nav:hover {
    color: var(--e-global-color-aa5884c) !important;
    transform: translateY(-50%) scale(1.1) !important;
    background: var(--e-global-color-secondary) !important;
}

.property-hero .hero-nav-prev {
    left: 30px !important;
}

.property-hero .hero-nav-next {
    right: 30px !important;
}

.hero-nav svg {
    width: 24px;
    height: 24px;
}

/* Image Counter */
.hero-counter {
    position: absolute;
    bottom: 30px;
    right: 30px;
    z-index: 3;
    background: rgba(0, 0, 0, 0.5);
    color: var(--e-global-color-aa5884c);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    backdrop-filter: blur(10px);
}

.property-hero .container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
    padding: 40px 20px !important;
}

.hero-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 40px;
}
.hero-left {
    flex: 1;
}
.hero-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-end;
    gap: 15px;
}

.property-hero .breadcrumbs {
    margin-bottom: 15px;
    font-size: 14px;
    color: #ddd;
}

/* Titolo della proprietà nella hero */
.property-hero .property-title {
    font-family: var(--e-global-typography-primary-font-family), Sans-serif;
    font-size: var(--e-global-typography-primary-font-size);
    font-weight: var(--e-global-typography-primary-font-weight);
    text-transform: var(--e-global-typography-primary-text-transform);
    color: var(--e-global-color-aa5884c);
    line-height: 1.1;
    margin-bottom: 15px;
}

/* Testo/metadati sotto al titolo (prezzo, camere, m²) */
.property-hero .property-meta {
    font-family: var(--e-global-typography-secondary-font-family), Sans-serif;
    font-size: var(--e-global-typography-secondary-font-size);
    font-weight: var(--e-global-typography-secondary-font-weight);
    color: var(--e-global-color-aa5884c);
    margin: 26px 0 0;
    text-align: left; /* puoi cambiare in center se vuoi allineamento centrale */
}

.property-hero .property-meta span {
    margin-right: 20px;
}


/* Rimuovi linea sopra i metadati */
.property-meta {
    border-top: none !important;
}

/* Testo bianco per gli span dei metadati */
.property-meta span {
    color: var(--e-global-color-aa5884c) !important;
}

.property-hero .btn.view-gallery {
    background-color: var(--e-global-color-secondary);
    font-family: "Le Jour Serif", Sans-serif;
    font-size: 20px;
    font-weight: 700;
    fill: var(--e-global-color-primary);
    color: var(--e-global-color-aa5884c);
    box-shadow: 0px 6px 26px -5px #000000;
    border-radius: 0;
    padding: 10px;
    transition: all 0.3s ease;
}

.property-details-section {
    padding: 50px 0;
    background: var(--e-global-color-aa5884c);
    color: var(--e-global-color-primary);
}

/* ============================================
   GALLERY SECTION
   ============================================ */
.property-gallery-section {
    padding: 50px 0;
    background: var(--e-global-color-primary);
    color: var(--e-global-color-aa5884c);
}

    /* Related properties filters UI */
    .related-properties-section .related-filters {
        display: flex;
        flex-wrap: wrap;
        gap: 18px;
        margin: 10px 0 0.5rem 0;
    }


    .related-filter-btn {
        appearance: none;
        border: none;
        background: none;
        color: var(--e-global-color-primary);
        font-weight: 700;
        padding: 6px 12px;
        border-radius: 999px;
        font-size: 15px;
        cursor: pointer;
        transition: color .2s;
    }
    .related-filter-btn[aria-selected="true"],
    .related-filter-btn:hover {
        color: #8B4513;
        background: none;
    }

    .related-properties-section #related-subtitle {
        margin: 0 0 30px 0;
        color: var(--e-global-color-primary);
    }

    .properties-grid-sin-app#related-carousel.is-loading {
        opacity: .5;
        pointer-events: none;
    }

    /* Related Properties Slider - same as sub-properties */
    .properties-grid-wrapper-sin-app .properties-grid-sin-app#related-carousel {
        display: flex;
        flex-wrap: nowrap;
        gap: 25px;
        overflow-x: auto;
        overflow-y: hidden;
        padding-bottom: 20px;
        scroll-behavior: smooth;
        max-width: 100%;
    }

    .properties-grid-wrapper-sin-app .properties-grid-sin-app#related-carousel::-webkit-scrollbar {
        display: none;
    }

    .properties-grid-wrapper-sin-app .properties-grid-sin-app#related-carousel {
        -ms-overflow-style: none; /* IE and Edge */
        scrollbar-width: none; /* Firefox */
    }

    .properties-grid-wrapper-sin-app .property-card {
        flex: 0 0 auto;
        min-width: 280px;
        max-width: 280px;
    }

    /* Dynamic card sizing for related carousel */
    @media (min-width: 1200px) {
        .properties-grid-wrapper-sin-app .property-card {
            min-width: calc((100% - (25px * 3)) / 4) !important;
            max-width: calc((100% - (25px * 3)) / 4) !important;
        }
    }

    @media (max-width: 1199px) and (min-width: 768px) {
        .properties-grid-wrapper-sin-app .property-card {
            min-width: calc((100% - (25px * 2)) / 3) !important;
            max-width: calc((100% - (25px * 2)) / 3) !important;
        }
    }

    @media (max-width: 767px) and (min-width: 581px) {
        .properties-grid-wrapper-sin-app .property-card {
            min-width: calc((100% - 25px) / 2) !important;
            max-width: calc((100% - 25px) / 2) !important;
        }
    }

    @media (max-width: 580px) {
        .properties-grid-wrapper-sin-app .property-card {
            min-width: 100% !important;
            max-width: 100% !important;
        }
    }

    /* Related Properties Slider Navigation */
    .properties-grid-wrapper-sin-app {
        position: relative;
        display: flex;
        align-items: center;
        flex-direction: column;
    }

.property-gallery-section h2 {
    font-family: var(--e-global-typography-primary-font-family), Sans-serif;
    font-size: var(--e-global-typography-primary-font-size);
    font-weight: var(--e-global-typography-primary-font-weight);
    text-transform: var(--e-global-typography-primary-text-transform);
    color: var(--e-global-color-aa5884c);
    margin-bottom: 30px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-item {
    position: relative;
    width: 100%;
    padding-top: 75%; /* 4:3 aspect ratio */
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-item img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    transition: transform 0.3s ease !important;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay .icon {
    color: white;
    width: 40px;
    height: 40px;
}

.gallery-more-overlay {
    opacity: 1 !important;
    background: rgba(0, 0, 0, 0.7);
    flex-direction: column;
    gap: 10px;
}

.more-count {
    font-size: 48px;
    font-weight: 700;
    color: white;
    font-family: "Le Jour Serif", Sans-serif;
}

.more-text {
    font-size: 16px;
    font-weight: 600;
    color: white;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Responsive */

/* ============================================ */

.property-details-grid {
    margin: 0 auto;
    padding: 0 20px;
}

.property-description h2 {
    font-family: var(--e-global-typography-primary-font-family), Sans-serif;
    font-size: var(--e-global-typography-primary-font-size);
    font-weight: var(--e-global-typography-primary-font-weight);
    text-transform: var(--e-global-typography-primary-text-transform);
    color: var(--e-global-color-primary);
    margin-bottom: 20px;
}

.property-text {
    line-height: 1.6;
    font-size: 16px;
    font-family: 'Inter', sans-serif;
}

.property-text p:last-child {
    margin-bottom: 0;
}

.property-overview-section {
    padding: 50px 0;
    background: var(--e-global-color-aa5884c);
    color: var(--e-global-color-primary);
}

.property-overview-section h2 {
    font-family: var(--e-global-typography-primary-font-family), Sans-serif;
    font-size: var(--e-global-typography-primary-font-size);
    font-weight: var(--e-global-typography-primary-font-weight);
    text-transform: var(--e-global-typography-primary-text-transform);
    color: var(--e-global-color-primary);
    margin-bottom: 30px;
}

.property-overview-section p,
.property-overview-section .property-overview-grid p,
.property-overview-section .overview-disclaimer,
.property-overview-section a {
    color: var(--e-global-color-primary);
}

.property-overview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
}

.property-overview-grid p {
    margin: 8px 0;
    font-size: 16px;
    line-height: 1.5;
    font-family: 'Inter', sans-serif;
}

.property-overview-grid p.with-icon {
    display: flex;
    align-items: center;
    gap: 10px;
}

.property-overview-grid p.with-icon .icon {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    color: var(--e-global-color-aa5884c);
}

.property-overview-section a {
    color: var(--e-global-color-aa5884c);
    text-decoration: underline;
}

.overview-disclaimer {
    font-size: 13px;
    line-height: 1.5;
    color: var(--e-global-color-aa5884c);
    margin-top: 20px;
    font-family: 'Inter', sans-serif;
}


/* Features */
.property-features-section {
    padding: 50px 0;
    background: var(--e-global-color-primary);
    color: var(--e-global-color-aa5884c);
}

.property-features-section h2 {
    font-family: var(--e-global-typography-primary-font-family), Sans-serif;
    font-size: var(--e-global-typography-primary-font-size);
    font-weight: var(--e-global-typography-primary-font-weight);
    text-transform: var(--e-global-typography-primary-text-transform);
    color: var(--e-global-color-aa5884c);
    margin-bottom: 30px;
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}
.features-grid .feature {
    font-size: 15px;
    color: #333;
    font-family: 'Inter', sans-serif;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.features-grid .feature.with-icon {
    display: flex;
    align-items: center;
    gap: 8px;
}

.features-grid .feature.with-icon .icon {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    color: var(--e-global-color-secondary);
}

.features-grid .feature:hover {
    background: #e9ecef;
    border-color: var(--e-global-color-secondary);
}

/* Related Properties */
.related-properties-section {
    padding: 50px 0 0 0;
    background: var(--e-global-color-aa5884c);
    color: var(--e-global-color-primary);
}
.related-properties-section h2 {
    font-family: var(--e-global-typography-primary-font-family), Sans-serif;
    font-size: var(--e-global-typography-primary-font-size);
    font-weight: var(--e-global-typography-primary-font-weight);
    text-transform: var(--e-global-typography-primary-text-transform);
    color: var(--e-global-color-primary);
}
.related-properties-section .subtitle {
    color: #555;
    margin-bottom: 30px;
    font-family: 'Inter', sans-serif;
}

/* Sub Properties */
.sub-properties-section {
    background: var(--e-global-color-aa5884c);
    color: var(--e-global-color-primary);
}
.sub-properties-section h2 {
    font-family: var(--e-global-typography-primary-font-family), Sans-serif;
    font-size: var(--e-global-typography-primary-font-size);
    font-weight: var(--e-global-typography-primary-font-weight);
    text-transform: var(--e-global-typography-primary-text-transform);
    color: var(--e-global-color-primary);
}
.sub-properties-section .section-subtitle {
    color: #555;
    margin-bottom: 30px;
    font-family: 'Inter', sans-serif;
}

/* Sub Properties Slider */
.sub-properties-section .properties-grid-sin-app {
    display: flex;
    flex-wrap: nowrap;
    gap: 25px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
}

.sub-properties-section .properties-grid-sin-app::-webkit-scrollbar {
    display: none;
}

.sub-properties-section .properties-grid-sin-app {
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
}

/* Dynamic card sizing based on screen size */
.sub-properties-section .property-card {
    flex: 0 0 auto !important;
    min-width: 280px !important;
    max-width: 280px !important;
}

/* Desktop: 4 columns visible */
@media (min-width: 1200px) {
    .sub-properties-section .property-card {
        min-width: calc((100% - (25px * 3)) / 4) !important;
        max-width: calc((100% - (25px * 3)) / 4) !important;
    }
}

/* Tablet: 3 columns visible */
@media (max-width: 1199px) and (min-width: 768px) {
    .sub-properties-section .property-card {
        min-width: calc((100% - (25px * 2)) / 3) !important;
        max-width: calc((100% - (25px * 2)) / 3) !important;
    }
}

/* Large phone: 2 columns visible */
@media (max-width: 767px) and (min-width: 581px) {
    .sub-properties-section .property-card {
        min-width: calc((100% - 25px) / 2) !important;
        max-width: calc((100% - 25px) / 2) !important;
    }
}

/* Small phone: 1 column visible */
@media (max-width: 580px) {
    .sub-properties-section .property-card {
        min-width: 100% !important;
        max-width: 100% !important;
    }
}

/* Sub Properties Slider Navigation */
.sub-properties-slider-wrapper {
    position: relative;
}


/* 
 * NOTA: Tutti gli stili .related-card e .related-grid sono stati rimossi
 * Ora usiamo il componente unificato .property-card definito in property-card.css
 * Il grid viene gestito dalla classe .properties-grid definita in property-card.css
 */

.no-related {
    text-align: center;
    color: #6c757d;
    font-style: italic;
    grid-column: 1 / -1;
    padding: 40px;
    font-family: 'Inter', sans-serif;
}

/* 
 * Responsive styles removed - now using unified .property-card component
 * All card-related responsive styles are in property-card.css
 */

/* Contact */
.property-contact-section {
    padding: 50px 0;
    background: #1e3a8a !important; /* Fallback blu */
    background: var(--e-global-color-primary) !important;
    color: var(--e-global-color-aa5884c);
}

.property-contact-section h2, .form-title {
    font-family: var(--e-global-typography-primary-font-family), Sans-serif;
    font-size: var(--e-global-typography-primary-font-size);
    font-weight: var(--e-global-typography-primary-font-weight);
    text-transform: var(--e-global-typography-primary-text-transform);
    color: var(--e-global-color-aa5884c);
    margin-bottom: 10px;
}

/* Forms desktop */
    .contact-form,
    .sell-property-form {
        width: 100%;
        margin: 0 auto;
    }

.property-contact-section .section-subtitle {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 30px;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.5;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: start;
}

/* Location Map Section */
.property-location-section {
    padding-top: 50px;
    background: var(--e-global-color-aa5884c);
}

.property-location-section h2 {
    font-family: var(--e-global-typography-primary-font-family), Sans-serif;
    font-size: var(--e-global-typography-primary-font-size);
    font-weight: var(--e-global-typography-primary-font-weight);
    text-transform: var(--e-global-typography-primary-text-transform);
    color: var(--e-global-color-primary);
    margin-bottom: 10px;
}

.property-location-section .section-subtitle {
    color: var(--e-global-color-primary);
    margin-bottom: 40px;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.5;
    opacity: 0.8;
}

.location-map-container {
    background: var(--e-global-color-aa5884c);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid #e9ecef;
}

.property-map {
    width: 100%;
    height: 400px;
    background: #f8f9fa;
    position: relative;
}

.map-info {
    padding: 25px 30px;
    border-top: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.address-info {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--e-global-color-primary);
    font-family: 'Inter', sans-serif;
    font-weight: 500;
}

.address-info .icon-small {
    width: 18px;
    height: 18px;
    color: var(--e-global-color-secondary);
}

.map-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.map-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--e-global-color-secondary);
    color: var(--e-global-color-aa5884c);
    text-decoration: none;
    border-radius: 25px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.map-link:hover {
    background: #8B4513;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(139, 69, 19, 0.3);
}

.map-link .icon-small {
    width: 16px;
    height: 16px;
}

.no-map-message {
    padding: 60px 30px;
    text-align: center;
    color: #6c757d;
}

.no-map-message .icon-large {
    width: 48px;
    height: 48px;
    color: #dee2e6;
    margin-bottom: 20px;
}

.no-map-message p {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    margin: 0;
}

/* Se non c'è agente, il form occupa tutta la larghezza */
.contact-grid.no-agent {
    grid-template-columns: 1fr;
}

.contact-grid.no-agent .contact-broker {
    display: none;
}

.contact-broker {
background: rgba(255, 255, 255, 0.1);
padding: 40px 30px;
border-radius: 15px;
backdrop-filter: blur(10px);
border: 1px solid rgba(255, 255, 255, 0.2);
}

.agent-info {
display: flex;
flex-direction: column;
align-items: center;
text-align: center;
}

.agent-avatar {
width: 100px;
height: 100px;
border-radius: 50%;
margin-bottom: 20px;
object-fit: cover;
border: 3px solid rgba(255, 255, 255, 0.3);
}

.agent-name {
font-size: 24px;
font-weight: 600;
margin-bottom: 8px;
color: var(--e-global-color-aa5884c);
font-family: var(--e-global-typography-primary-font-family), Sans-serif;
}

.agent-position {
color: rgba(255, 255, 255, 0.8);
margin-bottom: 20px;
font-size: 16px;
font-family: 'Inter', sans-serif;
}

.agent-contact {
display: flex;
flex-direction: column;
gap: 12px;
width: 100%;
}

.agent-email, .agent-phone {
display: flex;
align-items: center;
gap: 8px;
justify-content: center;
margin: 0;
}

.agent-contact a {
color: var(--e-global-color-aa5884c);
text-decoration: none;
font-family: 'Inter', sans-serif;
transition: opacity 0.3s ease;
}

.agent-contact a:hover {
opacity: 0.8;
}

.agent-contact .icon-small {
width: 16px;
height: 16px;
color: rgba(255, 255, 255, 0.7);
}

.contact-form {
background: rgba(255, 255, 255, 0.1);
padding: 40px;
border-radius: 15px;
backdrop-filter: blur(10px);
border: 1px solid rgba(255, 255, 255, 0.2);
}


.contact-subtitle {
color: rgba(255, 255, 255, 0.8);
margin-bottom: 30px;
font-family: 'Inter', sans-serif;
line-height: 1.5;
}

.property-contact-form {
display: flex;
flex-direction: column;
gap: 20px;
}

.form-group select {
width: 100%;
padding: 15px 35px 15px 20px; /* increased right padding for custom arrow */
border: 1px solid rgba(255, 255, 255, 0.3);
border-radius: 8px;
background: rgba(255, 255, 255, 0.1);
color: var(--e-global-color-aa5884c);
font-family: 'Inter', sans-serif;
font-size: 16px;
transition: all 0.3s ease;
-webkit-appearance: none; /* remove default arrow */
-moz-appearance: none;
appearance: none;
cursor: pointer;
position: relative;
}.form-group select::after {
content: '▼';
position: absolute;
right: 15px;
top: 50%;
transform: translateY(-50%);
color: var(--e-global-color-aa5884c);
pointer-events: none;
font-size: 12px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
color: rgba(255, 255, 255, 0.6);
}

.form-group select:focus {
outline: none;
border-color: var(--e-global-color-aa5884c);
background: rgba(255, 255, 255, 0.15);
}

.form-group select option {
background: #1e3a8a; /* match the section background */
color: var(--e-global-color-aa5884c);
}

.form-group select option:first-child {
color: rgba(255, 255, 255, 0.6); /* placeholder color for the first option */
}

.required {
color: #ff0000; /* red for required asterisk */
}

.square-checkbox {
-webkit-appearance: none;
appearance: none;
width: 20px;
height: 20px;
border: 1px solid rgba(255, 255, 255, 0.3);
border-radius: 8px;
background: rgba(255, 255, 255, 0.1);
cursor: pointer;
position: relative;
margin: 0 10px 0 0; /* remove any default margin, keep right margin for spacing */
vertical-align: middle;
}

.square-checkbox:checked {
background: var(--e-global-color-secondary);
border-color: var(--e-global-color-secondary);
}

.square-checkbox:checked::after {
content: '✓';
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
color: var(--e-global-color-aa5884c);
font-size: 14px;
font-weight: bold;
}

input[type="radio"], input[type="checkbox"] {
margin: 0 !important;
}

.property-contact-section .contact-submit-btn {
    background: var(--e-global-color-secondary) !important;
    color: var(--e-global-color-aa5884c) !important;
    border: none !important;
    padding: 15px 30px !important;
    border-radius: 8px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'Inter', sans-serif !important;
}

.property-contact-section .contact-submit-btn:hover {
    background: #8B4513 !important;
    color: var(--e-global-color-aa5884c) !important;
    transform: translateY(-2px);
}

.property-contact-section .contact-submit-btn .icon-small {
    width: 18px;
    height: 18px;
    color: var(--e-global-color-aa5884c) !important;
}

/* Form columns for sell property form */
.form-columns-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-row {
    display: contents;
}

.contact-success,
.contact-error {
padding: 15px 20px;
border-radius: 8px;
margin-bottom: 20px;
font-family: 'Inter', sans-serif;
font-weight: 500;
}

.contact-success {
background: rgba(34, 197, 94, 0.2);
border: 1px solid rgba(34, 197, 94, 0.3);
color: #22c55e;
}

.contact-error {
background: rgba(239, 68, 68, 0.2);
border: 1px solid rgba(239, 68, 68, 0.3);
color: #ef4444;
}

    
.contact-broker,
.contact-form {
padding: 30px 20px;
}
    
.agent-info {
flex-direction: row;
text-align: left;
gap: 20px;
}
    
.agent-avatar {
width: 80px;
height: 80px;
margin-bottom: 0;
}
    
.agent-contact {
align-items: flex-start;
}
    
.agent-email, .agent-phone {
justify-content: flex-start;
}


/* Responsive Styles for Hero Carousel */

/* Gallery Lightbox Styles */
.gallery-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.95);
    align-items: center;
    justify-content: center;
}

.lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    z-index: 100; /* keep overlay below controls and container */
}

.lightbox-container {
    position: relative;
    width: 90%;
    height: 90%;
    max-width: 1200px;
    max-height: 800px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000; /* ensure container sits above overlay */
}

/* Close Button - Override Elementor styles */
.gallery-lightbox .lightbox-close {
    position: absolute !important;
    top: 20px !important;
    right: 20px !important;
    z-index: 10001 !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    width: 50px !important;
    height: 50px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: var(--e-global-color-aa5884c) !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    backdrop-filter: none !important;
    font-family: inherit !important;
    font-size: inherit !important;
    font-weight: inherit !important;
    text-transform: none !important;
}

.gallery-lightbox .lightbox-close:hover {
    background: transparent !important;
    color: #8B4513 !important;
    transform: scale(1.2) !important;
}

/* Navigation Arrows - Override Elementor styles */
.gallery-lightbox .lightbox-nav {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 10001 !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    width: 60px !important;
    height: 60px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: var(--e-global-color-aa5884c) !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    font-family: inherit !important;
    font-size: inherit !important;
    font-weight: inherit !important;
    text-transform: none !important;
}

.gallery-lightbox .lightbox-nav:hover {
    color: #8B4513 !important;
    background: transparent !important;
    transform: translateY(-50%) scale(1.2) !important;
}

.gallery-lightbox .lightbox-nav-prev {
    left: 20px !important;
}

.gallery-lightbox .lightbox-nav-next {
    right: 20px !important;
}

/* Image Container */
.lightbox-image-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.lightbox-image-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
    cursor: zoom-in;
    user-select: none;
    -webkit-user-drag: none;
}

.lightbox-image-container img.zoomed {
    cursor: grab;
}

.lightbox-image-container img.dragging {
    cursor: grabbing;
}

/* Image Counter */
.lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10001;
    background: rgba(0, 0, 0, 0.7);
    color: var(--e-global-color-aa5884c);
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 16px;
    font-family: 'Inter', sans-serif;
    backdrop-filter: blur(10px);
}

/* Zoom Controls */
.lightbox-zoom-controls {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 10001;
    display: flex;
    gap: 10px;
}

.gallery-lightbox .lightbox-zoom-controls button {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    width: 45px !important;
    height: 45px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: var(--e-global-color-aa5884c) !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    backdrop-filter: none !important;
    font-family: inherit !important;
    font-size: inherit !important;
    font-weight: inherit !important;
    text-transform: none !important;
}

.gallery-lightbox .lightbox-zoom-controls button:hover {
    background: transparent !important;
    color: #8B4513 !important;
    transform: scale(1.2) !important;
}

/* Responsive Lightbox */

/* ============================================
   PROPERTY OVERVIEW CARDS
   ============================================ */

.property-overview-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.overview-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 30px 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    min-height: 200px;
}

.card-icon {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border-radius: 12px;
    color: var(--e-global-color-primary);
    font-size: 40px;
}

.card-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--e-global-color-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
}

.card-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--e-global-color-primary);
    margin: 0;
}

/* Property Documents */
.property-documents-section {
    padding: 50px 0 0 0;
    background: var(--e-global-color-aa5884c);
    color: var(--e-global-color-primary);
}
.property-documents-section h2 {
    font-family: var(--e-global-typography-primary-font-family), Sans-serif;
    font-size: var(--e-global-typography-primary-font-size);
    font-weight: var(--e-global-typography-primary-font-weight);
    text-transform: var(--e-global-typography-primary-text-transform);
    color: var(--e-global-color-primary);
}
.property-documents-section .section-subtitle {
    color: #555;
    margin-bottom: 30px;
    font-family: 'Inter', sans-serif;
}

.documents-grid {
    display: grid;
    gap: 20px;
    margin-top: 30px;
}

/* Documents grid responsive sizing */
.documents-grid {
    grid-template-columns: repeat(4, 1fr);
}

/* Desktop: 4 columns */
@media (min-width: 1200px) {
    .documents-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Tablet: 3 columns */
@media (max-width: 1199px) and (min-width: 768px) {
    .documents-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Mobile: 1 column */
@media (max-width: 767px) {
    .documents-grid {
        grid-template-columns: 1fr;
    }
    
    .document-card {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .document-actions {
        justify-content: center;
    }
}

.document-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.document-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.document-icon {
    width: 60px;
    height: 60px;
    background: #e74c3c;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    flex-shrink: 0;
}

.document-content {
    flex: 1;
}

.document-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--e-global-color-primary);
    margin: 0 0 15px 0;
    font-family: var(--e-global-typography-primary-font-family);
}

.document-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-view-pdf,
.btn-download-pdf {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
}

.btn-view-pdf {
    background: var(--e-global-color-secondary);
    color: var(--e-global-color-aa5884c);
}

.btn-view-pdf:hover {
    color: var(--e-global-color-aa5884c);
}

.btn-download-pdf {
    background: #27ae60;
    color: var(--e-global-color-aa5884c);
}

.btn-download-pdf:hover {
    background: #229954;
}

/* Mobile: 1 column */
@media (max-width: 767px) {
    .documents-grid {
        grid-template-columns: 1fr;
    }
    
    .document-card {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .document-actions {
        justify-content: center;
    }
}

/* Flipbook Modal Styles - Same as pdf-bento-grid */
.flipbook-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 999999 !important;
    justify-content: center;
    align-items: center;
}

.flipbook-modal-content {
    background: white;
    border-radius: 8px;
    width: 90%;
    max-width: 1200px;
    height: 90%;
    max-height: 900px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.flipbook-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.flipbook-modal-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0;
    font-family: var(--e-global-typography-primary-font-family), Sans-serif;
}

.flipbook-download-btn {
    background-color: unset !important;
    font-family: var(--e-global-typography-primary-font-family), Sans-serif !important;
    color: var(--e-global-color-primary) !important;
    border-radius: 25px 25px 25px 25px !important;
    border: none !important;
    width: auto !important;
    min-width: 32px !important;
    height: 32px !important;
    cursor: pointer !important;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px !important;
    gap: 6px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
}

.flipbook-download-btn:hover {
    opacity: 0.8;
}

.flipbook-modal-close {
    background-color: unset !important;
    font-family: var(--e-global-typography-primary-font-family), Sans-serif !important;
    color: var(--e-global-color-primary) !important;
    border-radius: 25px 25px 25px 25px !important;
    border: none !important;
    width: 32px !important;
    height: 32px !important;
    cursor: pointer !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.flipbook-modal-close:hover {
    opacity: 0.8;
}

.flipbook-modal-body {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    overflow: auto;
    background: #f8f9fa;
}

.dflip-wrapper {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.flipbook-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-size: 16px;
    color: #666;
}

.flipbook-error {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-size: 16px;
    color: #d9534f;
}

/* Dots di navigazione per sub-properties slider - dimensioni gestite via JavaScript */
/* Reset completo per button dots - massima priorità */
body .sub-properties-slider-wrapper .sub-properties-slider-dot,
body .properties-grid-wrapper-sin-app .related-properties-slider-dot {
	all: unset !important; /* Reset completo di tutti gli stili */
	box-sizing: border-box !important;
	display: block !important;
	flex-shrink: 0 !important;
	cursor: pointer !important;
	border: none !important;
	outline: none !important;
	padding: 0 !important;
	margin: 0 !important;
	background: transparent !important;
	transition: all 0.3s ease !important;
}

/* Dimensioni specifiche per dots */
body .sub-properties-slider-wrapper .sub-properties-slider-dot,
body .properties-grid-wrapper-sin-app .related-properties-slider-dot {
	width: 10px !important;
	height: 10px !important;
	border-radius: 50% !important;
	background: rgba(0, 0, 0, 0.4) !important;
}

/* Stato attivo */
body .sub-properties-slider-wrapper .sub-properties-slider-dot.active,
body .properties-grid-wrapper-sin-app .related-properties-slider-dot.active {
	background: var(--e-global-color-primary) !important;
	width: 28px !important;
	border-radius: 5px !important;
}

/* Frecce di navigazione per properties-slider */
.properties-grid-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Container per frecce e slider */
.properties-grid-wrapper .properties-slider-container,
.sub-properties-slider-wrapper .properties-slider-container,
.properties-grid-wrapper-sin-app .properties-slider-container {
    display: flex;
    align-items: center;
    width: 100%;
}

.properties-grid-wrapper .properties-slider-nav,
.sub-properties-slider-wrapper .properties-slider-nav,
.properties-grid-wrapper-sin-app .properties-slider-nav {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    margin: 0;
    color: var(--e-global-color-primary);
    z-index: 10;
}

.properties-grid-wrapper .properties-slider-nav:hover:not(:disabled),
.sub-properties-slider-wrapper .properties-slider-nav:hover:not(:disabled),
.properties-grid-wrapper-sin-app .properties-slider-nav:hover:not(:disabled) {
    color: var(--e-global-color-secondary);
    transform: scale(1.1);
}

.properties-grid-wrapper .properties-slider-nav:disabled,
.sub-properties-slider-wrapper .properties-slider-nav:disabled,
.properties-grid-wrapper-sin-app .properties-slider-nav:disabled {
    opacity: 0.5;
    cursor: not-allowed !important;
    pointer-events: none;
}

.properties-grid-wrapper .properties-slider-nav svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
}

.properties-grid-wrapper .properties-grid.properties-slider,
.sub-properties-slider-wrapper .properties-grid-sin-app,
.properties-grid-wrapper-sin-app .properties-grid-sin-app {
    flex: 1;
    min-width: 0; /* Permette al flex di ridurre la larghezza */
}

/* Slider senza freccette - stessa larghezza degli slider con frecce (senza calcolare le frecce) */
/* Le frecce occupano: 50px (frecce) + 15px (gap) per lato = 130px totali */
.properties-grid-wrapper:not(:has(.properties-slider-container)) .properties-grid,
.properties-grid-wrapper:has(.properties-slider-nav[style*="display: none"]) .properties-grid {
    max-width: calc(100% - 100px);
    margin: 0 auto;
}

/* Nascondi dots per slider senza freccette */
.properties-grid-wrapper:not(:has(.properties-slider-container)) .city-properties-slider-dots,
.properties-grid-wrapper:has(.properties-slider-nav[style*="display: none"]) .city-properties-slider-dots {
    display: none !important;
}

/* Margin bottom per tutti gli slider (escluso last-child) - dots rimossi */
.properties-grid-wrapper .properties-grid.properties-slider {
    margin-bottom: 40px !important;
}

/* Dots di navigazione - NASCOSTI (sostituiti da freccette) */
.properties-grid-wrapper .city-properties-slider-dots,
.sub-properties-slider-wrapper .sub-properties-slider-dots,
.properties-grid-wrapper-sin-app .related-properties-slider-dots {
    display: none !important;
}

.properties-grid-wrapper .city-properties-slider-dots .city-properties-slider-dot {
	all: unset;
	width: 10px !important;
	height: 10px !important;
	border-radius: 50% !important;
	background: rgba(0, 0, 0, 0.4) !important;
	transition: all 0.3s ease !important;
	cursor: pointer !important;
	border: none !important;
	display: block !important;
	flex-shrink: 0 !important;
	min-width: 10px !important;
	min-height: 10px !important;
	max-width: 10px !important;
	max-height: 10px !important;
}

.properties-grid-wrapper .city-properties-slider-dots .city-properties-slider-dot.active {
	all: unset;
	background: var(--e-global-color-primary) !important;
	width: 28px !important;
	border-radius: 5px !important;
	min-width: 28px !important;
	min-height: 10px !important;
	max-width: 28px !important;
	max-height: 10px !important;
	transition: all 0.3s ease !important;
	cursor: pointer !important;
	border: none !important;
	display: block !important;
	flex-shrink: 0 !important;
}

/* Override delle regole responsive.css che impongono min 44px per i button */
@media (max-width: 767px) {
	.properties-grid-wrapper .city-properties-slider-dots .city-properties-slider-dot {
		all: unset;
		width: 10px !important;
		height: 10px !important;
		border-radius: 50% !important;
		background: rgba(0, 0, 0, 0.4) !important;
		transition: all 0.3s ease !important;
		cursor: pointer !important;
		border: none !important;
		display: block !important;
		flex-shrink: 0 !important;
		min-width: 10px !important;
		min-height: 10px !important;
		max-width: 10px !important;
		max-height: 10px !important;
	}
	.properties-grid-wrapper .city-properties-slider-dots .city-properties-slider-dot.active {
		all: unset;
		background: var(--e-global-color-primary) !important;
		width: 28px !important;
		border-radius: 5px !important;
		min-width: 28px !important;
		min-height: 10px !important;
		max-width: 28px !important;
		max-height: 10px !important;
		transition: all 0.3s ease !important;
		cursor: pointer !important;
		border: none !important;
		display: block !important;
		flex-shrink: 0 !important;
	}
}

/* Override delle regole responsive.css che impongono min 44px per i button */
@media (max-width: 767px) {
	.properties-grid-wrapper .city-properties-slider-dot {
		min-width: 10px !important;
		min-height: 10px !important;
	}
	.properties-grid-wrapper .city-properties-slider-dot.active {
		min-width: 28px !important;
		min-height: 10px !important;
	}
}


/* ========================================
   BLOCCO PREZZO MOBILE PRIMA DEI DETTAGLI
   ======================================== */

/* Mostra il blocco prezzo prima dei dettagli solo in mobile quando si stacca dalla hero */
@media (max-width: 768px) {
    .hero-right.mobile-between-hero-details {
        display: flex !important;
        flex-direction: column;
        gap: 15px;
        margin-bottom: 30px;
        width: 100% !important;
    }
}

/* Nasconde il blocco prezzo nella hero da 769px in su (tablet/desktop) */
@media (max-width: 768px) {
    .hero-right {
        display: none !important;
    }
}
