* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background: #F5EFE3;
    color: #1a1a1a;
    font-family: 'Nunito', sans-serif;
}

.container {
    width: min(1280px, 92%);
    margin: 0 auto;
}



.biens-hero {
    background: linear-gradient(135deg, rgba(47, 82, 51, 0.92), rgba(31, 59, 45, 0.92));
    color: #ffffff;
    padding: 5rem 0 4rem;
    text-align: center;
}

.biens-hero h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3.4rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.biens-hero p {
    font-size: 1.08rem;
    color: rgba(255, 255, 255, 0.9);
}

.filters-section {
    margin-top: -2rem;
    margin-bottom: 2.5rem;
    position: relative;
    z-index: 2;
}

.filters-box {
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.08);
    padding: 1.4rem;
}

.filters-top {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
}

.search-wrap {
    flex: 1;
    position: relative;
}

.search-wrap i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #8b8b8b;
    font-size: 0.95rem;
}

.search-wrap input {
    width: 100%;
    height: 54px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 0 1rem 0 2.9rem;
    font-family: 'Nunito', sans-serif;
    font-size: 0.98rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-wrap input:focus {
    border-color: #2f5233;
    box-shadow: 0 0 0 3px rgba(47, 82, 51, 0.08);
}

.filters-toggle {
    border: none;
    background: #D4AF37;
    color: #1a1a1a;
    border-radius: 12px;
    padding: 0 1.2rem;
    height: 54px;
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
    transition: background 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.filters-toggle:hover {
    background: #c19b2e;
}

.filters-expand {
    display: none;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1.2rem;
    padding-top: 1.2rem;
    border-top: 1px solid #f0f0f0;
}

.filters-expand.open {
    display: grid;
}

.filter-group label {
    display: block;
    margin-bottom: 0.45rem;
    color: #444444;
    font-weight: 700;
    font-size: 0.92rem;
}

.filter-group select {
    width: 100%;
    height: 52px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 0 0.95rem;
    font-family: 'Nunito', sans-serif;
    font-size: 0.95rem;
    background: #ffffff;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.filter-group select:focus {
    border-color: #2f5233;
    box-shadow: 0 0 0 3px rgba(47, 82, 51, 0.08);
}

.filter-actions {
    display: flex;
    align-items: end;
    gap: 0.8rem;
}

.btn-apply,
.btn-reset {
    height: 52px;
    border-radius: 12px;
    padding: 0 1.2rem;
    text-decoration: none;
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.btn-apply {
    background: #D4AF37;
    color: #1a1a1a;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-apply:hover {
    background: #c19b2e;
}

.btn-reset {
    background: #f5efe3;
    color: #2f5233;
    border: 1px solid #e6dcc8;
}

.btn-reset:hover {
    background: #eee3cb;
}

.results-count {
    margin-top: 1rem;
    color: #666666;
    font-size: 0.95rem;
    font-weight: 600;
}

.biens-listing {
    padding-bottom: 2rem;
}

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

.bien-card {
    background: #ffffff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.bien-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 35px rgba(0, 0, 0, 0.1);
}

.bien-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.bien-image-wrap {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.bien-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.bien-type-badge,
.bien-transaction-badge {
    position: absolute;
    top: 14px;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.14);
}

.bien-type-badge {
    left: 14px;
    background: #D4AF37;
    color: #1a1a1a;
}

.bien-transaction-badge {
    right: 14px;
    color: #ffffff;
}

.badge-vente {
    background: #2f5233;
}

.badge-location {
    background: #a67c52;
}

.bien-content {
    padding: 1.3rem;
}

.bien-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.4rem;
    line-height: 1.2;
}

.bien-location {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    color: #666666;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.bien-location i {
    color: #D4AF37;
}

.bien-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.2rem;
}

.meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: #4b5563;
    font-size: 0.92rem;
    background: #f8f6f0;
    border-radius: 999px;
    padding: 0.45rem 0.8rem;
}

.meta-item i {
    color: #D4AF37;
}

.bien-footer {
    position: relative;
    padding-top: 1rem;
}

.bien-price {
    position: absolute;
    bottom: 0;
    right: 0;
    background: #1a1a1a;
    color: #D4AF37;
    padding: 0.6rem 1.2rem;
    font-size: 1.15rem;
    font-weight: 800;
    border-top-left-radius: 12px;
}

.price-euro {
    font-size: 1rem;
    font-weight: 700;
}

.bien-detail-link {
    color: #2f5233;
    font-weight: 800;
    font-size: 0.95rem;
}

.empty-state {
    background: #ffffff;
    border-radius: 18px;
    padding: 3rem 1.5rem;
    text-align: center;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.05);
}

.empty-state p {
    color: #666666;
    font-size: 1rem;
}

@media (max-width: 1100px) {
    .biens-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .filters-expand {
        grid-template-columns: 1fr 1fr;
    }

    .filter-actions {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .biens-hero {
        padding: 4rem 0 3rem;
    }

    .biens-hero h1 {
        font-size: 2.7rem;
    }

    .filters-top {
        flex-direction: column;
        align-items: stretch;
    }

    .filters-toggle {
        width: 100%;
        justify-content: center;
    }

    .filters-expand {
        grid-template-columns: 1fr;
    }

    .biens-grid {
        grid-template-columns: 1fr;
    }
}