/* ===== PÁGINA DE IMÓVEIS ===== */
.imoveis-page {
    background: var(--cinza-claro);
    min-height: 100vh;
}

/* Hero */
.page-hero {
    background: linear-gradient(135deg, var(--verde-primario), var(--verde-secundario));
    padding: 60px 40px;
    border-radius: 24px;
    margin: 20px 20px 40px;
    color: var(--branco);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 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%3Cpath d="M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7z" fill="white" fill-opacity="0.05" fill-rule="evenodd"/%3E%3C/svg%3E');
    opacity: 0.3;
}

.page-hero h1 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 15px;
    position: relative;
}

.page-hero p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.95;
}

/* ===== FILTROS CONTAINER ===== */
.filtros-container {
    background: var(--branco);
    border-radius: 16px;
    margin-bottom: 30px;
    box-shadow: var(--sombra);
    overflow: hidden;
    transition: all 0.3s ease;
}

.filtros-header {
    background: linear-gradient(135deg, var(--verde-primario), var(--verde-secundario));
    padding: 15px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.filtros-header h3 {
    color: white;
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.toggle-filtros {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toggle-filtros:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.filtros-body {
    padding: 25px;
    transition: all 0.3s;
}

.filtros-body.collapsed {
    display: none;
}

/* Filtros internos (sem duplicação) */
.filtros-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 25px;
}

.filtros-grupo h3 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--cinza);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filtros-grupo h3 i {
    color: var(--verde-primario);
}

.filtros-opcoes {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filtro-btn {
    padding: 8px 18px;
    border: 1px solid var(--borda);
    background: var(--cinza-claro);
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--preto);
    cursor: pointer;
    transition: all 0.3s ease;
}

.filtro-btn i {
    margin-right: 5px;
    color: var(--verde-secundario);
}

.filtro-btn:hover {
    background: #e0e0e0;
    transform: translateY(-2px);
}

.filtro-btn.active {
    background: var(--verde-primario);
    color: var(--branco);
    border-color: var(--verde-primario);
}

.filtro-btn.active i {
    color: var(--branco);
}

/* Pesquisa */
.pesquisa-avancada {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--borda);
}

.pesquisa-wrapper {
    display: flex;
    gap: 10px;
}

.pesquisa-input {
    flex: 1;
    padding: 14px 20px;
    border: 1px solid var(--borda);
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.pesquisa-input:focus {
    outline: none;
    border-color: var(--verde-primario);
    box-shadow: 0 0 0 3px rgba(15, 107, 58, 0.1);
}

.pesquisa-btn {
    padding: 14px 30px;
    background: var(--verde-primario);
    color: var(--branco);
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pesquisa-btn:hover {
    background: var(--verde-secundario);
    transform: translateY(-2px);
}

.reset-wrapper {
    text-align: right;
    margin-top: 15px;
}

.reset-btn {
    background: transparent;
    border: 1px solid var(--verde-primario);
    color: var(--verde-primario);
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.reset-btn:hover {
    background: var(--verde-primario);
    color: var(--branco);
}

/* ===== INFO BAR ===== */
.info-bar {
    background: var(--branco);
    border-radius: 12px;
    margin-bottom: 25px;
    box-shadow: var(--sombra);
    overflow: hidden;
}

.info-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    padding: 15px 25px;
    background: linear-gradient(135deg, #f8f9fa, white);
}

.contador {
    color: var(--cinza);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contador i,
.info-pagina i {
    color: var(--verde-primario);
    font-size: 1rem;
}

.contador strong,
.info-pagina strong {
    color: var(--verde-primario);
    font-size: 1rem;
}

.info-pagina {
    color: var(--cinza);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Opções de visualização */
.info-view-options {
    display: flex;
    gap: 8px;
    background: var(--cinza-claro);
    padding: 4px;
    border-radius: 40px;
}

.view-btn {
    background: transparent;
    border: none;
    padding: 6px 12px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s;
    color: var(--cinza);
}

.view-btn:hover {
    background: rgba(15, 107, 58, 0.1);
    color: var(--verde-primario);
}

.view-btn.active {
    background: var(--verde-primario);
    color: white;
}

/* Grid de Propriedades */
.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

/* List View */
.list-view .properties-grid {
    display: flex;
    flex-direction: column;
}

.list-view .property-card {
    display: flex;
    flex-direction: row;
}

.list-view .property-image-container {
    width: 280px;
    height: 200px;
}

.list-view .property-content {
    flex: 1;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 60px;
    background: var(--branco);
    border-radius: 16px;
    grid-column: 1 / -1;
}

.no-results i {
    font-size: 4rem;
    color: #ddd;
    margin-bottom: 20px;
}

.no-results h3 {
    font-size: 1.5rem;
    color: var(--preto);
    margin-bottom: 10px;
}

.no-results p {
    color: var(--cinza);
    margin-bottom: 25px;
}

/* Paginação */
.nav-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin: 30px 0;
}

.nav-btn {
    width: 45px;
    height: 45px;
    border: none;
    background: var(--verde-primario);
    color: var(--branco);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.nav-btn:hover:not(:disabled) {
    background: var(--verde-secundario);
    transform: scale(1.1);
}

.nav-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.5;
}

.nav-info {
    font-weight: 600;
    color: var(--preto);
}

/* Responsivo */
@media (max-width: 768px) {
    .page-hero {
        padding: 40px 20px;
        margin: 10px 15px 30px;
    }
    
    .page-hero h1 {
        font-size: 2rem;
    }
    
    .filtros-body {
        padding: 20px;
    }
    
    .filtros-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .pesquisa-wrapper {
        flex-direction: column;
    }
    
    .properties-grid {
        grid-template-columns: 1fr;
    }
    
    .reset-wrapper {
        text-align: center;
    }
    
    .info-bar-content {
        flex-direction: column;
        text-align: center;
    }
    
    .list-view .property-card {
        flex-direction: column;
    }
    
    .list-view .property-image-container {
        width: 100%;
    }
}

/* Loading animation */
.loading {
    text-align: center;
    padding: 60px;
    background: white;
    border-radius: 16px;
}

.loading i {
    font-size: 3rem;
    color: #0F6B3A;
    margin-bottom: 15px;
}

.loading p {
    color: #666;
    font-size: 1rem;
}

/* ===== PAGINAÇÃO MODERNA ===== */
.paginacao-container {
    margin-top: 40px;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

.paginacao {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    background: white;
    padding: 12px 20px;
    border-radius: 60px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

/* Botões de navegação */
.pagina-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: #f5f5f5;
    border-radius: 50%;
    color: #333;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.pagina-btn i {
    font-size: 0.9rem;
}

.pagina-btn:hover:not(.disabled) {
    background: linear-gradient(135deg, #0F6B3A, #3FA66A);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(15, 107, 58, 0.3);
}

.pagina-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

/* Números das páginas */
.pagina-numero {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 8px;
    background: transparent;
    border-radius: 42px;
    color: #555;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.pagina-numero:hover {
    background: rgba(15, 107, 58, 0.1);
    color: #0F6B3A;
    transform: translateY(-2px);
}

.pagina-numero.active {
    background: linear-gradient(135deg, #0F6B3A, #3FA66A);
    color: white;
    box-shadow: 0 4px 12px rgba(15, 107, 58, 0.3);
}

/* Elipse (...) */
.pagina-ellipsis {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 42px;
    color: #999;
    font-size: 1.1rem;
    letter-spacing: 2px;
}

/* Responsivo para paginação */
@media (max-width: 768px) {
    .paginacao {
        padding: 10px 15px;
        gap: 5px;
        border-radius: 40px;
    }
    
    .pagina-btn,
    .pagina-numero {
        width: 36px;
        height: 36px;
        min-width: 36px;
        font-size: 0.85rem;
    }
    
    .pagina-ellipsis {
        min-width: 28px;
    }
}

@media (max-width: 480px) {
    .paginacao {
        gap: 4px;
        padding: 8px 12px;
    }
    
    .pagina-btn,
    .pagina-numero {
        width: 32px;
        height: 32px;
        min-width: 32px;
        font-size: 0.8rem;
    }
    
    .pagina-ellipsis {
        min-width: 24px;
    }
}