* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f5f7fb;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}

.logo h1 {
    font-size: 28px;
    color: #2c3e50;
}

.logo span {
    color: #e74c3c;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: #2c3e50;
    font-weight: 500;
}

.nav-links a:hover, .nav-links a.active {
    color: #e74c3c;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #2c3e50;
    margin: 3px 0;
}

/* Hero */
.hero {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    text-align: center;
    padding: 80px 20px;
}

.hero h2 {
    font-size: 48px;
    margin-bottom: 20px;
}

.hero p {
    font-size: 20px;
}

/* Filters */
.filters-section {
    background: white;
    padding: 30px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    position: relative;
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-group label {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 5px;
    color: #666;
}

.filter-group input, .filter-group select {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
}

.price-range {
    display: flex;
    gap: 10px;
    align-items: center;
}

.btn-reset {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
}

/* Listings Grid */
.listings-section {
    padding: 50px 0;
}

.listings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.listings-header h3 {
    font-size: 28px;
    color: #2c3e50;
}

.listings-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    width: 100%;
}

@media (max-width: 1024px) {
    .listings-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .listings-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Property Card */
.property-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.property-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.card-image {
    aspect-ratio: 4/3;
    overflow: hidden;
    position: relative;
    width: 100%;
    background: #f0f0f0;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.property-card:hover .card-image img {
    transform: scale(1.05);
}

.badge-container {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    z-index: 10;
}

.badge {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: bold;
    color: white;
    text-align: center;
}

.badge-sale { background: #27ae60; }
.badge-commercial { background: #2980b9; }
.badge-lease { background: #8e44ad; }
.badge-business { background: #e67e22; }

.open-house-badge {
    background: #f39c12;
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    display: inline-block;
    margin: 5px 0;
}

.card-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.price {
    font-size: 22px;
    font-weight: bold;
    color: #e74c3c;
    margin-bottom: 8px;
}

.address {
    color: #555;
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 500;
}

.details {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 10px 0;
    color: #777;
    font-size: 13px;
}

.details i {
    margin-right: 4px;
    width: 16px;
}

.btn-view {
    display: inline-block;
    background: #2c3e50;
    color: white;
    text-decoration: none;
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.3s;
    text-align: center;
    margin-top: 12px;
}

.btn-view:hover {
    background: #e74c3c;
}

.no-results {
    text-align: center;
    padding: 60px;
    background: white;
    border-radius: 12px;
    grid-column: 1 / -1;
}

/* Footer */
footer {
    background: #2c3e50;
    color: white;
    text-align: center;
    padding: 40px 0 20px;
    margin-top: 50px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #445566;
}

.footer-logo img {
    max-height: 60px;
    width: auto;
}

.footer-info {
    text-align: right;
}

.footer-info p {
    margin: 5px 0;
}

.footer-disclaimer {
    font-size: 11px;
    line-height: 1.5;
    color: #99aabb;
    margin-bottom: 20px;
}

.footer-copyright {
    text-align: center;
    font-size: 12px;
    color: #99aabb;
    padding-top: 20px;
    border-top: 1px solid #445566;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: white;
        padding: 20px;
        text-align: center;
    }
    .nav-links.active {
        display: flex;
    }
    .hamburger {
        display: flex;
    }
    .hero h2 {
        font-size: 32px;
    }
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    .footer-info {
        text-align: center;
    }
}