.imovel-carousel-wrapper{
    height: 450px;
    position: relative;
    margin-bottom: 20px;

    @media (max-width: 900px) {
        height: auto;
        display: flex;
        flex-direction: column;

        &.slick-dotted.slick-slider,
        .slick-dotted.slick-slider {
            margin-bottom: 0 !important;
        }
    }
    
    .buttons {
        height: auto;
        position: absolute;
        bottom: 20px;
        z-index: 99;

        max-width: 1440px;
        margin: 0 auto;
        padding: 0 50px;
        left: 0;
        right: 0; 
        display: flex;
        align-items: end;
 
        .slick-prev,
        .slick-next {
            position: absolute !important;
            top: -200px !important;
            transform: translateY(-50%) !important;
            z-index: 30 !important;
            width: 50px !important;
            height: 50px !important;
            background: white !important;
            border: none !important;
            border-radius: 50% !important;
            cursor: pointer !important;
            display: flex !important;
            align-items: center !important;
            justify-content: center !important;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15) !important;
            transition: all 0.3s ease !important;
            font-size: 0 !important;
            line-height: 0 !important;
            opacity: 1 !important;
            visibility: visible !important;
            
            &:hover {
                background: #f5f5f5 !important;
                box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
            }
            
            &.slick-disabled {
                opacity: 0.5 !important;
                cursor: not-allowed !important;
            }
            
            &:before {
                content: '' !important;
                width: 12px !important;
                height: 12px !important;
                border-top: 2px solid #162134 !important;
                border-right: 2px solid #162134 !important;
                display: block !important;
            }
        }
            
        .slick-prev {
            left: 50px !important; 
            padding-left: 6px;
            &:before {
                transform: rotate(-135deg) !important;
            }
        }
        
        .slick-next {
            right: 50px;
            padding-right: 6px; 
            &:before {
                transform: rotate(45deg) !important;
            } 
        }
        
        .buttons-content {
            display: flex;
            justify-content: space-between;
            gap: 10px;
            align-items: center;
            width: 100%;
            
            .buttons-group {
                display: flex;
                gap: 10px;
                align-items: center;
                flex: 1;
            }
            
            .btn {
                display: flex;
                align-items: center;
                gap: 8px;
                padding: 12px 20px;
                background: white;
                border: none;
                border-radius: 10px;
                font-size: 13px !important;
                font-weight: 600;
                color: #162134;
                cursor: pointer;
                transition: all 0.3s ease;
                
                &:hover {
                    background: #f5f5f5;
                }
                
                .btn-icon {
                    width: 20px;
                    height: 20px;
                    display: block;
                    flex-shrink: 0;
                }
                
                span {
                    white-space: nowrap;
                }

                &.folder {
                    color: #D4272B;
                }
            }
            
            .imovel-carousel-counter {
                display: flex;
                justify-content: center;
                align-items: center;
                font-size: 14px;
                font-weight: 500;
                color: #fff;
                font-family: Arial, sans-serif;
                padding: 0;
                flex-shrink: 0;
                
                span {
                    display: inline-block;
                }
                
                #current-slide {
                    font-weight: 600;
                }
                
                #total-slides {
                    font-weight: 400;
                    opacity: 0.9;
                }
            }
        }

        @media (max-width: 900px) {
            position: relative;
            bottom: auto;
            order: 2;
            padding: 15px 0;
            background: #ececec;
            width: 100%;

            .buttons-content{
               overflow-x: auto;
               padding: 0 20px;
               scrollbar-width: none;
               -ms-overflow-style: none;
               flex-wrap: wrap;
               gap: 10px;
               justify-content: center;
               &::-webkit-scrollbar {
                display: none;
               }
               .btn{
                    font-size: 11px !important;
                    padding: 10px 15px;
               }
            }

            .imovel-carousel-counter {
                display: none !important;
            }

            .slick-prev,
            .slick-next {
                display: none !important;
            }
        }
    }

    .imovel-carousel {
        position: relative;
        width: 100%;
        overflow: inherit;

        @media (max-width: 900px) {
            order: 1;
            overflow: hidden;
        }

        &::before {
            content: '';
            position: absolute;
            height: 200px;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(to bottom, rgba(22, 33, 52, 0.0) 0%, rgb(22 33 52 / 24%) 60%, rgba(22, 33, 52, 1) 100% /* rgba(22, 33, 52, 0.7) 100% */);
            z-index: 2;
            pointer-events: none;

            @media (max-width: 900px) {
                display: none;
            }
        }

        .slick-list {
            overflow: hidden;
            position: relative;
            display: block;
            margin: 0;
            padding: 0;
        }

        .slick-track {
            position: relative;
            top: 0;
            left: 0;
            display: flex;
            align-items: center;
        }

        .imovel-carousel-slide {
            position: relative;
            width: auto !important;
            height: 450px;
            overflow: hidden;
            display: flex;
            align-items: center;
            justify-content: center;

            img {
                width: auto;
                height: 100%;
                max-width: 100%;
                display: block;
                object-fit: contain;
            }

            @media (max-width: 900px) {
                width: 100% !important;
                height: 300px;

                img {
                    width: 100%;
                    height: 100%;
                    object-fit: cover;
                }
            }
        }
        
        /* Dots de navegação - lado direito */
        .slick-dots {
            position: absolute !important;
            gap: 10px !important;
            list-style: none !important;
            padding: 0 !important;
            margin: 0 !important;
            z-index: 30 !important;
            opacity: 1 !important;
            visibility: visible !important;
            width: auto !important;
            height: auto !important;
            bottom: 40px !important;
            right: calc((100% - 1440px) / 2 + 50px) !important;
            
            @media (max-width: 1540px) {
                right: 50px !important;
            }
            
            
            li {
                width: 10px !important;
                height: 10px !important;
                border-radius: 50% !important;
                background: rgba(255, 255, 255, 0.5) !important;
                cursor: pointer !important;
                transition: all 0.3s ease !important;
                position: relative !important;
                display: block !important;
                margin: 0 !important;
                padding: 0 !important;
                
                &.slick-active {
                    background: white !important;
                    width: 30px !important;
                    border-radius: 5px !important;
                }
                
                button {
                    display: none !important;
                }
            }

            @media (max-width: 1000px) {
                bottom: 15px !important;
                left: 0 !important;
                right: 0 !important;
                margin: 0 auto !important;
                display: flex !important;
                align-items: center;
                justify-content: center;
                gap: 6px !important;

                li{
                    width: 6px !important;
                    height: 6px !important;
                    background: #fff !important;
                    &.slick-active {
                        background: #162134 !important;
                        width: 6px !important;
                    }
                }
            }

        }
    }
}

.breadcrumb-imovel{
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 50px;
    margin-bottom: 30px;

    @media (max-width: 1000px) {
        margin-top: 60px;
    }
    @media (max-width: 900px) {
        padding: 0 20px;
        margin-top: 0;
    }
    
    ul{
        list-style: none;
        padding: 0;
        margin: 0;
        display: flex;
        align-items: center;
        flex-wrap: wrap;
    }
    
    li{
        display: inline-flex;
        align-items: center;
        
        &:not(:last-child)::after {
            content: '/';
            margin: 0 5px;
            color: #162134;
        }
        
        a{
            color: #162134;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            gap: 6px;
            transition: all 0.3s ease;
            font-size: 14px;
            
            &:hover {
                text-decoration: underline;
            }
            
            .breadcrumb-icon {
                width: 13px;
                height: 13px;
                display: block;
                flex-shrink: 0;
            }
        }
        
        &:last-child {
            font-weight: 700;
            color: #162134;
            font-size: 14px;
        }
    }
}

.imovel-content{
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 50px;
    
    display: grid;
    grid-template-columns: 1fr 35%;
    gap: 50px;

    @media (max-width: 1000px) {
        grid-template-columns: 1fr 1fr; 

    }

    @media (max-width: 900px) {
        grid-template-columns: 1fr; 
        padding: 0 20px;
    }

    .data{
        
        .top{
            h1{
                font-size: 30px;
                font-weight: 700;
                color: #162134;
                font-family: 'Poppins', sans-serif;
            }
            p{
                font-weight: 400;
                font-size: 14px;
                line-height: 21px;
                color: #767676;
                display: inline-block;
            }
        }

        .detalhes{
            border-top: 1px solid #E7E7E7;
            margin-top: 30px;
            padding: 40px 0 10px 0;

            .title{
                font-size: 14px;
                font-weight: 700;
                color: #162134;
                font-family: 'Poppins', sans-serif;
                margin-bottom: 10px;
            }

            .details-content{
                display: flex;
                gap: 10px;
                flex-wrap: wrap;
                font-size: 14px;
                font-weight: 700;
                color: #162134;
                font-family: 'Poppins', sans-serif;
                margin-top: 20px;
                span{
                    background: #F1F1F1;
                    padding: 15px 20px;
                    border-radius: 30px;
                    &.type{
                        color: #D4272B; 
                    }
                }
            }
        }

        .meta{
            border-top: 1px solid #E7E7E7;
            margin-top: 40px;
            padding: 50px 0 10px 0;
            display: flex;
            gap: 50px;

            @media (max-width: 900px) {        
                flex-direction: column;
            }

            .meta-item{
                display: flex;
                position: relative;
                padding-right: 30px; 

                &:last-child{
                    &:after{
                        display: none;
                    }
                }

                .case-meta-item-icon{
                    margin-right: 20px;
                }
                .case-meta-item-text{
                    display: flex;
                    flex-direction: column;
                    gap: 8px;
                }

                &:after{
                    content: '';
                    width: 1px;
                    height: 100%;
                    background: #E7E7E7;
                    right: -10px;
                    position: absolute;
                    @media (max-width: 900px) {
                     display: none;
                    }
                }

                @media (max-width: 900px) {    
                    &:after{
                         display: none;
                        
                    }
                    &:nth-child(2){
                        margin-left: 40px;
                    }
                    &:nth-child(3){
                        margin-left: 40px;
                    }
                }
            }
        }

        .endereco{
            border-top: 1px solid #E7E7E7;
            margin-top: 40px;
            padding: 30px 0;
            display: flex; 

            .meta-item{
                display: flex;
                position: relative;
                padding-right: 30px;

                &:after{
                    content: '';
                    width: 1px;
                    height: 100%;
                    background: #E7E7E7;
                    right: -10px;
                    position: absolute;
                }

                &:last-child{
                    &:after{
                        display: none;
                    }
                }

                .case-meta-item-icon{
                    margin-right: 20px;
                }
                .case-meta-item-text{
                    display: flex;
                    flex-direction: column;
                    gap: 8px;

                    button{
                        font-size: 13px !important;
                        padding: 10px 20px;
                        margin-top: 10px;
                    }
                }
            }
        }

        .caracteristicas{
            border-top: 1px solid #E7E7E7;
            padding: 20px 0 10px 0;
            h3{
                font-size: 20px;
                color: #162134;
                font-weight: 700;
                font-family: 'Poppins', sans-serif;
            }

            ul{
                display: grid;
                grid-template-columns: 1fr 1fr;
                column-gap: 50px;
                margin-top: 40px;
                padding-left: 20px;

                li{
                    font-size: 14px;
                    margin-bottom: 10px;
                }
            }
        }

        .estrutura-imovel{
            border-top: 1px solid #E7E7E7;
            padding: 20px 0 10px 0;
            h3{
                font-size: 20px;
                color: #162134;
                font-weight: 700;
                font-family: 'Poppins', sans-serif;
            }

            .estrutura-content{
                margin-top: 20px;
                font-size: 14px;
                line-height: 1.6;
                color: #494B50;

                p{
                    margin-bottom: 15px;
                }

                ul{
                    padding-left: 20px;
                    margin-bottom: 15px;

                    li{
                        margin-bottom: 8px;
                    }
                }
            }
        }

        .distancias{
            border-top: 1px solid #E7E7E7;
            padding: 20px 0 10px 0;
            h3{
                font-size: 20px;
                color: #162134;
                font-weight: 700;
                font-family: 'Poppins', sans-serif;
            }

            ul{
                margin-top: 40px;
                padding-left: 20px;

                li{
                    font-size: 14px;
                    margin-bottom: 10px;
                }
            }
        }
    }

    .contact{
        .form{
            padding: 22px 30px; 
            border-radius: 12px;
            width: auto;
            border: 1px solid #E7E7E7;
            box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.07);

            h4{
                font-size: 18px;
                color: #162134;
                font-weight: 700; 
                margin-bottom: 10px;
                margin-top: 0;
            }

            p{
                font-size: 13px;
            }

            button{
                background:#162134;
            }

            .form-footer{
                border-top: 1px solid #E7E7E7;
                h4{
                    margin: 20px 0;
                }
                .whatsapp{
                    display: flex;
                    align-items: center; 
                    height: 25px;
                    width: 200px;
                    padding-left: 20px;
                    position: relative;
                        &::before {
                            content: url(../images/whatsapp_btn.svg);
                            position: relative;
                            top: 2px;
                            margin-right: 15px;
                        }
                        &::after {
                            content: url(../images/whiteright.svg);
                            position: absolute;
                            top: 20px;
                            margin-left: 28px;
                            right: 20px;
                        }
                   }
                
                .contatos{ 
                    margin: 30px 0 10px 0; 
                    div{
                        display: flex;
                        align-items: center;
                        gap: 10px;
                        margin-bottom: 5px;

                        .icon{
                            background: #D9D9D9;
                            width: 25px;
                            height: 25px;
                            border-radius: 50%;
                            display: flex;
                            align-items: center;
                            justify-content: center;
                        }
                        .text{
                            display: flex; 
                            gap: 20px;
                            span{
                                font-size: 14px;
                                color: #162134;
                                font-weight: 400;
                            }
                            @media (max-width: 900px) {    
                                flex-direction: column;
                                gap:0;
                            }
                        }
                    } 
                }
            }
        }
    }
}

/* Modal do Mapa */
.modal-mapa {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s ease;
    
    &.active {
        visibility: visible;
        opacity: 1;
    }
    
    .modal-mapa-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.7);
        z-index: 1;
    }
    
    .modal-mapa-content {
        position: relative;
        width: 90%;
        max-width: 1200px;
        height: 80vh;
        max-height: 800px;
        background: white;
        border-radius: 16px;
        z-index: 2;
        display: flex;
        flex-direction: column;
        overflow: hidden;
        
        @media (max-width: 1000px) {
            width: 95%;
            height: 85vh;
            max-height: none;
        }
    }
    
    .modal-mapa-close {
        position: absolute;
        top: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
        background: white;
        border: none;
        border-radius: 50%;
        font-size: 28px;
        color: #162134;
        cursor: pointer;
        z-index: 10;
        display: flex !important;
        align-items: center;
        justify-content: center;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
        transition: all 0.3s ease;
        visibility: visible !important;
        opacity: 1 !important;
        z-index: 1000;
        
        &:hover {
            background: #f5f5f5;
            transform: scale(1.1);
        }
        
        span {
            line-height: 1;
            display: block;
        }
    }
    
    .map {
        width: 100%;
        height: 100%;
        border-radius: 0;
        overflow: hidden;
        border: none;
    }
}

/* Customização do marcador do mapa */
.custom-marker {
    background: transparent !important;
    border: none !important;
}

/* Customizar cor de fundo do LightGallery */
.lg-backdrop,
.lg-container {
    background-color: #162134 !important;
}

/* Customizar cor de fundo das thumbnails */
.lg-thumb-outer,
.lg-toggle-thumb,
.lg-thumb {
    background-color: #162134 !important;
}

/* Esconder botões do LightGallery */
#lightgallery .lg-share,
.lg-share,
.lg-fullscreen,
.lg-download,
.lg-play,
.lg-actual-size,
.lg-sub-html,
.lg-autoplay-button,
.lg-autoplay,
.lg-toggle-thumb,
button[aria-label*="autoplay"],
button[aria-label*="Autoplay"],
button[aria-label*="actual"],
button[aria-label*="Actual"],
button[aria-label*="size"],
button[aria-label*="Size"],
button[aria-label*="thumbnail"],
button[aria-label*="Thumbnail"],
button[aria-label*="toggle"],
button[aria-label*="Toggle"],
.lg-toolbar .lg-icon.lg-autoplay,
.lg-toolbar .lg-icon.lg-play,
.lg-toolbar .lg-icon.lg-actual-size,
.lg-toolbar .lg-icon[data-lg-actual-size],
.lg-toolbar .lg-icon.lg-toggle-thumb,
.lg-actions .lg-icon.lg-actual-size,
.lg-actions .lg-icon[data-lg-actual-size] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.lg-outer .lg-toogle-thumb{
    background: #162134 !important;
}

/* Mostrar setas de navegação do LightGallery */
.lg-actions .lg-next,
.lg-actions .lg-prev {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    z-index: 1080 !important;
}

.lg-actions .lg-next {
    right: 20px !important;
}

.lg-actions .lg-prev {
    left: 20px !important;
}