/* Extending main styles for imoveis page */
@import url('../styles.css');

.page-header {
    background: var(--primary-color);
    background-image: linear-gradient(rgba(11, 28, 60, 0.9), rgba(11, 28, 60, 0.9)), url('https://images.unsplash.com/photo-1560518883-ce09059eeffa?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 100px 5%;
    text-align: center;
}

.page-header h1 {
    color: var(--white);
    font-size: 3.5rem;
    margin-bottom: 15px;
    text-transform: none;
}

.page-header p {
    color: var(--secondary-color);
    font-size: 1.2rem;
    font-family: var(--font-text);
}

.imoveis-container {
    display: flex;
    padding: 80px 5%;
    gap: 40px;
    align-items: flex-start;
    max-width: 1300px;
    margin: 0 auto;
}

/* Sidebar Filters */
.filters-sidebar {
    width: 320px;
    background: var(--white);
    padding: 35px;
    border-radius: 5px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
    flex-shrink: 0;
    position: sticky;
    top: 100px;
}

.filters-sidebar h3 {
    margin-bottom: 30px;
    font-size: 1.5rem;
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 15px;
    display: block;
}

.filter-group {
    margin-bottom: 25px;
}

.filter-group label {
    display: block;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-dark);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.range-values {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--text-gray);
    margin-top: 5px;
}

input[type=range] {
    width: 100%;
    accent-color: var(--secondary-color);
    cursor: pointer;
}

.lance-inicial-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-family: var(--font-text);
    background-color: var(--bg-light);
}

.lance-inicial-input:focus {
    border-color: var(--secondary-color);
    outline: none;
    background-color: var(--white);
}

/* Imoveis Grid */
.imoveis-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.imovel-card {
    background: var(--white);
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: var(--transition);
    border: 1px solid #eaeaea;
}

.imovel-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    border-color: var(--secondary-color);
}

.imovel-img-wrapper {
    position: relative;
    overflow: hidden;
}

.imovel-img {
    height: 250px;
    width: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.imovel-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--primary-color);
    color: var(--secondary-color);
    padding: 6px 15px;
    border-radius: 3px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.imovel-info {
    padding: 30px;
}

.imovel-title {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.imovel-address {
    color: var(--text-gray);
    font-size: 0.95rem;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.imovel-address i {
    color: var(--secondary-color);
    margin-top: 3px;
}

.imovel-features {
    display: flex;
    justify-content: space-between;
    padding: 20px 0;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 20px;
}

.feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-dark);
    font-weight: 700;
}

.feature i {
    color: var(--secondary-color);
    margin-bottom: 8px;
    font-size: 1.2rem;
}

.imovel-price {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.imovel-price span {
    font-size: 0.85rem;
    color: var(--text-gray);
    font-weight: 400;
    display: block;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@media (max-width: 992px) {
    .imoveis-container {
        flex-direction: column;
    }
    .filters-sidebar {
        width: 100%;
        position: static;
    }
    .page-header h1 {
        font-size: 2.5rem;
    }
}
