/* Widget: Highlights - CSS Adaptado para CONDO CLEAN */

.highlights-carousel {
    position: relative;
    width: 100%;
    height: 80.5vh; /* Aumentado em 15% de 70vh */
    max-height: 690px; /* Aumentado em 15% de 600px */
    min-height: 402px; /* Aumentado em 15% de 350px */
    overflow: hidden;
    margin: 0;
    background: #000;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
}

.slide-image-link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.slide-content {
    display: none; /* Oculta completamente o conteúdo de texto */
}

.slide-content h2 {
    display: none;
}

.slide-content p {
    display: none;
}

.slide-button {
    display: none; /* Oculta o botão também */
}

/* Navegação */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 102, 204, 0.8);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-nav:hover {
    background: rgba(0, 102, 204, 1);
    transform: translateY(-50%) scale(1.1);
}

.carousel-nav.prev {
    left: 20px;
    width: 25px;
    height: 25px;
}

.carousel-nav.next {
    right: 20px;
    width: 25px;
    height: 25px;
}

/* Indicadores */
.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: #0066cc;
    transform: scale(1.2);
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.8);
}

/* Responsivo */
@media (max-width: 1023px) and (min-width: 768px) {
    .highlights-carousel {
        height: 69vh; /* Aumentado em 15% de 60vh */
        max-height: 575px; /* Aumentado em 15% de 500px */
    }
    

    
    .carousel-nav {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
    
    .carousel-nav.prev {
        left: 15px;
    }
    
    .carousel-nav.next {
        right: 15px;
    }
}

@media (max-width: 767px) and (min-width: 481px) {
    .highlights-carousel {
        height: 57.5vh; /* Aumentado em 15% de 50vh */
        max-height: 460px; /* Aumentado em 15% de 400px */
    }
    

    
    .carousel-nav {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .carousel-nav.prev {
        left: 10px;
    }
    
    .carousel-nav.next {
        right: 10px;
    }
}

@media (max-width: 480px) {
    .highlights-carousel {
        height: 51.75vh; /* Aumentado em 15% de 45vh */
        max-height: 402px; /* Aumentado em 15% de 350px */
    }
    

    
    .carousel-nav {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
    
    .carousel-nav.prev {
        left: 5px;
    }
    
    .carousel-nav.next {
        right: 5px;
    }
    
    .carousel-indicators {
        bottom: 10px;
    }
    
    .indicator {
        width: 8px;
        height: 8px;
    }
}

@media (max-width: 320px) {
    .highlights-carousel {
        height: 46vh; /* Aumentado em 15% de 40vh */
        max-height: 345px; /* Aumentado em 15% de 300px */
    }
    

    
    .carousel-nav {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }
    
    .carousel-nav.prev {
        left: 2px;
    }
    
    .carousel-nav.next {
        right: 2px;
    }
}

/* Otimização para mobile */
.highlights-carousel.mobile-optimized {
    height: 57.5vh; /* Aumentado em 15% de 50vh */
    max-height: 460px; /* Aumentado em 15% de 400px */
}

.highlights-carousel.mobile-optimized .carousel-slide {
    display: flex;
    align-items: center;
    justify-content: center;
}

.highlights-carousel.mobile-optimized .carousel-slide img {
    object-fit: cover;
    object-position: center;
}

/* Acessibilidade */
@media (hover: none) and (pointer: coarse) {
    .carousel-nav {
        background: rgba(0, 102, 204, 0.9);
        width: 60px;
        height: 60px;
    }
    
    .indicator {
        width: 15px;
        height: 15px;
    }
    

}

@media (prefers-reduced-motion: reduce) {
    .highlights-carousel * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .carousel-slide {
        transition: none;
    }
} 