:root {
    --bg: #f8fbf9;
    --surface: #ffffff;
    --surface-soft: #f1f7f4;
    --text: #0f1f1b;
    --muted: #4f6360;
    --accent: #0b6b5b;
    --accent-dark: #074f42;
    --accent-soft: #dcf3e9;
    --border: rgba(11, 107, 91, 0.14);
    --shadow: 0 18px 40px rgba(11, 107, 91, 0.08);
    --radius: 18px;
    font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

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

.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: saturate(180%) blur(8px);
    position: sticky;
    top: 0;
    z-index: 120;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { height: 40px; width: auto; }
.brand-name { font-weight: 700; letter-spacing: 0.2px; }
.main-nav { display: flex; align-items: center; gap: 6px; }
.main-nav a { margin-left: 10px; color: var(--muted); font-weight: 500; font-size: 15px; transition: color 0.18s ease; }
.main-nav a:hover { color: var(--accent); }
.nav-cta { background: var(--accent); color: #fff !important; padding: 9px 16px; border-radius: 10px; }
.nav-cta:hover { background: var(--accent-dark); }
.nav-toggle { display: none; background: transparent; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle .bar { display: block; width: 22px; height: 2px; background: var(--text); margin: 4px 0; border-radius: 2px; }

/* Page hero */
.page-hero { background: linear-gradient(135deg, rgba(11,107,91,0.08), rgba(245,251,250,0.6)); padding: 48px 0 36px; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.5px; font-size: 0.8rem; font-weight: 700; color: var(--accent); margin: 0 0 8px; }
.page-hero h1 { font-size: 2.4rem; margin: 0 0 8px; }
.lead { color: var(--muted); margin: 0; max-width: 620px; }

/* Layout */
.listing-layout { display: grid; grid-template-columns: 280px 1fr; gap: 28px; padding-top: 32px; padding-bottom: 56px; }

/* Filters */
.filters { position: sticky; top: 88px; align-self: start; }
.filters-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.filter-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.filter-head h3 { margin: 0; font-size: 1.1rem; }
.link-btn { background: none; border: 0; color: var(--accent); font-weight: 600; cursor: pointer; font-size: 0.85rem; }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field > span { font-size: 0.82rem; font-weight: 600; color: var(--muted); }
.field input, .field select {
    width: 100%; padding: 11px 12px; border: 1px solid var(--border);
    border-radius: 10px; background: var(--surface-soft); font: inherit; color: var(--text); outline: none;
}
.field input:focus, .field select:focus { border-color: var(--accent); }

/* Results */
.results-bar { margin-bottom: 16px; }
.muted { color: var(--muted); }
.property-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }

.prop-card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    overflow: hidden; box-shadow: var(--shadow); transition: transform 0.18s ease, box-shadow 0.18s ease;
    display: flex; flex-direction: column;
}
.prop-card:hover { transform: translateY(-4px); box-shadow: 0 26px 50px rgba(11,107,91,0.14); }
.prop-media { position: relative; height: 180px; background: var(--surface-soft); }
.prop-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.prop-media .prop-empty { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 2.4rem; color: var(--accent); background: linear-gradient(135deg, var(--accent-soft), #fff); }
 .prop-status {
     position: absolute; top: 12px; right: 12px; padding: 5px 12px; border-radius: 999px;
     font-size: 0.75rem; font-weight: 700; text-transform: capitalize; background: rgba(255,255,255,0.92); color: var(--accent);
 }
 .prop-tag {
     position: absolute; top: 12px; left: 12px; padding: 5px 12px; border-radius: 999px;
     font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; background: var(--accent); color: #fff;
 }
.prop-body { padding: 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.prop-title { font-size: 1.05rem; font-weight: 700; margin: 0; }
.prop-loc { color: var(--muted); font-size: 0.85rem; display: flex; align-items: center; gap: 6px; margin: 0; }
.prop-price { font-size: 1.15rem; font-weight: 700; color: var(--accent); margin: 4px 0 0; }
.prop-foot { margin-top: auto; padding-top: 12px; }

.wishlist-heart {
    position: absolute; bottom: 12px; right: 12px; width: 40px; height: 40px; border-radius: 50%;
    border: none; background: rgba(255,255,255,0.95); color: var(--muted); cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center; font-size: 1.1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12); backdrop-filter: blur(4px);
    transition: transform 0.12s ease, color 0.15s ease;
}
.wishlist-heart:hover { transform: scale(1.08); }
.wishlist-heart.active { color: #dc2626; }

.fab {
    position: fixed; bottom: 24px; right: 24px; z-index: 90;
    width: 56px; height: 56px; border-radius: 50%; border: none;
    background: var(--accent); color: #fff; font-size: 1.4rem;
    display: inline-flex; align-items: center; justify-content: center;
    box-shadow: 0 8px 24px rgba(11,107,91,0.28); cursor: pointer;
}
.fab-badge {
    position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 6px;
    border-radius: 999px; background: #dc2626; color: #fff; font-size: 0.75rem; font-weight: 700;
    display: inline-flex; align-items: center; justify-content: center;
}

.price-card .btn-ghost {
    background: transparent; color: var(--muted); border: 1px solid var(--border);
}
.price-card .btn-ghost:hover {
    background: var(--accent-soft); color: var(--accent); border-color: var(--accent);
}
.btn {
    display: inline-block; padding: 10px 16px; border-radius: 10px; font-weight: 600; cursor: pointer;
    border: 1px solid transparent; font-size: 0.9rem; transition: transform 0.12s ease, background 0.18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-outline { background: #fff; color: var(--accent); border-color: var(--accent); }
.btn-outline:hover { background: var(--accent); color: #fff; }
.btn-ghost { background: transparent; border-color: var(--border); color: var(--muted); }
.btn-ghost:hover { background: var(--accent-soft); color: var(--accent); border-color: var(--accent); }

.nav-link-login {
    border: 1px solid var(--border);
    padding: 8px 14px;
    border-radius: 8px;
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
}
.nav-link-login:hover { background: var(--accent-soft); color: var(--accent); border-color: var(--accent); }

.mobile-menu {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    top: 64px;
    background: #fff;
    border-top: 1px solid var(--border);
    padding: 18px;
    box-shadow: 0 12px 40px rgba(15, 23, 36, 0.08);
    z-index: 220;
    flex-direction: column;
    gap: 10px;
}

.mobile-menu a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    padding: 6px 0;
}

.mobile-menu button {
    background: none;
    border: none;
    color: var(--accent);
    font-size: 1rem;
    cursor: pointer;
    width: 100%;
    text-align: left;
    padding: 8px 0;
}

.mobile-open .mobile-menu {
    display: flex;
}

.mobile-open .nav-toggle .bar:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.mobile-open .nav-toggle .bar:nth-child(2) {
    opacity: 0;
}

.mobile-open .nav-toggle .bar:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}
.full { width: 100%; text-align: center; }

.empty-state { text-align: center; padding: 56px 24px; border: 1px dashed var(--border); border-radius: var(--radius); color: var(--muted); }
.empty-state i { font-size: 2.4rem; color: var(--accent); display: block; margin-bottom: 8px; }
.empty-state strong { display: block; font-size: 1.1rem; color: var(--text); margin-bottom: 6px; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 36px 0 28px; margin-top: 24px; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 24px; }
.footer-col h4 { margin: 0 0 10px; font-size: 0.95rem; }
.footer-col a { display: block; color: var(--muted); font-size: 0.9rem; margin-bottom: 8px; }
.footer-col a:hover { color: var(--accent); }
.footer-logo { height: 36px; margin-bottom: 10px; }

/* Responsive */
@media (max-width: 900px) {
    .listing-layout { grid-template-columns: 1fr; }
    .filters { position: static; }
    .page-hero h1 { font-size: 1.9rem; }
    .main-nav { display: none; }
    .nav-toggle { display: inline-flex; flex-direction: column;}
    .footer-inner { grid-template-columns: 1fr; }
}
