:root {
    --primary-color: #0052cc;
    --secondary-color: #263c5a;
    --accent-color: #ff9f1c;
    --bg-light: #f4f7f9;
    --text-dark: #333;
    --text-muted: #666;
    --white: #ffffff;
    --border-color: #ddd;
    --shadow: 0 4px 12px rgba(0,0,0,0.1);
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Header & Navigation */
header {
    background: var(--white);
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.auth-buttons a {
    margin-left: 1rem;
    padding: 0.5rem 1.2rem;
    border-radius: 5px;
}

.btn-login {
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-register {
    background: var(--primary-color);
    color: var(--white);
}

/* Hero Section */
.hero {
    height: 60vh;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('https://images.unsplash.com/photo-1560518883-ce09059eeffa?ixlib=rb-4.0.3&auto=format&fit=crop&w=1600&q=80') center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-align: center;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.search-box {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    color: var(--text-dark);
}

.search-box input, .search-box select {
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
}

.btn-search {
    background: var(--accent-color);
    color: var(--white);
    border: none;
    padding: 0 2rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

/* Property Cards */
.property-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    padding: 3rem 0;
}

.property-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

.property-card:hover {
    transform: translateY(-5px);
}

.property-img {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.property-info {
    padding: 1.5rem;
}

.property-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.property-title {
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.property-location {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.property-features {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
}

/* Dashboard Styles */
.dashboard-layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 260px;
    background: var(--secondary-color);
    color: var(--white);
    padding: 2rem 1rem;
}

.sidebar h2 {
    margin-bottom: 2rem;
    text-align: center;
}

.sidebar ul li a {
    display: block;
    padding: 0.8rem 1rem;
    margin-bottom: 0.5rem;
    border-radius: 4px;
}

.sidebar ul li a:hover, .sidebar ul li a.active {
    background: rgba(255,255,255,0.1);
}

.main-content {
    flex: 1;
    padding: 2rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    text-align: center;
}

.stat-card h3 {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.stat-card .value {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-color);
}

/* Tables */
.table-container {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

th {
    background: var(--bg-light);
}

/* Footer */
footer {
    background: var(--secondary-color);
    color: var(--white);
    padding: 3rem 0;
    margin-top: 5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.footer-col h4 {
    margin-bottom: 1.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .hero-content h1 {
        font-size: 2rem;
    }
    .search-box {
        flex-direction: column;
    }
    .dashboard-layout {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
    }
}
