/* SLIDER / HERO - Swiper carousel per galleria foto */

.annuncio-slider {
    margin-bottom: 45px;
}

.annuncio-slider .annuncio-swiper {
    position: relative;
    overflow: hidden;
}

.annuncio-slider .annuncio-swiper .swiper-slide {
    background-color: #222222;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.annuncio-slider .annuncio-swiper .swiper-slide-active {
    background-color: transparent !important;
    opacity: 1 !important;
}

.annuncio-slider .annuncio-swiper .swiper-slide img {
    height: 83vh;
    width: 100%;
    object-fit: cover;
}

.annuncio-swiper .swiper-button-prev,
.annuncio-swiper .swiper-button-next {
    width: 35px;
    height: 35px;
    border: 1px solid #ffffff;
    border-radius: 99px;
    color: #ffffff;
    background-color: transparent;
}

.annuncio-swiper .swiper-button-prev:hover,
.annuncio-swiper .swiper-button-next:hover {
    border: 1px solid #303041;
    background-color: #303041;
}

.annuncio-swiper .swiper-button-prev::after,
.annuncio-swiper .swiper-button-next::after {
    font-size: 16px;
    font-weight: bold;
}

/* Owl Carousel (fallback) */
.annuncio-slider .annuncio-carousel {
    position: relative;
}

.annuncio-slider .annuncio-carousel .owl-item.active {
    background-color: #222222;
}

.annuncio-slider .annuncio-carousel .owl-item.active.center {
    background-color: transparent !important;
}

.annuncio-slider .annuncio-carousel .owl-item.active .item {
    opacity: .6;
}

.annuncio-slider .annuncio-carousel .owl-item.active.center .item {
    opacity: 1 !important;
}

.annuncio-slider .annuncio-carousel .owl-item img {
    height: 90vh;
    object-fit: cover;
    max-height: 720px;
}

.annuncio-slider .annuncio-carousel .owl-nav {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
}

.annuncio-slider .annuncio-carousel .owl-nav .owl-prev {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translate(50%, -50%);
    border: 1px solid #ffffff;
    color: #ffffff;
    width: 35px;
    border-radius: 99px;
}

.annuncio-slider .annuncio-carousel .owl-nav .owl-next {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translate(-50%, -50%);
    border: 1px solid #ffffff;
    color: #ffffff;
    width: 35px;
    border-radius: 99px;
}

.annuncio-slider .annuncio-carousel .owl-nav .owl-prev:hover,
.annuncio-slider .annuncio-carousel .owl-nav .owl-next:hover {
    border: 1px solid #303041;
    background-color: #303041;
}

.annuncio-slider .annuncio-carousel .owl-nav .owl-next span,
.annuncio-slider .annuncio-carousel .owl-nav .owl-prev span {
    font-size: 20px;
    line-height: 0;
}

.annuncio-carousel img {
    max-height: 100%;
    height: 76vh;
    object-fit: cover;
}

.annuncio-slider .annuncio-carousel .owl-item .item {
    opacity: .6;
}

.annuncio-slider .annuncio-carousel .owl-item {
    background-color: #222222;
}

.itemCustom {
    position: relative;
}

.itemCustom .immo_status {
    position: absolute;
    margin: 0;
    z-index: 2;
}

/* ROW-MOB & SIDEBAR - Layout classes */

.row-mob {
    margin-top: 3px;
}

.order-element-mobile {
    display: flex;
    flex-direction: column;
}

.order-mobile {
    order: 2;
}

/* Sidebar annuncio */
.annuncio-sidebar {
    margin-bottom: 20px;
    padding: 20px !important;
    margin-left: 37px;
    box-shadow: 0 0 5px 5px rgba(0, 0, 0, 0.05);
}

.agente-sidebar h1 {
    font-size: 16px;
    margin-bottom: 0;
    margin-top: 10px;
}

.agente-sidebar h4 {
    font-size: 14px;
}

.agente-sidebar .sidebar-contatti {
    display: flex;
    flex-direction: column;
    row-gap: 5px;
    margin-bottom: 5px;
}

.sidebar-contatti a {
    font-size: 12px;
}

.sidebar-cta a {
    font-size: 12px;
}

.agente-sidebar .custom-product-cta {
    font-size: 12px;
    width: 100%;
    padding: 10px 0;
    text-align: center;
    margin-top: 5px;
}

.agente-sidebar .sidebar-cta {
    display: flex;
    flex-direction: column;
}

.agente-sidebar-content img {
    width: 180px;
}

.agente-sidebar-content .not-thumbnail {
    width: 180px;
    height: 180px;
    display: flex;
}

.agente-sidebar-content .not-thumbnail img {
    padding: 20px;
}

.not-thumbnail {
    background-color: #262D3F;
}

.not-thumbnail img {
    object-fit: contain !important;
    padding: 70px;
}

/* ROW-MOB INTERNAL - Elementi dentro row-mob */

.title-annunci-after-desc {
    font-size: 17px;
}

.divider-annunci-after-desc {
    border-bottom: 2px solid #ececec;
    margin-bottom: 30px;
}

.section-panel-element {
    display: flex;
    flex-direction: column;
    padding-bottom: 30px;
    width: 690px;
}

.section-panel-element .panel-element {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    border-bottom: 1px solid #ececec;
}

.section-panel-element .panel-element p {
    margin: 4.6px 0;
    font-size: 13.86px;
}

.section-panel-element .panel-element .element-desc {
    color: #282828 !important;
}

.section-panel-element .panel-element .element-title {
    color: #666 !important;
}

.desc-title-specifiche {
    border-bottom: 2px solid rgba(0, 0, 0, .1);
    margin-bottom: -2px;
    width: 100px;
    padding-bottom: 8px;
}

.desc-title-costi {
    border-bottom: 2px solid rgba(0, 0, 0, .1);
    margin-bottom: -2px;
    width: 51px;
    padding-bottom: 8px;
}

.desc-title-effi {
    border-bottom: 2px solid rgba(0, 0, 0, .1);
    margin-bottom: -2px;
    width: 217px;
    padding-bottom: 8px;
}

.desc-title-plani {
    border-bottom: 2px solid rgba(0, 0, 0, .1);
    margin-bottom: -2px;
    width: 122px;
    padding-bottom: 8px;
}

.desc-title-virtual {
    border-bottom: 2px solid rgba(0, 0, 0, .1);
    margin-bottom: -2px;
    width: 129px;
    padding-bottom: 8px;
}

.desc-title-video {
    border-bottom: 2px solid rgba(0, 0, 0, .1);
    margin-bottom: -2px;
    width: 87px;
    padding-bottom: 8px;
}

.desc-title-posi {
    border-bottom: 2px solid rgba(0, 0, 0, .1);
    margin-bottom: -2px;
    width: 260px;
    padding-bottom: 8px;
}

.custom-annunci .cta-modal {
    margin-bottom: 28px;
}

.custom-annunci .cta-modal .ctas {
    display: grid;
    grid-template-columns: repeat(3, 168px);
}

.custom-annunci .cta-modal .ctas a {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 14px !important;
    line-height: 26px;
    color: #000000;
}

.custom-annunci .cta-modal .ctas a:hover {
    cursor: pointer;
    border-bottom: 1px solid #2b6481;
    color: #2b6481;
}

.custom-annunci .annuncio-spec {
    display: grid;
    grid-template-columns: repeat(5, auto);
    column-gap: 10px;
    margin-bottom: 76px;
}

.custom-annunci .annuncio-spec p {
    display: flex;
    align-items: center;
    margin-bottom: 0;
    gap: 10px;
}

.custom-annunci .price p {
    font-weight: 600;
    font-size: 21px;
    line-height: 26px;
    margin-bottom: 0;
}

.box-reverse {
    display: flex;
}

.price-only-mobile {
    display: none;
}

.only-mobile-cta {
    display: none;
}

.desc-after-title {
    width: 420px;
}

.box-actions .favorite-container-btn {
    display: flex;
    justify-content: center;
    margin: 10px 0;
}

.box-actions .favorite-container-btn .favorite-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 0;
    border: 1px solid #262D3F;
    background: #fff;
    cursor: pointer;
    font-size: 12px;
    color: #262D3F;
    transition: box-shadow 0.2s ease-in-out;
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
    text-align: center;
}

.box-actions .favorite-container-btn .favorite-btn:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
}

.box-actions .favorite-container-btn .favorite-btn .heart-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.custom-product-cta-immo-back {
    cursor: pointer;
}

.share-content-list {
    display: grid;
    grid-template-columns: 1fr;
    padding: 0px 10px;
}

.share-list-object {
    padding: 10px;
    border-top: 1px solid #d5d5d5;
    font-size: 20px;
    cursor: pointer;
}

.share-list-object i {
    margin-right: 10px;
}

.custom-annunci .share {
    display: flex;
    align-items: center;
    margin-bottom: 0;
    gap: 10px;
}

.custom-annunci .share:hover {
    cursor: pointer;
}

.openmodal:hover {
    cursor: pointer;
}

.openmodal-gallery {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    color: #303041;
    font-size: 13px;
}

.openmodal-gallery span {
    margin-top: -4px;
}

.hide-for-mobile {
    display: block;
}

@media only screen and (max-width: 600px) {

    .annuncio-slider .annuncio-swiper .swiper-slide img {
        height: 50vh !important;
    }

    .annuncio-swiper .swiper-button-prev,
    .annuncio-swiper .swiper-button-next {
        width: 30px;
        height: 30px;
    }

    .annuncio-swiper .swiper-button-prev::after,
    .annuncio-swiper .swiper-button-next::after {
        font-size: 12px;
    }

    .itemCustom .immo_status {
        bottom: -40px;
    }

    .row-mob {
        width: 100vw;
        padding-right: 30px;
    }

    .agente-sidebar {
        margin-left: 0;
        margin-right: 30px;
    }

    .order-element-mobile {
        display: flex;
        flex-direction: column;
    }

    .order-mobile {
        order: 2;
    }

    .annuncio-sidebar {
        margin-right: 30px;
        margin-left: 0;
    }

    .agente-sidebar-content .not-thumbnail {
        justify-content: center;
        align-items: center;
    }

    .agente-sidebar-content .not-thumbnail img {
        padding: 0px;
        width: 140px;
        height: 50px;
    }

    .title-annunci-after-desc {
        font-size: 15.6px;
    }

    .desc-title-specifiche {
        width: 94px;
    }

    .desc-title-costi {
        width: 50px;
    }

    .desc-title-effi {
        width: 205px;
    }

    .desc-title-plani {
        width: 114px;
    }

    .desc-title-virtual {
        width: 124px;
    }

    .desc-title-video {
        width: 82px;
    }

    .desc-title-posi {
        width: 240px;
    }

    .custom-annunci .annuncio-spec {
        grid-template-columns: 1fr 1fr;
        row-gap: 46px;
        margin-bottom: 30px;
    }

    .custom-annunci .annuncio-spec p {
        padding-left: 34px;
    }

    .custom-annunci .panel .panel-element {
        grid-template-columns: 1fr auto;
    }

    .custom-annunci .panel .panel-element .element-desc {
        line-height: 22px;
    }

    .custom-annunci .panel .panel-element .element-title {
        line-height: 22px;
        margin-bottom: 30px;
    }

    .cta-modal {
        margin-left: -15px;
        margin-right: -15px;
    }

    .custom-annunci .cta-modal .ctas {
        display: flex;
        justify-content: center;
    }

    .custom-annunci .cta-modal .ctas a {
        display: flex;
        flex-direction: column;
        padding: 9px;
        border-radius: 5px;
        box-shadow: 0 0 15px rgb(0 0 0 / 20%);
        margin: 0 10px;
        width: 28%;
        max-width: 110px;
    }

    .price-only-mobile {
        display: block;
        margin-bottom: 40px;
    }

    .price-only-mobile p {
        font-weight: 600;
        font-size: 21px;
        line-height: 26px;
        margin-bottom: 0;
    }

    .only-mobile-cta {
        display: block !important;
        text-align: center;
    }

    .desc-after-title {
        width: 100%;
    }

    .box-reverse {
        flex-direction: row-reverse;
    }

    .box-reverse img {
        padding-right: 34px;
    }

    .hide-for-mobile {
        display: none !important;
    }

    .custom-annunci .share {
        justify-content: center;
        margin-bottom: 50px;
    }
}