/* ============================================
   CARDS DE IMÓVEIS - ESTILOS COMPLETOS
   Design Black & Gold 2025
   ============================================ */

/* ========== CARROSSEL DO CARD ========== */
.card-carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.card-carousel-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.card-carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.card-carousel-slide.active {
    opacity: 1;
}

.card-carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ========== CONTROLES DO CARROSSEL ========== */
.card-carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 5;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.imovel-card:hover .card-carousel-control {
    opacity: 1;
}

.card-carousel-control:hover {
    background: #ffffff;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.card-carousel-control svg {
    color: #111827;
}

.card-carousel-control.card-prev {
    left: 12px;
}

.card-carousel-control.card-next {
    right: 12px;
}

/* ========== INDICADORES DO CARROSSEL ========== */
.card-carousel-indicators {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 5;
}

.card-indicator {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.2s ease;
}

.card-indicator.active {
    width: 18px;
    border-radius: 3px;
    background: #ffffff;
}

.card-indicator:hover {
    background: rgba(255, 255, 255, 0.8);
}

/* ========== BADGES UNIFICADOS ========== */

/* Badge Base - Estilo Branco (Padrão) */
.imovel-card-badge {
    position: absolute;
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 3;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    background: #ffffff;
    color: #111827;
    width: fit-content;
    height: fit-content;
    display: inline-block;
}

/* Badge de Tipo - Direita */
.badge-tipo {
    top: 12px;
    right: 12px;
    left: auto;
}

/* Badge de Modelo (Venda/Aluguel) - Esquerda - Mesmo estilo */
.badge-modelo {
    top: 12px;
    left: 12px;
    right: auto;
}

/* ========== ÍCONES DE IMAGEM NAS FEATURES ========== */
.feature-icon-img {
    width: 12px;
    height: 12px;
    object-fit: contain;
    flex-shrink: 0;
    opacity: 1;
}

/* Ajuste das Features */
.imovel-card-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 20px;
    padding: 16px 0;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    margin: 14px 0;
}

.feature {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: #374151;
    font-weight: 500;
}

/* ========== FEATURES NA PÁGINA DE DETALHES ========== */
.property-features-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    padding: 20px 0;
    margin-bottom: 24px;
}

.feature-icon-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.feature-icon-item:hover {
    background: #f1f3f5;
    transform: translateY(-2px);
}

.feature-icon-item .feature-icon-img {
    width: 12px;
    height: 12px;
    object-fit: contain;
    opacity: 1;
}

.feature-icon-text {
    font-size: 13px;
    font-weight: 500;
    color: #1f2937;
}

/* ========== PLACEHOLDER DE IMAGEM ========== */
.imovel-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    color: #d4af37;
    gap: 10px;
    font-size: 3rem;
}

.imovel-placeholder p {
    font-size: 14px;
    font-weight: 500;
    margin: 0;
    opacity: 0.7;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ========== PREÇO COM /MÊS ========== */
.imovel-card-price span {
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 400;
}

/* ========== ALERTAS ========== */
.alert {
    padding: 24px;
    border-radius: 8px;
    margin: 24px 0;
}

.alert-info {
    background: #eff6ff;
    color: #1e40af;
    border: 1px solid #93c5fd;
    border-left: 4px solid #3b82f6;
}

.alert strong {
    display: block;
    margin-bottom: 8px;
    font-size: 16px;
    font-weight: 700;
}

.alert p {
    margin: 0;
    font-size: 14px;
    opacity: 0.9;
}

/* ========== ANIMAÇÃO DE HOVER NO CARD ========== */
.imovel-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.imovel-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.imovel-card:hover .imovel-card-image img {
    transform: scale(1.05);
}

.imovel-card-image {
    overflow: hidden;
}

.imovel-card-image img {
    transition: transform 0.4s ease;
}

/* ========== CARD OCULTO (FILTRO) ========== */
.imovel-card.hidden {
    display: none !important;
}

/* ========== ANIMAÇÃO DE FADE IN ========== */
@keyframes fadeInCard {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.imovel-card.show {
    animation: fadeInCard 0.4s ease forwards;
}

/* ========== SCROLL SUAVE ========== */
html {
    scroll-behavior: smooth;
}

/* ========== RESPONSIVIDADE ========== */
@media (max-width: 768px) {
    .imovel-card-badge {
        font-size: 10px;
        padding: 5px 10px;
    }
    
    .badge-tipo {
        top: 10px;
        right: 10px;
    }
    
    .badge-modelo {
        top: 10px;
        left: 10px;
    }
    
    .card-carousel-control {
        width: 32px;
        height: 32px;
        opacity: 1;
    }
    
    .card-carousel-control.card-prev {
        left: 8px;
    }
    
    .card-carousel-control.card-next {
        right: 8px;
    }
    
    .imovel-card-features {
        gap: 14px;
        padding: 14px 0;
    }
    
    .feature {
        font-size: 13px;
    }
    
    .feature-icon-img {
        width: 12px;
        height: 12px;
    }
    
    /* Features na página de detalhes - mobile */
    .property-features-icons {
        gap: 16px;
    }
    
    .feature-icon-item {
        padding: 10px 14px;
    }
    
    .feature-icon-item .feature-icon-img {
        width: 12px;
        height: 12px;
    }
    
    .feature-icon-text {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .imovel-card-features {
        gap: 10px;
    }
    
    .feature {
        font-size: 12px;
    }
    
    .feature-icon-img {
        width: 12px;
        height: 12px;
    }
    
    .card-carousel-indicators {
        bottom: 8px;
    }
    
    .card-indicator {
        width: 5px;
        height: 5px;
    }
    
    .card-indicator.active {
        width: 14px;
    }
    
    /* Features na página de detalhes - mobile pequeno */
    .property-features-icons {
        gap: 12px;
        flex-direction: column;
    }
    
    .feature-icon-item {
        width: 100%;
        padding: 12px 16px;
    }
    
    .feature-icon-item .feature-icon-img {
        width: 12px;
        height: 12px;
    }
    
    .feature-icon-text {
        font-size: 13px;
    }
}