.card-img-top,
.card-imovel-gallery {
    width: 100%;
    height: 250px;
    object-fit: cover;
    flex-shrink: 0;
}

.card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    min-height: 48px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}
/* Características dos Imóveis */
.caracteristicas-imovel {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.9rem;
    color: #6c757d;
}

.caracteristica-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 8px;
    background-color: #f8f9fa;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.caracteristica-item:hover {
    background-color: #e9ecef;
    transform: translateY(-1px);
}

.caracteristica-item i {
    font-size: 1.1em;
    color: #243040;
}

/* Melhorias nos badges dos cards */
.card .badge {
    font-weight: 600;
    letter-spacing: 0.5px;
    z-index: 10;
}

.card .badge.bg-warning {
    background: linear-gradient(135deg, #ffc107 0%, #ffb300 100%) !important;
    color: #000 !important;
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.4);
    animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.card .badge.bg-dark {
    background: rgba(0, 0, 0, 0.75) !important;
    backdrop-filter: blur(4px);
}


.card .btn-primary,
.card .btn-outline-success {
    border-radius: 0;
    padding: 0.8rem;
    font-weight: 500;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.card .btn-primary {
    box-shadow: 0 4px 12px rgba(0,123,255,0.2);
}

.card .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,123,255,0.3);
}

/* Paginação */
.pagination {
    margin-top: 2rem;
}

.pagination .page-link {
    color: #232F3F;
    border-color: #e0e0e0;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.pagination .page-link:hover {
    background-color: #232F3F;
    border-color: #232F3F;
    color: white;
    transform: translateY(-2px);
}

.pagination .page-item.active .page-link {
    background-color: #232F3F;
    border-color: #232F3F;
    color: white;
    box-shadow: 0 2px 8px rgba(35, 47, 63, 0.3);
}

.pagination .page-item.disabled .page-link {
    color: #6c757d;
    background-color: #f8f9fa;
    border-color: #e0e0e0;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Mini Carrossel de Imagens nos Cards */
.card-imovel-gallery {
    overflow: hidden;
    height: 250px;
}

.mini-carousel-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.mini-carousel-main {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.mini-carousel-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mini-carousel-img.active {
    opacity: 1;
}

.mini-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    color: #232F3F;
    font-size: 1.2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.mini-carousel-btn:hover {
    background: #232F3F;
    color: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 12px rgba(35, 47, 63, 0.3);
}

.mini-carousel-prev {
    left: 10px;
}

.mini-carousel-next {
    right: 10px;
}

@media (max-width: 768px) {
    .card-imovel-gallery {
        height: 200px;
    }
    
    .mini-carousel-btn {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }
    
    .mini-carousel-prev {
        left: 5px;
    }
    
    .mini-carousel-next {
        right: 5px;
    }
}