/* CRE Admin Panel Styles - Light Brand Theme */

:root {
    /* Colors */
    --bg-body: #ffffff;
    --bg-sidebar: #ffffff;
    --bg-card: #ffffff;
    --bg-card-hover: #f4f6ff;
    --bg-input: #ffffff;

    --text-primary: #111827;
    --text-secondary: #4b5563;
    --text-muted: #6b7280;

    --accent-primary: #2332dd;
    --accent-secondary: #1b27b5;
    --accent-glow: rgba(35, 50, 221, 0.12);

    --border-light: #e5e7eb;
    --border-hover: #c7d2fe;

    /* Spacing */
    --header-height: 64px;
    --sidebar-width: 260px;
    --sidebar-collapsed-width: 78px;
    --mobile-nav-height: 60px;

    /* Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;

    /* Typography */
    --text-h1: 2rem;
    --text-h2: 1.5rem;
    --text-h3: 1.25rem;
    --text-body: 1rem;
    --text-sm: 0.875rem;
    --text-xs: 0.75rem;

    /* Buttons */
    --btn-padding: 0.75rem 1.5rem;
    --btn-radius: var(--radius-md);
    --btn-font-weight: 600;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    font-size: var(--text-body);
}

h1 {
    font-size: var(--text-h1);
    font-weight: 700;
    margin-bottom: 1rem;
}

h2 {
    font-size: var(--text-h2);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

h3 {
    font-size: var(--text-h3);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

p {
    margin-bottom: 1rem;
}

small {
    font-size: var(--text-sm);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

ul {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

/* Layout Grid */
#app-layout {
    display: grid;
    grid-template-columns: var(--sidebar-width) 1fr;
    grid-template-rows: var(--header-height) 1fr;
    grid-template-areas:
        "sidebar header"
        "sidebar main";
    height: 100vh;
    overflow: hidden;
}

#app-layout.sidebar-collapsed {
    grid-template-columns: var(--sidebar-collapsed-width) 1fr;
}

/* Sidebar Component */
#sidebar-container {
    grid-area: sidebar;
    background-color: var(--bg-sidebar);
    border-right: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    z-index: 9999;
    height: 100vh;
    overflow: hidden;
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    transition: width 0.25s ease, transform 0.3s ease, left 0.3s ease;
}

#app-layout.sidebar-collapsed #sidebar-container {
    width: var(--sidebar-collapsed-width);
}

.admin-sidebar {
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.sidebar-brand {
    height: var(--header-height);
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-light);
    gap: 0.75rem;
    width: 100%;
    background: transparent;
    text-align: left;
}

.sidebar-brand-toggle {
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.sidebar-brand-toggle:hover {
    color: var(--accent-primary);
    background: var(--bg-card-hover);
}

.sidebar-brand i {
    flex: 0 0 20px;
    text-align: center;
    color: var(--accent-primary);
}

.sidebar-profile {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid var(--border-light);
}

.profile-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent-glow);
    color: var(--accent-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-info h4 {
    font-size: 0.9rem;
    font-weight: 600;
}

.profile-info p {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.sidebar-nav {
    flex: 1;
    padding: 1.5rem 0;
    overflow-y: auto;
}

.nav-item a {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1.5rem;
    color: var(--text-secondary);
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
}

.nav-item a i:first-child {
    flex: 0 0 20px;
    text-align: center;
}

#app-layout.sidebar-collapsed .admin-sidebar {
    align-items: stretch;
}

#app-layout.sidebar-collapsed .sidebar-brand {
    justify-content: center;
    padding: 0;
}

#app-layout.sidebar-collapsed .sidebar-brand span,
#app-layout.sidebar-collapsed .sidebar-profile .profile-info,
#app-layout.sidebar-collapsed .nav-item a span,
#app-layout.sidebar-collapsed .dropdown-icon,
#app-layout.sidebar-collapsed .sidebar-stats {
    display: none;
}

#app-layout.sidebar-collapsed .sidebar-profile {
    justify-content: center;
    padding: 1rem 0;
}

#app-layout.sidebar-collapsed .profile-avatar {
    width: 42px;
    height: 42px;
}

#app-layout.sidebar-collapsed .sidebar-nav {
    padding: 1rem 0;
}

#app-layout.sidebar-collapsed .nav-item a {
    justify-content: center;
    gap: 0;
    padding: 0.9rem 0;
    border-left-width: 0;
    border-right: 3px solid transparent;
}

#app-layout.sidebar-collapsed .nav-item.active a {
    border-left-color: transparent;
    border-right-color: var(--accent-primary);
}

#app-layout.sidebar-collapsed .nav-dropdown .dropdown-menu {
    display: none !important;
}

.nav-item a:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}

.nav-item.active a {
    background: var(--accent-glow);
    color: var(--accent-primary);
    border-left-color: var(--accent-primary);
}

.sidebar-stats {
    margin: 1rem;
    padding: 1.15rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 20px;
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.24), transparent 34%),
        linear-gradient(135deg, #2332dd 0%, #1b27b5 58%, #111a86 100%);
    box-shadow: 0 18px 42px rgba(35, 50, 221, 0.28);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.stat-item {
    text-align: center;
    padding: 0.25rem;
}

.stat-number {
    display: block;
    font-size: 1.1rem;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: -0.03em;
}

.stat-label {
    font-size: 0.62rem;
    color: #ffffff;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 0.08em;
}

/* Header Component */
#header-container {
    grid-area: header;
    background-color: var(--bg-body);
    /* Match body bg for seamless look */
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    min-height: var(--header-height);
    height: var(--header-height);
    padding: 0 2rem;
    z-index: 9500;
    position: sticky;
    top: 0;
    flex: 0 0 var(--header-height);
    backdrop-filter: blur(14px);
    box-shadow: 0 10px 24px rgba(17, 24, 39, 0.05);
}

.admin-header-bar {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-menu-toggle {
    display: none;
    font-size: 1.25rem;
    color: var(--text-primary);
}

.mobile-header-logo {
    display: none;
    align-items: center;
    min-width: 0;
}

.mobile-header-logo img {
    display: block;
    width: auto;
    height: 34px;
    max-width: 150px;
    object-fit: contain;
}

.header-title h1 {
    font-size: 1.25rem;
    font-weight: 600;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.icon-btn {
    position: relative;
    color: var(--text-secondary);
    font-size: 1.1rem;
    transition: color 0.2s;
}

.icon-btn:hover {
    color: var(--text-primary);
}

.badge-dot {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 8px;
    height: 8px;
    background: var(--accent-primary);
    border-radius: 50%;
    border: 2px solid var(--bg-body);
}

.language-selector {
    position: relative;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
}

.lang-code {
    font-size: 0.85rem;
}

.lang-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    min-width: 160px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    z-index: 3000;
}

.lang-dropdown.show {
    display: block;
}

.lang-item {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: all 0.2s;
}

.lang-item:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}

.lang-item.active {
    color: var(--accent-primary);
    background: var(--accent-glow);
}

.header-profile {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.35rem 0.75rem 0.35rem 0.35rem;
    color: var(--text-primary);
    background: var(--bg-input);
    border: 1px solid var(--border-light);
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 800;
    transition: all 0.2s ease;
}

.header-profile:hover {
    color: var(--accent-primary);
    border-color: rgba(35, 50, 221, 0.28);
    background: rgba(35, 50, 221, 0.06);
}

.header-profile img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid rgba(35, 50, 221, 0.22);
    object-fit: cover;
}

.header-logout-form {
    margin: 0;
}

.header-auth-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 40px;
    padding: 0.65rem 1rem;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.header-auth-btn--primary {
    color: #ffffff;
    background: #2332dd;
    border-color: #2332dd;
    box-shadow: 0 8px 22px rgba(35, 50, 221, 0.22);
}

.header-auth-btn--primary:hover {
    color: #ffffff;
    background: #1b27b5;
    transform: translateY(-1px);
}

.header-auth-btn--ghost {
    color: var(--text-primary);
    background: var(--bg-input);
    border-color: var(--border-light);
}

.header-auth-btn--ghost:hover {
    color: #2332dd;
    border-color: rgba(35, 50, 221, 0.28);
    background: rgba(35, 50, 221, 0.06);
}

/* Main Content Area */
.admin-main {
    grid-area: main;
    padding: 2rem;
    overflow-y: auto;
    background-color: var(--bg-body);
}

/* Cards & Containers */
.admin-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: transform 0.2s, border-color 0.2s;
}

.admin-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.dashboard-top-overview {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(360px, 560px);
    gap: 1.5rem;
    align-items: center;
}

.dashboard-top-overview__copy {
    margin-bottom: 0;
}

.dashboard-top-overview__video,
.property-mid-cta__video {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 18px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.24);
}

.dashboard-top-overview__video {
    border-color: var(--border-light);
    border-radius: 20px;
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.14);
}

.dashboard-top-overview__video iframe,
.property-mid-cta__video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

@media (max-width: 900px) {
    .dashboard-top-overview {
        grid-template-columns: 1fr;
    }

    .dashboard-top-overview__video {
        width: min(100%, 360px);
        justify-self: center;
    }
}

@media (max-width: 520px) {
    .dashboard-top-overview__video {
        width: min(100%, 300px);
        border-radius: 16px;
    }
}

/* Stats Grid */
.admin-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.stat-value {
    /* font-size: 1.75rem;*/
    font-weight: 700;
    color: var(--text-primary);
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.sidebar-stats .stat-number,
.sidebar-stats .stat-label {
    color: #ffffff;
}

.sidebar-stats .stat-label {
    font-size: 0.62rem;
}

/* Mobile Navigation */
#mobile-nav-container {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-top: 1px solid var(--border-light);
    z-index: 100;
    height: var(--mobile-nav-height);
}

.mobile-bottom-nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 100%;
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--text-secondary);
    font-size: 0.75rem;
    padding: 0.5rem;
}

.mobile-nav-item i {
    font-size: 1.25rem;
}

.mobile-nav-item.active {
    color: var(--accent-primary);
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
    .admin-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    #app-layout {
        grid-template-columns: 1fr;
        grid-template-rows: var(--header-height) 1fr var(--mobile-nav-height);
        grid-template-areas:
            "header"
            "main"
            "nav";
    }

    #sidebar-container {
        position: fixed;
        top: var(--header-height);
        left: 0;
        bottom: 0;
        width: var(--sidebar-width);
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    #sidebar-container.mobile-open {
        transform: translateX(0);
    }

    .mobile-menu-toggle {
        display: block;
    }

    .mobile-header-logo {
        display: flex;
    }

    #mobile-nav-container {
        display: block;
        grid-area: nav;
    }

    .admin-main {
        padding: 1rem;
        padding-bottom: calc(var(--mobile-nav-height) + 1rem);
    }

    .admin-stats {
        grid-template-columns: 1fr;
    }

    .header-title h1 {
        font-size: 1rem;
    }

    .header-actions {
        gap: 0.45rem;
    }

    .header-profile {
        padding-right: 0.35rem;
    }

    .header-profile span,
    .header-auth-btn span {
        display: none;
    }

    .header-auth-btn {
        min-height: 36px;
        padding: 0.55rem 0.75rem;
        font-size: 0.8rem;
    }
}

/* Utility Classes */
.text-accent {
    color: var(--accent-primary);
}

.mb-1 {
    margin-bottom: 0.5rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

/* Buttons */
.btn-primary {
    background: var(--accent-primary);
    color: #fff !important;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(35, 50, 221, 0.2);
}

/* Landing Page Specifics (Index) */
.landing-page {
    background-color: #ffffff;
    color: #111827;
}

.landing-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    z-index: 100;
    border-bottom: 1px solid var(--border-light);
}

.logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.landing-nav .logo .header-logo,
.header-logo {
    display: block;
    width: auto;
    height: 92px !important;
    max-width: 420px;
    object-fit: contain;
}

.hero-section {
    /*    min-height: 100vh; */
    /*    display: flex; */
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 6rem 2rem;
    background: radial-gradient(circle at center, #eef2ff 0%, #ffffff 100%);
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: #fff;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-box {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

.feature-box:hover {
    border-color: var(--accent-primary);
    transform: translateY(-5px);
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
}

/* Search Page Styles */
.search-header {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
}

.location-search {
    margin-top: 1.5rem;
}

.location-input-container {
    display: flex;
    gap: 1rem;
}

.location-input {
    flex: 1;
    background: var(--bg-input);
    border: 1px solid var(--border-light);
    color: var(--text-primary);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    font-size: 1rem;
}

.location-input:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.location-search-btn {
    background: var(--accent-primary);
    color: #fff;
    padding: 0 2rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: all 0.3s ease;
}

.location-search-btn:hover {
    background: var(--accent-secondary);
    transform: translateY(-1px);
}

.advanced-filters {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    margin-bottom: 2rem;
}

.filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.filters-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
}

.clear-filters-btn {
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-decoration: underline;
}

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

.filter-group label {
    display: block;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.range-inputs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.range-input {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border-light);
    color: var(--text-primary);
    padding: 0.5rem;
    border-radius: var(--radius-sm);
}

.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    cursor: pointer;
}

.filter-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    border-top: 1px solid var(--border-light);
    padding-top: 1.5rem;
}

.apply-filters-btn {
    background: var(--accent-primary);
    color: #fff;
    padding: 0.75rem 2rem;
    border-radius: var(--radius-md);
    font-weight: 600;
}

.save-search-btn {
    border: 1px solid var(--border-light);
    color: var(--text-primary);
    padding: 0.75rem 2rem;
    border-radius: var(--radius-md);
}

/* Search Results */
.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.results-controls {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.sort-options select {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-light);
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    margin-left: 0.5rem;
}

/* Dashboard Specifics */
.dashboard-container {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.left-panel {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.search-section,
.filters-section {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
}

.search-section h1 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.search-subtitle {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.search-input-container {
    display: flex;
    gap: 1rem;
}

.search-input {
    flex: 1;
    background: var(--bg-input);
    border: 1px solid var(--border-light);
    color: var(--text-primary);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
}

.search-btn {
    background: var(--accent-primary);
    color: #fff;
    padding: 0 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.filter-btn {
    background: var(--bg-input);
    border: 1px solid var(--border-light);
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    transition: all 0.2s;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--accent-primary);
    color: #fff;
    border-color: var(--accent-primary);
}

.property-cards h2 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.opportunities-subtitle {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.property-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: transform 0.2s;
}

.property-card:hover {
    transform: translateY(-2px);
    border-color: var(--accent-primary);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1rem;
}

.card-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.price {
    font-weight: 700;
    color: var(--accent-primary);
}

.investment-badge,
.location-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
    margin-right: 0.5rem;
}

.investment-badge {
    background: var(--accent-glow);
    color: var(--accent-primary);
}

.location-badge {
    background: var(--bg-input);
    color: var(--text-secondary);
}

.card-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem 0;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.occupancy {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.save-btn {
    color: var(--accent-primary);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Map Container */
.right-panel {
    position: sticky;
    top: 1.5rem;
    height: calc(100vh - 4rem);
}

.map-container {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.map-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-light);
}

.map-header h2 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.map-subtitle {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.map-controls {
    display: flex;
    gap: 0.5rem;
}

.map-btn {
    padding: 0.25rem 0.75rem;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.map-btn.active {
    background: var(--accent-primary);
    color: #fff;
    border-color: var(--accent-primary);
}

.map {
    flex: 1;
    background: #eef2ff;
}

@media (max-width: 1200px) {
    .dashboard-container {
        grid-template-columns: 1fr;
    }

    .right-panel {
        height: 500px;
        position: static;
    }
}

@media (max-width: 768px) {
    .location-input-container {
        flex-direction: column;
    }

    .filters-grid {
        grid-template-columns: 1fr;
    }

    .checkbox-grid {
        grid-template-columns: 1fr;
    }
}

/* Property Detail Styles */
.property-header {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background:
        radial-gradient(circle at 14% 10%, rgba(255, 255, 255, 0.28), transparent 27%),
        radial-gradient(circle at 86% 18%, rgba(96, 165, 250, 0.34), transparent 28%),
        radial-gradient(circle at 78% 88%, rgba(245, 158, 11, 0.24), transparent 32%),
        linear-gradient(180deg, rgba(35, 50, 221, 0.98) 0%, rgba(27, 39, 181, 0.96) 46%, rgba(15, 23, 111, 0.98) 100%);
    min-height: 360px;
    padding: clamp(2rem, 4vw, 3rem) min(30vw, 360px) clamp(2rem, 4vw, 3rem) clamp(2rem, 4vw, 3rem);
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    margin-bottom: 2rem;
    box-shadow: 0 28px 80px rgba(35, 50, 221, 0.28);
}

.property-header::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        linear-gradient(90deg, rgba(15, 23, 42, 0.34), transparent 34%, transparent 70%, rgba(15, 23, 42, 0.46)),
        repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.07) 0 1px, transparent 1px 20px);
    opacity: 0.72;
}

.property-header::after {
    content: '';
    position: absolute;
    right: clamp(1rem, 4vw, 3.5rem);
    bottom: -72px;
    z-index: 0;
    width: min(32vw, 380px);
    aspect-ratio: 1;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    box-shadow: inset 0 0 60px rgba(255, 255, 255, 0.08);
}

.property-header > :not(.property-header__advisor) {
    position: relative;
    z-index: 2;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.property-header .back-btn {
    width: fit-content;
    padding: 0.45rem 0.85rem;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    font-weight: 800;
}

.back-btn:hover {
    color: var(--accent-primary);
}

.property-header .back-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.22);
    transform: translateY(-1px);
}

.property-title h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.property-header .property-title h1 {
    max-width: 920px;
    color: #ffffff;
    font-size: clamp(2rem, 3.4vw, 3.6rem);
    font-weight: 950;
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.property-address {
    color: var(--text-secondary);
    display: block;
    margin-bottom: 1rem;
}

.property-header .property-address {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.05rem;
    font-weight: 650;
}

.investment-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag {
    background: var(--bg-input);
    color: var(--text-secondary);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    border: 1px solid var(--border-light);
}

.property-header .tag {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.22);
    font-weight: 800;
}

.property-actions {
    margin-top: 1.5rem;
    display: flex;
    gap: 1rem;
}

.action-btn {
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid var(--border-light);
    color: var(--text-primary);
    background: var(--bg-input);
}

.property-header .action-btn {
    color: #111827;
    background: #ffffff;
    border-color: rgba(255, 255, 255, 0.75);
    font-weight: 900;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}

.property-header .action-btn:hover {
    background: #f3f4f6;
    transform: translateY(-2px);
}

.property-header__advisor {
    position: absolute;
    right: clamp(0.25rem, 3vw, 2.25rem);
    bottom: -8px;
    z-index: 1;
    width: min(28vw, 340px);
    max-height: 390px;
    object-fit: contain;
    object-position: bottom right;
    filter: drop-shadow(0 24px 30px rgba(15, 23, 42, 0.34));
    pointer-events: none;
    user-select: none;
}

@media (max-width: 1100px) {
    .property-header {
        padding-right: min(26vw, 260px);
    }

    .property-header__advisor {
        width: min(26vw, 250px);
        opacity: 0.9;
    }
}

@media (max-width: 780px) {
    .property-header {
        min-height: auto;
        padding: 1.5rem 1.25rem;
    }

    .property-header .property-title h1 {
        font-size: clamp(1.85rem, 10vw, 2.6rem);
    }

    .property-header::after {
        top: -70px;
        right: -82px;
        bottom: auto;
        width: 220px;
    }

    .property-header__advisor {
        top: auto;
        right: -1rem;
        bottom: -0.75rem;
        width: min(210px, 52vw);
        max-height: 215px;
        opacity: 0.42;
        filter: drop-shadow(0 16px 22px rgba(15, 23, 42, 0.28));
    }
}

.property-mid-cta {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 360px;
    margin: 2rem 0;
    padding: clamp(2rem, 4vw, 3.5rem) clamp(1.25rem, 3vw, 2rem);
    overflow: hidden;
    isolation: isolate;
    color: #ffffff;
    background:
        radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.24), transparent 26%),
        radial-gradient(circle at 90% 85%, rgba(245, 158, 11, 0.26), transparent 30%),
        linear-gradient(135deg, #2332dd 0%, #1b27b5 58%, #0f176f 100%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 30px;
    box-shadow: 0 24px 70px rgba(35, 50, 221, 0.24);
}

.property-mid-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(15, 23, 42, 0.28), transparent 25%, transparent 75%, rgba(15, 23, 42, 0.28)),
        repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px 18px);
    opacity: 0.55;
}

.property-mid-cta__content {
    position: relative;
    z-index: 2;
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}

.property-mid-cta--has-video .property-mid-cta__content {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(300px, 1.1fr);
    gap: clamp(1.25rem, 3vw, 2rem);
    align-items: center;
    max-width: 1080px;
    text-align: left;
}

.property-mid-cta--has-video .property-mid-cta__actions {
    justify-content: flex-start;
}

.property-mid-cta__eyebrow {
    display: inline-flex;
    width: fit-content;
    padding: 0.45rem 0.9rem;
    margin-bottom: 1rem;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.property-mid-cta h2 {
    margin: 0 0 1rem;
    color: #ffffff;
    font-size: clamp(2rem, 3.6vw, 3.65rem);
    font-weight: 950;
    line-height: 1.03;
    letter-spacing: -0.05em;
}

.property-mid-cta p {
    max-width: 700px;
    margin: 0 auto 1.5rem;
    color: rgba(255, 255, 255, 0.86);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.7;
}

.property-mid-cta--has-video p {
    margin-right: 0;
    margin-left: 0;
}

.property-mid-cta__video {
    width: 100%;
}

.dashboard-investment-pitch {
    margin-top: 2rem;
    margin-bottom: 0;
}

.property-mid-cta__actions {
    display: flex;
    justify-content: center;
    gap: 0.9rem;
    flex-wrap: wrap;
}

.property-mid-cta__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    min-height: 48px;
    padding: 0.85rem 1.35rem;
    border-radius: 999px;
    font-size: 0.92rem;
    font-weight: 900;
    transition: all 0.22s ease;
}

.property-mid-cta__button--primary {
    color: #111827;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}

.property-mid-cta__button--secondary {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.26);
}

.property-mid-cta__button:hover {
    transform: translateY(-2px);
}

.property-mid-cta__button--primary:hover {
    background: #f3f4f6;
}

.property-mid-cta__button--secondary:hover {
    background: rgba(255, 255, 255, 0.22);
}

.property-mid-cta__person {
    position: absolute;
    z-index: 1;
    bottom: -10px;
    width: min(26vw, 310px);
    max-height: 360px;
    object-fit: contain;
    filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.28));
    pointer-events: none;
    user-select: none;
}

.property-mid-cta__person--left {
    left: max(-18px, -2vw);
}

.property-mid-cta__person--right {
    right: max(-18px, -2vw);
}

@media (max-width: 1100px) {
    .property-mid-cta {
        min-height: 320px;
    }

    .property-mid-cta__person {
        width: min(30vw, 245px);
        opacity: 0.72;
    }

    .property-mid-cta__content {
        max-width: 680px;
    }

    .property-mid-cta--has-video .property-mid-cta__content {
        max-width: 920px;
    }
}

@media (max-width: 780px) {
    .property-mid-cta {
        min-height: auto;
        padding: 2rem 1.25rem 11rem;
    }

    .property-mid-cta__person {
        width: 170px;
        max-height: 180px;
        opacity: 0.9;
    }

    .property-mid-cta__person--left {
        left: -8px;
    }

    .property-mid-cta__person--right {
        right: -8px;
    }

    .property-mid-cta__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .property-mid-cta--has-video .property-mid-cta__content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .property-mid-cta--has-video .property-mid-cta__actions {
        justify-content: center;
    }

    .property-mid-cta__button {
        width: 100%;
    }
}

.action-btn.primary {
    background: var(--accent-primary);
    color: #fff;
    border-color: var(--accent-primary);
}

.action-btn:hover {
    transform: translateY(-1px);
}

.action-btn.primary:hover {
    background: var(--accent-secondary);
}

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

.metric-card {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
}

.metric-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.metric-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.metric-explanation {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
    padding-top: 1rem;
    border-top: 1px solid var(--border-light);
}

/* Calculator Section */
.calculator-section {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    margin-bottom: 2rem;
}

.calculator-section h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.calculator-subtitle {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

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

.calc-input {
    margin-bottom: 1.5rem;
}

.calc-input label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.slider {
    width: 100%;
    height: 6px;
    background: var(--bg-input);
    border-radius: 3px;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
}

.slider::-webkit-slider-thumb {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    background: var(--accent-primary);
    border-radius: 50%;
    cursor: pointer;
}

.calc-result {
    background: var(--bg-input);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
}

.result-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-light);
}

.result-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.result-item span:last-child {
    font-weight: 700;
    color: var(--accent-primary);
}

.investment-insights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.rei-vs-comparison {
    margin-top: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8faff 0%, #ffffff 62%, #eef2ff 100%);
    border: 1px solid rgba(35, 50, 221, 0.16);
    border-radius: var(--radius-lg);
    box-shadow: 0 16px 40px rgba(17, 24, 39, 0.06);
}

.rei-vs-header {
    max-width: 860px;
    margin-bottom: 1.25rem;
}

.rei-vs-eyebrow {
    display: inline-flex;
    width: fit-content;
    padding: 0.35rem 0.75rem;
    margin-bottom: 0.75rem;
    color: #2332dd;
    background: rgba(35, 50, 221, 0.09);
    border: 1px solid rgba(35, 50, 221, 0.14);
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.rei-vs-header h3 {
    margin: 0 0 0.5rem;
    color: #111827;
    font-size: clamp(1.45rem, 2vw, 2rem);
    font-weight: 950;
}

.rei-vs-header p {
    margin: 0;
    color: #4b5563;
    font-weight: 650;
    line-height: 1.6;
}

.rei-vs-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.rei-vs-card {
    padding: 1.25rem;
    background: #ffffff;
    border: 1px solid rgba(17, 24, 39, 0.08);
    border-radius: 18px;
}

.rei-vs-card.rei {
    border-color: rgba(35, 50, 221, 0.24);
    box-shadow: inset 0 4px 0 #2332dd;
}

.rei-vs-card.difference {
    background: #111827;
    color: #ffffff;
}

.rei-vs-label,
.rei-vs-card small {
    display: block;
    color: #6b7280;
    font-size: 0.82rem;
    font-weight: 800;
}

.rei-vs-card.difference .rei-vs-label,
.rei-vs-card.difference small {
    color: rgba(255, 255, 255, 0.72);
}

.rei-vs-card strong {
    display: block;
    margin: 0.35rem 0;
    color: #111827;
    font-size: clamp(1.55rem, 2.4vw, 2.35rem);
    font-weight: 950;
    letter-spacing: -0.04em;
}

.rei-vs-card.rei strong {
    color: #2332dd;
}

.rei-vs-card.difference strong {
    color: #ffffff;
}

.rei-vs-card.difference strong.negative {
    color: #fecaca;
}

.rei-vs-summary {
    margin: 1rem 0 0;
    padding: 1rem;
    color: #111827;
    background: rgba(35, 50, 221, 0.08);
    border-radius: 14px;
    font-weight: 800;
    line-height: 1.55;
}

.rei-vs-disclaimer {
    margin: 0.85rem 0 0;
    color: #6b7280;
    font-size: 0.78rem;
    font-style: italic;
    line-height: 1.45;
}

.insight-item {
    background: var(--bg-input);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
}

.insight-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.insight-title {
    font-weight: 600;
    color: var(--text-primary);
}

.insight-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* FAQ Section */
.faq-section {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    margin-bottom: 2rem;
}

.faq-section h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.faq-subtitle {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.faq-item {
    border-bottom: 1px solid var(--border-light);
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    padding: 1.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 500;
}

.faq-question:hover {
    color: var(--accent-primary);
}

.faq-answer {
    padding: 0 1.5rem 1.5rem 1.5rem;
    color: var(--text-secondary);
    display: none;
    line-height: 1.6;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer.active,
.faq-item.active .faq-answer {
    display: block !important;
    max-height: 500px;
}

.faq-question.active .faq-icon,
.faq-item.active .faq-icon {
    transform: rotate(45deg);
    color: var(--accent-primary);
}

.faq-icon {
    font-size: 1.5rem;
    transition: transform 0.3s;
}

/* Comments Section */
.comments-section {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-top: 2rem;
    border: 1px solid var(--border-light);
}

.comments-header {
    margin-bottom: 2rem;
}

.comments-header h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.comments-subtitle {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.comments-stats {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.add-comment-form {
    background: var(--bg-input);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid var(--border-light);
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.comment-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--accent-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.author-info h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.author-rank {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.comment-input-container {
    position: relative;
}

#commentInput {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    background: var(--bg-body);
    color: var(--text-primary);
    font-size: 0.9rem;
    resize: vertical;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

#commentInput:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.comment-input-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.75rem;
}

.character-count {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.post-comment-btn {
    background: var(--accent-primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.post-comment-btn:hover {
    background: var(--accent-secondary);
    transform: translateY(-2px);
}

.comments-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.comments-filter {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.sort-select {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-light);
    background: var(--bg-input);
    color: var(--text-secondary);
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 0.85rem;
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.comment-item {
    background: var(--bg-input);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

.comment-item:hover {
    border-color: var(--accent-primary);
    transform: translateY(-2px);
}

.comment-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.comment-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    flex-shrink: 0;
}

.comment-user-info {
    flex: 1;
}

.comment-user-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.comment-user-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.comment-content {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.comment-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.comment-action {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
}

.comment-action:hover {
    background: var(--bg-card);
    color: var(--text-primary);
}

.comment-action.liked {
    color: var(--accent-primary);
}

.load-more-container {
    text-align: center;
    margin: 2rem 0;
}

.load-more-btn {
    background: var(--bg-input);
    color: var(--text-secondary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 1rem 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 auto;
}

.load-more-btn:hover {
    background: var(--bg-card);
    color: var(--text-primary);
}

.comments-empty {
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
}

.comments-empty i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--accent-primary);
}

@media (max-width: 768px) {
    .comments-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .comments-filter {
        justify-content: center;
    }


}

/* Profile Page Styles */
.ranking-overview {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.ranking-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 2rem;
    border: 1px solid var(--border-light);
}

.ranking-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.ranking-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--accent-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.ranking-info h3 {
    margin: 0 0 0.25rem 0;
    font-size: 1.25rem;
    color: var(--text-primary);
}

.ranking-info p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.ranking-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.ranking-stats .stat-item {
    text-align: center;
    padding: 1rem;
    background: var(--bg-input);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
}

.ranking-stats .stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-primary);
    margin-bottom: 0.25rem;
}

.ranking-stats .stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ranking-progress {
    margin-bottom: 2rem;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

.progress-header span:first-child {
    color: var(--text-secondary);
}

.progress-header span:last-child {
    color: var(--accent-primary);
    font-weight: 600;
}

.progress-bar {
    height: 8px;
    background: var(--bg-input);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 4px;
    transition: width 0.3s ease;
}

.ranking-badges {
    margin-top: 2rem;
}

.ranking-badges h4 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.badges-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.badge-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: var(--bg-input);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
}

.badge-item i {
    color: var(--accent-primary);
    font-size: 0.9rem;
}

.badge-item span {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.ranking-leaderboard {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    border: 1px solid var(--border-light);
}

.ranking-leaderboard h4 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.leaderboard-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.leaderboard-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--bg-input);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
}

.leaderboard-rank {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--accent-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.leaderboard-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: var(--accent-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 600;
    flex-shrink: 0;
}

.leaderboard-info h5 {
    margin: 0 0 0.25rem 0;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.leaderboard-points {
    font-size: 0.8rem;
    color: var(--accent-primary);
    font-weight: 600;
}

/* Mobile responsive for ranking */
@media (max-width: 768px) {
    .ranking-overview {
        grid-template-columns: 1fr;
    }

    .ranking-stats {
        grid-template-columns: 1fr;
    }

    .badges-grid {
        grid-template-columns: 1fr;
    }

    .ranking-card {
        padding: 1.5rem;
    }

    .ranking-header {
        flex-direction: column;
        text-align: center;
    }

    .ranking-avatar {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
}

/* Analytics Page Styles */
.chart-placeholder {
    height: 300px;
    border: 2px dashed var(--border-light);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    background: var(--bg-input);
}

.chart-placeholder i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--accent-primary);
}

.chart-placeholder p {
    margin: 0.5rem 0;
    font-weight: 600;
}

.chart-placeholder small {
    color: var(--text-muted);
}

.analytics-section {
    margin-top: 3rem;
}

.metrics-table {
    background: var(--bg-input);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-light);
}

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

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

.metrics-table th {
    background: var(--bg-card);
    font-weight: 600;
    color: var(--text-primary);
}

.metrics-table td {
    color: var(--text-secondary);
}

.performance {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.9rem;
}

.performance.excellent {
    background: var(--accent-primary);
    color: #fff;
}

.performance.good {
    background: #008000;
    color: #fff;
}

.performance.fair {
    background: #ffa500;
    color: #000;
}

.performance.poor {
    background: #ff0000;
    color: #fff;
}

/* Profile Page Specific Styles */
.profile-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
}

.profile-avatar-large {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--accent-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #fff;
}

.profile-info h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.profile-subtitle {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.profile-status {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
}

.status-badge.premium {
    background: var(--accent-glow);
    color: var(--accent-primary);
    border: 1px solid var(--accent-primary);
}

.member-since {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.profile-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.profile-section {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 2rem;
    border: 1px solid var(--border-light);
}

.profile-section h2 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 1rem;
}

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

.overview-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-input);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
}

.overview-item i {
    font-size: 1.25rem;
    color: var(--accent-primary);
}

.overview-item h4 {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.overview-item p {
    font-size: 0.95rem;
    color: var(--text-primary);
    font-weight: 500;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--bg-input);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: inherit;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
}

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

.amount-input {
    position: relative;
    display: flex;
    align-items: center;
}

.amount-input .currency {
    position: absolute;
    left: 1rem;
    color: var(--text-muted);
}

.amount-input input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2rem;
    background: var(--bg-input);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    color: var(--text-primary);
}

.property-types {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.75rem;
}

.type-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: var(--bg-input);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s;
}

.type-checkbox:hover {
    border-color: var(--accent-primary);
}

.type-checkbox input {
    accent-color: var(--accent-primary);
}

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

.notification-category h4 {
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-size: 1rem;
}

.toggle-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    cursor: pointer;
    color: var(--text-secondary);
}

.toggle-item input {
    accent-color: var(--accent-primary);
    width: 16px;
    height: 16px;
}

.frequency-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.radio-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    color: var(--text-secondary);
}

.radio-item input {
    accent-color: var(--accent-primary);
}

.security-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.security-item {
    background: var(--bg-input);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    text-align: center;
}

.security-item h4 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.security-item p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.security-btn {
    width: 100%;
    padding: var(--btn-padding);
    border-radius: var(--btn-radius);
    font-weight: var(--btn-font-weight);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s;
    background: var(--accent-primary);
    color: #fff;
}

.security-btn.secondary {
    background: transparent;
    border: 1px solid var(--border-light);
    color: var(--text-primary);
}

.security-btn:hover {
    transform: translateY(-2px);
}

.security-btn.secondary:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.profile-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 1rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-light);
}

.save-profile-btn,
.reset-profile-btn,
.danger-btn {
    padding: var(--btn-padding);
    border-radius: var(--btn-radius);
    font-weight: var(--btn-font-weight);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
}

.save-profile-btn {
    background: var(--accent-primary);
    color: #fff;
}

.reset-profile-btn {
    background: transparent;
    border: 1px solid var(--border-light);
    color: var(--text-secondary);
}

.danger-btn {
    background: rgba(255, 0, 0, 0.1);
    color: #ff4444;
    border: 1px solid rgba(255, 0, 0, 0.2);
    margin-left: auto;
}

.save-profile-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(35, 50, 221, 0.2);
}

.reset-profile-btn:hover {
    border-color: var(--text-secondary);
    color: var(--text-primary);
}

.danger-btn:hover {
    background: rgba(255, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .profile-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .profile-status {
        justify-content: center;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .profile-actions {
        flex-direction: column;
    }

    .danger-btn {
        margin-left: 0;
        justify-content: center;
    }

    .save-profile-btn,
    .reset-profile-btn {
        justify-content: center;
    }
}

/* Portfolio Page Styles */
.portfolio-header {
    margin-bottom: 2rem;
}

.portfolio-header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.portfolio-actions {
    display: flex;
    justify-content: flex-end;
}

.add-property-btn {
    background: var(--accent-primary);
    color: #fff;
    padding: var(--btn-padding);
    border-radius: var(--btn-radius);
    font-weight: var(--btn-font-weight);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
}

.add-property-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(35, 50, 221, 0.2);
}

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

/* Reuse stat-card styles but ensure they work here */
.portfolio-stats .stat-card {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.portfolio-controls {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.search-bar {
    display: flex;
    align-items: center;
    background: var(--bg-input);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 0.5rem 1rem;
    flex: 1;
    max-width: 400px;
}

.search-bar i {
    color: var(--text-secondary);
    margin-right: 0.5rem;
}

.search-bar input {
    background: transparent;
    border: none;
    color: var(--text-primary);
    width: 100%;
    outline: none;
}

.filter-options {
    display: flex;
    gap: 1rem;
}

.filter-options select {
    background: var(--bg-input);
    color: var(--text-primary);
    border: 1px solid var(--border-light);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    outline: none;
}

.saved-properties {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.saved-property-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform 0.2s, border-color 0.2s;
}

.saved-property-card:hover {
    transform: translateY(-2px);
    border-color: var(--accent-primary);
}

.portfolio-card-visual {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(150px, 0.9fr);
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--bg-card);
}

.property-image {
    height: 200px;
    background: #111827;
    border-radius: var(--radius-md);
    position: relative;
    overflow: hidden;
    display: block;
}

.property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    z-index: 2;
}

.property-image-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.72);
    background:
        radial-gradient(circle at 30% 20%, rgba(35, 50, 221, 0.35), transparent 36%),
        linear-gradient(135deg, #111827, #1f2937);
    font-weight: 800;
    text-align: center;
}

.property-image-placeholder i {
    font-size: 2rem;
}

.property-image img:not([hidden]) + .property-image-placeholder {
    display: none;
}

.portfolio-property-map {
    min-height: 200px;
    overflow: hidden;
    background: #eef2ff;
    border: 1px solid rgba(35, 50, 221, 0.12);
    border-radius: var(--radius-md);
}

.portfolio-property-map iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 200px;
    border: 0;
}

.portfolio-property-map__placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    height: 100%;
    min-height: 200px;
    color: #4b5563;
    font-weight: 800;
    text-align: center;
}

.portfolio-property-map__placeholder i {
    color: #2332dd;
    font-size: 2rem;
}

.property-badges {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 3;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.badge {
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
}

.badge.premium {
    background: var(--accent-primary);
    color: #fff;
}

.badge.featured {
    background: #f59e0b;
    color: #111827;
}

.badge.hot {
    background: #ef4444;
    color: #ffffff;
}

.badge.saved {
    background: rgba(255, 255, 255, 0.9);
    color: #000;
}

.property-info {
    padding: 1.5rem;
}

.portfolio-property-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
    gap: 0.75rem;
    background: transparent;
    border: 0;
    box-shadow: none;
    min-height: auto;
    padding: 0;
    color: var(--text-primary);
}

.portfolio-property-header h3 {
    flex: 1;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.portfolio-property-header .property-actions {
    display: inline-flex;
    flex-shrink: 0;
    gap: 0.4rem;
}

.property-location {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.property-metrics {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-light);
}

.metric {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
}

.metric .label {
    color: var(--text-secondary);
}

.metric .value {
    color: var(--text-primary);
    font-weight: 600;
}

.property-notes textarea {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    padding: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
    resize: vertical;
    margin-bottom: 0.5rem;
}

.property-dates {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: right;
}

.empty-portfolio {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
}

.empty-state i {
    font-size: 3rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.empty-state p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 1024px) {
    .portfolio-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .portfolio-card-visual {
        grid-template-columns: 1fr;
    }

    .property-image,
    .portfolio-property-map,
    .portfolio-property-map iframe,
    .portfolio-property-map__placeholder {
        min-height: 190px;
    }

    .portfolio-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .search-bar {
        max-width: none;
    }

    .filter-options {
        flex-direction: column;
    }

    /* Mobile Sidebar */
    #app-layout {
        display: block;
       /* height: auto; */
        overflow: visible;
    }

    #sidebar-container {
        position: fixed;
        left: -260px;
        top: 0;
        bottom: 0;
        width: 260px;
        transition: left 0.3s ease;
        z-index: 9999;
    }

    #sidebar-container.mobile-open {
        left: 0;
    }

    .mobile-menu-toggle {
        display: block;
    }

    /* Overlay when menu is open */
    #sidebar-container.mobile-open::before {
        content: '';
        position: fixed;
        top: 0;
        left: 260px;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: -1;
    }
}

/* Quick Actions Styles */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: var(--bg-input);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    transition: all 0.2s;
    text-align: center;
    gap: 0.75rem;
}

.action-btn i {
    font-size: 1.5rem;
    color: var(--accent-primary);
    margin-bottom: 0.5rem;
}

.action-btn:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent-primary);
    color: var(--text-primary);
    transform: translateY(-2px);
}

/* Search Page Split Layout */
.admin-main.full-height {
    height: 100%;
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.search-layout-container {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Top Filter Bar */
.search-top-bar {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-light);
    padding: 1rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.9rem;
    z-index: 2000;
    /* Increased to be above map */
    position: relative;
}

.search-bar-group {
    display: flex;
    gap: 0.5rem;
    width: 100%;
    max-width: none;
}

.location-input-wrapper {
    position: relative;
    flex: 1;
}

.location-input-wrapper i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.compact-search-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    background: var(--bg-input);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
}

.primary-search-btn {
    background: var(--accent-primary);
    color: #fff;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
}

.filters-row {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
}

.filter-dropdown {
    position: relative;
}

.filter-toggle {
    background: transparent;
    border: 1px solid var(--border-light);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-toggle:hover {
    border-color: var(--accent-primary);
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 0.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 1rem;
    min-width: 250px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    z-index: 2001;
    /* Ensure above top bar and map */
}

.dropdown-menu.show {
    display: block;
}

/* Split View */
.search-split-view {
    display: flex;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.map-pane {
    flex: 1;
    position: relative;
    min-height: 0;
    overflow: hidden;
    border-right: 1px solid var(--border-light);
}

#propertyMap {
    height: 100%;
    width: 100%;
    background: #eef2ff;
}

.results-pane {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    background: var(--bg-body);
    overflow-y: auto;
    padding: 1.5rem;
    overscroll-behavior: contain;
}

.similar-properties-message {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

.similar-properties-message i {
    color: #3b82f6;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.alert-info {
    color: var(--text-primary);
}

.results-header-compact {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.compact-sort {
    background: transparent;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
}

.property-cards-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    #app-layout {
        display: block;
      /*  height: auto; */
        overflow: visible;
    }

    .admin-main.full-height {
        height: auto;
        overflow: visible;
        display: block;
    }

    .search-layout-container {
        height: auto;
        display: block;
    }

    .search-split-view {
        flex-direction: column;
        height: auto;
        overflow: visible;
        display: block;
    }

    .map-pane {
        height: 40vh;
        min-height: 300px;
        width: 100%;
        position: relative;
        z-index: 1;
    }

    .results-pane {
        height: auto;
        overflow: visible;
        padding: 1rem;
    }

    .search-top-bar {
        flex-direction: column;
        align-items: stretch;
        padding: 1rem;
        position: relative;
        /* Changed from sticky */
        /* top: 0; Removed */
    }

    .search-bar-group {
        max-width: none;
    }

    .filters-row {
        flex-wrap: wrap;
        overflow: visible;
        /* Allow dropdowns to show */
        gap: 0.5rem;
    }

    /* Fix dropdowns on mobile to prevent viewport overflow */
    .dropdown-menu {
        position: fixed;
        top: auto;
        left: 1rem;
        right: 1rem;
        width: auto;
        min-width: 0;
        margin-top: 0.5rem;
        z-index: 3000;
    }
}

/* Modal Styles */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 3000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(4px);
}

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
}

.close-modal-btn {
    color: var(--text-secondary);
    font-size: 1.25rem;
    transition: color 0.2s;
}

.close-modal-btn:hover {
    color: var(--text-primary);
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border-light);
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--border-light);
    color: var(--text-primary);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
}

.btn-secondary:hover {
    border-color: var(--text-secondary);
}

/* Ensure map takes full height in split view (Desktop only) */
@media (min-width: 1025px) {
    .search-split-view {
        display: flex;
        height: calc(100vh - var(--header-height) - 220px);
        min-height: 620px;
        overflow: hidden;
    }

    .search-layout-container {
        min-height: 0;
    }

    .map-pane {
        position: relative;
        height: 100%;
        min-height: 620px;
        align-self: stretch;
    }

    #propertyMap {
        height: 100% !important;
        min-height: 620px;
    }

    .results-pane {
        height: 100%;
        min-height: 620px;
        max-height: 100%;
        overflow-y: auto;
    }
}

.map-pane {
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.results-pane {
    flex: 1;
    overflow-y: auto;
    background: var(--bg-body);
    border-left: 1px solid var(--border-light);
}

/* Mobile adjustments for modal */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        max-height: 95vh;
    }
}

/* Property Detail Upgrades */

/* Media Section */
.media-section {
    height: 400px;
    background: #222;
    border-radius: var(--radius-lg);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-light);
    position: relative;
    overflow: hidden;
}

.media-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    color: var(--text-muted);
}

.media-placeholder i {
    font-size: 3rem;
}

/* AI Highlights */
.ai-highlights-section {
    background: linear-gradient(145deg, var(--bg-card), rgba(35, 50, 221, 0.06));
    border: 1px solid var(--accent-glow);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.ai-highlights-section h3 {
    color: var(--accent-primary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.ai-highlight-text {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 1.05rem;
}

.ai-highlight-text strong {
    color: var(--text-primary);
}

/* Property Details Grid */
.property-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.overview-section,
.info-table-section {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    border: 1px solid var(--border-light);
}

.overview-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
}

.overview-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-secondary);
}

.overview-list li i {
    color: var(--accent-primary);
    font-size: 0.9rem;
}

/* Info Table */
.info-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.info-table td {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-secondary);
}

.info-table tr:last-child td {
    border-bottom: none;
}

.info-table td:first-child {
    font-weight: 600;
    color: var(--text-primary);
    width: 40%;
}

/* Financial Graphs */
.financial-graphs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-light);
}

.graph-placeholder {
    height: 200px;
    background: var(--bg-input);
    border: 1px dashed var(--border-light);
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Location Analysis */
.location-analysis-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.attractions-section,
.city-info-section {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    border: 1px solid var(--border-light);
}

.attraction-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.attraction-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-light);
}

.attraction-item:last-child {
    border-bottom: none;
}

.attraction-name {
    color: var(--text-primary);
    font-weight: 500;
}

.attraction-dist {
    color: var(--accent-primary);
    font-size: 0.9rem;
    font-weight: 600;
}

/* Responsive Adjustments */
@media (max-width: 768px) {

    .property-details-grid,
    .location-analysis-section {
        grid-template-columns: 1fr;
    }

    .media-section {
        height: 250px;
    }
}

/* Property Detail Page Upgrades */

/* Visuals Section */
.property-visuals {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
    height: 400px;
}

.visual-main {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-light);
}

.visual-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.visual-map {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-light);
    background: #eef2ff;
    position: relative;
}

.map-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    background: linear-gradient(45deg, #eef2ff, #ffffff);
}

.map-placeholder i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--accent-primary);
}

/* AI Highlight Section */
.ai-highlight-section {
    background: linear-gradient(135deg, rgba(35, 50, 221, 0.06) 0%, rgba(255, 255, 255, 0) 100%);
    border: 1px solid var(--accent-glow);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 2rem;
    position: relative;
}

.ai-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--accent-primary);
    color: #fff;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.ai-highlight-section h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.ai-highlight-section p {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1.05rem;
}

.ai-highlight-section strong {
    color: var(--accent-primary);
}

/* Property Overview */
.property-overview {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--radius-lg);
  
    margin-bottom: 2rem;
}

.overview-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.overview-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.overview-list li i {
    color: var(--accent-primary);
    margin-top: 0.25rem;
}

/* Property Info Table */
.property-info-table-section {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    margin-bottom: 2rem;
}

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

.info-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-light);
}

.info-table tr:last-child td {
    border-bottom: none;
}

.info-table td:nth-child(odd) {
    color: var(--text-muted);
    font-weight: 500;
    width: 20%;
}

.info-table td:nth-child(even) {
    color: var(--text-primary);
    font-weight: 600;
    width: 30%;
}

/* Financial Graphs */
.financial-graphs {
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.graphs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.graph-card {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    overflow: hidden;
}

.graph-card--full {
    grid-column: 1 / -1;
}

.graph-card h4 {
    margin: 0 0 0.35rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
}

.graph-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.graph-eyebrow {
    display: inline-flex;
    width: fit-content;
    padding: 0.3rem 0.65rem;
    margin-bottom: 0.4rem;
    color: #2332dd;
    background: rgba(35, 50, 221, 0.09);
    border: 1px solid rgba(35, 50, 221, 0.14);
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.graph-subtext {
    margin: 0.25rem 0 0;
    color: #6b7280;
    font-size: 0.85rem;
    line-height: 1.45;
}

.graph-legend-row {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-end;
    flex-shrink: 0;
}

.graph-legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: #4b5563;
    white-space: nowrap;
}

.graph-legend-item span {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 4px;
    flex-shrink: 0;
}

.graph-legend-item--property span {
    background: rgba(35, 50, 221, 0.72);
}

.graph-legend-item--rei span {
    background: rgba(245, 158, 11, 0.82);
}

.chart-container {
    position: relative;
    width: 100%;
    max-width: 100%;
    height: 300px;
    max-height: 300px;
}

.chart-container-doughnut {
    height: 350px;
    max-height: 350px;
}

.chart-container-roi {
    height: 320px;
    max-height: 320px;
}

.chart-container-bar {
    height: 380px;
    max-height: 380px;
}

.chart-container canvas {
    max-width: 100% !important;
    max-height: 100% !important;
    height: auto !important;
}

.calculator-disclaimer,
.graph-disclaimer {
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 1rem;
    font-style: italic;
    line-height: 1.4;
}

@media (max-width: 900px) {
    .rei-vs-grid {
        grid-template-columns: 1fr;
    }
}

.graph-card .graph-disclaimer {
    margin-top: 0.75rem;
    margin-bottom: 0;
    text-align: center;
}

/* Institutional investor fit and allocation rationale */
.capital-fit-section,
.passive-cre-section {
    background: #ffffff;
    border: 1px solid rgba(17, 24, 39, 0.08);
    border-radius: var(--radius-lg);
    box-shadow: 0 18px 45px rgba(17, 24, 39, 0.06);
    padding: clamp(1.5rem, 3vw, 2.25rem);
}

.capital-fit-section__header,
.passive-cre-section__content {
    max-width: 760px;
}

.capital-fit-section__header h3,
.passive-cre-section__content h3 {
    margin: 0.55rem 0 0.55rem;
    color: #111827;
    font-size: clamp(1.35rem, 2vw, 2rem);
    font-weight: 950;
    letter-spacing: -0.03em;
    line-height: 1.12;
}

.capital-fit-section__header p,
.passive-cre-section__content p {
    margin: 0;
    color: #4b5563;
    font-size: 0.98rem;
    font-weight: 550;
    line-height: 1.65;
}

.capital-fit-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.capital-fit-card {
    padding: 1.15rem;
    background: linear-gradient(180deg, #ffffff 0%, #f8faff 100%);
    border: 1px solid rgba(35, 50, 221, 0.1);
    border-radius: 18px;
}

.capital-fit-card i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-bottom: 0.85rem;
    color: #2332dd;
    background: rgba(35, 50, 221, 0.09);
    border-radius: 12px;
    font-size: 1rem;
}

.capital-fit-card h4 {
    margin: 0 0 0.4rem;
    color: #111827;
    font-size: 0.98rem;
    font-weight: 900;
}

.capital-fit-card p {
    margin: 0;
    color: #5b6472;
    font-size: 0.84rem;
    font-weight: 550;
    line-height: 1.55;
}

.passive-cre-section {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(320px, 1fr);
    gap: 2rem;
    align-items: center;
    background: linear-gradient(135deg, #ffffff 0%, #f8faff 52%, #eef2ff 100%);
}

.passive-cre-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.passive-cre-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.85rem;
    color: #374151;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(35, 50, 221, 0.1);
    border-radius: 14px;
    font-size: 0.86rem;
    font-weight: 750;
    line-height: 1.45;
}

.passive-cre-list li i {
    color: #2332dd;
    margin-top: 0.1em;
    flex-shrink: 0;
}

.graph-placeholder {
    height: 200px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding-top: 2rem;
    margin-bottom: 1rem;
}

/* =========================================================
   REI Capital VS Section  (new hero-style layout)
   ========================================================= */

.rei-vs-section {
    background: linear-gradient(135deg, #f8faff 0%, #ffffff 55%, #eef2ff 100%);
    border: 1px solid rgba(35, 50, 221, 0.16);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(35, 50, 221, 0.07);
}

.rei-vs-section__inner {
    padding: clamp(1.5rem, 3vw, 2.5rem);
}

.rei-vs-section__header {
    max-width: 780px;
    margin-bottom: 2rem;
}

.rei-vs-section__header h3 {
    margin: 0.6rem 0 0.5rem;
    color: #111827;
    font-size: clamp(1.6rem, 2.4vw, 2.5rem);
    font-weight: 950;
    line-height: 1.1;
}

.rei-vs-section__header p {
    margin: 0;
    color: #4b5563;
    font-size: 1rem;
    line-height: 1.65;
    font-weight: 550;
}

/* Two column layout */
.rei-vs-columns {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 0;
    align-items: stretch;
    margin-bottom: 2rem;
    border: 1px solid rgba(17, 24, 39, 0.1);
    border-radius: 20px;
    overflow: hidden;
}

.rei-vs-col {
    padding: 2rem;
}

.rei-vs-col--alone {
    background: #ffffff;
}

.rei-vs-col--rei {
    background: #111827;
    color: #ffffff;
}

.rei-vs-col__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
    background: rgba(17, 24, 39, 0.07);
    color: #374151;
    border: 1px solid rgba(17, 24, 39, 0.1);
}

.rei-vs-col__badge--rei {
    background: rgba(35, 50, 221, 0.18);
    color: #93a8ff;
    border-color: rgba(35, 50, 221, 0.28);
}

.rei-vs-col__list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 0 0 1.75rem;
    padding: 0;
    font-size: 0.9rem;
    line-height: 1.45;
}

.rei-vs-col--alone .rei-vs-col__list li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    color: #374151;
}

.rei-vs-col--alone .rei-vs-col__list li i {
    color: #ef4444;
    margin-top: 0.1em;
    flex-shrink: 0;
}

.rei-vs-col--rei .rei-vs-col__list li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    color: rgba(255, 255, 255, 0.85);
}

.rei-vs-col--rei .rei-vs-col__list li i {
    color: #4ade80;
    margin-top: 0.1em;
    flex-shrink: 0;
}

.rei-vs-col__stat {
    border-top: 1px solid rgba(17, 24, 39, 0.1);
    padding-top: 1.25rem;
}

.rei-vs-col__stat--rei {
    border-color: rgba(255, 255, 255, 0.12);
}

.rei-vs-col__stat span {
    display: block;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #6b7280;
    margin-bottom: 0.4rem;
}

.rei-vs-col__stat--rei span {
    color: rgba(255, 255, 255, 0.55);
}

.rei-vs-col__stat strong {
    display: block;
    font-size: clamp(1.55rem, 2.2vw, 2.2rem);
    font-weight: 950;
    letter-spacing: -0.04em;
    color: #111827;
    margin-bottom: 0.25rem;
}

.rei-vs-col__stat--rei strong {
    color: #ffffff;
}

.rei-vs-col__stat small {
    font-size: 0.82rem;
    color: #6b7280;
    font-weight: 600;
}

.rei-vs-col__stat--rei small {
    color: rgba(255, 255, 255, 0.55);
}

/* VS divider */
.rei-vs-col__divider {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1.25rem;
    background: linear-gradient(180deg, #ffffff 0%, #f3f4f6 100%);
    border-left: 1px solid rgba(17, 24, 39, 0.08);
    border-right: 1px solid rgba(17, 24, 39, 0.08);
}

.rei-vs-col__divider span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: #111827;
    color: #ffffff;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 950;
    letter-spacing: 0.04em;
    box-shadow: 0 4px 16px rgba(17, 24, 39, 0.18);
}

/* Difference row */
.rei-vs-difference-row {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.25rem 1.5rem;
    background: rgba(35, 50, 221, 0.07);
    border-radius: 16px;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.rei-vs-diff-card {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 200px;
}

.rei-vs-diff-card span {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #6b7280;
}

.rei-vs-diff-card strong {
    font-size: clamp(1.35rem, 1.8vw, 1.8rem);
    font-weight: 950;
    letter-spacing: -0.03em;
    color: #2332dd;
}

.rei-vs-diff-card strong.negative {
    color: #ef4444;
}

.rei-vs-summary-text {
    flex: 1;
    margin: 0;
    font-size: 0.9rem;
    font-weight: 700;
    color: #374151;
    line-height: 1.55;
}

/* =========================================================
   Don't Invest Alone CTA Card
   ========================================================= */

.dont-invest-alone-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 2rem;
    align-items: center;
    padding: clamp(1.75rem, 3vw, 2.5rem);
    background:
        radial-gradient(circle at 8% 20%, rgba(255, 255, 255, 0.22), transparent 30%),
        linear-gradient(135deg, #1a24c4 0%, #111a86 55%, #0c1260 100%);
    border-radius: var(--radius-lg);
    box-shadow: 0 24px 60px rgba(17, 24, 39, 0.22);
    color: #ffffff;
}

.dont-invest-alone-card__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.4rem 0.85rem;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.dont-invest-alone-card h3 {
    margin: 0 0 0.65rem;
    font-size: clamp(1.5rem, 2.2vw, 2.4rem);
    font-weight: 950;
    line-height: 1.08;
    color: #ffffff;
}

.dont-invest-alone-card p {
    margin: 0 0 1.25rem;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.6;
    font-weight: 500;
    max-width: 520px;
}

.dont-invest-alone-card__bullets {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.55rem 1.5rem;
}

.dont-invest-alone-card__bullets li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.88);
}

.dont-invest-alone-card__bullets li i {
    color: #4ade80;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.dont-invest-alone-card__actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.dont-invest-alone-card__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 1rem 1.75rem;
    background: #ffffff;
    color: #111827;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 900;
    letter-spacing: -0.01em;
    white-space: nowrap;
    transition: all 0.22s ease;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}

.dont-invest-alone-card__btn:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.dont-invest-alone-card__btn i:last-child {
    font-size: 0.8rem;
    opacity: 0.6;
}

.dont-invest-alone-card__fine {
    margin: 0;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.46);
    text-align: center;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 900px) {
    .rei-vs-columns {
        grid-template-columns: 1fr;
    }

    .rei-vs-col__divider {
        padding: 1rem;
        border-left: none;
        border-right: none;
        border-top: 1px solid rgba(17, 24, 39, 0.08);
        border-bottom: 1px solid rgba(17, 24, 39, 0.08);
        flex-direction: row;
    }

    .dont-invest-alone-card {
        grid-template-columns: 1fr;
    }

    .dont-invest-alone-card__bullets {
        grid-template-columns: 1fr;
    }

    .dont-invest-alone-card__actions {
        align-items: flex-start;
    }

    .graph-legend-row {
        align-items: flex-start;
    }

    .graph-card-header {
        flex-direction: column;
    }

    .capital-fit-grid,
    .passive-cre-section,
    .passive-cre-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    .graphs-grid {
        grid-template-columns: 1fr;
    }

    .capital-fit-grid {
        grid-template-columns: 1fr;
    }

    .capital-fit-section,
    .passive-cre-section {
        border-radius: 20px;
    }
}

.graph-placeholder .bar {
    width: 15%;
    background: var(--accent-primary);
    border-radius: 4px 4px 0 0;
    opacity: 0.8;
    transition: height 0.3s ease;
}

.graph-placeholder .bar:hover {
    opacity: 1;
}

.line-graph {
    align-items: stretch;
}

.line-chart {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.graph-labels {
    display: flex;
    justify-content: space-between;
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* Attractions Section */
.attractions-section {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    margin-bottom: 2rem;
}

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

.attraction-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-input);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
}

.attraction-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent-glow);
    color: var(--accent-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.attraction-info h4 {
    font-size: 0.9rem;
    margin: 0;
    color: var(--text-primary);
}

.attraction-info span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* City Info Section */
.city-info-section {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    margin-bottom: 2rem;
}

.city-info-content p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.city-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-light);
}

.city-stat {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.city-stat .label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.city-stat .value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* Responsive Adjustments for New Sections */
@media (max-width: 768px) {
    .property-visuals {
        grid-template-columns: 1fr;
        height: auto;
    }

    .visual-main {
        height: 250px;
    }

    .visual-map {
        height: 200px;
    }

    .info-table td {
        display: block;
        width: 100% !important;
        padding: 0.5rem 1rem;
    }

    .info-table td:nth-child(odd) {
        padding-top: 1rem;
        color: var(--text-muted);
        font-size: 0.8rem;
    }

    .info-table td:nth-child(even) {
        padding-bottom: 1rem;
        border-bottom: 1px solid var(--border-light);
    }
}

/* Recommended Properties Section */
.recommended-properties {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    margin-bottom: 2rem;
}

.recommended-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.recommended-card {
    background: var(--bg-input);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.recommended-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(35, 50, 221, 0.12);
}

.recommended-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.recommended-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.property-mini-map {
    width: 100%;
    height: 100%;
    background: #eef2ff;
}

.property-mini-map.leaflet-container {
    background: #eef2ff !important;
    font-family: inherit;
}

.property-mini-map .leaflet-tile-pane {
    opacity: 0.94;
}

.property-mini-map .leaflet-control-attribution {
    color: #64748b;
    background: rgba(255, 255, 255, 0.82);
    font-size: 0.62rem;
}

.recommended-map-marker,
.recommended-map-marker.leaflet-marker-icon {
    background: transparent !important;
    border: 0 !important;
}

.recommended-map-marker__pin {
    position: absolute;
    inset: 5px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: linear-gradient(135deg, #2332dd 0%, #111a86 100%);
    border: 3px solid #ffffff;
    border-radius: 999px;
    box-shadow: 0 12px 28px rgba(35, 50, 221, 0.34), 0 0 0 6px rgba(35, 50, 221, 0.12);
    font-size: 0.82rem;
}

.recommended-map-marker__pulse {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: rgba(35, 50, 221, 0.16);
    animation: recommendedMapMarkerPulse 1.8s ease-out infinite;
}

.property-mini-map .leaflet-popup-content-wrapper {
    color: #111827;
    border: 1px solid rgba(35, 50, 221, 0.12);
    border-radius: 12px;
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.16);
}

.property-mini-map .leaflet-popup-content {
    margin: 0.65rem 0.8rem;
    color: #111827;
    font-weight: 800;
}

@keyframes recommendedMapMarkerPulse {
    0% {
        opacity: 0.75;
        transform: scale(0.72);
    }

    100% {
        opacity: 0;
        transform: scale(1.35);
    }
}

.property-mini-map-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #eef2ff 0%, #ffffff 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    gap: 0.5rem;
}

.property-mini-map-placeholder i {
    font-size: 2rem;
    opacity: 0.5;
}

.property-mini-map-placeholder span {
    font-size: 0.85rem;
    opacity: 0.7;
}

.property-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--accent-primary);
    color: #fff;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 700;
}

.recommended-content {
    padding: 1.5rem;
}

.recommended-content h4 {
    color: var(--text-primary);
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
}

.recommended-location {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.recommended-stats span {
    color: var(--text-secondary);
}

.recommended-stats strong {
    color: var(--accent-primary);
    font-size: 1rem;
}

/* Responsive for Recommended Properties */
@media (max-width: 1024px) {
    .recommended-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .recommended-grid {
        grid-template-columns: 1fr;
    }

    .graphs-grid {
        grid-template-columns: 1fr;
    }
}