/* =============================================
   Portal Imobiliário - Estilos Principais
   ============================================= */

:root {
    --primary: #0d6efd;
    --primary-dark: #0a58ca;
    --hero-height: 600px;
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: var(--hero-height);
    background: linear-gradient(135deg, #1e3a5f 0%, #0d6efd 60%, #0a8e6e 100%);
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.1);
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 80px 0;
}

.hero-content .card {
    border-radius: 16px;
}

/* Estatísticas */
.stat-item {
    padding: 8px 0;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
}

.stat-label {
    font-size: 0.875rem;
    opacity: 0.85;
    margin-top: 4px;
}

/* Cards de tipo */
.tipo-card {
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.tipo-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(13, 110, 253, 0.15) !important;
}

.tipo-card i {
    transition: transform 0.2s;
}

.tipo-card:hover i {
    transform: scale(1.15);
}

/* Cards de imóvel */
.imovel-card {
    transition: transform 0.2s, box-shadow 0.2s;
    border-radius: 12px;
    overflow: hidden;
}

.imovel-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12) !important;
}

.imovel-card-img {
    background: #f8f9fa;
}

.imovel-card-img img {
    transition: transform 0.3s ease;
}

.imovel-card:hover .imovel-card-img img {
    transform: scale(1.04);
}

/* Badges de finalidade */
.badge-finalidade {
    font-size: 0.8rem;
    padding: 5px 10px;
    border-radius: 6px;
}

.badge-venda {
    background-color: #198754;
}

.badge-aluguel {
    background-color: #0d6efd;
}

.badge-temporada {
    background-color: #fd7e14;
}

/* Features do imóvel */
.imovel-features {
    border-top: 1px solid #f0f0f0;
    padding-top: 12px;
    flex-wrap: wrap;
}

/* Footer */
.footer-link {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    display: inline-block;
    margin-bottom: 6px;
    transition: color 0.2s;
}

.footer-link:hover {
    color: #fff;
}

/* Navegação */
.nav-pills .nav-link.active {
    background-color: var(--primary);
}

/* Sticky topbar offset */
html {
    scroll-padding-top: 80px;
}

/* Utilitários */
.x-small {
    font-size: 0.75rem;
}

/* Página de imóvel */
.thumb-img {
    transition: border-color 0.2s;
}

.thumb-img:hover {
    border-color: var(--primary) !important;
    border-width: 2px !important;
    border-style: solid !important;
}

/* Sidebar de filtros */
@media (max-width: 991.98px) {
    #filtrosSidebar {
        display: none !important;
    }
}

/* Carousel de galeria */
#galeriaCarousel .carousel-indicators button {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

/* Badge de status */
.badge {
    font-weight: 500;
}

/* Form money mask */
.money-mask {
    font-variant-numeric: tabular-nums;
}

/* Animações de entrada */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.card {
    animation: fadeInUp 0.3s ease both;
}

/* Responsividade hero */
@media (max-width: 767.98px) {
    .hero-content {
        padding: 50px 0;
    }
    .stat-number {
        font-size: 1.5rem;
    }
    .hero-content .display-4 {
        font-size: 2rem;
    }
}
