/* ========================================
   CARROSSEL DE IMAGENS NOS CARDS
======================================== */

.property-image-carousel {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
    background: var(--dark-bg);
}

.carousel-container {
    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;
    pointer-events: none;
}

.carousel-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Botões de navegação */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
    opacity: 0;
}

.property-image-carousel:hover .carousel-btn {
    opacity: 1;
}

.carousel-btn:hover {
    background: rgba(var(--tenant-accent-rgb, 212, 175, 55), 0.9);
    transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
    left: 10px;
}

.carousel-next {
    right: 10px;
}

/* Indicadores */
.carousel-indicators {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: var(--accent-color);
    width: 24px;
    border-radius: 4px;
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.8);
}

/* Categoria badge no carrossel */
.property-image-carousel .property-category {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
    backdrop-filter: blur(10px);
}

.property-image-carousel .property-category.lancamentos {
    background: rgba(33, 150, 243, 0.9);
    color: white;
}

.property-image-carousel .property-category.beira-mar {
    background: rgba(0, 188, 212, 0.9);
    color: white;
}

.property-image-carousel .property-category.mais-procurados {
    background: rgba(255, 152, 0, 0.9);
    color: white;
}

.property-image-carousel .property-category.pronto-morar {
    background: rgba(76, 175, 80, 0.9);
    color: white;
}

/* Responsivo */
@media (max-width: 768px) {
    .property-image-carousel {
        height: 200px;
    }

    .carousel-btn {
        width: 32px;
        height: 32px;
        font-size: 0.875rem;
    }

    .carousel-indicators {
        bottom: 10px;
        padding: 6px 10px;
    }

    .indicator {
        width: 6px;
        height: 6px;
    }

    .indicator.active {
        width: 18px;
    }
}

@media (max-width: 480px) {
    .property-image-carousel {
        height: 180px;
    }

    .carousel-btn {
        opacity: 1;
        background: rgba(0, 0, 0, 0.5);
    }
}
