/* ========================
   Helpers 
   ======================== */
:root {
    --main-color: #ff7f00;
}

.heading-1 {
    font-size: 40px;
}

.heading-2 {
    font-size: 28px;
}
.heading-3 {
    font-size: 26px;
}

.text-main-color {
    color: var(--main-color);

}
.text-danger {
    color: #dc3545 !important;
}

.text-success {
    color: #28a745 !important;
}
.d-none{
    display: none !important;
}
.loader {
    width: 50px;
    padding: 8px;
    aspect-ratio: 1;
    border-radius: 50%;
    margin: 0 auto;
    margin-top: 20%;
    background: var(--main-color);
    --_m:
        conic-gradient(#0000 10%, #000),
        linear-gradient(#000 0 0) content-box;
    -webkit-mask: var(--_m);
    mask: var(--_m);
    -webkit-mask-composite: source-out;
    mask-composite: subtract;
    animation: l3 1s infinite linear;
}

@keyframes l3 {
    to {
        transform: rotate(1turn)
    }
}



/* ========================
   Modulo di ricerca
   ======================== */
.wp-galileo-search-form {
    display: flex;
    flex-direction: column;
    border-radius: 20px;
    max-width: 650px;
    margin: 0 auto;
}

.wp-galileo-search-form .form-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.wp-galileo-search-form .form-row:last-child .form-group:last-child {
    display: flex;
    align-items: flex-end;
}

.wp-galileo-search-form .form-group {
    flex: 1;
    margin-right: 10px;
}

.wp-galileo-search-form .form-group:last-child {
    margin-right: 0;
}

.wp-galileo-search-form label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 5px;
    color: #333;
}

.wp-galileo-search-form select,
.wp-galileo-search-form input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

.wp-galileo-search-form input::placeholder {
    color: #313131!important;
    opacity: 1!important;
    font-weight: 500!important;
}

body[data-form-submit=regular] .container-wrap button.wp-galileo-search-button[type="submit"],
button.wp-galileo-search-button[type="submit"] {
    background-color: var(--main-color) !important;
    color: #fff;
    border: none;
    padding: 12px 20px !important;
    border-radius: 5px !important;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    width: 100%;
}

button.wp-galileo-search-button[type="submit"]:hover {
    background-color: var(--main-color) !important;
}

.wp-galileo-property-search {
    border-radius: 20px;
    color: #fff;
}

.wp-galileo-search-form .search-container {
    display: flex;
    flex-wrap: wrap;
    border: 2px solid #313131;
    border-radius: 20px;
    overflow: hidden;
}

.wp-galileo-search-form .search-container > .search-field:nth-child(1),
.wp-galileo-search-form .search-container > .search-field:nth-child(2) {
    flex: 1;
    flex-basis: calc(50%);
    max-width: calc(50%);
}
.wp-galileo-search-form .search-container .search-field{
    width: 100%;
}

/* Seconda riga con i campi rimanenti */
.wp-galileo-search-form .search-container > .search-field:nth-child(n+3):not(.search-button) {
    flex: 1;
    flex-basis: calc(25% - 8px);
}

.wp-galileo-search-form .select2-selection,
.wp-galileo-search-form input[type="number"],
.wp-galileo-search-form input[type="text"] {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 6px 15px;
    height: 65px;
    border: 2px solid #313131;
    background-color: #fff;
    font-weight: 500;
    color: #313131;
    font-size: 16px!important;
    appearance: none;
    border-radius: 0;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.wp-galileo-search-form .select2-search__field::placeholder,
.wp-galileo-search-form input[type="number"]::placeholder,
.wp-galileo-search-form input[type="text"]::placeholder {
    color: #313131!important;
    font-weight: 500!important;
}

.wp-galileo-search-form .search-container > .search-field:nth-child(1) .select2-selection,
.wp-galileo-search-form .search-container > .search-field:nth-child(1) input {
    border-left: none;
    border-top: none;
    border-right: none;
}

.wp-galileo-search-form .search-container > .search-field:nth-child(2) .select2-selection,
.wp-galileo-search-form .search-container > .search-field:nth-child(2) input {
    border-right: none;
    border-top: none;
}
.wp-galileo-search-form .search-container > .search-field.minimal .select2-selection,
.wp-galileo-search-form .search-container > .search-field.minimal .select2-selection input{
    border-bottom: none;
}

.wp-galileo-search-form .search-container > .search-field:nth-child(n+3):not(.search-button) .select2-selection,
.wp-galileo-search-form .search-container > .search-field:nth-child(n+3):not(.search-button) input {
    border-bottom: none;
    border-top: none;
}

.wp-galileo-search-form .search-container > .search-field:nth-child(3) .select2-selection,
.wp-galileo-search-form .search-container > .search-field:nth-child(3) input {
    border-left: none;
    border-top: 2px solid #313131;
}
.wp-galileo-search-form .search-container > .search-field:nth-child(4) .select2-selection,
.wp-galileo-search-form .search-container > .search-field:nth-child(4) input {
    border-left: none;
    border-right: none;
}

.wp-galileo-search-form .search-container > .search-field:nth-child(6) .select2-selection,
.wp-galileo-search-form .search-container > .search-field:nth-child(6) input {
    border-right: none;
    border-left: none;
}

@media (max-width: 991px) {
    .wp-galileo-search-form .search-container > .search-field:nth-child(n+3):not(.search-button) {
        flex-basis: 100%;
        max-width: 100%;
    }
    
    .wp-galileo-search-form .search-container > .search-field:not(:last-child){
        border-bottom: 2px solid #313131 !important;
    }
    .wp-galileo-search-form .search-container > .search-field .select2-selection,
    .wp-galileo-search-form .search-container > .search-field input {
        border: none !important;
    }
}


.wp-galileo-search-form .select2-selection {
    background-image: none;
}

.wp-galileo-search-form .select2-selection:focus,
.wp-galileo-search-form input:focus {
    outline: none;
    border-color: #313131!important;
    box-shadow: none!important;
}
.wp-galileo-search-form .select2-selection__rendered{
    margin: 0!important;
    padding: 0!important;
}
.wp-galileo-search-form .search-button {
    align-self: flex-end;
    margin-top: 20px;
}
.wp-galileo-search-button {
    background-color: #f47d31;
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 12px 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
    text-transform: uppercase;
    width: auto;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.wp-galileo-search-button:hover {
    background-color: #e06a20;
}

/* Responsive */
@media (max-width: 991px) {
    .wp-galileo-search-form .search-container > .search-field:nth-child(1),
    .wp-galileo-search-form .search-container > .search-field:nth-child(2),
    .wp-galileo-search-form .search-container > .search-field:nth-child(n+3):not(.search-button) {
        flex-basis: 100%;
        max-width: 100%;
        margin-top: 10px;
    }
    
    .wp-galileo-search-form .search-field:first-child {
        margin-top: 0;
    }
}

/* ========================
   Lista immobili
   ======================== */
.wp-galileo{
    padding-top: 50px;
    clear: both;
}

.wp-galileo-no-properties {
    text-align: center;
    margin: 50px 0;
}
.wp-galileo-no-properties img{
    max-width: 35%!important
}
.wp-galileo-no-properties-title {
    font-size: 40px;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 0;
}
.wp-galileo-no-properties-desc {
    font-size: 25px;
    font-weight: 400;
    padding-bottom: 0;
}
.wp-galileo-property-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin: 0 auto;
    max-width: 1200px;
    clear: both;
}

.property-card {
    display: flex;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #313131;
    margin-bottom: 20px;
    background: white;
    border-radius: 20px;
    transition: transform 0.2s ease-in-out;
}
.property-card:hover {
    transform: translateY(-5px);
}

.property-header{
    padding: 20px;
}
.property-image-section {
    border-right: 2px solid #313131;
    flex: 0 0 40%;
    position: relative;
    overflow: hidden;
}

.property-image-section img,.property-image {
    width: 100%!important;
    height: 100%!important;
    object-fit: cover;
}
.property-info-icons{
    display: flex;
    align-items: center;
    gap: 25px;
}
.link-tour360 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    color: #fff;
    padding: 10px 15px;
    border: 1px solid;
    border-radius: 5px;
}
.link-tour360 svg{
    width: 50px;
}
@media (max-width: 600px) {
    .link-tour360 {
        padding: 7px 10px;
    }
    .link-tour360 span{
        display: none;
    }
}
.video-360-badge{
    position: absolute;
    top: 15px;
    right: 15px;
    width: 65px;
}
.property-lightbox-body .video-360-badge{
    top: 25px;
    z-index: 100;
}
.video-360-badge svg *{
    fill: #fff;
}
.property-info-section {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.property-type-tags {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 10px;
    margin-top: 5px;
}

.type-tag {
    display: flex;
    align-items: center;
    gap: 12px;
}

.type-tag i.primary{
    font-size: 16px;
    top: 0!important;
}

.type-tag i.primary {
    color: var(--main-color, blue);
}

.status-tag i.secondary {
    color: var(--secondary-color, #0070f3);
}

.property-features-grid,ul.lightbox-property-features {
    display: grid!important;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    border-top: 2px solid #313131;
    border-bottom: 2px solid #313131;
    padding: 20px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 7px;
}

.feature-item i {
    color: #666;
}

.property-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding: 20px;
}
.property-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
}

.action-btn.primary-btn {
    background: var(--main-color, blue);
    color: white;
    gap: 8px;
    text-decoration: none;
}
.property-features-grid .feature-item span{
    font-size: 13px;
}
/* Responsive */
@media (max-width: 991px) {
    .property-card,.similar-list .property-card {
        flex-direction: column;
    }
    
    .property-image-section,.similar-list .property-card .property-image-section {
        flex: 0 0 200px;
        border-right: none;
    }
    
    .property-features-grid,.lightbox-property-features,.similar-list .property-features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 991px) and (max-width:1100px) {
    .property-features-grid .feature-item span{
        font-size: 12px;
    }
}
.property-link {
    color: #fff;
}

.badge-container {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.badge {
    display: inline;
    background: var(--main-color);
    color: #fff;
    padding: 5px 10px;
    font-size: 11px;
    line-height: 1;
    border-radius: 5px;
    font-weight: 600;
    white-space: nowrap;
}

.badge.highlight {
    background: var(--main-color);
}

.badge.secondary {
    background: #007bff;
}

/* Sezione dettagli */
.property-details {
    flex: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.property-title {
    font-size: 22px!important;
    line-height: 1.3!important;
    font-weight: 700!important;
    margin: 0;
    padding-bottom: 0;
}
.property-title p{
    display: flex;
    align-items: center;
    padding-bottom: 0;
}
.property-title svg{
    margin-right: 5px;
}
.property-title p span{
    font-size: 16px;
    font-weight: 500;
    padding-bottom: 0;
}

.property-location {
    font-size: 12px;
    color: var(--main-color);
    margin: 0;
    padding-bottom: 0;
}

.property-features {
    list-style: none;
    display: flex;
    gap: 10px;
    padding: 0;
    margin: 3px 0;
    font-size: 14px;
    color: #1e1e1e;
}

.property-features li {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 400;
}

.property-features i {
    font-size: 16px;
    color: #007bff;
}

.property-type {
    font-size: 12px;
    color: #1e1e1e;
    margin: 0;
    padding-bottom: 0;
    text-transform: capitalize;
}

.property-energy {
    font-size: 12px;
    color: #1e1e1e;
    margin: 0;
    padding-bottom: 0;
}

/* Prezzo e bottone */
.property-price {
    font-size: 18px;
    font-weight: 600;
}

.property-price-button {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    font-size: 13px;
}

.property-price-button .button {
    color: #fff;
    background-color: var(--main-color);
    border-radius: 8px;
    padding: 5px 10px;
    line-height: 1.2;
    text-align: center;
    font-weight: 600;
    transition: opacity 0.3s ease, transform 0.3s ease;
    margin-bottom: 5px;
    appearance: none;
    border: none;
    cursor: pointer;
}

.property-price-button .button:hover {
    opacity: .85;
    transform: translateY(-3px);
}

#load-more {
    margin-top: 50px;
    background-color: var(--main-color);
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    display: inline-block;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#load-more:hover {
    opacity: .85;
    transform: translateY(-3px);
}

.wp-galileo-sort-options {
    display: flex;
    align-items: center;
    max-width: 330px;
    margin-left: auto;
    margin-bottom: 30px;
    margin-top: 30px;
}

.wp-galileo-sort-options select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background: transparent;
    outline: none;
    padding: 0;
}
.wpg-custom-select {
    border-radius: 20px;
    padding: 10px 15px;
    background-color: #F3F3F3;
    position: relative;
    font-size: 16px;
    width: 100%;
}
.wpg-custom-select svg{
    position: absolute;
    right: 15px;
    top: 50%;
    bottom: 0;
    transform: translateY(-50%) scale(.7);
}

.wp-galileo-sort-options label {
    font-size: 12px !important;
    white-space: nowrap;
    margin-right: 10px;
}

/* ========================
   Intestazione immobile
   ======================== */
.wp-galileo .breadcrumb {
    font-size: 11px;
}

.wp-galileo .breadcrumb a {
    color: var(--main-color);
}

.wp-galileo .breadcrumb-separator {
    margin: 0 5px;
}

.property-title {
    display: flex;
    justify-content: space-between;
    flex-direction: column;
}
.property-title-desk{
    display: flex;
}
.property-title-mobile{
    display: none;
}
.property-title h1 {
    font-weight: 600;
    margin-bottom: 0;
}
.wp-galileo-property-single{
    display: flex;
    gap: 50px;
}
.wp-galileo-property-single-col:nth-child(1){
    flex: 1.5;
}
.wp-galileo-property-single-col:nth-child(2){
    flex: 1;
}
.wp-galileo-property-single .property-title h1 {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    width: 80%;
    line-height: 1.3;
    margin-bottom: 10px;
    font-weight: 700;
    text-transform: uppercase;
}
.property-reference {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
    background-color: #F3F3F3;
    border-radius: 20px;
    padding: 10px 30px;
    font-size: 15px;
    width: 100%;
    margin-bottom: 30px;
}
.property-reference-actions{
    display: flex;
    align-items: center;
    gap: 15px;
}
.reference-label {
    font-weight: 500;
    margin-right: 4px;
}

#property-ref-code {
    font-weight: 600;
    color: #313131;
    letter-spacing: 0.5px;
}

.copy-ref-button, .whatsapp-share-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    margin-left: 8px;
    color: #666;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
    gap: 10px;
}

.copy-ref-button:hover, .whatsapp-share-button:hover {
    background-color: rgba(0,0,0,0.05);
    color: #333;
}

.copy-ref-button .tooltip {
    position: absolute;
    background: #333;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s;
    pointer-events: none;
}

.copy-ref-button:hover .tooltip {
    opacity: 1;
    visibility: visible;
}

.copy-ref-button.copied .tooltip {
    background: #4caf50;
}

@media(max-width:991px){
    .property-title-desk{
        display: none;
    }
    .property-title-mobile{
        display: flex;
    }
    .wp-galileo-property-single-col:nth-child(1),
    .wp-galileo-property-single-col:nth-child(2){
        width: 100%;
        flex: 1;
    }
}
@media(max-width:600px){
    .property-reference {
        flex-direction: column;
        align-items: flex-start;
    }
    .property-reference button{
        margin-left: 0!important;
        padding-left: 0!important;
    }
}
/* ========================
   Galleria immobile
   ======================== */
.property-gallery {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 20px;
    border-radius: 20px;
    overflow: hidden;
}

.gallery-top {
    position: relative;
    width: 100%;
    height: 400px;
}

.gallery-top a {
    display: block;
    height: 100%;
}

.property-gallery img {
    width: 100%!important;
    height: 100% !important;
    object-fit: cover;
}

.gallery-bottom {
    display: flex;
    flex-wrap: nowrap;
}

.gallery-bottom a {
    display: flex;
    position: relative;
}

.gallery-bottom a:last-child::after {
    display: flex;
    content: "Guarda tutte le foto";
    text-decoration: underline;
    color: #fff;
    justify-content: center;
    align-items: center;
    position: absolute;
    font-size: 16px;
    font-weight: 600;
    z-index: 1;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding-top: 60px;
    background: rgba(0, 0, 0, 0.45);
}
.gallery-bottom a:last-child::before {
    content: '';
    background: url('data:image/svg+xml;charset=UTF-8,<svg width="54" height="51" viewBox="0 0 54 51" fill="none" xmlns="http://www.w3.org/2000/svg"> <path fill-rule="evenodd" clip-rule="evenodd" d="M5.12342 0L37.2302 0C40.0598 0 42.3536 2.29383 42.3536 5.12342V37.2302C42.3536 40.0598 40.0598 42.3536 37.2302 42.3536H5.12342C2.29383 42.3536 0 40.0598 0 37.2302L0 5.12342C0 2.29383 2.29383 0 5.12342 0ZM5.12342 3.41561C4.18022 3.41561 3.41561 4.18022 3.41561 5.12342V37.2302C3.41561 38.1734 4.18022 38.938 5.12342 38.938H37.2302C38.1734 38.938 38.938 38.1734 38.938 37.2302V5.12342C38.938 4.18022 38.1734 3.41561 37.2302 3.41561H5.12342Z" fill="white"/> <path fill-rule="evenodd" clip-rule="evenodd" d="M49.1297 15.1745L40.812 13.4561L41.503 10.1111L49.8207 11.8295C51.6488 12.2071 52.8351 13.9824 52.4846 15.8158L46.4513 47.3762C46.0971 49.229 44.308 50.4439 42.4552 50.0897L10.6296 44.0058C9.01377 43.6969 7.85479 42.2791 7.85536 40.6452L11.271 40.6464L11.271 40.6476M11.2732 40.6514L43.0965 46.7349L49.1297 15.1745M11.2708 40.6509C11.2708 40.6509 11.2709 40.6509 11.271 40.651L11.2708 40.6509Z" fill="white"/> <path fill-rule="evenodd" clip-rule="evenodd" d="M31.4234 18.0927V29.2035C31.4234 31.6558 29.4354 33.6438 26.9831 33.6438H15.37C12.9177 33.6438 10.9297 31.6558 10.9297 29.2035V18.0927C10.9297 16.7198 11.5648 15.4241 12.65 14.583L18.4565 10.083C20.0576 8.84214 22.2955 8.84214 23.8965 10.083L29.7031 14.583C30.7883 15.4241 31.4234 16.7198 31.4234 18.0927ZM14.7423 17.2828C14.4919 17.4769 14.3453 17.7759 14.3453 18.0927V29.2035C14.3453 29.7695 14.8041 30.2282 15.37 30.2282H26.9831C27.549 30.2282 28.0078 29.7695 28.0078 29.2035V18.0927C28.0078 17.7759 27.8612 17.4769 27.6108 17.2828L21.8042 12.7827C21.4347 12.4964 20.9183 12.4964 20.5488 12.7827L14.7423 17.2828Z" fill="white"/> </svg> ') no-repeat center center;
    background-size: contain;
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    font-size: 16px;
    font-weight: 600;
    height: 50px;
    width: 50px;
    z-index: 2;
    top: 45%;
    left: 50%;
    right: 0;
    bottom: 0;
    transform: translate(-50%,-45%);
}

@media(min-width:991px) and (max-width:1220px){
    .gallery-top {
        height: 280px;
    }
}
@media(max-width:991px){
    .wp-galileo-property-single{
        flex-wrap: wrap;
        justify-content: center;
        flex-direction: column;
    }
    .gallery-top {
        height: 220px;
    }
}
/* ========================
   Info, descrizione e form di contatto
   ======================== */
   #energy-info-heading,#map-heading{
    display: flex;
    align-items: center;
   }
   #energy-info-heading svg,#map-heading svg{
    margin-right: 6px;
   }
.property-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    margin-bottom: 60px;
}

.property-info span {
    margin: 0 5px;
}

.property-info p {
    font-size: 35px;
    padding-bottom: 0;
    font-weight: 600;
}

.property-info-highlight {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px 10px;
    padding: 20px 0;
}

.energy-info-container {
    display: flex;
    flex-wrap: wrap;
}

.energy-info-item:nth-child(even) {
    border-left: 0;
}

.energy-info-item {
    width: 50%;
    padding: 6px;
    font-size: 15px;
    line-height: 1.3;
}

.energy-info-item .text-success {
    color: inherit !important;
}

.energy-info-container .energy-info-value {
    text-transform: capitalize;
    margin-left: 3px;
}

.energy-info-container .energy-info-value i {
    top: 0;
}

.property-info-highlight .info-item {
    display: flex;
    flex: 1 0 30%;
    max-width: 30%;
    gap: 5px;
    align-items: center;
    text-align: center;
    position: relative;
    padding: 0 10px;
}
.property-info-highlight .info-item svg{
    margin-right: 7px;
}
.property-info-highlight .info-item {
    color: #1e1e1e;
}

.property-info-highlight .info-label,.property-info-highlight .info-value {
    font-size: 16px;
    color: #1e1e1e;
}

.property-details-container {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-top: 30px;
}

.property-info-description {
    flex: 2;
}

.property-info-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 0;
    margin: 0 0 20px 0;
}

.property-info-list li {
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 5px;
    color: #333;
}

.property-description h2 {
    font-size: 22px;
    margin-bottom: 10px;
    font-weight: 700;
}

.property-description p {
    line-height: 1.6;
    color: #1e1e1e;
}

.property-contact-form {
    background: #F3F3F3;
    padding: 20px;
    border-radius: 20px;
}
.contact-form-header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}
.contact-form-header .heading-2{
    text-transform: uppercase;
    font-weight: 700;
    text-align: center;
    line-height: 1.2;
}
.agent-info{
    display: flex;
    gap: 100px;
    background: #E6E6E6;
    padding: 30px;
    justify-content: center;
    width: 100%;
    border-radius: 20px;
    margin: 20px auto;
    font-size: 14px;
}
.agent-info-contacts div{
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    gap: 10px;
}
.agent-info-contacts div:last-child{
    margin-bottom: 0;
}
.agent-info-contacts p{
    padding-bottom: 0;
}
.agent-info-contacts a{
    color: #1e1e1e;
}
.agent-role{
    padding-bottom: 0;
}
.contact-form .form-group {
    margin-bottom: 15px;
}
.contact-form input,.contact-form textarea{
    background-color: #fff;
}
.contact-form input:not([type="checkbox"]),
.contact-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #313131;
    border-radius: 5px;
}

.contact-form textarea {
    resize: none;
}

.contact-form .button {
    width: 100%;
    background: var(--main-color) !important;
    color: #fff;
    font-weight: 700;
    padding: 12px;
    border-radius: 5px;
    text-align: center;
    border: none;
    cursor: pointer;
}
.contact-form .form-group-two-columns{
    display: flex;
    flex-wrap: nowrap;
    gap: 30px;
}
.contact-form .button:hover {
    background: var(--main-color);
}

/* Contenitore principale della barra di ricerca */
.wp-galileo-filter,
.wp-galileo-filter option::first-letter {
    text-transform: capitalize !important;
}

.wp-galileo-property-search {
    max-width: 1100px;
    margin: 0 auto 20px;
}

/* Layout del form */
.wp-galileo-search-form .form-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.wp-galileo-search-form .form-group {
    flex: 1;
}

.wp-galileo-search-form .form-group input,
.wp-galileo-search-form .form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #aaa;
    border-radius: 5px;
    font-size: 14px;
    color: #aaa;
    background-color: #fff !important;
}

.wp-galileo-search-form .wp-galileo-search-button {
    background-color: var(--main-color);
    color: #fff;
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
}

.wp-galileo-search-form .wp-galileo-search-button:hover {
    background-color: var(--main-color);
}

.wp-galileo-property-search .wp-galileo-search-form {
    max-width: 100%;
}
@media(max-width:991px){
    .property-info-highlight .info-item {
        flex: 1 0 48%;
        max-width: 48%;
    }
    .agent-info{
        flex-direction: column;
        gap: 10px;

    }
}
/* Stile generale del lightbox */

#property-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease-in-out;
}

#property-lightbox.active {
    opacity: 1;
    pointer-events: all;
}

.property-lightbox-content {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    display: flex;
    max-width: 1200px;
    /* Limita la larghezza totale */
    width: 90%;
    height: 60%;
    /* Limita l'altezza */
    gap: 20px;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    /* Evita che gli elementi escano dal contenitore */
    position: relative;
}

.property-lightbox-close {
    color: var(--main-color) !important;
    z-index: 999999 !important;
}

.property-lightbox-body {
    max-width: 100%;
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Galleria a sinistra */
.lightbox-gallery-slider {
    display: flex;
    align-items: center;
    flex: 2;
    position: relative;
    height: 100%;
    /* Adatta l'altezza alla dimensione del lightbox */
    overflow: hidden;
    /* Evita che le immagini escano dal contenitore */
}

/* Wrapper delle slide */
.lightbox-swiper-wrapper {
    height: 100%;
    /* Garantisce che le slide siano contenute */
    display: flex;
    align-items: center;
}

/* Slide delle immagini */
.lightbox-swiper-slide img {
    width: 100%;
    /* Adatta la larghezza al contenitore */
    height: auto;
    /* Mantiene le proporzioni */
    max-height: 100%;
    /* Evita che le immagini superino l'altezza del contenitore */
    border-radius: 8px;
    object-fit: contain;
    /* Evita il ritaglio delle immagini */
}

:root {
    --swiper-navigation-size: 20px;
}

/* Pulsanti di navigazione */
.lightbox-swiper-button-next,
.lightbox-swiper-button-prev {
    color: #fff;
    font-size: 14px;
    top: 50%;
    /* Posiziona al centro verticale */
    transform: translateY(-50%);
}


/* Dettagli a destra */
.property-lightbox-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow-y: auto;
    padding-right: 40px;
}

.lightbox-property-title {
    font-size: 22px!important;
    font-weight: 700!important;
    margin-bottom: 10px!important;
    color: #333!important;
    line-height: 1.3!important;
}

.lightbox-property-location {
    font-size: 13px!important;
    color: #666!important;
    margin-bottom: 10px!important;
    padding-bottom: 0!important;
}

.lightbox-property-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--main-color)!important;
    margin-bottom: 20px;
    padding-bottom: 0;
}

.lightbox-property-description {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    /* number of lines to show */
    line-clamp: 4;
    -webkit-box-orient: vertical;
    height: 105px;
    padding-bottom: 0;
}

.lightbox-property-features {
    list-style: none;
    padding-left: 0;
    padding-top: 0;
    margin: 10px 0;
    border: none;
}

.lightbox-property-features li {
    font-size: 12px;
    margin-bottom: 0;
    color: #333;
}

/* Pulsante per dettagli */
.lightbox-property-detail-button {
    background-color: var(--main-color);
    color: #fff !important;
    padding: 12px 18px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    text-align: center;
    font-weight: 600;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.lightbox-property-detail-button:hover {
    opacity: .85;
    transform: translateY(-3px);
}

/* Pulsante di chiusura */
.property-lightbox-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #fff;
    z-index: 10000;
}

/* Scroll interno per dettagli */
.property-lightbox-details::-webkit-scrollbar {
    width: 5px;
}

.property-lightbox-details::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 5px;
}

.property-lightbox-details::-webkit-scrollbar-thumb:hover {
    background: #bbb;
}

/* Thumbnails */
.gallery-hidden{
    display: none;
}
.lg-thumb-item img{
    width: 100%;
    height: 60px;
}
.lg-sub-html {
    display: none;
}

.lg-thumb {
    flex-direction: row !important; /* Forza la disposizione in orizzontale */
    overflow-x: auto; /* Abilita lo scorrimento orizzontale */
    overflow-y: hidden;
    white-space: nowrap;
}

.lg-thumb-item.active {
    border: 2px solid #fff;
}
.lg-thumb-item {
    display: inline-block !important;
    width: 80px !important; /* Imposta una larghezza corretta */
    height: 60px!important;
    margin-right: 5px !important; /* Spazio tra le thumbnails */
    overflow: hidden;
    cursor: pointer;
}
.lg-thumb-outer{
    display: flex;
    justify-content: center;
}
.lg-outer .lg-thumb {
    width: 100%;
    height: auto !important;
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 10px 0;
    background: rgba(0, 0, 0, 0.8); /* Sfondo scuro per le thumbnails */
    display: flex;
    justify-content: center;
    align-items: center;
}
@media(max-width:991px){
    .property-lightbox-content {
        width: 100%;
        height: 75%;
        padding: 0;
    }
    .property-lightbox-body {
        flex-direction: column;
        gap: 0;
    }
    .property-lightbox-details {
        padding: 20px;
        width: 100%;
    }
    .lightbox-property-title {
        font-size: 20px;
    }
    .lightbox-property-price {
        font-size: 18px;
    }
    .lightbox-property-description {
        height: auto;
        -webkit-line-clamp: unset;
        overflow: visible;
    }
    .lightbox-gallery-slider{
        flex: 1;
        width: 100%;
    }
}
/* ========================
   Mappa
   ======================== */
.property-map {
    margin-top: 30px;
}

.property-map h2 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
}

#map {
    width: 100%;
    height: 400px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* ========================
   Immobili simili
   ======================== */
/* Contenitore principale degli immobili simili */

.similar-properties {
    margin-top: 30px;
}

.similar-properties .heading-1 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #333;
}

.similar-list {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 20px;
}

.similar-list .property-card {
    flex-direction: column;
    position: relative;
    width: calc(33% - 10px);
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease-in-out;
}

.similar-list .property-card .property-image-section{
    border-right: none;
}
.similar-list .property-card .property-type-tags {
    flex-wrap: wrap;
    gap: 10px;
}
.property-energy-info h2 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
}
.property-energy-info h2 svg{
    margin-right: 5px;
}


/* Immagine principale e badge */
.similar-card-image {
    position: relative;
    overflow: hidden;
}

.similar-card-image::after {
    position: absolute;
    display: block;
    content: "";
    background: rgba(0, 0, 0, 0.25);
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.similar-card-image img {
    width: 100%;
    height: auto;
    display: block;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.badge.energy-class {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #fff;
    color: #000;
    padding: 2px 10px;
    font-size: 10px;
    border-radius: 5px;
    font-weight: 700;
    z-index: 1;
}

.badge.evidence-class {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #1e1e1e;
    color: #fff;
    padding: 2px 10px;
    font-size: 10px;
    border-radius: 5px;
    font-weight: 700;
    z-index: 1;
}

/* Dettagli immobili */
.similar-card-details {
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: absolute;
    bottom: 0;
    color: #fff;
    z-index: 1;
    width: 100%;
}

.similar-price {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 0;
    padding-bottom: 0;
}

.similar-features {
    list-style: none;
    display: flex;
    gap: 15px;
    padding: 0;
    margin: 0;
    font-size: 14px;
}

.similar-features li {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 600;
}

.similar-features i {
    font-size: 16px;
    color: #fff;
}
/* Stili per il carousel di immobili simili su mobile */
@media(max-width:991px){
    .similar-properties{
        padding-bottom: 20px;
    }
    .similar-list .slick-list {
        padding: 0!important;
    }
    .similar-list .slick-prev,
    .similar-list .slick-next {
        z-index: 10;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        display: flex !important;
        align-items: center;
        justify-content: center;
    }
    
    .similar-list .slick-prev {
        left: 5px;
    }
    
    .similar-list .slick-next {
        right: 5px;
    }
    
    .similar-list .slick-dots {
        bottom: -40px;
    }
    
    .similar-list .slick-dots li button:before {
        font-size: 10px;
        color: var(--main-color);
    }
    
    /* Assicura che le card abbiano altezza uniforme */
    .similar-list .property-card {
        height: 100%;
        margin: 0 15px;
        max-width: 100%;
    }

    .similar-list{
        display: block;
        gap:unset;
    }
    .similar-list .property-card{
        width: auto;
    }
}
/* Azioni */
.similar-actions {
    /* position: absolute; */
    right: 15px;
    bottom: 15px;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    font-size: 16px;
    color: #fff;
}
.property-card .added-to-wishlist svg * {
    fill: var(--main-color) !important;
}

.similar-actions button,
.property-info button {
    cursor: pointer;
    appearance: none;
    background: #E8E8E8;
    border: none;
    padding: 10px !important;
    border-radius: 10px!important;
}

.similar-actions i,
.property-info i {
    cursor: pointer;
    color: #313131;
    font-size: 18px;
}
@media(max-width:1500px){
    .similar-actions {
        gap: 5px;
    }
    .similar-actions button, .property-info button {
        padding: 8px !important;
    }
    .similar-actions button svg, .property-info button svg{
        width: 13px;
        height: 16px;
    }
    .action-btn.primary-btn {
        gap: 8px;
        font-size: 12px;
        padding: 2px 8px;
    }  
    .similar-actions i, .property-info i{
        font-size: 13px;
    }  
    .action-btn.primary-btn svg {
        display: none;
    }  
}
.comparator-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    display: flex;
    justify-content: center;
}

.comparator-header {
    text-align: center;
    font-size: 24px;
    margin-bottom: 20px;
}

.comparator-table {
    display: flex;
    width: auto !important;
    border-collapse: collapse !important;
    margin-top: 20px !important;
    font-size: 14px;
    border-top: none !important;
    overflow: auto;
}

.comparator-table tbody {
    display: flex;
}

.comparator-table tbody tr {
    display: flex;
    flex-direction: column;
    border-top: 1px solid #ececec;
}

.comparator-table tbody tr:first-child {
    border-left: none;
    border-top: none;
    margin-top: 1px;
    margin-right: -1px;
    white-space: nowrap;
}

.comparator-table tbody tr td:first-child {
    min-height: 255px !important;
}

.comparator-table tbody tr:first-child td {
    border-left: 1px solid #ececec;
    min-height: 47px;
}

.comparator-table tbody tr:first-child td:first-child {
    border: none;
    background: #fff;
    border-bottom: 1px solid #ececec;
}

.comparator-table th,
.comparator-table td {
    border: 1px solid #ececec;
    padding: 10px;
    text-align: center;
    vertical-align: middle;
    white-space: nowrap;
}

.comparator-table th {
    background-color: #f5f5f5;
    font-weight: 700;
}

.comparator-table .property-image {
    max-width: 300px;
    height: auto;
    border-radius: 8px;
}

.comparator-table .property-title {
    font-size: 14px;
    font-weight: 700;
    margin-top: 5px;
}

.comparator-table td {
    font-size: 14px;
}

.comparator-table .feature-yes {
    color: #28a745;
    font-weight: 700;
    font-size: 16px;
}

.comparator-table .feature-no {
    color: #dc3545;
    font-weight: 700;
    font-size: 16px;
}

.remove-from-comparator {
    cursor: pointer;
    background-color: #dc3545;
    color: #fff;
    padding: 5px 10px;
    border: transparent;
    font-size: 15px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.remove-from-comparator:hover {
    transform: translateY(-3px);
    opacity: .65;
}

/* Stile della Sidebar */
.comparator-sidebar {
    position: fixed;
    right: -370px;
    bottom: 0;
    width: 350px;
    height: 85%;
    background: #fff;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    transition: right 0.3s ease-in-out;
    z-index: 1000;
}

.comparator-sidebar.active {
    right: 0;
}

.comparator-sidebar h3 {
    font-size: 18px;
    margin-bottom: 15px;
}

.comparator-sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.comparator-sidebar ul li {
    padding: 10px;
    border-bottom: 1px solid #ddd;
    font-size: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.comparator-sidebar .comparator-link {
    display: block;
    text-align: center;
    background: var(--main-color);
    color: #fff;
    padding: 10px;
    margin-top: 15px;
    text-decoration: none;
    font-weight: 700;
    border-radius: 5px;
}

.comparator-sidebar .close-sidebar {
    position: absolute;
    top: 20px;
    right: 10px;
    background: none;
    border: none;
    font-size: 30px;
    cursor: pointer;
}

.remove-comparator {
    appearance: none;
    background: transparent;
    color: #dc3545;
    margin-left: 5px;
    border: none;
    cursor: pointer;
}

/* Pulsante per aprire la Sidebar */
body[data-button-style*="slightly_rounded"] button.comparator-toggle {
    position: fixed;
    right: -2px;
    top: 50%;
    background: var(--main-color);
    color: #fff;
    border: none;
    display: none;
    border-radius: 8px 0 0 8px !important;
    width: 50px;
    height: 50px;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    z-index: 999;
}

body[data-button-style*="slightly_rounded"] button.comparator-toggle.show {
    display: flex;
}
@media(max-width:991px){
    .comparator-table{
        overflow: auto;
    }
    .comparator-table tbody tr td:first-child {
        min-height: 145px !important;
        max-height: 145px !important;
    }
    .comparator-table th, .comparator-table td{
        white-space: nowrap;
        min-width: 200px;
    }
}

/**
 *
 * Contact form
 *
 */


#wp-galileo-contact-response {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
    padding: 10px;
    border-radius: 5px;
    font-weight: 700;
}

#wp-galileo-contact-response p {
    margin-bottom: 0;
    padding-bottom: 0;
}

#wp-galileo-contact-response.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

#wp-galileo-contact-response.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}