/**
 * Apartamentos Financiados - CSS Puro
 * Estilos específicos para a página sem dependência do Tailwind CDN
 */

/* ============================================
   LAYOUT PRINCIPAL
   ============================================ */
.apartamentos-financiados {
    max-width: 1280px;
    margin: 0 auto;
    padding: 2rem;
}

/* ============================================
   HEADER
   ============================================ */
.header-sticky {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(59, 130, 246, 0.1);
    padding: 0.75rem 1.5rem;
}

.header-content {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.header-logo-bg {
    background: #3b82f6;
    padding: 0.375rem;
    border-radius: 0.5rem;
    color: white;
}

.header-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    letter-spacing: -0.025em;
}

.header-nav {
    display: none;
    align-items: center;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .header-nav {
        display: flex;
    }
}

.header-nav a {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1e293b;
    text-decoration: none;
    transition: color 0.2s;
}

.header-nav a:hover {
    color: #3b82f6;
}

.header-btn-anunciar {
    background: #3b82f6;
    color: white;
    padding: 0.625rem 1.25rem;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s;
    box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.2);
}

.header-btn-anunciar:hover {
    background: #2563eb;
    transform: translateY(-1px);
}

/* ============================================
   FILTROS
   ============================================ */
.filtros-section {
    margin-bottom: 2rem;
}

.filtros-container {
    max-width: 1024px;
    margin: 0 auto;
}

.filtros-form {
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    padding: 1rem;
}

.filtros-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filtro-group {
    position: relative;
    flex: 1;
    min-width: 160px;
    max-width: 200px;
    background: #f1f5f9;
    border-radius: 0.5rem;
}

.filtro-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.125rem;
    color: #94a3b8;
}

.filtro-select,
.filtro-input {
    width: 100%;
    padding: 0.75rem 2rem 0.75rem 2.5rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    color: #475569;
    background: transparent;
    border: none;
    outline: none;
    cursor: pointer;
}

.filtro-select::-ms-expand {
    display: none;
}

.filtro-arrow {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.125rem;
    color: #94a3b8;
    pointer-events: none;
}

.filtro-busca {
    flex: 1;
    min-width: 160px;
    max-width: 200px;
}

.filtro-busca .filtro-input {
    padding-left: 2.5rem;
    padding-right: 0.75rem;
}

.filtro-busca .filtro-icon {
    left: 0.625rem;
}

.btn-buscar {
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    background: #f97316;
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    flex-shrink: 0;
    min-width: 100px;
    justify-content: center;
}

.btn-buscar:hover {
    background: #ea580c;
    transform: translateY(-1px);
}

.btn-buscar .material-symbols-outlined {
    font-size: 0.875rem;
}

/* ============================================
   CARDS DE ESTATÍSTICAS
   ============================================ */
.estatisticas-section {
    margin-bottom: 1rem;
}

.estatisticas-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1rem;
}

@media (min-width: 640px) {
    .estatisticas-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .estatisticas-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.estatistica-card {
    background: white;
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.estatistica-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.estatistica-icon {
    font-size: 1.25rem;
}

.estatistica-icon.primary { color: #3b82f6; }
.estatistica-icon.success { color: #10b981; }
.estatistica-icon.info { color: #3b82f6; }
.estatistica-icon.trending { color: #3b82f6; }

.estatistica-valor {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1e293b;
}

.estatistica-label {
    font-size: 0.875rem;
    color: #64748b;
}

/* ============================================
   LISTA DE APARTAMENTOS
   ============================================ */
.apartamentos-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.apartamentos-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 1024px;
    margin: 0 auto;
    width: 100%;
}

.apartamento-card {
    background: white;
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    transition: all 0.3s;
}

.apartamento-card:hover {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: translateY(-2px);
}

.apartamento-content {
    display: flex;
    flex-direction: column;
}

@media (min-width: 1024px) {
    .apartamento-content {
        flex-direction: row;
    }
}

.apartamento-imagem {
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    height: 16rem;
}

@media (min-width: 1024px) {
    .apartamento-imagem {
        width: 20rem;
        height: auto;
    }
}

.apartamento-imagem img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.apartamento-card:hover .apartamento-imagem img {
    transform: scale(1.05);
}

.apartamento-imagem-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    display: flex;
    align-items: center;
    justify-content: center;
}

.apartamento-imagem-placeholder .material-symbols-outlined {
    font-size: 6rem;
    color: #94a3b8;
}

/* Badges */
.apartamento-badges {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    display: flex;
    gap: 0.5rem;
}

.badge {
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.badge-novo {
    background: linear-gradient(135deg, #10b981, #14b8a6);
}

.badge-venda {
    background: linear-gradient(135deg, #1e293b, #334155);
}

.badge-destaque {
    background: linear-gradient(135deg, #fbbf24, #f97316);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.badge-destaque .material-symbols-outlined {
    font-size: 0.75rem;
}

.apartamento-destaque {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
}

/* Conteúdo do apartamento */
.apartamento-info {
    flex: 1;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

@media (min-width: 1024px) {
    .apartamento-info {
        flex-direction: row;
    }
}

.info-principal {
    flex: 1;
    min-width: 280px;
}

.apartamento-nome {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

.apartamento-detalhe {
    font-size: 1.125rem;
    font-weight: 600;
    color: #3b82f6;
    margin-bottom: 0.5rem;
}

.apartamento-localizacao {
    font-size: 0.875rem;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.apartamento-localizacao .material-symbols-outlined {
    font-size: 1rem;
    color: #f43f5e;
}

.apartamento-preco {
    font-size: 1.875rem;
    font-weight: 900;
    color: #f97316;
    margin-bottom: 1rem;
}

/* Características */
.caracteristicas {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.caracteristica {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    background: #f8fafc;
    padding: 0.375rem 0.75rem;
    border-radius: 9999px;
    border: 1px solid #e2e8f0;
    font-size: 0.875rem;
    font-weight: 600;
    color: #334155;
}

.caracteristica .material-symbols-outlined {
    font-size: 1rem;
}

.caracteristica.quartos .material-symbols-outlined { color: #6366f1; }
.caracteristica.suites .material-symbols-outlined { color: #a855f7; }
.caracteristica.vagas .material-symbols-outlined { color: #3b82f6; }
.caracteristica.area .material-symbols-outlined { color: #10b981; }

/* Informações adicionais */
.info-adicionais {
    flex: 1;
    border-left: 1px solid #e2e8f0;
    border-right: 1px solid #e2e8f0;
    padding: 0 1.5rem;
}

.info-adicionais h3 {
    font-size: 0.75rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.info-item-icon {
    width: 2rem;
    height: 2rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-item-icon.incorporadora {
    background: #dbeafe;
}

.info-item-icon.incorporadora .material-symbols-outlined {
    color: #3b82f6;
}

.info-item-icon.banheiros {
    background: #cffafe;
}

.info-item-icon.banheiros .material-symbols-outlined {
    color: #06b6d4;
}

.info-item-icon.area-privativa {
    background: #d1fae5;
}

.info-item-icon.area-privativa .material-symbols-outlined {
    color: #10b981;
}

.info-item-content p {
    margin: 0;
}

.info-item-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1e293b;
}

.info-item-descricao {
    font-size: 0.75rem;
    color: #64748b;
}

/* Financiamento */
.financiamento-section {
    width: 16rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-end;
    text-align: right;
}

.financiamento-section h3 {
    font-size: 0.75rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.financiamento-calculo {
    background: linear-gradient(135deg, #fed7aa, #fecaca);
    border-radius: 0.75rem;
    border: 1px solid #fed7aa;
    padding: 1rem;
}

.financiamento-linha {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.financiamento-linha:last-child {
    margin-bottom: 0;
    padding-top: 0.5rem;
    border-top: 1px solid #fed7aa;
}

.financiamento-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #475569;
}

.financiamento-valor {
    font-size: 0.875rem;
    font-weight: 700;
}

.financiamento-valor.entrada { color: #f97316; }
.financiamento-valor.financiado { color: #3b82f6; }
.financiamento-valor.parcela { color: #10b981; }

/* Botões */
.apartamento-botoes {
    width: 100%;
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.btn-simular {
    width: 100%;
    background: #f97316;
    color: white;
    padding: 0.625rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-simular:hover {
    background: #ea580c;
    transform: translateY(-1px);
}

.btn-detalhes {
    width: 100%;
    background: #f1f5f9;
    color: #334155;
    padding: 0.625rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-detalhes:hover {
    background: #3b82f6;
    color: white;
    transform: translateY(-1px);
}

/* ============================================
   MENSAGEM VAZIA
   ============================================ */
.mensagem-vazia {
    background: white;
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
    padding: 3rem;
    text-align: center;
}

.mensagem-vazia .material-symbols-outlined {
    font-size: 6rem;
    color: #e2e8f0;
    margin-bottom: 1rem;
}

.mensagem-vazia h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #1e293b;
}

.mensagem-vazia p {
    color: #64748b;
    margin: 0;
}

/* ============================================
   RESPONSIVO
   ============================================ */
@media (max-width: 640px) {
    .apartamentos-financiados {
        padding: 1rem;
    }
    
    .filtros-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filtro-group {
        max-width: 100%;
    }
    
    .apartamento-info {
        padding: 1rem;
    }
    
    .info-adicionais {
        border-left: none;
        border-right: none;
        border-top: 1px solid #e2e8f0;
        border-bottom: 1px solid #e2e8f0;
        padding: 1rem 0;
        margin: 1rem 0;
    }
    
    .financiamento-section {
        width: 100%;
        align-items: stretch;
        text-align: left;
    }
}
