/* ============================================================
   Ghara Jagga Online Nepal Design System
   A premium real-estate marketplace aesthetic
   inspired by modern commercial marketplaces (REA-style)
   ============================================================ */

/* ---------- 1. Design tokens ---------- */
:root {
    /* Brand */
    --hn-ink: #16191c;
    --hn-ink-2: #1b2733;
    --hn-accent: #d50032;
    --hn-accent-soft: #fdeef1;
    --hn-link: #1b66c9;
    --hn-link-soft: #eaf2fd;

    /* Neutrals */
    --hn-bg: #f2f3f3;
    --hn-surface: #ffffff;
    --hn-surface-2: #fafafa;
    --hn-text: #16191c;
    --hn-text-2: #4a5560;
    --hn-muted: #6b7680;
    --hn-border: #e4e7ea;
    --hn-border-strong: #d0d6da;

    /* Feedback */
    --hn-success: #1a7f37;
    --hn-success-soft: #e6f4ea;
    --hn-warning: #b45309;
    --hn-warning-soft: #fdf1e3;
    --hn-danger: #d50032;
    --hn-danger-soft: #fdeef1;
    --hn-info: #1b66c9;
    --hn-info-soft: #eaf2fd;

    /* Type */
    --hn-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

    /* Type scale */
    --hn-h1: 2.25rem;
    --hn-h2: 1.75rem;
    --hn-h3: 1.375rem;
    --hn-h4: 1.125rem;
    --hn-body: 1rem;
    --hn-small: 0.875rem;
    --hn-caption: 0.75rem;

    /* Spacing scale (4px base) */
    --sp-1: 0.25rem;
    --sp-2: 0.5rem;
    --sp-3: 0.75rem;
    --sp-4: 1rem;
    --sp-5: 1.5rem;
    --sp-6: 2rem;
    --sp-7: 3rem;
    --sp-8: 4rem;
    --sp-9: 5rem;

    /* Radii & shadows */
    --hn-radius: 0.375rem;
    --hn-radius-lg: 0.75rem;
    --hn-radius-pill: 999px;
    --hn-shadow-sm: 0 1px 2px rgba(22, 25, 28, 0.05);
    --hn-shadow: 0 2px 8px rgba(22, 25, 28, 0.08);
    --hn-shadow-lg: 0 12px 32px rgba(22, 25, 28, 0.12);

    --bs-primary: var(--hn-ink-2);
    --bs-link-color: var(--hn-link);
    --bs-link-hover-color: #12529f;
    --bs-body-font-family: var(--hn-font);
    --bs-body-color: var(--hn-text);
    --bs-body-bg: var(--hn-bg);
    --bs-border-color: var(--hn-border);
}

/* ---------- 2. Base ---------- */
body {
    font-family: var(--hn-font);
    background: var(--hn-bg);
    color: var(--hn-text);
    font-size: var(--hn-body);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--hn-link);
}

a:hover {
    color: #12529f;
}

::selection {
    background: var(--hn-accent-soft);
    color: var(--hn-ink);
}

/* ---------- 3. Typography ---------- */
h1, .h1 { font-size: var(--hn-h1); line-height: 1.15; letter-spacing: -0.02em; font-weight: 700; }
h2, .h2 { font-size: var(--hn-h2); line-height: 1.2; letter-spacing: -0.015em; font-weight: 700; }
h3, .h3 { font-size: var(--hn-h3); line-height: 1.3; letter-spacing: -0.01em; font-weight: 700; }
h4, .h4, h5, .h5, h6, .h6 { font-weight: 600; letter-spacing: -0.005em; }

.text-muted { color: var(--hn-muted) !important; }
.text-primary { color: var(--hn-ink-2) !important; }
.text-danger { color: var(--hn-danger) !important; }
.text-success { color: var(--hn-success) !important; }
.text-warning { color: var(--hn-warning) !important; }

/* Eyebrow label (REA-style section intro) */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
    font-size: var(--hn-caption);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--hn-accent);
    margin-bottom: var(--sp-2);
}

.section-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--sp-4);
    margin-bottom: var(--sp-5);
}

.section-heading .section-title {
    font-size: var(--hn-h2);
    font-weight: 700;
    letter-spacing: -0.015em;
    margin: 0;
}

.section-heading .section-link {
    font-weight: 600;
    font-size: var(--hn-small);
    text-decoration: none;
    white-space: nowrap;
}

/* ---------- 4. Buttons ---------- */
.btn {
    border-radius: var(--hn-radius);
    font-weight: 600;
    padding: 0.55rem 1.1rem;
    font-size: var(--hn-small);
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}

.btn:active {
    transform: translateY(0.5px);
}

.btn-primary {
    --bs-btn-bg: var(--hn-ink-2);
    --bs-btn-border-color: var(--hn-ink-2);
    --bs-btn-hover-bg: #000;
    --bs-btn-hover-border-color: #000;
    --bs-btn-active-bg: #000;
    --bs-btn-active-border-color: #000;
    --bs-btn-disabled-bg: var(--hn-ink-2);
    --bs-btn-disabled-border-color: var(--hn-ink-2);
}

.btn-accent {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--hn-accent);
    --bs-btn-border-color: var(--hn-accent);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #b8002c;
    --bs-btn-hover-border-color: #b8002c;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #a30027;
    --bs-btn-active-border-color: #a30027;
}

.btn-outline-secondary {
    --bs-btn-color: var(--hn-ink-2);
    --bs-btn-border-color: var(--hn-border-strong);
    --bs-btn-hover-bg: var(--hn-surface-2);
    --bs-btn-hover-color: var(--hn-ink);
    --bs-btn-hover-border-color: var(--hn-border-strong);
    --bs-btn-active-bg: var(--hn-surface-2);
    --bs-btn-active-color: var(--hn-ink);
}

.btn-outline-danger {
    --bs-btn-color: var(--hn-accent);
    --bs-btn-border-color: #f2b7c3;
    --bs-btn-hover-bg: var(--hn-accent);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-border-color: var(--hn-accent);
}

.btn-outline-primary {
    --bs-btn-color: var(--hn-ink-2);
    --bs-btn-border-color: var(--hn-border-strong);
    --bs-btn-hover-bg: var(--hn-ink-2);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-border-color: var(--hn-ink-2);
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.8125rem;
}

/* ---------- 5. Forms ---------- */
.form-control, .form-select {
    border-radius: var(--hn-radius);
    border-color: var(--hn-border-strong);
    padding: 0.55rem 0.85rem;
    font-size: var(--hn-small);
    color: var(--hn-text);
    background-color: var(--hn-surface);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--hn-link);
    box-shadow: 0 0 0 3px rgba(27, 102, 201, 0.14);
}

.form-control-lg, .form-select-lg {
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border-radius: var(--hn-radius);
}

.form-label {
    font-size: var(--hn-small);
    font-weight: 600;
    color: var(--hn-text-2);
    margin-bottom: var(--sp-2);
}

.form-check-input:checked {
    background-color: var(--hn-ink-2);
    border-color: var(--hn-ink-2);
}

.form-check-input:focus {
    border-color: var(--hn-ink-2);
    box-shadow: 0 0 0 3px rgba(27, 39, 51, 0.14);
}

.help-text {
    font-size: var(--hn-caption);
    color: var(--hn-muted);
}

/* ---------- 6. Cards ---------- */
.card {
    border: 1px solid var(--hn-border);
    border-radius: var(--hn-radius-lg);
    background: var(--hn-surface);
}

.card-header {
    background: var(--hn-surface);
    border-bottom: 1px solid var(--hn-border);
    font-weight: 600;
}

.card-body { padding: var(--sp-5); }

.hover-lift {
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.hover-lift:hover {
    box-shadow: var(--hn-shadow);
    transform: translateY(-2px);
}

/* ---------- 7. Header / Navigation (REA-style) ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: var(--hn-surface);
    border-bottom: 1px solid var(--hn-border);
}

.site-header .navbar {
    padding-top: 0.6rem;
    padding-bottom: 0.6rem;
}

.brand-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.brand-mark {
    width: 30px;
    height: 30px;
    background: var(--hn-accent);
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.05rem;
    flex-shrink: 0;
}

.brand-word {
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--hn-ink);
}

.brand-word .brand-accent { color: var(--hn-accent); }

.navbar-nav .nav-link {
    color: var(--hn-ink);
    font-weight: 600;
    font-size: var(--hn-small);
    padding: 0.5rem 0.9rem;
    position: relative;
}

.navbar-nav .nav-link::after {
    content: "";
    position: absolute;
    left: 0.9rem;
    right: 0.9rem;
    bottom: 0.2rem;
    height: 2px;
    background: var(--hn-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.18s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--hn-ink);
}

.navbar-nav .nav-link:hover::after {
    transform: scaleX(1);
}

.navbar-nav .nav-link.active {
    color: var(--hn-accent);
}

.navbar-toggler {
    border: none;
    padding: 0.35rem 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* Desktop (lg+): brand on its own top-centered row, nav gets full width row below.
   Mobile (<lg) keeps the default single-row brand-left + toggler layout. */
@media (min-width: 992px) {
    .navbar-main-container {
        flex-direction: column;
        align-items: stretch;
    }

    .navbar-main-container .navbar-brand {
        align-self: flex-start;
        margin-right: 0 !important;
        margin-bottom: 0.35rem;
    }

    .navbar-main-container #mainNav {
        width: 100%;
        flex-wrap: wrap;
        row-gap: 0.25rem;
    }

    .navbar-main-container #mainNav form[data-testid="global-search-form"] {
        flex: 1 1 160px;
        max-width: 240px;
        min-width: 0;
    }
}

/* ---------- 8. Hero + search (REA-style) ---------- */
.hero-search {
    background:
        radial-gradient(1100px 480px at 82% -10%, rgba(213, 0, 50, 0.28), transparent 60%),
        radial-gradient(900px 520px at 8% 110%, rgba(27, 102, 201, 0.22), transparent 60%),
        linear-gradient(160deg, #101418 0%, #1b2733 55%, #243442 100%);
    color: #fff;
    padding: 4.5rem 0 3.5rem;
    position: relative;
}

.hero-search .container { position: relative; z-index: 1; }

.hero-title {
    font-size: clamp(2rem, 4vw, 3.1rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.1;
    margin-bottom: 0.5rem;
}

.hero-subtitle {
    font-size: 1.1rem;
    opacity: 0.92;
    margin-bottom: 1.75rem;
}

.search-box {
    background: var(--hn-surface);
    border-radius: var(--hn-radius-lg);
    padding: var(--sp-2);
    box-shadow: var(--hn-shadow-lg);
    max-width: 960px;
}

.search-tabs {
    gap: 0;
    padding: 0 var(--sp-3);
}

.search-tabs .nav-link {
    color: var(--hn-text-2);
    font-weight: 600;
    font-size: var(--hn-small);
    padding: 0.6rem 0.9rem;
    border-radius: var(--hn-radius);
    border: none;
}

.search-tabs .nav-link:hover { color: var(--hn-ink); }

.search-tabs .nav-link.active {
    background: var(--hn-accent-soft);
    color: var(--hn-accent);
}

.search-form {
    background: var(--hn-surface);
    border-radius: var(--hn-radius-lg);
    padding: var(--sp-4);
}

.search-form .form-control, .search-form .form-select {
    background: var(--hn-bg);
    border: 1px solid transparent;
}

.search-form .form-control:focus, .search-form .form-select:focus {
    background: #fff;
    border-color: var(--hn-link);
}

/* ---------- 9. Property cards (REA-style) ---------- */
.property-card {
    border: 1px solid var(--hn-border);
    border-radius: var(--hn-radius-lg);
    overflow: hidden;
    background: var(--hn-surface);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.property-card:hover {
    box-shadow: var(--hn-shadow-lg);
    transform: translateY(-2px);
}

.property-card .card-img-top {
    aspect-ratio: 4 / 3;
    object-fit: cover;
    width: 100%;
    transition: transform 0.35s ease;
}

.property-card .position-relative {
    overflow: hidden;
}

.property-card .image-wrap {
    display: block;
}

.property-card:hover .card-img-top {
    transform: scale(1.04);
}

.property-card .card-body {
    padding: var(--sp-4);
    display: flex;
    flex-direction: column;
    flex: 1;
}

.property-price {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--hn-ink);
    line-height: 1.2;
}

.property-title-link {
    color: var(--hn-ink);
    font-weight: 600;
    font-size: var(--hn-body);
    text-decoration: none;
    display: block;
}

.property-title-link:hover { color: var(--hn-ink); text-decoration: underline; }

.property-suburb {
    color: var(--hn-link);
    font-size: var(--hn-small);
    text-decoration: none;
}

.property-suburb:hover { color: #12529f; text-decoration: underline; }

.property-meta {
    display: flex;
    gap: var(--sp-4);
    border-top: 1px solid var(--hn-border);
    padding-top: var(--sp-3);
    margin-top: auto;
}

.property-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--hn-text-2);
    font-size: var(--hn-small);
    font-weight: 500;
}

.property-meta i { color: var(--hn-muted); }

.badge-status {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(255, 255, 255, 0.94);
    color: var(--hn-ink-2);
    font-weight: 700;
    font-size: var(--hn-caption);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.35em 0.7em;
    border-radius: var(--hn-radius-pill);
    box-shadow: var(--hn-shadow-sm);
}

.badge-status.bg-success {
    background: var(--hn-success) !important;
    color: #fff;
}

.badge-status.bg-secondary {
    background: rgba(22, 25, 28, 0.72) !important;
    color: #fff;
}

.pill-tag {
    display: inline-block;
    background: var(--hn-accent);
    color: #fff;
    font-weight: 700;
    font-size: var(--hn-caption);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.3em 0.75em;
    border-radius: var(--hn-radius-pill);
}

.pill-tag.dark { background: var(--hn-ink-2); }
.pill-tag.warn { background: var(--hn-warning); }

.save-button {
    position: absolute;
    right: 12px;
    bottom: 12px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.95);
    color: var(--hn-text-2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--hn-shadow);
    transition: color 0.15s ease, transform 0.15s ease, background-color 0.15s ease;
    z-index: 2;
}

.save-button:hover { color: var(--hn-accent); transform: scale(1.06); }

.save-button[data-saved="true"] {
    color: #fff;
    background: var(--hn-accent);
}

.agent-credit {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--hn-muted);
    font-size: var(--hn-caption);
    margin-top: var(--sp-3);
}

.agent-credit img {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: cover;
}

/* ---------- 10. Agent cards ---------- */
.agent-card {
    border: 1px solid var(--hn-border);
    border-radius: var(--hn-radius-lg);
    background: var(--hn-surface);
    padding: var(--sp-5);
    height: 100%;
    text-align: center;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    display: flex;
    flex-direction: column;
}

.agent-card:hover {
    box-shadow: var(--hn-shadow-lg);
    transform: translateY(-2px);
}

.agent-avatar {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto var(--sp-4);
    display: block;
    border: 3px solid var(--hn-surface);
    box-shadow: 0 0 0 1px var(--hn-border), var(--hn-shadow-sm);
}

.agent-name-link {
    font-weight: 700;
    color: var(--hn-ink);
    text-decoration: none;
}

.agent-name-link:hover { color: var(--hn-accent); }

.rating-stars {
    color: var(--hn-warning);
    letter-spacing: 0.05em;
}

.agent-stats {
    display: flex;
    justify-content: center;
    gap: var(--sp-4);
    border-top: 1px solid var(--hn-border);
    padding-top: var(--sp-3);
    margin-top: auto;
}

.agent-stats span { font-size: var(--hn-small); color: var(--hn-text-2); }

/* ---------- 11. Alerts, badges, tables, pagination ---------- */
.alert {
    border-radius: var(--hn-radius);
    border: 1px solid transparent;
    font-size: var(--hn-small);
}

.alert-success { background: var(--hn-success-soft); color: var(--hn-success); border-color: #cbe8d2; }
.alert-danger { background: var(--hn-danger-soft); color: var(--hn-danger); border-color: #f6cdd6; }
.alert-info { background: var(--hn-info-soft); color: var(--hn-info); border-color: #cfe0f6; }
.alert-warning { background: var(--hn-warning-soft); color: var(--hn-warning); border-color: #f3ddc2; }

.badge {
    font-weight: 600;
    padding: 0.4em 0.75em;
    border-radius: var(--hn-radius-pill);
    font-size: 0.75rem;
}

.badge.bg-primary { background: var(--hn-ink-2) !important; }
.badge.bg-success { background: var(--hn-success) !important; }
.badge.bg-warning { background: var(--hn-warning) !important; color: #fff !important; }
.badge.bg-danger { background: var(--hn-danger) !important; }
.badge.bg-info { background: var(--hn-link) !important; }
.badge.bg-secondary { background: var(--hn-muted) !important; }
.badge.bg-light { background: var(--hn-surface-2) !important; color: var(--hn-text-2) !important; border: 1px solid var(--hn-border); }

.table {
    --bs-table-hover-bg: var(--hn-surface-2);
    font-size: var(--hn-small);
}

.table thead th {
    text-transform: uppercase;
    font-size: var(--hn-caption);
    letter-spacing: 0.05em;
    color: var(--hn-muted);
    border-bottom-width: 1px;
    font-weight: 700;
}

.pagination {
    gap: 0.25rem;
}

.page-link {
    border: 1px solid var(--hn-border);
    color: var(--hn-ink-2);
    border-radius: var(--hn-radius) !important;
    font-weight: 600;
    min-width: 36px;
    text-align: center;
}

.page-link:hover {
    border-color: var(--hn-border-strong);
    color: var(--hn-accent);
    background: var(--hn-surface-2);
}

.page-item.active .page-link {
    background: var(--hn-ink-2);
    border-color: var(--hn-ink-2);
    color: #fff;
}

.page-item.disabled .page-link { color: var(--hn-muted); }

.breadcrumb {
    background: transparent;
    padding: 0;
    font-size: var(--hn-small);
    margin-bottom: var(--sp-5);
}

.breadcrumb-item + .breadcrumb-item::before {
    color: var(--hn-border-strong);
    content: "/";
}

.breadcrumb-item a { color: var(--hn-text-2); text-decoration: none; }
.breadcrumb-item a:hover { color: var(--hn-ink); text-decoration: underline; }
.breadcrumb-item.active { color: var(--hn-muted); }

/* ---------- 12. Dropdown & modal ---------- */
.dropdown-menu {
    border: 1px solid var(--hn-border);
    border-radius: var(--hn-radius-lg);
    box-shadow: var(--hn-shadow-lg);
    padding: var(--sp-2);
}

.dropdown-item {
    border-radius: var(--hn-radius);
    padding: 0.5rem 0.85rem;
    font-size: var(--hn-small);
    font-weight: 500;
}

.dropdown-item:hover, .dropdown-item:focus {
    background: var(--hn-surface-2);
    color: var(--hn-ink);
}

.modal-content {
    border: none;
    border-radius: var(--hn-radius-lg);
    box-shadow: var(--hn-shadow-lg);
}

.modal-header, .modal-footer {
    border-color: var(--hn-border);
}

/* ---------- 13. Footer (REA-style) ---------- */
.site-footer {
    background: #fff;
    border-top: 1px solid var(--hn-border);
    padding: var(--sp-7) 0 var(--sp-6);
    margin-top: var(--sp-8);
}

.site-footer h6 {
    text-transform: uppercase;
    font-size: var(--hn-caption);
    letter-spacing: 0.07em;
    color: var(--hn-muted);
    margin-bottom: var(--sp-4);
}

.site-footer a {
    color: var(--hn-text-2);
    text-decoration: none;
    font-size: var(--hn-small);
    display: inline-block;
    padding: 0.25rem 0;
}

.site-footer a:hover { color: var(--hn-accent); }

.footer-brand .brand-word { font-size: 1.15rem; }

.footer-bottom {
    border-top: 1px solid var(--hn-border);
    margin-top: var(--sp-6);
    padding-top: var(--sp-4);
    font-size: var(--hn-caption);
    color: var(--hn-muted);
}

/* ---------- 14. Auth pages ---------- */
.auth-page {
    background: var(--hn-bg);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-container {
    width: 100%;
    padding: var(--sp-6) var(--sp-4);
    display: flex;
    justify-content: center;
}

.auth-card {
    background: var(--hn-surface);
    border: 1px solid var(--hn-border);
    border-radius: var(--hn-radius-lg);
    box-shadow: var(--hn-shadow);
    padding: var(--sp-6);
    width: 100%;
    max-width: 460px;
}

.auth-card-wide { max-width: 640px; }

.auth-brand {
    display: flex;
    justify-content: center;
    margin-bottom: var(--sp-6);
}

.divider {
    display: flex;
    align-items: center;
    color: var(--hn-muted);
}

.divider::before,
.divider::after {
    content: "";
    flex: 1;
    border-top: 1px solid var(--hn-border);
}

.divider span {
    padding: 0 var(--sp-4);
    font-size: var(--hn-caption);
}

/* ---------- 15. Location autocomplete ---------- */
.location-suggestions {
    position: absolute;
    z-index: 1050;
    background: var(--hn-surface);
    color: var(--hn-text);
    border: 1px solid var(--hn-border);
    border-radius: var(--hn-radius-lg);
    max-height: 300px;
    overflow-y: auto;
    box-shadow: var(--hn-shadow-lg);
}

.location-suggestions .suggestion-item {
    padding: 0.65rem 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: var(--hn-small);
    color: var(--hn-text);
}

.location-suggestions .suggestion-item .text-muted {
    color: var(--hn-text-2) !important;
}

.location-suggestions .suggestion-item:hover {
    background: var(--hn-link-soft);
}

/* ---------- 16. Empty states ---------- */
.empty-state {
    text-align: center;
    padding: var(--sp-8) var(--sp-5);
    border: 1px dashed var(--hn-border-strong);
    border-radius: var(--hn-radius-lg);
    background: var(--hn-surface);
}

.empty-state .empty-icon {
    font-size: 2.5rem;
    color: var(--hn-muted);
    opacity: 0.5;
    margin-bottom: var(--sp-4);
    display: block;
}

.empty-state h5 { font-weight: 700; margin-bottom: var(--sp-2); }
.empty-state p { color: var(--hn-muted); font-size: var(--hn-small); margin-bottom: var(--sp-4); }

/* ---------- 17. Feature tiles (property detail) ---------- */
.feature-box {
    background: var(--hn-surface-2);
    border: 1px solid var(--hn-border);
    border-radius: var(--hn-radius);
    padding: var(--sp-4) var(--sp-3);
    text-align: center;
}

.feature-box .h5, .feature-box .h6 {
    font-weight: 700;
    margin-bottom: var(--sp-1);
}

.feature-box small {
    color: var(--hn-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.7rem;
}

/* ---------- 18. Map panel ---------- */
.map-panel .card {
    border-radius: var(--hn-radius-lg);
    overflow: hidden;
}

/* ---------- 19. Toasts ---------- */
.toast {
    border-radius: var(--hn-radius);
    box-shadow: var(--hn-shadow-lg);
}

#toast-container .toast.bg-danger { background: var(--hn-ink-2) !important; }
#toast-container .toast.bg-warning { background: var(--hn-warning) !important; }

/* ---------- 20. Dashboard (user) ---------- */
.dash-stat {
    background: var(--hn-surface);
    border: 1px solid var(--hn-border);
    border-radius: var(--hn-radius-lg);
    padding: var(--sp-5);
    height: 100%;
    transition: box-shadow 0.2s ease;
}

.dash-stat:hover { box-shadow: var(--hn-shadow); }

.dash-stat .dash-value {
    font-size: 1.9rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.dash-stat .dash-label {
    color: var(--hn-muted);
    font-size: var(--hn-small);
    font-weight: 600;
}

.dash-stat .dash-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--hn-radius);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    background: var(--hn-accent-soft);
    color: var(--hn-accent);
}

.list-link {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    padding: var(--sp-3) var(--sp-2);
    border-bottom: 1px solid var(--hn-border);
    text-decoration: none;
    color: var(--hn-ink);
}

.list-link:hover { background: var(--hn-surface-2); text-decoration: none; color: var(--hn-ink); }

/* ---------- 21. Misc ---------- */
.vh-full { min-height: calc(100vh - 180px); }

.sticky-sidebar { position: sticky; top: 88px; }

@media (max-width: 767.98px) {
    :root {
        --hn-h1: 1.9rem;
    }

    .hero-search { padding: 2.5rem 0 2rem; }

    .search-form { padding: var(--sp-3); }

    .auth-card { padding: var(--sp-5) var(--sp-4); }

    .site-footer { padding: var(--sp-6) 0 var(--sp-5); }
}
