/* ========================================
   CARROSSEL DE IMAGENS NOS CARDS
======================================== */

.property-image-carousel {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    border-radius: 14px 14px 0 0;
    background: #1a1208;
}

.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;
    transition: transform 0.35s ease;
}

.property-card:hover .carousel-slide.active img {
    transform: scale(1.04);
}

/* Botões de navegação */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.52);
    border: none;
    color: white;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    font-size: 0.78rem;
    transition: background 0.2s ease, opacity 0.2s ease;
    opacity: 0;
}

.property-image-carousel:hover .carousel-btn {
    opacity: 1;
}

.carousel-btn:hover {
    background: rgba(var(--tenant-accent-rgb, 196, 148, 58), 0.9);
}

.carousel-prev { left: 9px; }
.carousel-next { right: 9px; }

/* Indicadores */
.carousel-indicators {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 10;
    padding: 5px 10px;
    background: rgba(0, 0, 0, 0.42);
    border-radius: 20px;
}

.indicator {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    transition: all 0.25s ease;
}

.indicator.active {
    background: var(--tenant-accent, #C4943A);
    width: 20px;
    border-radius: 3px;
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.8);
}

/* ========================================
   BADGE (finalidade: VENDA / Aluguel)
======================================== */
.property-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 5px 11px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    z-index: 10;
    background: var(--tenant-accent, #C4943A);
    color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

/* ========================================
   CORAÇÃO FAVORITO
======================================== */
.prop-fav-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.92);
    color: #8A7A60;
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}

.prop-fav-btn:hover {
    background: #fff;
    color: #e05555;
    transform: scale(1.08);
}

.prop-fav-btn.active {
    color: #e05555;
    background: #fff;
}

/* ── Capa / Cover badge no upload ── */
.cover-badge {
    position: absolute;
    top: 6px;
    left: 6px;
    background: var(--tenant-accent, #C4943A);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 999px;
    z-index: 3;
    pointer-events: none;
}

.set-cover-btn {
    background: rgba(0,0,0,0.55);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 9px;
    cursor: pointer;
    transition: background 0.18s;
}

.set-cover-btn:hover { background: var(--tenant-accent, #C4943A); }

.image-preview-item.is-cover .image-preview-wrapper {
    outline: 2px solid var(--tenant-accent, #C4943A);
    outline-offset: 2px;
}

/* Responsivo */
@media (max-width: 768px) {
    .property-image-carousel {
        height: 190px;
    }
}

@media (max-width: 480px) {
    .property-image-carousel {
        height: 170px;
    }
    .carousel-btn {
        opacity: 1;
        background: rgba(0, 0, 0, 0.5);
    }
}
