/* ===============================
   ESTILO – LISTAGEM DE IMÓVEIS
   =============================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

body {
    background: #f7f7f7;
    color: #333;
}

/* ============================
   HEADER
   ============================ */

.topbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 18px 60px;
    background: rgba(255,255,255,0.88);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    z-index: 999;
}

.logo {
    height: 60px;
}

.topbar nav a {
    margin-left: 28px;
    font-weight: 600;
    color: #333;
    text-decoration: none;
    transition: 0.2s;
}

.topbar nav a:hover {
    color: #7b2cbf;
}

.btn-login {
    margin-left: 25px;
    padding: 10px 22px;
    border-radius: 10px;
    background: #7b2cbf;
    color: white;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: 0.2s;
}

.btn-login:hover {
    background: #5a1f8f;
}

/* ============================
   CONTAINER PRINCIPAL
   ============================ */

.page-container {
    margin-top: 130px;
    padding: 0 60px;
}

/* ============================
   FILTROS
   ============================ */

/* ============================
   FILTRO – MODELO HORIZONTAL
   ============================ */
/* ============================
   FILTRO PREMIUM — AIRBNB STYLE
   ============================ */

.filter-box {
    background: #ffffff;
    padding: 22px 30px;
    border-radius: 16px;
    box-shadow: 0 8px 28px rgba(0,0,0,0.07);

    display: flex;
    align-items: center;
    gap: 22px;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 45px;

    border: 1px solid #eee;
}

/* GRUPOS */
.filter-box .group {
    display: flex;
    flex-direction: column;
    min-width: 210px;
    flex: 1;
}

.filter-box label {
    font-size: 13px;
    font-weight: 600;
    color: #555;
    margin-bottom: 6px;
}

/* CAMPOS */
.filter-box select,
.filter-box input {
    width: 100%;
    padding: 12px 15px 12px 40px;
    border-radius: 12px;
    border: 1px solid #dcdcdc;
    background: #fafafa;
    font-size: 15px;
    transition: 0.2s ease;
    outline: none;
    position: relative;
}

/* Foco com brilho */
.filter-box select:focus,
.filter-box input:focus {
    border-color: #7b2cbf;
    box-shadow: 0 0 0 3px rgba(123,44,191,0.15);
    background: #fff;
}

/* Ícones nos campos */
.group {
    position: relative;
}

.group i {
    position: absolute;
    left: 12px;
    top: 38px;
    font-size: 17px;
    color: #7b2cbf;
    opacity: .9;
}

/* BOTÃO */
.btn-filtrar {
    padding: 14px 28px;
    background: linear-gradient(135deg, #7b2cbf, #9d4edd);
    border: none;
    color: white;
    font-weight: 700;
    font-size: 15px;
    border-radius: 12px;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 4px 14px rgba(123,44,191,0.22);
    transition: 0.2s ease;
}

.btn-filtrar:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(123,44,191,0.30);
    background: linear-gradient(135deg, #6a1fa8, #8b3ddb);
}

/* MOBILE */
@media (max-width: 768px) {
    .filter-box {
        padding: 18px;
    }

    .btn-filtrar {
        width: 100%;
    }
}

/* ============================
   GRID DE IMÓVEIS
   ============================ */

.imoveis-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 35px;
}

/* CARD DO IMÓVEL */
.card {
    background: white;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    transition: 0.25s ease;
    cursor: pointer;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.12);
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-info {
    padding: 18px;
}

.card-info h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
}

.card-info p {
    font-size: 14px;
    color: #666;
    margin-bottom: 12px;
    line-height: 1.5;
}

.btn-card {
    display: inline-block;
    padding: 10px 18px;
    background: #7b2cbf;
    color: white;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: 0.2s;
}

.btn-card:hover {
    background: #5a1f8f;
}

/* ============================
   FOOTER
   ============================ */

footer {
    background: #7b2cbf;
    color: white;
    text-align: center;
    padding: 25px;
    font-size: 16px;
    margin-top: 60px;
}

/* ============================
   RESPONSIVIDADE
   ============================ */

@media (max-width: 900px) {
    .topbar {
        padding: 15px 25px;
    }

    .page-container {
        padding: 0 25px;
    }

    .filter-box {
        padding: 20px;
    }
}

@media (max-width: 600px) {
    .topbar nav {
        display: none;
    }

    .logo {
        height: 48px;
    }

    .page-container {
        padding: 0 18px;
    }
}

