:root {
    --bg: #f5f7fb;
    --surface: #ffffff;
    --text: #1f2937;
    --muted: #6b7280;
    --primary: #0f766e;
    --primary-dark: #115e59;
    --danger: #b91c1c;
    --warning: #a16207;
    --success: #166534;
    --border: #e5e7eb;
}

* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text);
    background: linear-gradient(180deg, #f8fafc, #eef2ff);
}
.container {
    width: min(1100px, 92%);
    margin: 0 auto;
}
.row { display: flex; gap: 1rem; align-items: center; }
.space-between { justify-content: space-between; }
.topbar {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 10;
}
.brand {
    color: var(--primary-dark);
    text-decoration: none;
    font-weight: 700;
    padding: 1rem 0;
}
.nav a {
    text-decoration: none;
    color: var(--text);
    margin-left: 1rem;
    font-size: 0.95rem;
}
.nav a:hover { color: var(--primary); }
main.container { padding: 1.5rem 0 3rem; min-height: 75vh; }
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
}
.grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
.property-card img {
    width: 100%;
    height: 170px;
    object-fit: cover;
    border-radius: 8px;
}
h1, h2, h3 { margin-top: 0; }
form { display: grid; gap: 0.8rem; }
label { font-size: 0.9rem; color: var(--muted); }
input, select, textarea, button {
    width: 100%;
    padding: 0.62rem 0.7rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.95rem;
}
textarea { min-height: 110px; resize: vertical; }
button, .btn {
    background: var(--primary);
    color: #fff;
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}
button:hover, .btn:hover { background: var(--primary-dark); }
.btn-secondary { background: #475569; }
.btn-danger { background: var(--danger); }
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}
.stat-box {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1rem;
}
.stat-label { color: var(--muted); font-size: 0.85rem; }
.stat-value { font-size: 1.4rem; font-weight: 700; }
table {
    width: 100%;
    border-collapse: collapse;
    background: var(--surface);
    border: 1px solid var(--border);
}
th, td {
    border-bottom: 1px solid var(--border);
    text-align: left;
    padding: 0.65rem;
    font-size: 0.92rem;
}
.badge {
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    font-size: 0.78rem;
    color: #fff;
}
.badge-success { background: var(--success); }
.badge-warning { background: var(--warning); }
.badge-danger { background: var(--danger); }
.badge-secondary { background: #64748b; }
.alert {
    padding: 0.8rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}
.alert-success { background: #dcfce7; color: #14532d; }
.alert-danger { background: #fee2e2; color: #7f1d1d; }
.alert-warning { background: #fef3c7; color: #78350f; }
.hero {
    background: linear-gradient(120deg, #0f766e, #1d4ed8);
    color: #fff;
    border-radius: 12px;
    padding: 1.6rem;
    margin-bottom: 1rem;
}
.footer {
    border-top: 1px solid var(--border);
    background: var(--surface);
    padding: 1rem 0;
    color: var(--muted);
}
.inline { display: flex; gap: 0.6rem; align-items: center; }
.filters {
    display: grid;
    gap: 0.6rem;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}
@media (max-width: 740px) {
    .nav { display: flex; flex-wrap: wrap; justify-content: flex-end; }
    .nav a { margin-left: 0.6rem; }
}
