/* ================================================
   MyEstate — 99acres-inspired Design System
   Font: Plus Jakarta Sans
   ================================================ */

*, *::before, *::after {
    box-sizing: border-box;
}

:root {
    --red: #e63946;
    --red-dark: #c1121f;
    --red-light: #fff0f1;
    --navy: #0d1b2a;
    --navy-mid: #1b2d3e;
    --text: #1a1a2e;
    --text-muted: #6b7280;
    --border: #e5e7eb;
    --bg-soft: #f9fafb;
    --white: #ffffff;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.14);
    --radius: 10px;
    --radius-lg: 16px;
    --font: 'Plus Jakarta Sans', sans-serif;
    /* ── Extended variables added for migrated view styles ── */
    --navy-light: #1a1f2e;
    --navy-card: #1e2a3a;
    --green: #198754;
    --green-light: #eafaf1;
    --orange: #fd7e14;
    --blue-accent: #1a6fcf;
    --blue-light: #e8f1fb;
    --gray-border: #dee2e6;
    --input-border: #ced4da;
    --bg: #f4f7fb;
    --gray-bg: #f4f6f9;
    --text-dark: #212529;
    --muted: #6b7d93;
    --shadow: 0 2px 12px rgba(13,27,42,.08);
    --badge-rent-bg: #e8f0fe;
    --badge-rent-color: #3d5a99;
}

body {
    font-family: var(--font);
    color: var(--text);
    background: var(--bg-soft);
    margin: 0;
}

/* ================================================
   TOP BAR
   ================================================ */
.topbar {
    background: var(--navy);
    color: rgba(255,255,255,0.75);
    font-size: 12px;
    padding: 6px 0;
}

.topbar-text {
    font-weight: 500;
    letter-spacing: 0.3px;
}

.topbar-link {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

    .topbar-link:hover {
        color: #fff;
    }

    .topbar-link i {
        margin-right: 5px;
    }

/* ================================================
   MAIN NAVBAR
   ================================================ */
.main-navbar {
    background: var(--white);
    border-bottom: 2px solid var(--red);
    padding: 0;
    box-shadow: var(--shadow-md);
    z-index: 1000;
}

    .main-navbar .container {
        display: flex;
        flex-direction: column;
        padding: 12px 16px;
    }

.brand-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.brand-icon {
    width: 34px;
    height: 34px;
    background: var(--red);
    color: #fff;
    font-weight: 800;
    font-size: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.brand-name {
    font-size: 20px;
    font-weight: 800;
    color: var(--navy);
    letter-spacing: -0.5px;
}

.nav-links {
    gap: 2px !important;
}

.nav-pill {
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    font-size: 13.5px;
    padding: 7px 13px;
    border-radius: 6px;
    transition: background 0.18s, color 0.18s;
    white-space: nowrap;
}

    .nav-pill:hover, .nav-pill.active {
        background: var(--red-light);
        color: var(--red);
    }

.btn-post-property {
    background: var(--red);
    color: #fff !important;
    font-weight: 700;
    font-size: 13px;
    padding: 9px 18px;
    border-radius: 8px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s, transform 0.15s;
    display: inline-flex;
    align-items: center;
}

    .btn-post-property:hover {
        background: var(--red-dark);
        transform: translateY(-1px);
        color: #fff;
    }

.btn-login {
    text-decoration: none;
    color: var(--red);
    font-weight: 700;
    font-size: 13px;
    padding: 8px 16px;
    border: 2px solid var(--red);
    border-radius: 8px;
    transition: background 0.18s, color 0.18s;
    white-space: nowrap;
}

    .btn-login:hover {
        background: var(--red);
        color: #fff;
    }

.btn-user-menu {
    background: none;
    border: 2px solid var(--border);
    border-radius: 8px;
    padding: 6px 12px;
    font-family: var(--font);
    font-weight: 600;
    font-size: 13px;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: border-color 0.2s;
}

    .btn-user-menu:hover {
        border-color: var(--red);
    }

.user-avatar {
    width: 28px;
    height: 28px;
    background: var(--red);
    color: #fff;
    border-radius: 50%;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.user-dropdown {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 8px;
    min-width: 220px;
}

.dropdown-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
}

.user-avatar-lg {
    width: 42px;
    height: 42px;
    background: var(--red);
    color: #fff;
    border-radius: 50%;
    font-size: 18px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.user-dropdown .dropdown-item {
    border-radius: 6px;
    font-weight: 500;
    font-size: 13.5px;
    padding: 8px 12px;
}

    .user-dropdown .dropdown-item:hover {
        background: var(--bg-soft);
    }

    .user-dropdown .dropdown-item.text-danger:hover {
        background: #fff5f5;
    }

.fw-600 {
    font-weight: 600;
}

.mobile-toggle {
    background: none;
    border: 2px solid var(--border);
    border-radius: 8px;
    padding: 6px 10px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

    .mobile-toggle span {
        display: block;
        width: 20px;
        height: 2px;
        background: var(--text);
        border-radius: 2px;
        transition: 0.2s;
    }

.mobile-menu-body {
    padding: 12px 0;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 2px;
}

    .mobile-menu-body a {
        text-decoration: none;
        color: var(--text);
        font-weight: 600;
        font-size: 14px;
        padding: 10px 8px;
        border-radius: 8px;
        transition: background 0.18s;
    }

        .mobile-menu-body a:hover {
            background: var(--red-light);
            color: var(--red);
        }

/* ================================================
   MAIN CONTENT
   ================================================ */
.main-content {
    min-height: calc(100vh - 200px);
}

/* ================================================
   HERO SECTION
   ================================================ */
.hero-section {
    background: linear-gradient(135deg, rgba(13,27,42,0.88) 0%, rgba(198,0,30,0.7) 100%), url('https://images.unsplash.com/photo-1560518883-ce09059eeffa?w=1600') center/cover no-repeat;
    padding: 80px 0 60px;
    color: #fff;
}

    .hero-section h1 {
        font-size: 40px;
        font-weight: 800;
        letter-spacing: -1px;
        line-height: 1.15;
    }

    .hero-section p {
        font-size: 17px;
        opacity: 0.88;
    }

.search-box {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 6px;
    box-shadow: var(--shadow-lg);
    max-width: 820px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 6px;
}

    .search-box input {
        border: none;
        outline: none;
        flex: 1;
        font-family: var(--font);
        font-size: 15px;
        padding: 10px 14px;
        color: var(--text);
        background: transparent;
        max-width: 100%;
    }

    .search-box select {
        border: none;
        border-right: 1px solid var(--border);
        outline: none;
        font-family: var(--font);
        font-size: 14px;
        font-weight: 600;
        padding: 10px 12px;
        color: var(--text);
        background: transparent;
        max-width: 130px;
    }

    .search-box .btn-search {
        background: var(--red);
        color: #fff;
        border: none;
        border-radius: 10px;
        padding: 12px 28px;
        font-family: var(--font);
        font-size: 15px;
        font-weight: 700;
        cursor: pointer;
        transition: background 0.2s;
        white-space: nowrap;
    }

        .search-box .btn-search:hover {
            background: var(--red-dark);
        }

.search-tabs {
    gap: 4px;
}

.search-tab {
    background: rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.8);
    border: 1.5px solid rgba(255,255,255,0.3);
    border-radius: 24px;
    padding: 6px 20px;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--font);
}

    .search-tab:hover, .search-tab.active {
        background: #fff;
        color: var(--red);
        border-color: #fff;
    }

/* ================================================
   SECTION HEADING
   ================================================ */
.section-heading {
    font-size: 26px;
    font-weight: 800;
    color: var(--navy);
    letter-spacing: -0.5px;
}

    .section-heading span {
        color: var(--red);
    }

.section-sub {
    font-size: 15px;
    color: var(--text-muted);
}

/* ================================================
   BADGES / LABELS
   ================================================ */
.badge-red {
    background: var(--red-light);
    color: var(--red);
    font-weight: 700;
}

.badge-navy {
    background: #e8edf3;
    color: var(--navy);
    font-weight: 700;
}

/* ================================================
   FORMS
   ================================================ */
input, select, textarea {
    max-width: 100%;
    font-family: var(--font) !important;
}

.form-control, .form-select {
    border-radius: 8px;
    border: 1.5px solid var(--border);
    font-family: var(--font);
    font-size: 14px;
    padding: 10px 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

    .form-control:focus, .form-select:focus {
        border-color: var(--red);
        box-shadow: 0 0 0 3px rgba(230,57,70,0.12);
    }

label {
    font-weight: 600;
    font-size: 13.5px;
    color: var(--text);
    margin-bottom: 5px;
}

.btn-primary {
    background: var(--red) !important;
    border-color: var(--red) !important;
    font-weight: 700;
    font-family: var(--font);
    border-radius: 8px;
    padding: 10px 24px;
    font-size: 14px;
    transition: background 0.2s, transform 0.15s;
}

    .btn-primary:hover {
        background: var(--red-dark) !important;
        border-color: var(--red-dark) !important;
        transform: translateY(-1px);
    }

.btn-outline-primary {
    color: var(--red) !important;
    border-color: var(--red) !important;
    font-weight: 700;
    font-family: var(--font);
    border-radius: 8px;
}

    .btn-outline-primary:hover {
        background: var(--red) !important;
        color: #fff !important;
    }

/* ================================================
   TABLES
   ================================================ */
.table {
    font-size: 14px;
    font-family: var(--font);
}

    .table thead th {
        background: var(--navy);
        color: #fff;
        font-weight: 700;
        border: none;
        padding: 13px 16px;
        font-size: 13px;
        letter-spacing: 0.3px;
    }

    .table tbody tr:hover {
        background: var(--red-light);
    }

    .table tbody td {
        padding: 12px 16px;
        vertical-align: middle;
        border-color: var(--border);
    }

/* ================================================
   ALERTS / VALIDATION
   ================================================ */
.validation-summary-errors {
    background: #fff0f1;
    border: 1.5px solid #ffc9cc;
    border-radius: 8px;
    padding: 12px 16px;
    color: var(--red-dark);
    font-size: 13.5px;
}

.field-validation-error {
    color: var(--red);
    font-size: 12px;
    font-weight: 600;
}

.input-validation-error {
    border-color: var(--red) !important;
}

/* ================================================
   PANELS (BEP compat)
   ================================================ */
.panel-title {
    background: var(--navy);
    color: #fff;
    border-radius: var(--radius) var(--radius) 0 0;
    padding: 12px 16px;
    font-weight: 700;
    font-size: 15px;
}

/* ================================================
   PAGINATION
   ================================================ */
.pagination .page-link {
    font-family: var(--font);
    font-weight: 600;
    color: var(--navy);
    border-radius: 8px !important;
    margin: 0 2px;
    border-color: var(--border);
}

.pagination .page-item.active .page-link {
    background: var(--red);
    border-color: var(--red);
}

.pagination .page-link:hover {
    background: var(--red-light);
    color: var(--red);
}

/* ================================================
   FOOTER
   ================================================ */
.site-footer {
    background: var(--navy);
    color: rgba(255,255,255,0.75);
    padding: 52px 0 0;
    margin-top: 60px;
}

.footer-top {
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-desc {
    font-size: 13.5px;
    line-height: 1.65;
    color: rgba(255,255,255,0.6);
}

.footer-heading {
    color: #fff;
    font-weight: 800;
    font-size: 14px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

    .footer-links li, .footer-links a {
        font-size: 13.5px;
        color: rgba(255,255,255,0.6);
        text-decoration: none;
        transition: color 0.2s;
    }

        .footer-links a:hover {
            color: var(--red);
        }

    .footer-links i {
        width: 16px;
    }

.social-links {
    display: flex;
    gap: 10px;
}

    .social-links a {
        width: 34px;
        height: 34px;
        background: rgba(255,255,255,0.1);
        color: #fff;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 14px;
        transition: background 0.2s;
        text-decoration: none;
    }

        .social-links a:hover {
            background: var(--red);
        }

.footer-bottom {
    padding: 18px 0;
    font-size: 13px;
    color: rgba(255,255,255,0.45);
    text-align: center;
}

/* ================================================
   UTILITY
   ================================================ */
.body-content {
    padding: 0;
    margin: 0;
}

.text-red {
    color: var(--red);
}

.text-navy {
    color: var(--navy);
}

.bg-red {
    background: var(--red);
}

.bg-navy {
    background: var(--navy);
}

.dl-horizontal dt {
    white-space: normal;
}

/* ================================================
   BEP COMPAT
   ================================================ */
.multiselect {
    border: solid 1px var(--border);
    overflow: auto;
    padding: 5px;
    border-radius: 6px;
}

    .multiselect label {
        display: block;
    }

.multiselect-on {
    color: #fff;
    background-color: var(--navy);
}

.marginleft-5 {
    margin-left: 5px;
}

.errorText {
    font-size: x-small;
}

/* ================================================
   PAGE HEADER
   ================================================ */
.page-header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 20px 0 16px;
    margin-bottom: 0;
}

.page-breadcrumb {
    font-size: 12.5px;
    color: var(--text-muted);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

    .page-breadcrumb a {
        color: var(--text-muted);
        text-decoration: none;
    }

        .page-breadcrumb a:hover {
            color: var(--red);
        }

    .page-breadcrumb span {
        color: var(--border);
    }

        .page-breadcrumb span:last-child {
            color: var(--text);
        }

.page-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--navy);
    margin: 0;
    letter-spacing: -0.5px;
}

.page-body {
    padding: 28px 0 40px;
}

/* ================================================
   FILTER CARD
   ================================================ */
.filter-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    margin-bottom: 20px;
}

.filter-card-header {
    background: var(--navy);
    color: rgba(255,255,255,0.9);
    padding: 12px 20px;
    font-size: 13.5px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

    .filter-card-header i {
        margin-right: 8px;
        color: var(--red);
    }

.filter-card-body {
    padding: 20px;
}

.filter-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    display: block;
}

.filter-input {
    width: 100%;
    max-width: 100%;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    padding: 9px 13px;
    font-family: var(--font);
    font-size: 14px;
    color: var(--text);
    transition: border-color 0.2s, box-shadow 0.2s;
}

    .filter-input:focus {
        border-color: var(--red);
        box-shadow: 0 0 0 3px rgba(230,57,70,0.1);
        outline: none;
    }

.filter-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 4px;
    border-top: 1px solid var(--border);
}

/* ================================================
   ACTION BUTTONS
   ================================================ */
.btn-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-family: var(--font);
    font-size: 13px;
    font-weight: 700;
    padding: 8px 18px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.18s;
    line-height: 1;
}

.btn-action-lg {
    padding: 11px 28px;
    font-size: 14.5px;
}

.btn-action-sm {
    padding: 6px 12px;
    font-size: 12px;
}

.btn-action-primary {
    background: var(--red);
    color: #fff !important;
}

    .btn-action-primary:hover {
        background: var(--red-dark);
        transform: translateY(-1px);
    }

.btn-action-navy {
    background: var(--navy);
    color: #fff !important;
}

    .btn-action-navy:hover {
        background: var(--navy-mid);
    }

.btn-action-success {
    background: #16a34a;
    color: #fff !important;
}

    .btn-action-success:hover {
        background: #15803d;
    }

.btn-action-warning {
    background: #d97706;
    color: #fff !important;
}

    .btn-action-warning:hover {
        background: #b45309;
    }

.btn-action-outline {
    background: transparent;
    color: var(--navy) !important;
    border: 1.5px solid var(--border);
}

    .btn-action-outline:hover {
        border-color: var(--red);
        color: var(--red) !important;
        background: var(--red-light);
    }

.btn-action-ghost {
    background: transparent;
    color: var(--text-muted) !important;
    border: 1.5px solid var(--border);
}

    .btn-action-ghost:hover {
        background: var(--bg-soft);
        color: var(--text) !important;
    }

.btn-action-danger {
    background: #dc2626;
    color: #fff !important;
    border: none;
}

    .btn-action-danger:hover {
        background: #b91c1c;
        transform: translateY(-1px);
    }

/* ================================================
   DATA TABLE
   ================================================ */
.data-table-wrapper {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
    font-family: var(--font);
}

    .data-table thead th {
        background: var(--navy);
        color: rgba(255,255,255,0.9);
        font-weight: 700;
        font-size: 12px;
        letter-spacing: 0.4px;
        padding: 13px 14px;
        border: none;
        white-space: nowrap;
        text-transform: uppercase;
    }

    .data-table tbody tr {
        border-bottom: 1px solid var(--border);
        transition: background 0.15s;
    }

        .data-table tbody tr:last-child {
            border-bottom: none;
        }

        .data-table tbody tr:hover {
            background: #fafbff;
        }

        .data-table tbody tr.row-matched {
            background: #f0fdf4;
        }

            .data-table tbody tr.row-matched:hover {
                background: #dcfce7;
            }

    .data-table tbody td {
        padding: 13px 14px;
        vertical-align: middle;
        color: var(--text);
    }

.row-actions {
    display: flex;
    gap: 6px;
    justify-content: flex-start;
}

.row-btn {
    width: 30px;
    height: 30px;
    border-radius: 7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    text-decoration: none;
    transition: opacity 0.18s, transform 0.15s;
    color: #fff !important;
}

    .row-btn:hover {
        opacity: 0.85;
        transform: translateY(-1px);
    }

.row-btn-warning {
    background: #d97706;
}

.row-btn-primary {
    background: var(--navy);
}

.row-btn-success {
    background: #16a34a;
}

.table-link {
    color: var(--red);
    font-weight: 600;
    text-decoration: none;
}

    .table-link:hover {
        text-decoration: underline;
    }

/* Type / ref badges */
.type-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 20px;
    white-space: nowrap;
}

.type-rent {
    background: #eff6ff;
    color: #1d4ed8;
}

.type-sale {
    background: #fff7ed;
    color: #c2410c;
}

.ref-badge {
    font-size: 11.5px;
    font-weight: 600;
    background: #e8edf3;
    color: var(--navy);
    padding: 2px 8px;
    border-radius: 4px;
}

.prop-type-badge {
    font-size: 11.5px;
    font-weight: 700;
    background: var(--red-light);
    color: var(--red);
    padding: 3px 9px;
    border-radius: 6px;
}

.comment-cell {
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ================================================
   RESULTS META / PAGINATION BAR
   ================================================ */
.results-meta {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 12px;
    padding: 0 2px;
}

.pagination-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.pagination-info {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 600;
}

/* ================================================
   FORM CARD
   ================================================ */
.form-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.form-card-header {
    background: var(--navy);
    color: rgba(255,255,255,0.9);
    padding: 13px 20px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.2px;
    display: flex;
    align-items: center;
    gap: 10px;
}

    .form-card-header i {
        color: var(--red);
    }

.form-card-body {
    padding: 24px;
}

.form-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    display: block;
}

.form-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.form-section-divider {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    color: var(--text-muted);
    padding: 6px 0 4px;
    border-bottom: 2px solid var(--border);
    margin-bottom: 4px;
}

/* ================================================
   FILTER SIDEBAR
   ================================================ */
.filter-sidebar {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 16px;
}

.filter-sidebar-header {
    background: var(--navy);
    color: rgba(255,255,255,0.9);
    padding: 13px 16px;
    font-size: 13.5px;
    font-weight: 700;
}

    .filter-sidebar-header i {
        margin-right: 8px;
        color: var(--red);
    }

.filter-sidebar-body {
    padding: 16px;
}

.filter-group {
    margin-bottom: 16px;
}

.filter-group-title {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--text-muted);
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--border);
}

/* ================================================
   CHECKLIST
   ================================================ */
.checklist-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    max-height: 180px;
    overflow-y: auto;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    padding: 8px;
}

.checklist-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 8px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s;
    color: var(--text);
    margin: 0;
}

    .checklist-item:hover {
        background: var(--bg-soft);
    }

    .checklist-item.checked {
        background: var(--red-light);
        color: var(--red);
        font-weight: 700;
    }

    .checklist-item input[type="checkbox"] {
        width: 15px !important;
        height: 15px;
        accent-color: var(--red);
        flex-shrink: 0;
        margin: 0;
        cursor: pointer;
    }

.checklist-panel {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.checklist-panel-title {
    background: var(--bg-soft);
    border-bottom: 1px solid var(--border);
    padding: 10px 14px;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--navy);
    display: flex;
    align-items: center;
    gap: 8px;
}

    .checklist-panel-title i {
        color: var(--red);
    }

.checklist-panel .checklist-body {
    border: none;
    border-radius: 0;
    max-height: 160px;
}

/* ================================================
   EXPAND BUTTON
   ================================================ */
.expand-btn {
    background: var(--bg-soft);
    border: 1.5px solid var(--border);
    border-radius: 6px;
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
    padding: 0;
}

    .expand-btn:hover {
        background: var(--red-light);
        border-color: var(--red);
        color: var(--red);
    }

/* ================================================
   PROPERTY DETAIL CARD
   ================================================ */
.property-detail-card {
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    margin: 8px 0;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.detail-section-title {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--red);
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 2px solid var(--red-light);
}

.detail-row {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    padding: 5px 0;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
}

    .detail-row:last-child {
        border-bottom: none;
    }

    .detail-row span {
        color: var(--text-muted);
        font-weight: 500;
        flex-shrink: 0;
    }

    .detail-row strong {
        color: var(--text);
        font-weight: 600;
        text-align: right;
    }

/* ================================================
   AGENT / INFORMED BADGES
   ================================================ */
.agent-badge {
    display: inline-block;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 10.5px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 4px;
    margin-top: 3px;
}

.informed-badge {
    display: inline-block;
    background: #fef9c3;
    color: #a16207;
    font-size: 10.5px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 4px;
    margin-top: 3px;
}

/* ================================================
   EMPTY STATE
   ================================================ */
.empty-state {
    text-align: center;
    padding: 60px 30px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.empty-state-icon {
    font-size: 48px;
    color: var(--border);
    margin-bottom: 16px;
}

.empty-state h4 {
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 8px;
}

.empty-state p {
    color: var(--text-muted);
    font-size: 14px;
}

/* ================================================
   ALERT ERROR
   ================================================ */
.alert-error {
    background: #fff0f1;
    border: 1.5px solid #ffc9cc;
    border-radius: 8px;
    padding: 12px 16px;
    color: var(--red-dark);
    font-size: 13.5px;
}

/* ================================================
   PROPERTY DETAILS ROW (matched)
   ================================================ */
.propertyDetails {
    display: none;
    background: var(--bg-soft);
}

.matched-table thead th:first-child,
.matched-table tbody td:first-child {
    text-align: center;
}

/* ================================================
   TOGGLE LABEL
   ================================================ */
.toggle-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--text);
    margin: 0;
}

    .toggle-label input[type="checkbox"] {
        width: 16px !important;
        height: 16px;
        accent-color: var(--red);
        cursor: pointer;
        flex-shrink: 0;
        margin: 0;
    }

/* ================================================
   STATUS DOT
   ================================================ */
.status-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.status-active {
    background: #16a34a;
    box-shadow: 0 0 0 3px #dcfce7;
}

.status-inactive {
    background: var(--red);
    box-shadow: 0 0 0 3px var(--red-light);
}

/* ================================================
   FIELD ERROR
   ================================================ */
.field-error {
    color: var(--red);
    font-size: 11.5px;
    font-weight: 600;
    margin-top: 3px;
    display: block;
}

/* ================================================
   DETAIL PANEL  (Details page collapsible sections)
   ================================================ */
.detail-panel {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.detail-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: var(--navy);
    color: rgba(255,255,255,0.9);
    font-weight: 700;
    font-size: 14.5px;
    cursor: pointer;
    user-select: none;
    transition: background 0.18s;
}

    .detail-panel-header:hover {
        background: var(--navy-mid);
    }

.panel-icon {
    color: var(--red);
    font-size: 15px;
}

.panel-chevron {
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    transition: transform 0.25s;
}

    .panel-chevron.rotated {
        transform: rotate(180deg);
    }

.panel-count-badge {
    background: var(--red);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 20px;
    min-width: 22px;
    text-align: center;
}

.detail-panel-body {
    padding: 24px;
    display: none;
}

    .detail-panel-body.show {
        display: block;
    }

/* ================================================
   INFO GRID
   ================================================ */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0;
}

.info-item {
    display: flex;
    flex-direction: column;
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
    border-right: 1px solid var(--border);
}

    .info-item:nth-child(odd) {
        background: var(--bg-soft);
    }

    .info-item:nth-child(even) {
        background: var(--white);
    }

    .info-item.col-span-2 {
        grid-column: span 2;
    }

.info-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.info-value {
    font-size: 13.5px;
    font-weight: 500;
    color: var(--text);
    word-break: break-word;
}

/* ================================================
   DETAIL STATUS BADGE
   ================================================ */
.detail-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 20px;
}

    .detail-status-badge.active {
        background: #dcfce7;
        color: #15803d;
    }

    .detail-status-badge.inactive {
        background: var(--red-light);
        color: var(--red);
    }

/* ================================================
   STATUS PILL
   ================================================ */
.status-pill {
    display: inline-block;
    font-size: 11.5px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
}

.pill-green {
    background: #dcfce7;
    color: #15803d;
}

.pill-yellow {
    background: #fef9c3;
    color: #a16207;
}

.pill-red {
    background: var(--red-light);
    color: var(--red);
}

/* ================================================
   DELETE WARNING
   ================================================ */
.delete-warning-banner {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: #fff7ed;
    border: 2px solid #fed7aa;
    border-radius: var(--radius-lg);
    padding: 20px 24px;
}

.delete-warning-icon {
    width: 44px;
    height: 44px;
    background: #fed7aa;
    color: #c2410c;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.delete-warning-title {
    font-size: 16px;
    font-weight: 800;
    color: #7c2d12;
    margin-bottom: 4px;
}

.delete-warning-sub {
    font-size: 13.5px;
    color: #9a3412;
}

.delete-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 20px 0;
    border-top: 1px solid var(--border);
}
.select2-container {
    width: 100% !important;
}

.select2-container--default .select2-selection--single {
    height: 38px;
    border: 1px solid #ced4da;
    border-radius: 4px;
}

    .select2-container--default .select2-selection--single .select2-selection__rendered {
        line-height: 38px;
        padding: 0 10px;
        color: #495057;
    }

    .select2-container--default .select2-selection--single .select2-selection__arrow {
        height: 36px;
    }

    .select2-container--default .select2-selection--single .select2-selection__placeholder {
        color: #6c757d;
    }

.select2-dropdown {
    border: 1px solid #ced4da;
    border-radius: 4px;
    box-shadow: 0 4px 16px rgba(0,0,0,.1);
}

.select2-results__option--highlighted {
    background-color: #1a3558 !important;
}

/* ================================================
   IMAGE GALLERY  (property photos panel)
   ================================================ */
.img-panel {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.img-upload-strip {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 4px 0 12px;
}

.img-upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    background: var(--navy);
    color: #fff;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.18s;
    flex-shrink: 0;
}

    .img-upload-btn:hover {
        background: var(--navy-mid);
    }

    .img-upload-btn input[type="file"] {
        display: none;
    }

.img-preview-list {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.img-preview-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    color: var(--text-muted);
    max-width: 80px;
    text-align: center;
    position: relative;
}

    .img-preview-item img {
        width: 70px;
        height: 55px;
        object-fit: cover;
        border-radius: 6px;
        border: 2px solid var(--border);
    }

.img-preview-cover {
    position: absolute;
    top: 4px;
    left: 4px;
    background: var(--red);
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 10px;
    pointer-events: none;
}

.img-preview-error {
    width: 70px;
    height: 55px;
    background: #fee2e2;
    border: 2px solid #fca5a5;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #dc2626;
    font-size: 20px;
}

.img-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 14px;
}

.img-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.2s;
}

    .img-card:hover {
        box-shadow: var(--shadow-md);
        transform: translateY(-2px);
    }

.img-card-cover {
    position: relative;
    height: 120px;
    background: var(--bg-soft);
    overflow: hidden;
}

    .img-card-cover img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        cursor: zoom-in;
    }

.img-cover-badge {
    position: absolute;
    top: 6px;
    left: 6px;
    background: var(--red);
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 10px;
}

.img-thumb-wrap {
    position: relative;
    height: 120px;
    background: var(--bg-soft);
    overflow: hidden;
    cursor: zoom-in;
}

.img-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.img-card-footer {
    padding: 8px 10px;
}

.img-caption {
    font-size: 12px;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.img-actions {
    display: flex;
    gap: 5px;
    margin-top: 6px;
}

.img-btn {
    flex: 1;
    padding: 5px;
    border: 1px solid var(--border);
    background: var(--bg-soft);
    border-radius: 5px;
    font-size: 12px;
    color: var(--text-muted);
    cursor: pointer;
    text-align: center;
    transition: all 0.15s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

    .img-btn:hover {
        background: var(--border);
        color: var(--text);
    }

.img-btn-star:hover {
    background: #fef9c3;
    color: #a16207;
    border-color: #fde68a;
}

.img-btn-del:hover {
    background: var(--red-light);
    color: var(--red);
    border-color: #fca5a5;
}

.img-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 120px;
    color: #d1d5db;
    gap: 6px;
    font-size: 12px;
}

.img-count-bar {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 16px;
}

.lightbox-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0,0,0,0.92);
    align-items: center;
    justify-content: center;
}

    .lightbox-overlay.show {
        display: flex;
    }

    .lightbox-overlay img {
        max-width: 90vw;
        max-height: 90vh;
        border-radius: 8px;
    }

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 24px;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
}

/* Photo upload form hints */
.photo-count-badge {
    background: var(--navy);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 20px;
    white-space: nowrap;
}

.photo-upload-hint {
    margin: 10px 0 0;
    font-size: 12.5px;
    color: var(--text-muted);
    display: flex;
    align-items: flex-start;
    gap: 6px;
}
.photo-delete-btn {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 22px;
    height: 22px;
    background: #dc2626;
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: .75rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s, transform .1s;
    box-shadow: 0 1px 4px rgba(0,0,0,.25);
}

    .photo-delete-btn:hover {
        background: #b91c1c;
        transform: scale(1.1);
    }

/* Undo badge (shown when marked) */
.photo-undo-btn {
    position: absolute;
    top: 4px;
    right: 4px;
    background: #f59e0b;
    border: none;
    border-radius: 12px;
    color: #fff;
    font-size: .65rem;
    font-weight: 700;
    padding: 2px 7px;
    cursor: pointer;
    display: none;
    transition: background .15s;
}

    .photo-undo-btn:hover {
        background: #d97706;
    }

.photo-tile.marked-delete .photo-delete-btn {
    display: none;
}

.photo-tile.marked-delete .photo-undo-btn {
    display: inline-flex;
    align-items: center;
}

/* Cover badge */
.photo-cover-badge {
    position: absolute;
    bottom: 24px;
    left: 4px;
    background: #e63946;
    color: #fff;
    font-size: .62rem;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 3px;
}

/* ================================================
   SEARCH PAGE — hero + filter bar + property cards
   ================================================ */

/* Hero */
.search-hero {
    background: linear-gradient(135deg, #0d1b2a 0%, #1a2f45 60%, #0d1b2a 100%);
    padding: 48px 0 70px;
    position: relative;
    overflow: hidden;
}

    .search-hero::before {
        content: '';
        position: absolute;
        inset: 0;
        background-image: linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
        background-size: 50px 50px;
    }

.search-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.search-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 38px;
    font-weight: 900;
    color: #fff;
    margin-bottom: 8px;
}

    .search-hero h1 span {
        color: var(--red);
    }

.search-hero p {
    color: rgba(255,255,255,0.55);
    font-size: 15px;
    margin-bottom: 0;
}

/* Filter bar — floats over hero bottom */
.filter-bar-wrap {
    margin-top: -36px;
    position: relative;
    z-index: 10;
    margin-bottom: 32px;
}

.filter-bar {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 24px 28px;
}

    .filter-bar .filter-row {
        display: flex;
        gap: 16px;
        align-items: flex-end;
        flex-wrap: wrap;
    }

.filter-field {
    flex: 1;
    min-width: 160px;
}

    .filter-field label {
        display: block;
        font-size: 11px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.8px;
        color: #6b7280;
        margin-bottom: 6px;
    }

    .filter-field select,
    .filter-field input[type="text"],
    .filter-field input[type="number"] {
        width: 100%;
        height: 44px;
        border: 1.5px solid var(--border);
        border-radius: 8px;
        padding: 0 32px 0 12px;
        font-size: 13.5px;
        color: var(--text);
        background: var(--bg-soft);
        font-family: var(--font);
        transition: border-color 0.2s, box-shadow 0.2s;
        outline: none;
        -webkit-appearance: none;
        appearance: none;
    }

    .filter-field select {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7280' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 12px center;
        background-color: var(--bg-soft);
    }

        .filter-field select:focus,
        .filter-field input:focus {
            border-color: var(--red);
            background: var(--white);
            box-shadow: 0 0 0 3px rgba(230,57,70,0.1);
        }

/* Search button (standalone, outside .search-box) */
.btn-search {
    height: 44px;
    padding: 0 28px;
    background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    font-family: var(--font);
    cursor: pointer;
    white-space: nowrap;
    transition: transform 0.15s, box-shadow 0.15s;
    box-shadow: 0 4px 14px rgba(230,57,70,0.3);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

    .btn-search:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(230,57,70,0.4);
    }

/* Results toolbar */
.results-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.results-count {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

    .results-count span {
        color: var(--red);
        font-size: 18px;
        font-weight: 800;
    }

/* Property cards grid */
.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 22px;
}

/* Property card */
.prop-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

    .prop-card:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow-lg);
    }

.prop-card-img {
    position: relative;
    height: 190px;
    background: var(--bg-soft);
    overflow: hidden;
    flex-shrink: 0;
}

    .prop-card-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.4s ease;
        display: block;
    }

.prop-card:hover .prop-card-img img {
    transform: scale(1.05);
}

.prop-card-no-img {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #d1d5db;
    gap: 8px;
    background: linear-gradient(135deg, var(--bg-soft), #f3f4f6);
}

    .prop-card-no-img i {
        font-size: 36px;
    }

    .prop-card-no-img span {
        font-size: 12px;
    }

/* Transaction badge on photo */
.prop-txn-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-sale {
    background: var(--red);
    color: #fff;
}

.badge-rent {
    background: var(--navy);
    color: #fff;
}

/* Card body */
.prop-card-body {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.prop-card-type {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--red);
    margin-bottom: 6px;
}

.prop-card-title {
    font-size: 15px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 6px;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.prop-card-location {
    font-size: 12.5px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 12px;
}

    .prop-card-location i {
        color: var(--red);
        font-size: 11px;
    }

.prop-card-footer-row {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.prop-card-price {
    font-size: 16px;
    font-weight: 800;
    color: var(--navy);
    line-height: 1.2;
}

    .prop-card-price small {
        font-size: 11px;
        font-weight: 400;
        color: #9ca3af;
        display: block;
    }

.prop-view-btn {
    padding: 6px 14px;
    background: var(--bg-soft);
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #374151;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
    cursor: pointer;
    font-family: var(--font);
}

    .prop-view-btn:hover {
        background: var(--red);
        color: #fff;
        text-decoration: none;
    }

/* No results */
.no-results {
    text-align: center;
    padding: 60px 24px;
    color: #9ca3af;
}

    .no-results i {
        font-size: 48px;
        margin-bottom: 12px;
        display: block;
    }

    .no-results h5 {
        font-size: 16px;
        color: #374151;
        margin-bottom: 6px;
    }

    .no-results p {
        font-size: 13px;
    }

/* ================================================
   PROP CARD GRID  — flex-based 4-col layout
   ================================================ */
.prop-card-grid {
    display: flex;
    flex-wrap: wrap;
    margin: -10px;
}

.prop-card-col {
    width: 25%;
    padding: 10px;
    box-sizing: border-box;
}

/* Price line inside card */
.prop-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 6px;
}

/* Card footer action row */
.prop-card-footer {
    display: flex;
    gap: 6px;
    padding: 12px;
    border-top: 1px solid var(--border);
}

/* ================================================
   RESPONSIVE
   ================================================ */
@media (max-width: 1200px) {
    .prop-card-col {
        width: 33.33%;
    }
}

@media (max-width: 900px) {
    .prop-card-col {
        width: 50%;
    }
}

@media (max-width: 768px) {
    .search-hero h1 {
        font-size: 26px;
    }

    .filter-bar .filter-row {
        flex-direction: column;
    }

    .filter-field {
        min-width: 100%;
    }

    .properties-grid {
        grid-template-columns: 1fr;
    }

    .filter-bar-wrap {
        margin-top: -20px;
    }
}

@media (max-width: 600px) {
    .prop-card-col {
        width: 100%;
    }
}


/* ============================================================
   CONSOLIDATED STYLES  —  migrated from all inline <style> blocks
   Do NOT add <style> tags in any View. Put CSS here.
   ============================================================ */


/* ── 2. SHARED PAGE LAYOUT PATTERNS ──────────────────────────── */
.page-title-bar {
    margin-bottom: 24px;
}

    .page-title-bar h2 {
        font-size: 1.6rem;
        font-weight: 700;
        color: var(--text-dark);
        margin: 0 0 4px;
        display: flex;
        align-items: center;
        gap: 10px;
    }

.breadcrumb {
    font-size: .85rem;
    color: var(--text-muted);
    margin-bottom: 4px;
    padding: 0;
    background: none;
    list-style: none;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

    .breadcrumb li + li::before {
        content: '/';
        color: var(--text-muted);
    }

    .breadcrumb a {
        color: var(--text-muted);
        text-decoration: none;
    }

        .breadcrumb a:hover {
            color: var(--red);
        }

    .breadcrumb li.active {
        color: var(--text-dark);
    }

.title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.title-actions {
    display: flex;
    gap: 8px;
}

/* ── 3. FORM CARDS & SECTION HEADERS (shared across forms) ───── */
.form-card {
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,.08);
    overflow: hidden;
    margin-bottom: 20px;
}

.section-header {
    background-color: var(--navy-light);
    color: var(--white);
    padding: 10px 18px;
    font-size: .85rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
}

    .section-header i {
        font-size: .9rem;
        opacity: .8;
    }

.section-body {
    padding: 20px 18px 10px;
}

.sub-section-label {
    font-size: .72rem;
    font-weight: 700;
    color: var(--red);
    text-transform: uppercase;
    letter-spacing: .08em;
    padding: 16px 18px 4px;
}

    .sub-section-label:first-child {
        padding-top: 18px;
    }

/* ── 4. SHARED FORM CONTROLS ──────────────────────────────────── */
.control-label {
    font-size: .78rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: 4px;
    display: block;
}

.form-control,
.form-control-sm,
select.form-control-sm,
input.form-control-sm,
input.form-control,
select.form-control {
    border: 1px solid var(--input-border);
    border-radius: 5px;
    padding: 6px 10px;
    font-size: .85rem;
    width: 100%;
    color: var(--text-dark);
    background-color: #fff;
    transition: border-color .2s, box-shadow .2s;
    height: auto;
}

    .form-control:focus,
    .form-control-sm:focus,
    select.form-control-sm:focus,
    input.form-control-sm:focus {
        border-color: var(--navy-light);
        box-shadow: 0 0 0 3px rgba(26,31,46,.1);
        outline: none;
    }

input[readonly].form-control,
input[readonly].form-control-sm {
    background-color: #f0f2f5;
    color: var(--text-muted);
    cursor: not-allowed;
}

.form-group {
    margin-bottom: 14px;
}

.form-action-row {
    padding: 16px 18px;
    background: #f8f9fc;
    border-top: 1px solid var(--gray-border);
    display: flex;
    align-items: center;
    gap: 12px;
}

.text-danger.errorText {
    font-size: .76rem;
    color: var(--red) !important;
    margin-top: 2px;
    display: block;
}

/* ── 5. SHARED BUTTON LIBRARY ─────────────────────────────────── */
.btn-myestate-primary {
    background-color: var(--navy-light);
    color: var(--white);
    border: none;
    border-radius: 5px;
    padding: 8px 22px;
    font-size: .85rem;
    font-weight: 600;
    letter-spacing: .03em;
    cursor: pointer;
    transition: background .2s, transform .1s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

    .btn-myestate-primary:hover {
        background-color: #2a3347;
        color: var(--white);
        text-decoration: none;
        transform: translateY(-1px);
    }

.btn-myestate-submit {
    background-color: var(--red);
    color: var(--white);
    border: none;
    border-radius: 5px;
    padding: 10px 28px;
    font-size: .9rem;
    font-weight: 700;
    letter-spacing: .03em;
    cursor: pointer;
    transition: background .2s, box-shadow .2s, transform .1s;
    box-shadow: 0 3px 10px rgba(230,57,70,.3);
}

    .btn-myestate-submit:hover {
        background-color: var(--red-dark);
        box-shadow: 0 5px 16px rgba(230,57,70,.4);
        transform: translateY(-1px);
    }

.btn-myestate-save {
    background-color: var(--navy-light);
    color: var(--white);
    border: none;
    border-radius: 5px;
    padding: 10px 28px;
    font-size: .9rem;
    font-weight: 700;
    letter-spacing: .03em;
    cursor: pointer;
    transition: background .2s, box-shadow .2s, transform .1s;
    box-shadow: 0 3px 10px rgba(26,31,46,.25);
}

    .btn-myestate-save:hover {
        background-color: #2a3347;
        box-shadow: 0 5px 16px rgba(26,31,46,.35);
        transform: translateY(-1px);
    }

.btn-back {
    background-color: transparent;
    color: var(--text-muted);
    border: 1px solid var(--gray-border);
    border-radius: 5px;
    padding: 8px 18px;
    font-size: .85rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all .2s;
}

    .btn-back:hover {
        background-color: var(--navy);
        color: var(--white);
        border-color: var(--navy);
        text-decoration: none;
    }

.btn-icon-plus {
    background-color: var(--navy-light);
    color: var(--white);
    border: none;
    border-radius: 4px;
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .9rem;
    cursor: pointer;
    transition: background .2s;
    text-decoration: none;
}

    .btn-icon-plus:hover {
        background-color: var(--red);
        color: #fff;
    }

.btn-add-req {
    background-color: var(--navy-light);
    color: var(--white);
    border: none;
    border-radius: 5px;
    padding: 7px 16px;
    font-size: .82rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: background .2s;
}

    .btn-add-req:hover {
        background-color: #2a3347;
        color: var(--white);
        text-decoration: none;
    }

.btn-action-edit {
    background-color: #343a40;
    color: var(--white);
    border: none;
    border-radius: 4px;
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .85rem;
    text-decoration: none;
    transition: background .2s;
}

    .btn-action-edit:hover {
        background-color: #555d65;
        color: #fff;
    }

.btn-action-search {
    background-color: var(--orange);
    color: var(--white);
    border: none;
    border-radius: 4px;
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .85rem;
    text-decoration: none;
    transition: background .2s;
}

    .btn-action-search:hover {
        background-color: #e06c00;
        color: #fff;
    }

.btn-action-add {
    background-color: rgba(255,255,255,.15);
    color: var(--white);
    border: none;
    border-radius: 4px;
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .85rem;
    text-decoration: none;
    transition: background .2s;
    flex-shrink: 0;
}

    .btn-action-add:hover {
        background-color: var(--red);
        color: #fff;
    }

.btn-heading-orange {
    background-color: var(--orange);
    color: var(--white);
    border: none;
    border-radius: 5px;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .9rem;
    text-decoration: none;
    transition: background .2s;
}

    .btn-heading-orange:hover {
        background-color: #e06c00;
        color: #fff;
    }

.btn-heading-dark {
    background-color: var(--navy-light);
    color: var(--white);
    border: none;
    border-radius: 5px;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .9rem;
    text-decoration: none;
    transition: background .2s;
}

    .btn-heading-dark:hover {
        background-color: #2a3347;
        color: #fff;
    }

.btn-tbl-edit {
    background-color: #343a40;
    color: var(--white);
    border: none;
    border-radius: 4px;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .78rem;
    text-decoration: none;
    transition: background .2s;
    margin-right: 3px;
}

    .btn-tbl-edit:hover {
        background-color: #555d65;
        color: #fff;
    }

.btn-tbl-view {
    background-color: var(--green);
    color: var(--white);
    border: none;
    border-radius: 4px;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .78rem;
    text-decoration: none;
    transition: background .2s;
    margin-right: 3px;
}

    .btn-tbl-view:hover {
        background-color: #157347;
        color: #fff;
    }

.btn-tbl-delete {
    background-color: var(--red);
    color: var(--white);
    border: none;
    border-radius: 4px;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .78rem;
    text-decoration: none;
    transition: background .2s;
}

    .btn-tbl-delete:hover {
        background-color: var(--red-dark);
        color: #fff;
    }

.page-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 4px;
}

/* ── 6. MULTISELECT CHECKBOX LIST ─────────────────────────────── */
.features-card {
    background: #f8f9fc;
    border: 1px solid var(--gray-border);
    border-radius: 7px;
    padding: 12px 14px;
    margin-bottom: 14px;
}

.features-title {
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--navy-light);
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 2px solid var(--navy-light);
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

    .features-list label {
        font-size: .82rem;
        color: var(--text-dark);
        margin: 0;
        padding: 3px 6px;
        border-radius: 4px;
        background: var(--white);
        border: 1px solid var(--gray-border);
    }

.multiselect {
    max-height: 160px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

    .multiselect label {
        display: flex !important;
        align-items: center;
        gap: 8px;
        font-size: .83rem !important;
        color: var(--text-dark) !important;
        padding: 4px 6px;
        border-radius: 4px;
        cursor: pointer;
        transition: background .15s;
        margin: 0 !important;
        font-weight: 400 !important;
        text-transform: none !important;
        letter-spacing: 0 !important;
    }

        .multiselect label:hover {
            background: #e8edf5;
        }

        .multiselect label.multiselect-on {
            background: var(--badge-rent-bg);
            color: var(--badge-rent-color) !important;
            font-weight: 600 !important;
        }

    .multiselect input[type="checkbox"] {
        width: 15px !important;
        height: 15px;
        accent-color: var(--navy-light);
        cursor: pointer;
        margin: 0 !important;
    }

    .multiselect::-webkit-scrollbar {
        width: 5px;
    }

    .multiselect::-webkit-scrollbar-track {
        background: #eee;
        border-radius: 3px;
    }

    .multiselect::-webkit-scrollbar-thumb {
        background: var(--navy-light);
        border-radius: 3px;
    }

/* ── 7. SHARED TABLE STYLES ───────────────────────────────────── */
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .83rem;
}

    .data-table thead tr {
        background-color: var(--navy-light);
    }

    .data-table thead th {
        color: var(--white);
        font-size: .72rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: .06em;
        padding: 10px 14px;
        white-space: nowrap;
        border: none;
    }

    .data-table tbody tr {
        border-bottom: 1px solid #f0f2f6;
    }

        .data-table tbody tr:hover td {
            background-color: #fafbfc;
        }

    .data-table tbody td {
        padding: 10px 14px;
        vertical-align: middle;
        color: var(--text-dark);
    }

    .data-table tbody tr.visited-row td {
        background-color: #edf7f0;
    }

    .data-table tbody tr.visited-row:hover td {
        background-color: #daf0e3;
    }

    .data-table a, .detail-table a {
        color: var(--red);
        text-decoration: none;
        font-weight: 600;
    }

        .data-table a:hover, .detail-table a:hover {
            text-decoration: underline;
        }

.data-table-wrap {
    padding: 0;
    overflow-x: auto;
}

.detail-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .85rem;
}

    .detail-table th {
        background-color: #f0f2f6;
        color: var(--text-muted);
        font-size: .75rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: .05em;
        padding: 8px 12px;
        border-bottom: 2px solid var(--gray-border);
        white-space: nowrap;
    }

    .detail-table td {
        padding: 8px 12px;
        border-bottom: 1px solid #f0f2f6;
        color: var(--text-dark);
        vertical-align: top;
    }

    .detail-table tr:last-child td {
        border-bottom: none;
    }

    .detail-table tr:hover td {
        background-color: #fafbfc;
    }

/* ── 8. ACCORDION / PANEL (CustomerDetails, Details) ─────────── */
.me-accordion {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 24px;
}

.me-panel {
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0,0,0,.07);
    overflow: hidden;
}

.me-panel-heading {
    background-color: var(--navy-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 18px 0 0;
    min-height: 52px;
    cursor: pointer;
    user-select: none;
}

.me-panel-heading-left {
    display: flex;
    align-items: center;
    gap: 0;
    flex: 1;
}

.panel-icon-block {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

    .panel-icon-block.red {
        color: var(--red);
    }

    .panel-icon-block.orange {
        color: var(--orange);
    }

    .panel-icon-block.green {
        color: var(--green);
    }

    .panel-icon-block.blue {
        color: #4a9eff;
    }

.panel-title-text {
    color: var(--white);
    font-size: .95rem;
    font-weight: 600;
    letter-spacing: .02em;
    padding: 0 12px 0 4px;
}

.panel-chevron {
    color: rgba(255,255,255,.6);
    font-size: .9rem;
    transition: transform .25s;
    flex-shrink: 0;
}

.me-panel-heading.collapsed .panel-chevron {
    transform: rotate(-90deg);
}

.me-panel-body {
    padding: 0;
    display: block;
}

    .me-panel-body.hidden {
        display: none;
    }

    .me-panel-body.show {
        display: block;
    }

.panel-inner-toolbar {
    padding: 14px 18px 10px;
    border-bottom: 1px solid #f0f2f6;
    display: flex;
    align-items: center;
    gap: 10px;
}

.accordion-toggle {
    display: block;
    padding: 12px 18px;
    color: var(--white) !important;
    text-decoration: none !important;
    font-size: .85rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    transition: background .2s;
}

    .accordion-toggle:hover {
        background: rgba(255,255,255,.08);
    }

    .accordion-toggle::before {
        content: '\25BE  ';
        font-size: .75rem;
        opacity: .7;
    }

    .accordion-toggle.collapsed::before {
        content: '\25B8  ';
    }

.panel-heading-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    padding-right: 14px;
    flex-shrink: 0;
}

.me-panel-title {
    flex: 1;
    padding: 0;
    margin: 0;
    font-size: 1rem;
}

/* ── 9. DETAIL GRID (CustomerDetails) ────────────────────────── */
.detail-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    border-top: 1px solid #f0f2f6;
}

    .detail-grid.cols-5 {
        grid-template-columns: repeat(5, 1fr);
    }

    .detail-grid.cols-4 {
        grid-template-columns: repeat(4, 1fr);
    }

    .detail-grid.cols-3 {
        grid-template-columns: repeat(3, 1fr);
    }

.detail-cell {
    padding: 16px 18px;
    border-right: 1px solid #f0f2f6;
    border-bottom: 1px solid #f0f2f6;
}

    .detail-cell:last-child {
        border-right: none;
    }

    .detail-cell.span-2 {
        grid-column: span 2;
    }

    .detail-cell.span-3 {
        grid-column: span 3;
    }

.detail-label {
    font-size: .72rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .07em;
    margin-bottom: 5px;
}

.detail-value {
    font-size: .9rem;
    color: var(--text-dark);
    font-weight: 400;
    word-break: break-word;
}

    .detail-value a {
        color: var(--red);
        text-decoration: none;
        font-weight: 600;
    }

        .detail-value a:hover {
            text-decoration: underline;
        }

    .detail-value.empty {
        color: var(--text-muted);
        font-style: italic;
        font-size: .82rem;
    }

/* ── 10. STATUS BADGES ────────────────────────────────────────── */
.status-badge {
    display: inline-block;
    padding: 3px 9px;
    border-radius: 12px;
    font-size: .73rem;
    font-weight: 600;
    letter-spacing: .03em;
}

.status-visited {
    background: #d1fae5;
    color: #065f46;
}

.status-pending {
    background: #fef3c7;
    color: #92400e;
}

.status-converted {
    background: #d1fae5;
    color: #065f46;
}

.status-interested {
    background: var(--badge-rent-bg);
    color: var(--badge-rent-color);
}

.status-invalid {
    background: #fee2e2;
    color: #991b1b;
}

.status-na {
    background: #f3f4f6;
    color: #6b7280;
}

.badge-pill {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .02em;
}

.badge-ref {
    background: #f0f2f6;
    color: var(--text-dark);
    border: 1px solid var(--gray-border);
}

.badge-type {
    background: #fff0f1;
    color: var(--red);
    border: 1px solid #fcc;
}

/* ── 11. COMBOBOX AUTOCOMPLETE WIDGET ────────────────────────── */
.custom-combobox {
    position: relative;
    display: inline-block;
    width: 100%;
}

.custom-combobox-toggle {
    position: absolute;
    top: 0;
    bottom: 0;
    margin-left: -1px;
    padding: 0;
}

.custom-combobox-input {
    margin: 0;
    width: 90%;
    height: 36px;
    padding: 0 12px;
    font-size: 13.5px;
    color: var(--text-dark);
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: inset 0 1px 1px rgba(0,0,0,.05);
    transition: border-color .15s, box-shadow .15s;
    font-family: inherit;
}

    .custom-combobox-input:focus {
        border-color: var(--blue-accent);
        box-shadow: 0 0 0 3px rgba(26,111,207,.12);
        outline: none;
    }

/* ── 12. ROW-DETAIL EXPAND ROWS ──────────────────────────────── */
.rowDetails {
    padding-left: 10px;
    display: none;
}

.propertyDetails {
    padding-left: 10px;
    display: none;
}

.newProperty {
    display: none;
}

/* ── 13. FUND SOURCE ROW ──────────────────────────────────────── */
.fund-source-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

    .fund-source-row select {
        flex: 1;
    }

/* ── 14. MATCHED CUSTOMERS / PROPERTIES LAYOUT ───────────────── */
.me-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 20px;
    align-items: start;
}

.me-main {
    min-width: 0;
}

.me-sidebar {
    background: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    overflow: hidden;
    position: sticky;
    top: 16px;
}

.me-sidebar-header {
    background: var(--navy);
    padding: 11px 16px;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    letter-spacing: .2px;
}

.me-sidebar-body {
    padding: 16px;
}

    .me-sidebar-body .btn-apply {
        display: block;
        width: 100%;
        background: var(--red);
        color: #fff;
        border: none;
        border-radius: 6px;
        padding: 9px 0;
        font-family: inherit;
        font-size: 13px;
        font-weight: 600;
        cursor: pointer;
        margin-bottom: 18px;
        transition: background .15s;
        text-align: center;
    }

        .me-sidebar-body .btn-apply:hover {
            background: var(--red-dark);
        }

.me-feature-group {
    margin-bottom: 16px;
}

    .me-feature-group h6 {
        font-size: 11px !important;
        font-weight: 700 !important;
        color: var(--blue-accent) !important;
        text-transform: uppercase;
        letter-spacing: .5px;
        margin-bottom: 8px !important;
        padding-bottom: 5px;
        border-bottom: 1px solid var(--border);
    }

.me-empty {
    background: var(--white);
    border-radius: 10px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    padding: 48px 32px;
    text-align: center;
    color: var(--red);
    font-size: 15px;
    font-weight: 600;
}

.section-tint {
    background-color: #fafbfc;
}

/* ── 15. ME-TABLE (shared table card) ────────────────────────── */
.me-table-card {
    background: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    overflow: hidden;
    margin-bottom: 20px;
}

.me-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

    .me-table thead tr {
        background: var(--navy);
    }

    .me-table thead th {
        color: #fff !important;
        font-size: 11.5px !important;
        font-weight: 700 !important;
        text-transform: uppercase;
        letter-spacing: .5px;
        padding: 12px 14px !important;
        border: none !important;
        white-space: nowrap;
    }

        .me-table thead th input[type=checkbox] {
            width: 15px;
            height: 15px;
            accent-color: var(--blue-accent);
            cursor: pointer;
        }

    .me-table tbody tr {
        border-bottom: 1px solid var(--border);
        transition: background .12s;
    }

        .me-table tbody tr:last-child {
            border-bottom: none;
        }

        .me-table tbody tr:hover {
            background: #f7fafd;
        }

        .me-table tbody tr.bg-success {
            background: var(--green-light) !important;
        }

            .me-table tbody tr.bg-success:hover {
                background: #d5f5e3 !important;
            }

    .me-table tbody td {
        padding: 11px 14px !important;
        vertical-align: middle !important;
        color: var(--text);
        border: none !important;
        font-size: 13px;
    }

    .me-table .showHide {
        font-size: 16px;
        font-weight: 700;
        color: var(--muted);
        cursor: pointer;
        user-select: none;
        width: 20px;
        text-align: center;
    }

    .me-table input[type=checkbox].selectCheckBox {
        width: 15px;
        height: 15px;
        accent-color: var(--blue-accent);
        cursor: pointer;
    }

    .me-table .fa-info-circle {
        color: var(--blue-accent);
        font-size: 14px;
    }

    .me-table .btn {
        width: 30px;
        height: 30px;
        border-radius: 6px !important;
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        font-size: 13px !important;
        margin-right: 4px;
        transition: opacity .15s, transform .1s;
    }

        .me-table .btn:hover {
            opacity: .85;
            transform: translateY(-1px);
        }

    .me-table .btn-primary {
        background: var(--navy) !important;
        border-color: var(--navy) !important;
    }

    .me-table .btn-success {
        background: var(--green) !important;
        border-color: var(--green) !important;
    }

    .me-table a {
        color: var(--blue-accent);
        text-decoration: none;
        font-weight: 500;
    }

        .me-table a:hover {
            text-decoration: underline;
        }

    .me-table h4 {
        margin: 0;
        font-size: 18px;
    }

/* ── 16. PAGINATION (shared) ─────────────────────────────────── */
.me-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 4px;
    font-size: 13px;
    color: var(--muted);
}

.pagination > li > a,
.pagination > li > span {
    border-radius: 5px !important;
    margin: 0 2px;
    border: 1px solid var(--border) !important;
    color: var(--text) !important;
    font-size: 13px;
    padding: 5px 11px;
    font-family: inherit;
}

.pagination > .active > a,
.pagination > .active > span {
    background: var(--navy) !important;
    border-color: var(--navy) !important;
    color: #fff !important;
}

.pagination > li > a:hover {
    background: var(--blue-light) !important;
    border-color: var(--blue-accent) !important;
    color: var(--navy) !important;
}

.btn-me-send {
    background: var(--navy) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 6px !important;
    padding: 9px 24px !important;
    font-family: inherit !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    cursor: pointer;
    transition: background .15s;
    margin-top: 16px;
}

    .btn-me-send:hover {
        background: var(--navy-mid) !important;
    }

.btn-me-back {
    display: inline-block;
    margin-top: 20px;
    background: transparent;
    color: var(--muted);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 7px 18px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none !important;
    transition: border-color .15s, color .15s;
}

    .btn-me-back:hover {
        border-color: var(--muted);
        color: var(--text);
    }

/* ── 17. FILTER CARD (top filter bars in lists) ─────────────── */
.me-filter-card {
    background: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    margin-bottom: 24px;
    overflow: hidden;
}

.me-filter-header {
    background: var(--navy);
    padding: 11px 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    font-weight: 600;
    color: #fff;
    letter-spacing: .2px;
}

.me-filter-body {
    padding: 18px 20px 14px;
}

.me-filter-row {
    display: flex;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 14px 20px;
}

.me-filter-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 160px;
}

    .me-filter-field label {
        font-size: 11px;
        font-weight: 700;
        color: var(--muted);
        text-transform: uppercase;
        letter-spacing: .5px;
        margin: 0;
    }

    .me-filter-field .form-control-sm,
    .me-filter-field input,
    .me-filter-field select {
        height: 34px !important;
        border: 1px solid var(--border) !important;
        border-radius: var(--radius) !important;
        padding: 0 10px !important;
        font-family: inherit !important;
        font-size: 13px !important;
        color: var(--text) !important;
        background: var(--white) !important;
        box-shadow: none !important;
        outline: none;
        transition: border-color .15s, box-shadow .15s;
        width: 100%;
    }

        .me-filter-field input:focus,
        .me-filter-field select:focus {
            border-color: var(--blue-accent) !important;
            box-shadow: 0 0 0 3px rgba(26,111,207,.12) !important;
        }

.me-filter-actions {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    margin-left: auto;
}

.me-showAll {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

    .me-showAll label {
        font-size: 11px;
        font-weight: 700;
        color: var(--muted);
        text-transform: uppercase;
        letter-spacing: .5px;
    }

    .me-showAll input[type=checkbox] {
        width: 18px;
        height: 18px;
        accent-color: var(--blue-accent);
        cursor: pointer;
        margin-top: 8px;
    }

.btn-me-search {
    background: var(--red) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 6px !important;
    padding: 7px 22px !important;
    font-family: inherit !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    cursor: pointer;
    height: 34px;
    transition: background .15s;
}

    .btn-me-search:hover {
        background: var(--red-dark) !important;
    }

.btn-me-clear {
    background: transparent !important;
    color: var(--muted) !important;
    border: 1px solid var(--border) !important;
    border-radius: 6px !important;
    padding: 7px 18px !important;
    font-family: inherit !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    cursor: pointer;
    height: 34px;
    transition: border-color .15s, color .15s;
}

    .btn-me-clear:hover {
        border-color: var(--muted) !important;
        color: var(--text) !important;
    }

/* ── 18. AUTH PAGES (Login / Register / ForgotPassword) ──────── */
.login-wrapper {
    display: grid;
    grid-template-columns: 1fr 480px;
    min-height: 100vh;
}

.login-hero {
    position: relative;
    background: var(--navy);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 48px;
}

    .login-hero::before {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(135deg,rgba(26,111,207,.18) 0%,transparent 60%),linear-gradient(to bottom,rgba(15,26,46,0) 30%,rgba(15,26,46,.92) 100%);
        z-index: 1;
    }

.hero-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .55;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(26,111,207,.25);
    border: 1px solid rgba(26,111,207,.4);
    border-radius: 20px;
    padding: 5px 14px;
    font-size: 12px;
    font-weight: 600;
    color: #7fb8f5;
    letter-spacing: .5px;
    text-transform: uppercase;
    margin-bottom: 18px;
}

    .hero-badge span {
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: #7fb8f5;
        display: inline-block;
    }

.hero-title {
    font-size: 38px;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    letter-spacing: -.5px;
    margin-bottom: 14px;
}

    .hero-title em {
        font-style: normal;
        color: #7fb8f5;
    }

.hero-desc {
    font-size: 14.5px;
    color: rgba(255,255,255,.6);
    line-height: 1.65;
    max-width: 400px;
    margin-bottom: 32px;
}

.hero-stats {
    display: flex;
    gap: 32px;
}

.hero-stat-value {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    line-height: 1;
    margin-bottom: 4px;
}

.hero-stat-label {
    font-size: 12px;
    color: rgba(255,255,255,.5);
    text-transform: uppercase;
    letter-spacing: .5px;
}

.login-panel {
    background: var(--bg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 48px 52px;
    position: relative;
}

.login-brand {
    position: absolute;
    top: 28px;
    left: 52px;
    display: flex;
    align-items: center;
    gap: 9px;
    text-decoration: none;
}

    .login-brand .logo {
        width: 36px;
        height: 36px;
        background: var(--red);
        border-radius: 8px;
        display: grid;
        place-items: center;
        font-weight: 700;
        color: #fff;
        font-size: 18px;
        flex-shrink: 0;
    }

    .login-brand span {
        font-size: 18px;
        font-weight: 700;
        color: var(--navy);
        letter-spacing: -.3px;
    }

.login-card {
    background: var(--white);
    border-radius: 14px;
    border: 1px solid var(--border);
    box-shadow: 0 4px 24px rgba(15,26,46,.1);
    padding: 40px 38px 36px;
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
}

.login-card-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--navy);
    letter-spacing: -.3px;
    margin-bottom: 6px;
}

.login-card-sub {
    font-size: 13.5px;
    color: var(--muted);
    margin-bottom: 28px;
}

.me-page-center {
    min-height: calc(100vh - 120px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 16px;
}

.me-auth-card {
    background: var(--white);
    border-radius: 14px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    width: 100%;
    max-width: 460px;
    overflow: hidden;
}

    .me-auth-card::before {
        content: '';
        display: block;
        height: 4px;
        background: linear-gradient(90deg,var(--navy) 0%,var(--blue-accent) 100%);
    }

.me-auth-card-body {
    padding: 36px 40px 32px;
}

.me-auth-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
}

    .me-auth-brand .logo {
        width: 34px;
        height: 34px;
        background: var(--red);
        border-radius: 7px;
        display: grid;
        place-items: center;
        font-weight: 700;
        color: #fff;
        font-size: 17px;
        flex-shrink: 0;
    }

    .me-auth-brand span {
        font-size: 17px;
        font-weight: 700;
        color: var(--navy);
        letter-spacing: -.3px;
    }

.me-auth-title {
    font-size: 21px;
    font-weight: 700;
    color: var(--navy);
    letter-spacing: -.3px;
    margin-bottom: 4px;
}

.me-auth-sub {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 26px;
}

.me-auth-divider {
    height: 1px;
    background: var(--border);
    margin-bottom: 24px;
}

.me-auth-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 13px;
    color: var(--muted);
}

    .me-auth-footer a {
        color: var(--blue-accent);
        text-decoration: none;
        font-weight: 600;
    }

        .me-auth-footer a:hover {
            text-decoration: underline;
        }

.me-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 18px;
}

    .me-field label,
    .me-field .control-label {
        font-size: 12px !important;
        font-weight: 700 !important;
        color: var(--muted) !important;
        text-transform: uppercase;
        letter-spacing: .45px;
        margin-bottom: 0 !important;
    }

.me-input-wrap {
    position: relative;
}

    .me-input-wrap .fa,
    .me-input-wrap .me-icon {
        position: absolute;
        left: 12px;
        top: 50%;
        transform: translateY(-50%);
        color: var(--muted);
        font-size: 14px;
        pointer-events: none;
    }

.me-field .form-control,
.me-field input[type=text],
.me-field input[type=password] {
    height: 42px !important;
    border: 1px solid var(--border) !important;
    border-radius: 8px !important;
    padding: 0 12px 0 38px !important;
    font-family: inherit !important;
    font-size: 13.5px !important;
    color: var(--text) !important;
    background: var(--white) !important;
    box-shadow: none !important;
    outline: none;
    width: 100%;
    transition: border-color .15s, box-shadow .15s;
}

    .me-field .form-control:focus,
    .me-field input:focus {
        border-color: var(--blue-accent) !important;
        box-shadow: 0 0 0 3px rgba(26,111,207,.12) !important;
    }

.me-field .text-danger {
    font-size: 11px;
    color: var(--red) !important;
    margin-top: 2px;
}

.me-remember {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 22px;
}

    .me-remember input[type=checkbox] {
        width: 16px;
        height: 16px;
        accent-color: var(--blue-accent);
        cursor: pointer;
    }

    .me-remember label {
        font-size: 13px;
        color: var(--muted);
        cursor: pointer;
        margin: 0;
    }

.btn-me-login, .btn-me-submit {
    display: block;
    width: 100%;
    background: var(--navy);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px 0;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: .3px;
    transition: background .15s, transform .1s;
    margin-bottom: 16px;
}

    .btn-me-login:hover,
    .btn-me-submit:hover {
        background: var(--navy-mid);
        transform: translateY(-1px);
    }

.me-forgot {
    text-align: center;
}

    .me-forgot a {
        font-size: 13px;
        color: var(--blue-accent);
        text-decoration: none;
        font-weight: 500;
    }

        .me-forgot a:hover {
            text-decoration: underline;
        }

.me-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
    color: var(--muted);
    font-size: 12px;
}

    .me-divider::before,
    .me-divider::after {
        content: '';
        flex: 1;
        height: 1px;
        background: var(--border);
    }

.validation-summary-errors {
    background: #fff0f0;
    border: 1px solid #f5c6c6;
    border-radius: 6px;
    padding: 10px 14px;
    margin-bottom: 18px;
    font-size: 12.5px;
    color: var(--red);
}

.me-hint {
    font-size: 11px;
    color: var(--muted);
    margin-top: 3px;
}

.me-info-note {
    background: var(--blue-light);
    border: 1px solid #b8d4f0;
    border-radius: 7px;
    padding: 11px 14px;
    font-size: 12.5px;
    color: var(--navy-mid);
    line-height: 1.55;
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

    .me-info-note i {
        color: var(--blue-accent);
        margin-top: 1px;
        flex-shrink: 0;
    }

/* ── 19. DATEPICKER NAVIGATION ARROW FIX ─────────────────────── */
.ui-datepicker .ui-datepicker-header {
    position: relative !important;
    padding: 8px 36px !important;
    background: #f5f5f5;
    border-bottom: 1px solid #ddd;
    border-radius: 4px 4px 0 0;
}

.ui-datepicker .ui-datepicker-title {
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    color: #222;
    line-height: 32px;
}

.ui-datepicker .ui-datepicker-prev,
.ui-datepicker .ui-datepicker-next {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 28px !important;
    height: 28px !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 4px !important;
    background: #fff !important;
    border: 1px solid #ccc !important;
    text-decoration: none !important;
    overflow: hidden !important;
}

.ui-datepicker .ui-datepicker-prev {
    left: 4px !important;
}

.ui-datepicker .ui-datepicker-next {
    right: 4px !important;
}

    .ui-datepicker .ui-datepicker-prev span,
    .ui-datepicker .ui-datepicker-next span {
        display: block !important;
        font-size: 0 !important;
        line-height: 0 !important;
        text-indent: -9999px !important;
        background: none !important;
        overflow: hidden !important;
        width: 100% !important;
        height: 100% !important;
        position: static !important;
        margin: 0 !important;
    }

        .ui-datepicker .ui-datepicker-prev span::before,
        .ui-datepicker .ui-datepicker-next span::before {
            font-size: 16px !important;
            font-weight: bold !important;
            color: #444 !important;
            line-height: 28px !important;
            text-indent: 0 !important;
            display: block !important;
            text-align: center !important;
        }

        .ui-datepicker .ui-datepicker-prev span::before {
            content: '\25C4';
        }

        .ui-datepicker .ui-datepicker-next span::before {
            content: '\25BA';
        }

    .ui-datepicker .ui-datepicker-prev:hover,
    .ui-datepicker .ui-datepicker-next:hover {
        background: var(--red) !important;
        border-color: var(--red) !important;
    }

        .ui-datepicker .ui-datepicker-prev:hover span::before,
        .ui-datepicker .ui-datepicker-next:hover span::before {
            color: #fff !important;
        }

/* ═══════════════════════════════════════════════════════════════
   20. VERTICAL SEARCH PAGE  (Issue 1 fix — Amazon/99acres style)
   Layout: sticky left sidebar (300px) + scrollable right results
   ═══════════════════════════════════════════════════════════════ */

/* Page wrapper uses full viewport below hero */
.search-page-wrap {
    background: #f2f4f7;
    min-height: 100vh;
    padding-bottom: 48px;
}

/* ── Two-column layout ── */
.search-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 20px;
    align-items: start;
    padding-top: 20px;
}

/* ══════════════
   FILTER SIDEBAR
   ══════════════ */
.search-sidebar {
    background: var(--white);
    border-radius: 10px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    position: sticky;
    top: 72px; /* below navbar */
    max-height: calc(100vh - 90px);
    overflow-y: auto;
    overflow-x: hidden;
}

    .search-sidebar::-webkit-scrollbar {
        width: 4px;
    }

    .search-sidebar::-webkit-scrollbar-track {
        background: transparent;
    }

    .search-sidebar::-webkit-scrollbar-thumb {
        background: var(--border);
        border-radius: 4px;
    }
.existing-img-tile {
    position: relative;
}

.img-delete-btn {
    position: absolute;
    top: 4px;
    right: 4px;
    background: rgba(220,38,38,.85);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    font-size: 11px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.existing-img-tile.marked-delete {
    opacity: .35;
    outline: 2px dashed #dc2626;
}

    .existing-img-tile.marked-delete::after {
        content: 'Will be removed';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        background: rgba(220,38,38,.8);
        color: #fff;
        font-size: 10px;
        text-align: center;
        padding: 2px;
    }
/* Sidebar title bar */
.ss-header {
    background: var(--navy);
    color: #fff;
    padding: 13px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .3px;
    position: sticky;
    top: 0;
    z-index: 1;
}

    .ss-header .ss-clear-all {
        font-size: 11px;
        font-weight: 500;
        color: rgba(255,255,255,.65);
        text-decoration: none;
        cursor: pointer;
        background: none;
        border: none;
        padding: 0;
        font-family: inherit;
        transition: color .15s;
    }

        .ss-header .ss-clear-all:hover {
            color: #fff;
        }

/* Each collapsible filter section */
.ss-section {
    border-bottom: 1px solid #edf0f4;
}

    .ss-section:last-child {
        border-bottom: none;
    }

.ss-section-toggle {
    width: 100%;
    background: none;
    border: none;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    font-family: inherit;
    text-align: left;
    transition: background .12s;
}

    .ss-section-toggle:hover {
        background: #f7f9fc;
    }

.ss-section-title {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--navy);
    text-transform: uppercase;
    letter-spacing: .5px;
}

.ss-section-toggle .ss-arrow {
    font-size: 10px;
    color: var(--muted);
    transition: transform .2s;
}

.ss-section.collapsed .ss-arrow {
    transform: rotate(-90deg);
}

.ss-section-body {
    padding: 4px 16px 14px;
}

.ss-section.collapsed .ss-section-body {
    display: none;
}

/* Transaction type — pill buttons */
.ss-tx-pills {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.ss-tx-pill {
    padding: 5px 14px;
    border-radius: 20px;
    border: 1.5px solid var(--border);
    background: var(--white);
    font-size: 12.5px;
    font-weight: 500;
    color: var(--text);
    cursor: pointer;
    transition: all .15s;
}


    .ss-tx-pill:hover {
        border-color: var(--navy);
        color: var(--navy);
    }

    .ss-tx-pill.active {
        background: var(--navy);
        border-color: var(--navy);
        color: #fff;
        font-weight: 600;
    }

/* Checkbox filter list */
.ss-check-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ss-check-item {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 5px 6px;
    border-radius: 5px;
    cursor: pointer;
    transition: background .12s;
}

    .ss-check-item:hover {
        background: #f0f4f9;
    }

    .ss-check-item input[type=checkbox] {
        width: 15px;
        height: 15px;
        accent-color: var(--navy);
        cursor: pointer;
        margin: 0;
        flex-shrink: 0;
    }

    .ss-check-item span {
        font-size: 13px;
        color: var(--text);
    }

/* Dropdown inside sidebar */
.ss-select {
    width: 100%;
    height: 36px;
    padding: 0 10px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 13px;
    color: var(--text);
    background: var(--white);
    cursor: pointer;
    transition: border-color .15s, box-shadow .15s;
    font-family: inherit;
    margin-top: 4px;
}

    .ss-select:focus {
        border-color: var(--navy);
        box-shadow: 0 0 0 3px rgba(15,26,46,.1);
        outline: none;
    }

/* Price range inputs */
.ss-price-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 4px;
}

    .ss-price-row input {
        width: 100%;
        height: 36px;
        padding: 0 10px;
        border: 1px solid var(--border);
        border-radius: 6px;
        font-size: 13px;
        color: var(--text);
        background: var(--white);
        transition: border-color .15s;
        font-family: inherit;
    }

        .ss-price-row input:focus {
            border-color: var(--navy);
            outline: none;
            box-shadow: 0 0 0 3px rgba(15,26,46,.1);
        }

.ss-price-label {
    font-size: 10.5px;
    color: var(--muted);
    margin-bottom: 2px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .4px;
}

/* Sidebar Apply button */
.ss-apply-btn {
    display: block;
    width: 100%;
    background: var(--red);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 10px 0;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 4px;
    margin-bottom: 8px;
    letter-spacing: .3px;
    transition: background .15s, transform .1s;
    font-family: inherit;
}

    .ss-apply-btn:hover {
        background: var(--red-dark);
        transform: translateY(-1px);
    }

/* ═══════════════
   RESULTS COLUMN
   ═══════════════ */
.search-results-col {
    min-width: 0;
}

/* Results toolbar */
.sr-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 16px;
    box-shadow: var(--shadow);
}

.sr-toolbar-left {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    color: var(--muted);
}

    .sr-toolbar-left strong {
        font-size: 18px;
        font-weight: 700;
        color: var(--navy);
    }

.sr-sort-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--muted);
}

    .sr-sort-wrap select {
        height: 34px;
        padding: 0 10px;
        border: 1px solid var(--border);
        border-radius: 6px;
        font-size: 13px;
        color: var(--text);
        background: var(--white);
        cursor: pointer;
        font-family: inherit;
    }

/* Keyword search */
.sr-keyword-wrap {
    position: relative;
}

    .sr-keyword-wrap input {
        height: 36px;
        padding: 0 12px 0 34px;
        border: 1px solid var(--border);
        border-radius: 6px;
        font-size: 13px;
        color: var(--text);
        width: 220px;
        font-family: inherit;
        transition: border-color .15s;
    }

        .sr-keyword-wrap input:focus {
            border-color: var(--navy);
            outline: none;
        }

    .sr-keyword-wrap i {
        position: absolute;
        left: 10px;
        top: 50%;
        transform: translateY(-50%);
        color: var(--muted);
        font-size: 13px;
    }

/* Property Cards — 3-column grid */
.sr-card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

/* Spinner */
.sr-spinner {
    text-align: center;
    padding: 60px 0;
    color: var(--muted);
    font-size: 15px;
}

    .sr-spinner i {
        display: block;
        font-size: 32px;
        margin-bottom: 8px;
        animation: spin .8s linear infinite;
    }

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Empty result */
.sr-empty {
    background: var(--white);
    border-radius: 10px;
    border: 1px solid var(--border);
    padding: 60px 32px;
    text-align: center;
    box-shadow: var(--shadow);
}

    .sr-empty i {
        font-size: 42px;
        color: #c8d4e2;
        margin-bottom: 12px;
        display: block;
    }

    .sr-empty h5 {
        font-size: 16px;
        color: var(--navy);
        margin-bottom: 6px;
        font-weight: 600;
    }

    .sr-empty p {
        font-size: 13px;
        color: var(--muted);
    }

/* Pagination bar */
.sr-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-top: 24px;
}

.pg-btn {
    width: 36px;
    height: 36px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--white);
    color: var(--text);
    font-size: 13px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all .15s;
    font-family: inherit;
}

    .pg-btn:hover {
        border-color: var(--navy);
        color: var(--navy);
    }

    .pg-btn.pg-btn-active {
        background: var(--navy);
        border-color: var(--navy);
        color: #fff;
        font-weight: 700;
    }

.pg-info {
    font-size: 12px;
    color: var(--muted);
    margin-left: 8px;
}

/* Loading overlay for AJAX */
.sr-loading {
    opacity: .45;
    pointer-events: none;
    transition: opacity .2s;
}

/* ── Responsive ── */
@media (max-width: 1100px) {
    .sr-card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .search-layout {
        grid-template-columns: 1fr;
    }

    .search-sidebar {
        position: static;
        max-height: none;
    }

    .ss-mobile-toggle {
        display: flex !important;
    }

    .ss-collapsible {
        display: none;
    }

        .ss-collapsible.open {
            display: block;
        }

}

@media (max-width: 640px) {
    .sr-card-grid {
        grid-template-columns: 1fr;
    }

    .sr-keyword-wrap input {
        width: 100%;
    }
}
/* ================================================
   CATEGORY TAB BAR  (Property Index page)
   Residential / Commercial / All tabs
   ================================================ */
.category-tab-bar {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    border-bottom: 2px solid var(--border);
    padding-bottom: 0;
}

.category-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 20px;
    border-radius: 8px 8px 0 0;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
    border: 1px solid transparent;
    border-bottom: none;
    margin-bottom: -2px;
    transition: all .15s;
}

    .category-tab:hover {
        color: var(--text);
        background: var(--bg-soft);
        text-decoration: none;
    }

    .category-tab.active {
        background: var(--white);
        color: var(--text);
        border-color: var(--border);
        border-bottom-color: var(--white);
    }

.tab-count {
    background: var(--bg-soft);
    border-radius: 10px;
    padding: 1px 7px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
}

.category-tab.active .tab-count {
    background: var(--red-light);
    color: var(--red);
}

/* ================================================
   CATEGORY TOGGLE BUTTONS  (Add/Edit property form)
   Residential / Commercial selector
   ================================================ */
.category-toggle-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.category-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 28px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    background: var(--white);
    font-family: var(--font);
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    transition: all .2s;
}

    .category-btn:hover {
        border-color: var(--navy);
        color: var(--navy);
        background: var(--bg-soft);
    }

    .category-btn.active {
        background: var(--navy);
        color: var(--white);
        border-color: var(--navy);
    }

    .category-btn i {
        font-size: 15px;
    }

/* ================================================
   PROPERTY TYPE BADGES IN TABLE
   Residential (green) / Commercial (blue)
   ================================================ */
.type-badge.type-residential {
    background: #e6f9f1;
    color: #0d7a60;
}

.type-badge.type-commercial {
    background: #e8f1fb;
    color: #1d4ed8;
}

.type-badge.type-lease {
    background: #f0ecfe;
    color: #6d28d9;
}

/* ================================================
   RESULTS META  — category badge inline
   ================================================ */
.badge-category {
    display: inline-block;
    background: var(--red-light);
    color: var(--red);
    border-radius: 10px;
    padding: 1px 8px;
    font-size: 11px;
    font-weight: 700;
    margin: 0 4px;
    vertical-align: middle;
}

/* ================================================
   HEADER NOTE  (small hint text beside section header)
   Used in photo upload card headers
   ================================================ */
.header-note {
    font-size: 11px;
    font-weight: 400;
    opacity: 0.75;
    margin-left: 10px;
    letter-spacing: 0;
    text-transform: none;
}

/* ================================================
   PHOTO ERROR MESSAGE
   Client-side validation message below photo picker
   ================================================ */
.photo-error-msg {
    color: var(--red);
    font-size: 12.5px;
    font-weight: 600;
    margin-top: 6px;
    display: none;
}

    .photo-error-msg:not(:empty) {
        display: block;
    }

/* ================================================
   PHOTO COUNT BADGE  — error state
   ================================================ */
.photo-count-badge.error {
    background: var(--red);
    color: var(--white);
}
.ss-sort-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
}

.ss-sort-label {
    font-size: 13px;
    color: var(--muted);
}

.ss-sort-select {
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 5px 10px;
    font-size: 13px;
    color: var(--text);
    background: #fff;
    cursor: pointer;
    height: 34px;
    font-family: inherit;
}

    .ss-sort-select:focus {
        border-color: var(--navy);
        outline: none;
    }

/* ── Area inline search ────────────────────────── */
.ss-inline-search {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 12.5px;
    margin-bottom: 8px;
    font-family: inherit;
    color: var(--text);
}

    .ss-inline-search:focus {
        border-color: var(--navy);
        outline: none;
    }

.ss-scrollable-list {
    max-height: 160px;
    overflow-y: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 2px 0;
}

    .ss-scrollable-list::-webkit-scrollbar {
        width: 4px;
    }

    .ss-scrollable-list::-webkit-scrollbar-track {
        background: transparent;
    }

    .ss-scrollable-list::-webkit-scrollbar-thumb {
        background: var(--border);
        border-radius: 4px;
    }

/* ── Pcard enhancements ────────────────────────── */
.pcard-body {
    padding: 12px 14px 8px;
}

.pcard-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 6px;
}

.pcard-type-badge, .pcard-spec-badge {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 20px;
    background: #f0f4f9;
    color: var(--navy);
    font-weight: 600;
    border: 1px solid var(--border);
}

.pcard-sqft-badge {
    font-size: 12px;
    color: var(--muted);
    font-weight: 500;
    padding: 2px 7px;
    background: #f7f9fc;
    border: 1px solid var(--border);
    border-radius: 20px;
}

.pcard-title {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pcard-location {
    font-size: 12.5px;
    color: var(--muted);
    margin-bottom: 8px;
}

.pcard-footer-row {
    display: flex;
    gap: 10px;
    align-items: center;
    font-size: 11.5px;
    color: var(--muted);
    padding-top: 6px;
    border-top: 1px solid var(--border);
    margin-bottom: 8px;
}

.pcard-actions {
    padding: 0 14px 12px;
}

.pcard-details-btn {
    display: block;
    text-align: center;
    background: var(--navy);
    color: #fff;
    border-radius: 6px;
    padding: 7px 0;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
    transition: background .15s;
}

    .pcard-details-btn:hover {
        background: var(--navy-mid);
        color: #fff;
    }

.pcard-details-btn-lock {
    background: #6c757d !important;
    font-size: 12px !important;
}

    .pcard-details-btn-lock:hover {
        background: #5a6268 !important;
    }

/* ── Pagination ────────────────────────────────── */
.sr-pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.sr-page-btn {
    min-width: 36px;
    height: 36px;
    border: 1px solid var(--border);
    background: #fff;
    border-radius: 6px;
    font-size: 13px;
    color: var(--navy);
    cursor: pointer;
    font-family: inherit;
    transition: all .12s;
    padding: 0 10px;
}

    .sr-page-btn:hover {
        border-color: var(--navy);
        background: #f0f4f9;
    }

    .sr-page-btn.active {
        background: var(--navy);
        border-color: var(--navy);
        color: #fff;
        font-weight: 700;
    }