/* =====================================================
   CommercialListingPro — Main Stylesheet
   ===================================================== */

:root {
    /* Legacy aliases — map to design system tokens */
    --clp-navy:       #111827;    /* was #1a2e4a — now matches --color-navy */
    --clp-navy-dark:  #0f172a;    /* sidebar bg */
    --clp-navy-light: #1f2937;    /* hover */
    --clp-gold:       #d97706;    /* repurposed as warning amber */
    --clp-gold-light: #fbbf24;
    --clp-green:      #059669;    /* maps to --color-success */
    --clp-light-bg:   #f9fafb;    /* matches --color-bg */
    --clp-border:     #e5e7eb;    /* matches --color-border */
    --clp-text-muted: #6b7280;    /* matches --color-text-secondary */
    --sidebar-width:  260px;      /* matches --sidebar-width in design-system */
}

/* =====================================================
   Base
   ===================================================== */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--clp-light-bg);
    color: #1f2937;
    font-size: 0.9375rem;
}

a { color: var(--clp-navy); }
a:hover { color: var(--clp-navy-light); }

/* =====================================================
   Navigation
   ===================================================== */
.navbar-clp {
    background-color: var(--clp-navy) !important;
    padding: 0.6rem 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.navbar-clp .navbar-brand {
    color: white !important;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.navbar-clp .navbar-brand span {
    color: var(--clp-gold);
}

.navbar-clp .nav-link {
    color: rgba(255,255,255,0.85) !important;
    font-size: 0.875rem;
    padding: 0.4rem 0.75rem !important;
    border-radius: 6px;
    transition: background 0.15s;
}

.navbar-clp .nav-link:hover,
.navbar-clp .nav-link.active {
    background: rgba(255,255,255,0.12);
    color: white !important;
}

/* =====================================================
   Sidebar / Dashboard Layout
   ===================================================== */
.sidebar {
    width: var(--sidebar-width);
    min-height: 100vh;
    background: var(--clp-navy);
    color: white;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

.sidebar-brand {
    padding: 1.25rem 1.5rem;
    font-size: 1.2rem;
    font-weight: 700;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    color: white;
    text-decoration: none;
}

.sidebar-brand span { color: var(--clp-gold); }

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

.sidebar-section-title {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.4);
    padding: 0.75rem 1.5rem 0.35rem;
    margin-top: 0.5rem;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.55rem 1.5rem;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-size: 0.875rem;
    border-left: 3px solid transparent;
    transition: all 0.15s;
}

.sidebar-link:hover {
    background: rgba(255,255,255,0.08);
    color: white;
}

.sidebar-link.active {
    background: rgba(201,162,39,0.15);
    color: var(--clp-gold) !important;
    border-left-color: var(--clp-gold);
    font-weight: 600;
}

.sidebar-link i {
    font-size: 1rem;
    width: 1.2rem;
    text-align: center;
}

.dashboard-main {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    background: var(--clp-light-bg);
}

.dashboard-topbar {
    background: white;
    border-bottom: 1px solid var(--clp-border);
    padding: 0.75rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dashboard-content {
    padding: 2rem;
}

/* =====================================================
   Cards
   ===================================================== */
.card {
    border-radius: 12px;
    transition: box-shadow 0.2s, transform 0.2s;
}

.hover-shadow:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.12) !important;
    transform: translateY(-2px);
}

.listing-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.1) !important;
    transform: translateY(-3px);
}

.stat-card {
    border-radius: 12px;
    padding: 1.25rem;
    border: 1px solid var(--clp-border);
}

.admin-action-card:hover {
    background: var(--clp-light-bg) !important;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1) !important;
    transform: translateY(-2px);
}

/* =====================================================
   Hero Section
   ===================================================== */
.hero-section {
    background: linear-gradient(135deg, var(--clp-navy) 0%, var(--clp-navy-light) 100%);
    color: white;
    padding: 5rem 0 4rem;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('/images/hero-bg.jpg') center/cover no-repeat;
    opacity: 0.12;
}

.hero-section .container { position: relative; }

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.hero-search-bar {
    background: white;
    border-radius: 12px;
    padding: 0.5rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

.hero-search-bar .form-control {
    border: none;
    font-size: 1rem;
    padding: 0.6rem 1rem;
}

.hero-search-bar .form-control:focus { box-shadow: none; }

.hero-search-bar .btn {
    background: var(--clp-gold);
    color: #000;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    padding: 0.6rem 1.5rem;
}

/* =====================================================
   Property Category Cards
   ===================================================== */
.category-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem 1rem;
    text-align: center;
    text-decoration: none;
    color: var(--clp-navy);
    border: 1px solid var(--clp-border);
    transition: all 0.2s;
    display: block;
}

.category-card:hover {
    border-color: var(--clp-navy);
    box-shadow: 0 4px 16px rgba(26,46,74,0.12);
    transform: translateY(-3px);
    color: var(--clp-navy);
}

.category-card .icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--clp-gold);
}

/* =====================================================
   Listing Cards
   ===================================================== */
.listing-card .card-img-top {
    border-radius: 12px 12px 0 0;
    transition: transform 0.3s;
}

.listing-card:hover .card-img-top {
    transform: scale(1.03);
}

.listing-card { overflow: hidden; }

.listing-type-badge {
    background: var(--clp-gold);
    color: #000;
    font-weight: 600;
    font-size: 0.75rem;
}

/* =====================================================
   Search Listing Card (LoopNet-style marketplace grid)
   ===================================================== */
.slc-card {
    border: 1px solid #e8edf2;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    cursor: pointer;
    transition: box-shadow 0.22s ease, transform 0.22s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.slc-card:hover {
    box-shadow: 0 8px 28px rgba(0,0,0,0.13);
    transform: translateY(-3px);
}

.slc-img-wrap {
    position: relative;
    height: 220px;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
    flex-shrink: 0;
}

@media (min-width: 1200px) {
    .slc-img-wrap { height: 260px; }
}

.slc-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.38s ease;
}

.slc-card:hover .slc-img {
    transform: scale(1.05);
}

.slc-listing-type-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(37, 99, 235, 0.88);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    letter-spacing: 0.02em;
    pointer-events: none;
}

.slc-type-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(255,255,255,0.93);
    color: #1f2937;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 3px 11px;
    border-radius: 20px;
    letter-spacing: 0.01em;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,0.5);
    pointer-events: none;
}

.slc-featured-badge {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: var(--clp-gold);
    color: #000;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    pointer-events: none;
}

.slc-save-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255,255,255,0.93);
    border: 1px solid rgba(255,255,255,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #9ca3af;
    font-size: 0.95rem;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: color 0.18s, background 0.18s, transform 0.18s;
    z-index: 2;
}

.slc-save-btn:hover {
    color: #e74c3c;
    background: white;
    transform: scale(1.1);
}

.slc-save-btn.saved {
    color: #e74c3c;
    background: white;
}

.slc-body {
    padding: 14px 16px 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.slc-price {
    font-size: 1rem;
    font-weight: 700;
    color: #1a2e4a;
    line-height: 1.25;
}

.slc-address {
    font-size: 0.83rem;
    color: #2563eb;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.slc-location {
    font-size: 0.8rem;
    color: #6b7280;
}

.slc-size {
    font-size: 0.8rem;
    color: #2563eb;
    font-weight: 500;
    margin-top: 2px;
}

/* =====================================================
   Search Page — Two-column layout
   ===================================================== */
.search-page-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 28px;
    align-items: start;
}

/* Stack on tablet/mobile */
@media (max-width: 991px) {
    .search-page-layout {
        grid-template-columns: 1fr;
    }
}

/* ── Card grid ─────────────────────────────────────── */
.search-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    align-items: start;
}

/* Single column on phone */
@media (max-width: 479px) {
    .search-results-grid {
        grid-template-columns: 1fr;
    }
}

/* ── Search sidebar ────────────────────────────────── */
.search-sidebar {
    position: sticky;
    top: 80px;   /* stay visible while scrolling past cards */
}

/* On mobile, un-stick */
@media (max-width: 991px) {
    .search-sidebar { position: static; }
}

/* =====================================================
   AI Search Box
   ===================================================== */
.ai-search-wrap {
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 20px;
}

.ai-search-card {
    background: linear-gradient(135deg, #1a2e4a 0%, #1e4a8a 60%, #2563eb 100%);
    padding: 18px 20px 20px;
    border-radius: 14px;
}

.ai-search-input {
    flex: 1;
    border: none;
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 0.9rem;
    box-shadow: none;
    outline: none;
}

.ai-search-input:focus {
    box-shadow: 0 0 0 3px rgba(255,255,255,0.25);
}

/* =====================================================
   Listing Detail Page
   ===================================================== */
.listing-gallery-main {
    border-radius: 12px;
    overflow: hidden;
    height: 420px;
}

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

.gallery-thumbnail {
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    height: 90px;
    opacity: 0.75;
    transition: opacity 0.2s, border-color 0.2s;
    border: 2px solid transparent;
}

.gallery-thumbnail:hover,
.gallery-thumbnail.active {
    opacity: 1;
    border-color: var(--clp-gold);
}

.detail-price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--clp-navy);
}

.stat-pill {
    background: var(--clp-light-bg);
    border: 1px solid var(--clp-border);
    border-radius: 50px;
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.stat-pill i { color: var(--clp-gold); }

/* =====================================================
   Search Filters
   ===================================================== */
.filter-panel {
    background: white;
    border-radius: 12px;
    padding: 1.25rem;
    border: 1px solid var(--clp-border);
    position: sticky;
    top: 80px;
}

.filter-panel h6 {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--clp-text-muted);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

/* =====================================================
   Broker Contact Card
   ===================================================== */
.broker-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid var(--clp-border);
    position: sticky;
    top: 80px;
}

.broker-card .broker-photo {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--clp-gold);
}

/* =====================================================
   Forms
   ===================================================== */
.form-control, .form-select {
    border-color: var(--clp-border);
    border-radius: 8px;
    font-size: 0.9rem;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.form-control:focus, .form-select:focus {
    border-color: var(--clp-navy);
    box-shadow: 0 0 0 3px rgba(26,46,74,0.1);
}

.form-label {
    font-size: 0.85rem;
    color: #374151;
    margin-bottom: 0.3rem;
}

/* =====================================================
   Buttons
   ===================================================== */
.btn {
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
}

/* btn-primary and btn-outline-primary are governed by design-system.css */
.btn-warning {
    background: var(--clp-gold);
    border-color: var(--clp-gold);
    color: #fff;
    font-weight: 600;
}
.btn-warning:hover {
    background: var(--clp-gold-light);
    border-color: var(--clp-gold-light);
    color: #fff;
}

/* =====================================================
   Badges
   ===================================================== */
.badge { border-radius: 6px; font-weight: 500; }

/* =====================================================
   Tables
   ===================================================== */
.table th {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--clp-text-muted);
    font-weight: 600;
    padding: 0.75rem 1rem;
}

.table td { padding: 0.875rem 1rem; vertical-align: middle; }

/* =====================================================
   Avatar
   ===================================================== */
.avatar-circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--clp-navy);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
    flex-shrink: 0;
    text-transform: uppercase;
}

/* =====================================================
   File Upload
   ===================================================== */
.upload-dropzone {
    border: 2px dashed var(--clp-border);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    background: var(--clp-light-bg);
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}

.upload-dropzone:hover,
.upload-dropzone.dragover {
    border-color: var(--clp-navy);
    background: rgba(26,46,74,0.04);
}

.upload-dropzone i {
    font-size: 2rem;
    color: var(--clp-text-muted);
    margin-bottom: 0.5rem;
}

/* =====================================================
   Pricing Cards
   ===================================================== */
.pricing-card-featured {
    border: 2px solid var(--clp-navy) !important;
    transform: scale(1.03);
}

/* =====================================================
   Footer
   ===================================================== */
.site-footer {
    background: var(--clp-navy-dark);
    color: rgba(255,255,255,0.75);
    padding: 3rem 0 1.5rem;
    margin-top: auto;
}

.site-footer h6 {
    color: white;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.06em;
}

.site-footer a {
    color: rgba(255,255,255,0.65);
    text-decoration: none;
    font-size: 0.875rem;
    display: block;
    margin-bottom: 0.4rem;
    transition: color 0.15s;
}

.site-footer a:hover { color: var(--clp-gold); }

.site-footer .footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 2rem;
    padding-top: 1.25rem;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.4);
}

/* clp-footer — used in MainLayout.razor */
.clp-footer {
    background: #0f1f33;
    color: rgba(255,255,255,0.75);
    padding: 3rem 0 1.5rem;
    margin-top: auto;
}
.clp-footer h5,
.clp-footer h6 {
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 0.85rem;
}
.clp-footer p.text-muted,
.clp-footer .text-muted {
    color: rgba(255,255,255,0.55) !important;
}
.clp-footer .footer-link {
    color: rgba(255,255,255,0.62);
    text-decoration: none;
    font-size: 0.875rem;
    display: block;
    margin-bottom: 0.4rem;
    transition: color 0.15s;
}
.clp-footer .footer-link:hover { color: #c9a227; }
.clp-footer hr,
.clp-footer .border-secondary { border-color: rgba(255,255,255,0.12) !important; }
.clp-footer .text-center.text-muted {
    color: rgba(255,255,255,0.4) !important;
}

/* =====================================================
   Utilities
   ===================================================== */
.text-clp { color: var(--clp-navy) !important; }
.bg-clp { background: var(--clp-navy) !important; }
.text-gold { color: var(--clp-gold) !important; }
.bg-gold { background: var(--clp-gold) !important; }

.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--clp-navy);
}

.section-subtitle {
    color: var(--clp-text-muted);
    font-size: 1.05rem;
}

/* Blazor validation */
.validation-message { color: #dc3545; font-size: 0.8rem; margin-top: 0.25rem; }
.invalid { border-color: #dc3545 !important; }

/* Loading overlay */
.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255,255,255,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* =====================================================
   Responsive
   ===================================================== */
@media (max-width: 991.98px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.show {
        transform: translateX(0);
    }

    .dashboard-main {
        margin-left: 0;
    }

    .listing-gallery-main {
        height: 260px;
    }
}

@media (max-width: 767.98px) {
    .hero-section {
        padding: 3rem 0 2.5rem;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .dashboard-content {
        padding: 1rem;
    }
}

/* =====================================================
   Animations
   ===================================================== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in { animation: fadeIn 0.3s ease; }

/* =====================================================
   Blazor Error UI
   ===================================================== */
#blazor-error-ui {
    background: #fff3cd;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

/* =====================================================
   AllCommercialListing SaaS Dashboard v6
   Premium AI Broker Workspace — Sidebar Redesign
   ===================================================== */

/* ── App Shell ─────────────────────────────────────────────────────────── */
.acl-app-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 268px 1fr;
    background: #f0f4f8;
}

/* ── Sidebar Shell ─────────────────────────────────────────────────────── */
.acl-sidebar {
    background: linear-gradient(168deg,
        #0c1a30 0%,
        #0e2040 20%,
        #091729 55%,
        #060e1c 100%);
    color: #fff;
    height: 100vh;
    position: sticky;
    top: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 2px 0 32px rgba(6,14,28,.45),
                1px 0 0 rgba(99,102,241,.09);
}

/* ── Brand / Logo ──────────────────────────────────────────────────────── */
.acl-sidebar-brand {
    display: flex;
    gap: 11px;
    align-items: center;
    padding: 19px 18px 17px;
    color: #fff;
    text-decoration: none;
    border-bottom: 1px solid rgba(99,102,241,.13);
    background: rgba(99,102,241,.04);
    flex-shrink: 0;
    transition: background 200ms ease;
}

.acl-sidebar-brand:hover {
    background: rgba(99,102,241,.09);
    color: #fff;
}

.acl-brand-icon {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #3b82f6 0%, #6366f1 55%, #8b5cf6 100%);
    box-shadow: 0 6px 20px rgba(99,102,241,.38);
    font-size: 1.05rem;
    flex-shrink: 0;
}

.acl-sidebar-brand strong {
    display: block;
    font-size: .9rem;
    letter-spacing: -.02em;
    font-weight: 800;
    line-height: 1.2;
}

.sb-brand-accent { color: #93c5fd; }

.acl-sidebar-brand small {
    display: block;
    color: rgba(147,197,253,.5);
    font-size: .68rem;
    margin-top: 2px;
    letter-spacing: .04em;
    text-transform: uppercase;
    font-weight: 600;
}

/* ── Scrollable Nav ────────────────────────────────────────────────────── */
.acl-sidebar-nav {
    flex: 1;
    padding: 8px 10px 14px;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(99,102,241,.18) transparent;
}

.acl-sidebar-nav::-webkit-scrollbar { width: 3px; }
.acl-sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(99,102,241,.22);
    border-radius: 3px;
}

.acl-sidebar-section { margin-top: 6px; }

/* ── Section Labels with decorative lines ──────────────────────────────── */
.acl-sidebar-label {
    display: flex;
    align-items: center;
    gap: 7px;
    color: rgba(148,163,184,.45);
    font-size: .61rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .1em;
    padding: 10px 10px 5px;
}

.sb-label-line {
    flex: 1;
    height: 1px;
    background: rgba(148,163,184,.1);
    border-radius: 1px;
}

.acl-sidebar-label.sb-label-admin {
    color: rgba(251,191,36,.5);
}

/* ── Nav Links ─────────────────────────────────────────────────────────── */
.acl-sidebar-link {
    display: flex;
    align-items: center;
    gap: 9px;
    color: rgba(203,213,225,.62);
    text-decoration: none;
    padding: 8.5px 12px;
    border-radius: 9px;
    font-weight: 550;
    font-size: .845rem;
    margin-bottom: 1px;
    border-left: 2px solid transparent;
    transition: background 200ms ease,
                color 200ms ease,
                transform 200ms ease,
                border-color 200ms ease,
                box-shadow 200ms ease;
}

.acl-sidebar-link i {
    width: 17px;
    text-align: center;
    font-size: .88rem;
    flex-shrink: 0;
    transition: color 200ms ease, transform 200ms ease;
}

.acl-sidebar-link > span:not(.sb-badge) {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Hover state */
.acl-sidebar-link:hover {
    color: #dde5f0;
    background: rgba(99,102,241,.09);
    transform: translateX(3px);
    border-left-color: rgba(99,102,241,.28);
}

.acl-sidebar-link:hover i {
    color: #93c5fd;
    transform: scale(1.08);
}

/* Active state — blue gradient + glow */
.acl-sidebar-link.active {
    color: #fff;
    font-weight: 650;
    background: linear-gradient(90deg,
        rgba(59,130,246,.22) 0%,
        rgba(99,102,241,.12) 100%);
    border-left-color: #3b82f6;
    box-shadow: 0 0 24px rgba(59,130,246,.13),
                inset 0 0 16px rgba(59,130,246,.05);
}

.acl-sidebar-link.active i {
    color: #60a5fa;
}

/* ── AI Section — distinct purple/violet identity ──────────────────────── */
.sb-ai-section-wrap { }

.sb-ai-star {
    color: #a78bfa;
    font-size: .7rem;
    animation: sb-star-pulse 3s ease-in-out infinite;
}

@keyframes sb-star-pulse {
    0%, 100% { opacity: .7; }
    50% { opacity: 1; }
}

.sb-ai-link {
    color: rgba(196,181,253,.58);
}

.sb-ai-link i {
    color: rgba(167,139,250,.55);
}

.sb-ai-link:hover {
    color: #ede9fe;
    background: rgba(139,92,246,.1);
    border-left-color: rgba(139,92,246,.32);
}

.sb-ai-link:hover i {
    color: #c4b5fd;
    transform: scale(1.1);
}

.sb-ai-link.active {
    color: #ede9fe;
    font-weight: 650;
    background: linear-gradient(90deg,
        rgba(139,92,246,.22) 0%,
        rgba(99,102,241,.12) 100%);
    border-left-color: #8b5cf6;
    box-shadow: 0 0 24px rgba(139,92,246,.14),
                inset 0 0 16px rgba(139,92,246,.06);
}

.sb-ai-link.active i {
    color: #c4b5fd;
}

/* ── Notification Badges ────────────────────────────────────────────────── */
.sb-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .6rem;
    font-weight: 800;
    padding: 1px 6px;
    border-radius: 999px;
    line-height: 1.5;
    margin-left: auto;
    flex-shrink: 0;
    letter-spacing: .02em;
}

/* AI badge — violet */
.sb-badge-ai {
    background: rgba(139,92,246,.2);
    color: #c4b5fd;
    border: 1px solid rgba(139,92,246,.28);
    letter-spacing: .06em;
    text-transform: uppercase;
}

/* New badge — green */
.sb-badge-new {
    background: rgba(16,185,129,.14);
    color: #34d399;
    border: 1px solid rgba(16,185,129,.2);
    letter-spacing: .05em;
    text-transform: uppercase;
}

/* Count badge — blue */
.sb-badge-count {
    background: rgba(59,130,246,.16);
    color: #93c5fd;
    border: 1px solid rgba(59,130,246,.2);
    min-width: 18px;
    text-align: center;
}

/* Alert badge — red, pulsing */
.sb-badge-alert {
    background: rgba(239,68,68,.18);
    color: #f87171;
    border: 1px solid rgba(239,68,68,.24);
    min-width: 18px;
    text-align: center;
    animation: sb-alert-pulse 2.2s ease-in-out infinite;
}

@keyframes sb-alert-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(239,68,68,.15); }
    50%       { box-shadow: 0 0 0 3px rgba(239,68,68,.05); }
}

/* ── User Profile Section ────────────────────────────────────────────────── */
.sb-profile {
    flex-shrink: 0;
    padding: 10px 10px 12px;
    border-top: 1px solid rgba(99,102,241,.12);
    background: rgba(0,0,0,.14);
}

.sb-profile-inner {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 9px;
    border-radius: 10px;
    cursor: default;
    transition: background 200ms ease;
}

.sb-profile-inner:hover {
    background: rgba(99,102,241,.08);
}

.sb-profile-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .82rem;
    font-weight: 800;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 3px 10px rgba(99,102,241,.32);
    text-transform: uppercase;
}

.sb-profile-text {
    flex: 1;
    min-width: 0;
}

.sb-profile-name {
    font-size: .79rem;
    font-weight: 700;
    color: #e2e8f0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.sb-profile-role {
    font-size: .66rem;
    color: rgba(147,197,253,.45);
    margin-top: 2px;
    letter-spacing: .02em;
}

.sb-profile-btns {
    display: flex;
    gap: 3px;
    flex-shrink: 0;
}

.sb-profile-ico {
    width: 27px;
    height: 27px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    color: rgba(148,163,184,.45);
    text-decoration: none;
    font-size: .82rem;
    transition: background 180ms ease, color 180ms ease;
}

.sb-profile-ico:hover {
    background: rgba(99,102,241,.14);
    color: #93c5fd;
}

.sb-profile-logout:hover {
    background: rgba(239,68,68,.12);
    color: #f87171;
}

/* ── Mobile / Hamburger ─────────────────────────────────────────────────── */
.sb-hamburger {
    background: none;
    border: 1px solid rgba(0,0,0,.1);
    color: #475569;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1rem;
    flex-shrink: 0;
    transition: background 150ms ease;
}

.sb-hamburger:hover { background: #f1f5f9; color: #1e293b; }

/* Mobile overlay */
.sb-overlay {
    position: fixed;
    inset: 0;
    background: rgba(6,14,28,.55);
    z-index: 998;
    backdrop-filter: blur(2px);
    animation: sb-fade 200ms ease;
}

@keyframes sb-fade { from { opacity: 0; } to { opacity: 1; } }

/* ── Main / Topbar ──────────────────────────────────────────────────────── */
.acl-main { min-width: 0; display: flex; flex-direction: column; }

.acl-topbar {
    height: 68px;
    padding: 0 26px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255,255,255,.98);
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(12px);
    flex-shrink: 0;
}

.acl-top-title    { font-weight: 900; color: #10243d; font-size: .95rem; }
.acl-top-subtitle { font-size: .76rem; color: #64748b; margin-top: 1px; }
.acl-top-actions  { display: flex; gap: 10px; align-items: center; }
.acl-content      { padding: 22px 24px; flex: 1; }

.acl-dashboard-header {
    overflow: hidden;
    border-radius: 18px;
    /* Building silhouette visible through a deep navy overlay */
    background:
        linear-gradient(110deg,
            rgba(10,22,45,.92) 0%,
            rgba(12,30,58,.84) 48%,
            rgba(14,40,72,.68) 100%
        ),
        url('/images/landing/cre-building-bg.svg') right center / 560px 120% no-repeat,
        #09162d;
    color: #fff;
}

.acl-dashboard-header h1 {
    font-weight: 900;
    letter-spacing: -.03em;
}

.text-white-75 { color: rgba(255,255,255,.78); }

.acl-kicker {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: .76rem;
    font-weight: 800;
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.18);
    margin-bottom: 10px;
}

.acl-stat-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 132px;
    padding: 18px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 26px rgba(15,31,51,.07);
    border: 1px solid #e7edf5;
    border-left: 5px solid #0d6efd;
}

.acl-border-primary { border-left-color: #0d6efd; }
.acl-border-success { border-left-color: #198754; }
.acl-border-info { border-left-color: #0dcaf0; }
.acl-border-warning { border-left-color: #f59e0b; }

.acl-stat-label {
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #64748b;
    font-weight: 800;
}

.acl-stat-value {
    font-size: 1.75rem;
    font-weight: 900;
    color: #10243d;
    line-height: 1.1;
    margin-top: 7px;
}

.acl-stat-trend { font-size: .78rem; margin-top: 8px; font-weight: 650; }
.acl-stat-icon { font-size: 2.1rem; opacity: .42; }

.acl-panel {
    border-radius: 18px;
    overflow: hidden;
}

.acl-panel .card-header {
    padding: 16px 18px;
    border-bottom: 1px solid #eef2f7;
}

.acl-insight-card {
    height: 100%;
    padding: 18px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid #edf2f7;
    box-shadow: 0 8px 22px rgba(15,31,51,.05);
    text-align: center;
}

.acl-insight-card h6 {
    font-weight: 800;
    margin: 12px 0 8px;
    color: #10243d;
}

.acl-insight-card p {
    color: #64748b;
    font-size: .85rem;
    margin-bottom: 0;
}

.acl-chart-placeholder {
    width: 92px;
    height: 92px;
    margin: 0 auto;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.acl-chart-primary { background: rgba(13,110,253,.11); color: #0d6efd; }
.acl-chart-success { background: rgba(25,135,84,.11); color: #198754; }
.acl-chart-warning { background: rgba(245,158,11,.14); color: #b77900; }

.acl-featured-card {
    background: #fff;
    border: 1px solid #e7edf5;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 22px rgba(15,31,51,.05);
}

.acl-featured-img {
    height: 145px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.acl-featured-img .badge {
    position: absolute;
    top: 10px;
    right: 10px;
}

.acl-thumb {
    width: 60px;
    height: 60px;
    flex: 0 0 auto;
    border-radius: 10px;
    background-size: cover;
    background-position: center;
    background-color: #e7edf5;
}

.acl-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #0d6efd;
    color: #fff;
    font-size: .85rem;
    font-weight: 900;
    flex: 0 0 auto;
}

.acl-date-box {
    width: 48px;
    height: 54px;
    flex: 0 0 auto;
    border-radius: 12px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #10243d;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.acl-date-box span {
    font-size: .65rem;
    text-transform: uppercase;
    color: #64748b;
    font-weight: 800;
}

.acl-date-box strong {
    font-size: 1.1rem;
    line-height: 1;
}

.acl-quick-links .list-group-item {
    font-weight: 650;
    color: #10243d;
}

.text-clp-navy { color: var(--clp-navy) !important; }

@media (max-width: 992px) {
    .acl-app-shell {
        grid-template-columns: 1fr;
    }

    .acl-sidebar {
        position: fixed;
        left: 0; top: 0;
        height: 100vh;
        width: 265px;
        min-height: 100vh;
        transform: translateX(-100%);
        transition: transform 280ms cubic-bezier(.4,0,.2,1),
                    box-shadow 280ms ease;
        z-index: 999;
    }

    .acl-sidebar.sb-mobile-open {
        transform: translateX(0);
        box-shadow: 4px 0 48px rgba(6,14,28,.55);
    }

    .acl-topbar {
        height: auto;
        padding: 12px 16px;
        gap: 10px;
        flex-wrap: wrap;
        position: sticky;
    }

    .acl-content { padding: 14px 16px; }
}


/* ===== AllCommercialListing public landing v6 ===== */
.clp-topnav { background: rgba(15, 23, 42, .96); backdrop-filter: blur(16px); }
.clp-brand { font-weight: 900; color: #fff !important; }
.clp-topnav .nav-link { color: rgba(255,255,255,.78) !important; font-weight: 600; }
.clp-topnav .nav-link:hover { color: #fff !important; }
.btn-gold { background: #f5b700; border-color: #f5b700; color: #0f172a; font-weight: 800; }

/* ===== Hero (video-based, legacy-matched) ===== */
.acl-hero {
    position: relative;
    min-height: 700px;
    display: flex;
    align-items: center;
    overflow: hidden;
    margin-top: -76px;
    padding-top: 110px;
    padding-bottom: 80px;
    background: #0c1629;
}

.acl-hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.acl-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(12,22,42,0.45) 0%, rgba(12,22,42,0.60) 55%, rgba(12,22,42,0.68) 100%);
}

.acl-hero-inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Hero copy */
.acl-hero-content { color: #fff; max-width: 860px; margin: 0 auto 32px; }

.acl-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.20);
    border-radius: 999px;
    padding: 7px 18px;
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .04em;
    backdrop-filter: blur(8px);
    margin-bottom: 18px;
    color: rgba(255,255,255,.92);
}

.acl-hero-content h1 {
    font-size: clamp(2.1rem, 4.8vw, 3.6rem);
    line-height: 1.06;
    font-weight: 900;
    margin-bottom: 16px;
    letter-spacing: -.03em;
    color: #fff;
}

.acl-accent-text {
    background: linear-gradient(90deg, #fff 0%, #bfdbfe 40%, #60a5fa 75%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.acl-hero-content p {
    font-size: 1.08rem;
    line-height: 1.70;
    max-width: 640px;
    margin: 0 auto 28px;
    color: rgba(255,255,255,.84);
    font-weight: 400;
}

/* Trust pills */
.acl-hero-trust-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin-bottom: 0;
}

.acl-hero-trust-pill {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 210px;
    background: rgba(255,255,255,.10);
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 16px;
    padding: 14px 18px;
    backdrop-filter: blur(8px);
    text-align: left;
}

.acl-hero-trust-pill strong {
    display: block;
    font-size: .96rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 3px;
}

.acl-hero-trust-pill span {
    font-size: .8rem;
    color: rgba(255,255,255,.76);
    font-weight: 400;
    line-height: 1.4;
}

/* Search panel */
.acl-search-panel {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 1100px;
    margin: 36px auto 0;
    background: rgba(255,255,255,.99);
    border-radius: 22px;
    padding: 32px;
    box-shadow: 0 24px 60px rgba(8,18,36,.30);
    border: 1px solid rgba(226,232,240,.85);
}

.acl-search-panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.acl-search-panel-header h3 {
    font-size: 1.15rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 2px;
}

.acl-search-panel-header p {
    font-size: .84rem;
    color: #64748b;
    margin: 0;
}

.acl-search-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 999px;
    padding: 6px 14px;
    font-size: .78rem;
    font-weight: 700;
    color: #2563eb;
    white-space: nowrap;
}

/* Tabs */
.acl-filter-tabs {
    display: inline-flex;
    padding: 5px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    gap: 4px;
    margin-bottom: 18px;
}

.acl-filter-tabs button {
    border: 0;
    background: transparent;
    padding: 8px 22px;
    border-radius: 10px;
    font-weight: 700;
    font-size: .875rem;
    color: #475569;
    transition: all .15s;
    cursor: pointer;
}

.acl-filter-tabs button.active {
    background: linear-gradient(135deg, #2563eb, #6366f1);
    color: #fff;
    box-shadow: 0 6px 18px rgba(59,130,246,.22);
}

/* Filter row */
.acl-filter-row {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 14px;
    align-items: end;
    margin-bottom: 0;
}

.acl-field-label {
    display: block;
    margin-bottom: 7px;
    font-weight: 700;
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #64748b;
}

.acl-filter-row .form-control,
.acl-filter-row .form-select,
.acl-ai-row .form-control {
    height: 56px;
    border-radius: 14px;
    border: 1px solid #cbd5e1;
    font-size: .9375rem;
    background: #fafbfd;
    transition: border-color .15s, box-shadow .15s;
}

.acl-filter-row .form-control:focus,
.acl-filter-row .form-select:focus,
.acl-ai-row .form-control:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59,130,246,.12);
    background: #fff;
}

.acl-btn-search {
    height: 56px;
    min-width: 190px;
    border-radius: 14px;
    font-weight: 800;
    font-size: .9375rem;
    letter-spacing: .01em;
    background: linear-gradient(135deg, #2563eb, #4f46e5);
    color: #fff;
    border: none;
    transition: opacity .15s, transform .15s;
}

.acl-btn-search:hover {
    opacity: .92;
    transform: translateY(-1px);
    color: #fff;
}

/* OR divider */
.acl-or-divider {
    position: relative;
    text-align: center;
    margin: 18px 0;
}

.acl-or-divider:before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    background: #e2e8f0;
}

.acl-or-divider span {
    position: relative;
    background: #fff;
    padding: 0 16px;
    color: #94a3b8;
    font-weight: 700;
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .08em;
}

/* AI row */
.acl-ai-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 14px;
    align-items: end;
}

.acl-ai-input {
    height: 56px;
    border-radius: 14px;
    border: 1px solid #cbd5e1;
    font-size: .9375rem;
    background: #fafbfd;
    transition: border-color .15s, box-shadow .15s;
}

.acl-ai-input:focus {
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16,185,129,.12);
    background: #fff;
}

.acl-btn-ai {
    height: 56px;
    min-width: 180px;
    border-radius: 14px;
    font-weight: 800;
    font-size: .9375rem;
    background: linear-gradient(135deg, #10b981, #06b6d4);
    color: #fff;
    border: none;
    transition: opacity .15s, transform .15s;
}

.acl-btn-ai:hover {
    opacity: .92;
    transform: translateY(-1px);
    color: #fff;
}

/* Suggestion chips */
.acl-suggestion-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.acl-suggestion-chips button {
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #64748b;
    border-radius: 999px;
    padding: 6px 14px;
    font-size: .8rem;
    font-weight: 600;
    transition: all .15s;
    cursor: pointer;
}

.acl-suggestion-chips button:hover {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #2563eb;
}

/* ===== Page sections ===== */
.acl-page-section { padding: 80px 0; }
.acl-section-bg { background: #f8fafc; }

.acl-section-title { margin-bottom: 56px; text-align: center; }
.acl-eyebrow-tag { display: inline-block; padding: 8px 16px; border-radius: 999px; background: #eff6ff; color: #2563eb; font-weight: 800; font-size: .84rem; margin-bottom: 14px; }
.acl-section-title h2 { font-size: clamp(1.8rem, 3.5vw, 2.55rem); font-weight: 900; color: #0f172a; margin-bottom: 12px; }
.acl-section-title p { max-width: 780px; margin: 0 auto; color: #64748b; font-size: 1.05rem; }

/* Feature cards */
.acl-card-feature {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 30px;
    height: 100%;
    box-shadow: 0 14px 30px rgba(15,23,42,.06);
    transition: transform .25s ease, box-shadow .25s ease;
}

.acl-card-feature:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 38px rgba(15,23,42,.10);
}

.acl-card-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(37,99,235,.10), rgba(79,70,229,.12));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.acl-card-icon i { font-size: 26px; color: #2563eb; }
.acl-card-feature h3 { font-size: 1.2rem; font-weight: 800; color: #0f172a; margin-bottom: 8px; }
.acl-card-feature p { color: #64748b; line-height: 1.65; margin: 0; }

/* Stats (AI section) */
.acl-stat-item { text-align: center; padding: 16px 8px; background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; }
.acl-stat-num { font-size: 2rem; font-weight: 900; color: #2563eb; line-height: 1; margin-bottom: 4px; }
.acl-stat-lbl { font-size: .82rem; color: #64748b; font-weight: 600; }

/* Benefit items */
.acl-benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 28px;
}

.acl-benefit-icon {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(37,99,235,.12), rgba(79,70,229,.14));
    display: flex;
    align-items: center;
    justify-content: center;
}

.acl-benefit-icon i { font-size: 22px; color: #2563eb; }
.acl-benefit-item h4 { font-size: 1.08rem; font-weight: 800; color: #0f172a; margin: 0 0 6px; }
.acl-benefit-item p { color: #64748b; margin: 0; line-height: 1.6; }

/* Benefits stat overlay card */
.acl-benefits-stat-card {
    position: absolute;
    bottom: -18px;
    right: -14px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 18px 22px;
    box-shadow: 0 16px 36px rgba(15,23,42,.12);
    min-width: 200px;
    text-align: center;
}

.acl-benefits-stat-num { font-size: 2.4rem; font-weight: 900; color: #2563eb; line-height: 1; margin-bottom: 6px; }

/* Testimonial cards */
.acl-testi-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 30px;
    height: 100%;
    box-shadow: 0 14px 30px rgba(15,23,42,.05);
}

.acl-testi-card p { color: #334155; line-height: 1.72; margin-bottom: 20px; font-style: italic; }

.acl-testi-author {
    display: flex;
    align-items: center;
    gap: 14px;
}

.acl-testi-author img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.acl-testi-author strong { display: block; font-weight: 800; color: #0f172a; font-size: .95rem; }
.acl-testi-author small { color: #64748b; font-size: .82rem; }

/* Pricing cards */
.acl-plan-card {
    position: relative;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 30px;
    height: 100%;
    box-shadow: 0 14px 30px rgba(15,23,42,.06);
    transition: transform .25s ease, box-shadow .25s ease;
    display: flex;
    flex-direction: column;
}

.acl-plan-card.popular {
    border: 2px solid #2563eb;
    box-shadow: 0 22px 48px rgba(37,99,235,.12);
}

.acl-plan-badge {
    position: absolute;
    top: -14px;
    left: 24px;
    background: linear-gradient(135deg, #2563eb, #4f46e5);
    color: #fff;
    border-radius: 999px;
    padding: 6px 16px;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .02em;
}

.acl-plan-header { margin-bottom: 8px; }
.acl-plan-header h3 { font-size: 1.25rem; font-weight: 900; color: #0f172a; margin: 0 0 4px; }
.acl-plan-price { font-size: 2.2rem; font-weight: 900; color: #0f172a; line-height: 1.1; margin: 10px 0 6px; }
.acl-plan-price span { font-size: 1rem; color: #64748b; font-weight: 500; }
.acl-plan-desc { color: #64748b; font-size: .9rem; min-height: 40px; margin-bottom: 16px; }

.acl-plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    display: grid;
    gap: 10px;
    flex: 1;
}

.acl-plan-features li {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #334155;
    font-size: .9rem;
}

.acl-plan-features li i { font-size: .9rem; flex-shrink: 0; color: #10b981; }
.acl-plan-features li.disabled { color: #94a3b8; text-decoration: line-through; }
.acl-plan-features li.disabled i { color: #cbd5e1; }

/* CTA section */
.acl-cta-section {
    background: linear-gradient(135deg, #2563eb, #4f46e5);
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    color: #fff;
}

.acl-cta-section:before {
    content: '';
    position: absolute;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    background: rgba(255,255,255,.08);
    top: -140px;
    right: -80px;
}

.acl-cta-section h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); font-weight: 900; margin-bottom: 14px; }
.acl-cta-section p { max-width: 760px; margin: 0 auto 28px; color: rgba(255,255,255,.86); font-size: 1.05rem; }

.acl-btn-cta {
    background: #fff;
    color: #2563eb;
    border: none;
    border-radius: 12px;
    padding: 14px 36px;
    font-weight: 900;
    font-size: 1rem;
    transition: transform .15s, box-shadow .15s;
}

.acl-btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,.18);
    color: #1d4ed8;
}

/* Shared section/layout helpers */
.acl-section-title { margin-bottom: 52px; }
.acl-feature-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 20px; padding: 30px; height: 100%; box-shadow: 0 14px 30px rgba(15,23,42,.06); transition: .25s ease; }
.acl-feature-card:hover { transform: translateY(-8px); box-shadow: 0 18px 38px rgba(15,23,42,.10); }
.acl-icon { width: 68px; height: 68px; border-radius: 18px; background: linear-gradient(135deg,rgba(37,99,235,.10),rgba(79,70,229,.12)); display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.acl-icon i { font-size: 28px; color: #2563eb; }
.acl-mini-stat { background: #fff; border: 1px solid #e2e8f0; border-radius: 18px; padding: 20px 10px; text-align: center; box-shadow: 0 12px 24px rgba(15,23,42,.05); }
.acl-mini-stat strong { display: block; font-size: 2rem; color: #2563eb; font-weight: 900; }
.acl-mini-stat span { color: #64748b; font-weight: 600; font-size: .9rem; }

/* Responsive */
@media (max-width: 992px) {
    .acl-hero { min-height: 540px; margin-top: -60px; padding-top: 90px; padding-bottom: 56px; }
    .acl-search-panel { padding: 20px; border-radius: 16px; }
    .acl-filter-row,
    .acl-ai-row { grid-template-columns: 1fr; }
    .acl-search-panel-header { flex-direction: row; justify-content: space-between; }
    .acl-section-title h2 { font-size: 2rem; }
    .acl-hero-trust-row { gap: 10px; }
    .acl-hero-trust-pill { min-width: 160px; padding: 10px 14px; }
    .acl-benefits-stat-card { right: 0; bottom: -24px; min-width: 160px; }
}

@media (max-width: 576px) {
    .acl-hero { min-height: 480px; }
    .acl-hero-trust-row { flex-direction: column; align-items: center; }
    .acl-hero-trust-pill { min-width: 280px; }
    .acl-btn-search, .acl-btn-ai { min-width: 100%; }
}


/* AI Broker Assistant SaaS pages */
.acl-page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 22px 28px;
    /* CRE building fades in from the right */
    background: linear-gradient(160deg, #eef6ff 0%, #f5f9ff 60%, #ffffff 100%);
    border-radius: 14px;
    border: 1px solid #e8f0fe;
    box-shadow: 0 2px 12px rgba(37,99,235,.05);
}
.acl-page-header h1 {
    font-weight: 800;
    color: #0f1f3d;
    margin: 0 0 .25rem;
    font-size: 1.75rem;
}
.acl-page-header p { color: #475569; margin: 0; }
.acl-metric-card {
    background:#fff;
    border:1px solid #e2e8f0;
    border-radius:1.15rem;
    box-shadow:0 12px 28px rgba(15,23,42,.06);
    padding:1.1rem;
    height:100%;
}
.acl-metric-card span { display:block; color:#64748b; font-size:.78rem; font-weight:700; text-transform:uppercase; letter-spacing:.04em; }
.acl-metric-card strong { display:block; font-size:2rem; color:#10213d; line-height:1.1; margin-top:.5rem; }
.ai-step-list { display:grid; gap:.75rem; }
.ai-step-list > div { padding:1rem; border:1px solid #e2e8f0; border-radius:1rem; background:#f8fafc; }
.ai-step-list strong { display:block; color:#10213d; }
.ai-step-list span { color:#64748b; font-size:.92rem; }
.ai-output { background:#0f172a; color:#e2e8f0; border-radius:1rem; padding:1rem; max-height:520px; overflow:auto; }
.ai-output pre { color:inherit; white-space:pre-wrap; margin:0; font-family:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace; font-size:.9rem; }
.ai-recommendation { border:1px solid #e2e8f0; background:#fff; border-radius:1rem; padding:1rem; margin-bottom:.85rem; }
.ai-recommendation h6 { margin:.5rem 0 .35rem; font-weight:800; color:#10213d; }
.ai-recommendation p { margin:0; color:#64748b; font-size:.9rem; }
.media-tile { border:1px solid #e2e8f0; border-radius:1rem; overflow:hidden; background:#fff; box-shadow:0 10px 22px rgba(15,23,42,.05); }
.media-tile img { width:100%; height:170px; object-fit:cover; display:block; background:#f1f5f9; }

.acl-ai-shortcut { display:block; height:100%; padding:1rem; border:1px solid #e2e8f0; border-radius:1rem; text-decoration:none; color:#10213d; background:linear-gradient(180deg,#fff,#f8fafc); transition:.18s ease; }
.acl-ai-shortcut:hover { transform:translateY(-3px); box-shadow:0 12px 26px rgba(15,23,42,.08); color:#10213d; }
.acl-ai-shortcut i { font-size:1.6rem; color:#2563eb; display:block; margin-bottom:.65rem; }
.acl-ai-shortcut strong { display:block; font-weight:800; }
.acl-ai-shortcut span { display:block; color:#64748b; font-size:.85rem; margin-top:.2rem; }

/* ═══════════════════════════════════════════════════════════════
   PREMIUM LISTING DETAIL PAGE  — /listing/{Id}
   ═══════════════════════════════════════════════════════════════ */

/* ── Page wrapper ── */
.ld-page { background: #f8fafc; min-height: 100vh; padding-bottom: 60px; }

/* ── Header strip ── */
.ld-header { background: #fff; border-bottom: 1px solid #e2e8f0; padding: 22px 0 18px; margin-bottom: 0; }
.ld-header-inner { max-width: 1380px; margin: 0 auto; padding: 0 24px; }
.ld-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.ld-badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 12px; border-radius: 20px; font-size: .78rem; font-weight: 700; letter-spacing: .02em; }
.ld-badge-type    { background: #eff6ff; color: #1d4ed8; }
.ld-badge-listing { background: #f0fdf4; color: #15803d; }
.ld-badge-status  { background: #f0fdf4; color: #15803d; }
.ld-badge-featured { background: linear-gradient(135deg,#fef9c3,#fde68a); color: #92400e; }
.ld-badge-premium  { background: linear-gradient(135deg,#faf5ff,#e9d5ff); color: #6d28d9; }
.ld-badge-sold    { background: #fef2f2; color: #dc2626; }
.ld-badge-pending { background: #fffbeb; color: #b45309; }
.ld-title { font-size: 1.75rem; font-weight: 800; color: #0f172a; line-height: 1.2; margin-bottom: 6px; }
.ld-address { color: #64748b; font-size: .97rem; display: flex; align-items: center; gap: 5px; }
.ld-header-actions { display: flex; gap: 10px; align-items: center; flex-shrink: 0; }
.ld-save-btn  { border: 1.5px solid #e2e8f0; background: #fff; border-radius: 10px; padding: 8px 18px; font-size: .88rem; font-weight: 600; color: #334155; cursor: pointer; display: flex; align-items: center; gap: 7px; transition: .18s; }
.ld-save-btn:hover, .ld-save-btn.saved { background: #eff6ff; border-color: #2563eb; color: #2563eb; }
.ld-save-btn.saved i { color: #ef4444; }
.ld-share-btn { border: 1.5px solid #e2e8f0; background: #fff; border-radius: 10px; padding: 8px 18px; font-size: .88rem; font-weight: 600; color: #334155; cursor: pointer; display: flex; align-items: center; gap: 7px; transition: .18s; }
.ld-share-btn:hover { background: #f8fafc; border-color: #94a3b8; }

/* ── Gallery ── */
.ld-gallery-wrap { background: #0f172a; }
.ld-gallery-grid { display: grid; grid-template-columns: 3fr 2fr; gap: 3px; max-height: 460px; overflow: hidden; }
.ld-gallery-main { position: relative; overflow: hidden; }
.ld-gallery-main img { width: 100%; height: 460px; object-fit: cover; display: block; transition: transform .35s; }
.ld-gallery-main:hover img { transform: scale(1.02); }
.ld-gallery-thumbs { display: grid; grid-template-rows: repeat(2, 1fr); gap: 3px; }
.ld-gallery-thumb { position: relative; overflow: hidden; cursor: pointer; }
.ld-gallery-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s; }
.ld-gallery-thumb:hover img { transform: scale(1.04); }
.ld-photo-count-btn {
    position: absolute; bottom: 14px; right: 16px;
    background: rgba(15,23,42,.75); backdrop-filter: blur(6px);
    color: #fff; border: 1.5px solid rgba(255,255,255,.3);
    border-radius: 8px; padding: 7px 16px; font-size: .85rem; font-weight: 700;
    cursor: pointer; display: flex; align-items: center; gap: 6px;
    transition: background .18s;
}
.ld-photo-count-btn:hover { background: rgba(15,23,42,.92); }
.ld-gallery-no-image {
    height: 340px; background: linear-gradient(135deg,#1e293b,#334155);
    display: flex; align-items: center; justify-content: center;
}
.ld-gallery-no-image i { font-size: 80px; color: rgba(255,255,255,.2); }

/* ── Gallery tabs (Photos / Map / Street View) ── */
.ld-gallery-tabs { background: #1e293b; display: flex; gap: 0; overflow-x: auto; }
.ld-gallery-tab {
    padding: 11px 22px; font-size: .85rem; font-weight: 600; color: rgba(255,255,255,.55);
    border: none; background: none; cursor: pointer; white-space: nowrap;
    border-bottom: 2px solid transparent; transition: .18s;
}
.ld-gallery-tab:hover  { color: rgba(255,255,255,.85); }
.ld-gallery-tab.active { color: #fff; border-bottom-color: #3b82f6; }

/* ── Key facts bar ── */
.ld-facts-bar {
    background: #fff; border-bottom: 1px solid #e2e8f0;
    display: flex; gap: 0; overflow-x: auto;
}
.ld-fact {
    padding: 18px 32px; border-right: 1px solid #e2e8f0;
    min-width: 140px; flex-shrink: 0;
}
.ld-fact:last-child { border-right: none; }
.ld-fact-value { font-size: 1.25rem; font-weight: 800; color: #0f172a; line-height: 1; margin-bottom: 4px; }
.ld-fact-value.price { font-size: 1.5rem; color: #1d4ed8; }
.ld-fact-label { font-size: .78rem; font-weight: 600; color: #94a3b8; text-transform: uppercase; letter-spacing: .05em; }

/* ── Two-column layout ── */
.ld-body { max-width: 1380px; margin: 0 auto; padding: 32px 24px; display: grid; grid-template-columns: 1fr 360px; gap: 32px; align-items: start; }

/* ── Content sections ── */
.ld-section { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 28px; margin-bottom: 20px; }
.ld-section-title { font-size: 1.05rem; font-weight: 800; color: #0f172a; margin-bottom: 18px; display: flex; align-items: center; gap: 8px; border-bottom: 1px solid #f1f5f9; padding-bottom: 14px; }
.ld-section-title i { color: #2563eb; }

/* ════════════════════════════════════════════════════════════════
   PHD — Property Highlights Detail  (shared by Listing + Property pages)
   Matches Crexi-style premium two-column highlight card
   ════════════════════════════════════════════════════════════════ */

/* Card override */
.phd-card { padding: 32px 36px 28px !important; }

/* Header row: star icon + title + subtitle */
.phd-header { display: flex; align-items: flex-start; gap: 18px; margin-bottom: 18px; }
.phd-star   { font-size: 1.6rem; color: #2563eb; flex-shrink: 0; margin-top: 2px; line-height: 1; }
.phd-title  { font-size: 1.25rem; font-weight: 800; color: #0f172a; margin: 0 0 5px; line-height: 1.2; }
.phd-sub    { font-size: .875rem; color: #64748b; margin: 0; line-height: 1.5; }
.phd-hr     { border: none; border-top: 1px solid #e2e8f0; margin: 0 0 4px; }

/* Two-column flex layout */
.phd-cols      { display: flex; gap: 0; }
.phd-col       { flex: 1; min-width: 0; }
.phd-col-left  { border-right: 1px solid #e2e8f0; padding-right: 36px; }
.phd-col-right { padding-left: 36px; }

/* Individual highlight row */
.phd-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 0;
    border-bottom: 1px solid #f1f5f9;
}
.phd-item:last-child { border-bottom: none; }

/* Icon container */
.phd-icon       { width: 42px; height: 42px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.phd-icon i     { font-size: 1.9rem; color: #2563eb; }
.phd-icon svg   { width: 32px; height: 32px; color: #2563eb; }

/* Text */
.phd-lbl { font-size: .9375rem; font-weight: 700; color: #0f172a; line-height: 1.3; }
.phd-val { font-size: .875rem; color: #64748b; margin-top: 2px; line-height: 1.4; }

/* Please Note box */
.phd-note {
    display: flex; align-items: flex-start; gap: 14px;
    background: #f0f7ff; border: 1px solid #bfdbfe;
    border-radius: 12px; padding: 18px 20px;
    margin-top: 24px;
}
.phd-note-icon {
    width: 32px; height: 32px;
    background: #2563eb; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; margin-top: 1px;
}
.phd-note-icon i { font-size: .9rem; color: #fff; }
.phd-note-lbl  { font-size: .9375rem; font-weight: 700; color: #1e3a5f; display: block; margin-bottom: 4px; }
.phd-note-text { font-size: .875rem; color: #1e4080; line-height: 1.6; margin: 0; }

/* Generic chips (unrecognized highlights) */
.phd-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; padding-top: 16px; border-top: 1px solid #f1f5f9; }
.phd-chip  {
    display: inline-flex; align-items: center; gap: 6px;
    background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 20px;
    padding: 5px 13px; font-size: .82rem; font-weight: 500; color: #475569;
}
.phd-chip i { font-size: .78rem; color: #94a3b8; }

/* Responsive */
@@media (max-width: 720px) {
    .phd-cols { flex-direction: column; }
    .phd-col-left  { border-right: none; border-bottom: 1px solid #e2e8f0; padding-right: 0; padding-bottom: 4px; }
    .phd-col-right { padding-left: 0; }
    .phd-card { padding: 22px 20px 20px !important; }
}
@@media (max-width: 480px) {
    .phd-item { padding: 14px 0; gap: 12px; }
    .phd-icon { width: 36px; height: 36px; }
    .phd-icon i { font-size: 1.5rem; }
}

/* ── Property facts two-column grid ── */
.ld-facts-grid { display: grid; grid-template-columns: 1fr 1fr; }
.ld-fact-row { display: contents; }
.ld-fact-row-label { padding: 10px 0; border-bottom: 1px solid #f1f5f9; font-size: .88rem; color: #64748b; font-weight: 500; }
.ld-fact-row-value { padding: 10px 0; border-bottom: 1px solid #f1f5f9; font-size: .88rem; color: #0f172a; font-weight: 700; text-align: right; }

/* ── Amenities ── */
.ld-amenities-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px,1fr)); gap: 10px; }
.ld-amenity-tag { display: flex; align-items: center; gap: 8px; padding: 9px 14px; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px; font-size: .88rem; color: #1e293b; font-weight: 500; }
.ld-amenity-tag i { color: #2563eb; font-size: 1rem; }

/* ── Documents ── */
.ld-doc-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid #e2e8f0; border-radius: 8px; margin-bottom: 8px; text-decoration: none; color: #1e293b; transition: .18s; }
.ld-doc-row:hover { background: #f8fafc; border-color: #2563eb; }
.ld-doc-row i.type-icon { font-size: 1.4rem; color: #dc2626; flex-shrink: 0; }
.ld-doc-name { flex: 1; font-size: .9rem; font-weight: 600; }
.ld-doc-size { font-size: .8rem; color: #94a3b8; }
.ld-doc-dl i { color: #94a3b8; }

/* ── Map ── */
.ld-map-embed { width: 100%; height: 360px; border: 0; display: block; border-radius: 0 0 0 0; }
.ld-map-actions { display: flex; gap: 10px; padding: 16px 0 0; flex-wrap: wrap; }

/* ── Sidebar ── */
.ld-sidebar { position: sticky; top: 80px; }
.ld-sidebar-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 24px; margin-bottom: 16px; }
.ld-price-display { font-size: 1.85rem; font-weight: 900; color: #0f172a; line-height: 1; margin-bottom: 4px; }
.ld-price-label { font-size: .8rem; color: #94a3b8; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 18px; }
.ld-cta-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 13px; border-radius: 10px; font-size: .95rem; font-weight: 700; border: none; cursor: pointer; text-decoration: none; margin-bottom: 10px; transition: .2s; }
.ld-cta-primary { background: #2563eb; color: #fff; }
.ld-cta-primary:hover { background: #1d4ed8; color: #fff; }
.ld-cta-secondary { background: #fff; color: #2563eb; border: 1.5px solid #2563eb; }
.ld-cta-secondary:hover { background: #eff6ff; color: #2563eb; }

/* ── Inquiry form in sidebar ── */
.ld-form-label { font-size: .82rem; font-weight: 600; color: #374151; margin-bottom: 4px; display: block; }
.ld-form-control { width: 100%; padding: 9px 12px; border: 1.5px solid #e2e8f0; border-radius: 8px; font-size: .9rem; color: #0f172a; background: #fff; outline: none; transition: border-color .18s; margin-bottom: 10px; }
.ld-form-control:focus { border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37,99,235,.1); }
textarea.ld-form-control { resize: vertical; min-height: 90px; }
.ld-submit-btn { background: #2563eb; color: #fff; border: none; border-radius: 10px; padding: 12px; width: 100%; font-size: .95rem; font-weight: 700; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; transition: background .18s; margin-top: 4px; }
.ld-submit-btn:hover { background: #1d4ed8; }

/* ── Activity card ── */
.ld-activity-row { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; border-bottom: 1px solid #f1f5f9; }
.ld-activity-row:last-child { border-bottom: none; }
.ld-activity-label { font-size: .85rem; color: #64748b; display: flex; align-items: center; gap: 7px; }
.ld-activity-val { font-size: .9rem; font-weight: 700; color: #0f172a; }

/* ── Claim listing card ── */
.ld-claim-card { background: linear-gradient(135deg,#f0fdf4,#dcfce7); border: 1.5px solid #86efac; border-radius: 12px; padding: 20px; margin-bottom: 16px; }
.ld-claim-title { font-size: .95rem; font-weight: 800; color: #15803d; margin-bottom: 6px; display: flex; align-items: center; gap: 7px; }
.ld-claim-desc { font-size: .82rem; color: #166534; margin-bottom: 14px; line-height: 1.5; }
.ld-claim-btn { background: #16a34a; color: #fff; border: none; border-radius: 8px; padding: 10px 18px; font-size: .88rem; font-weight: 700; cursor: pointer; width: 100%; transition: background .18s; }
.ld-claim-btn:hover { background: #15803d; }

/* ── Claim modal overlay ── */
.ld-modal-overlay { position: fixed; inset: 0; background: rgba(15,23,42,.55); z-index: 1050; display: flex; align-items: center; justify-content: center; padding: 20px; }
.ld-modal { background: #fff; border-radius: 16px; padding: 32px; max-width: 520px; width: 100%; max-height: 90vh; overflow-y: auto; box-shadow: 0 24px 60px rgba(15,23,42,.25); }
.ld-modal-title { font-size: 1.15rem; font-weight: 800; color: #0f172a; margin-bottom: 6px; }
.ld-modal-subtitle { font-size: .875rem; color: #64748b; margin-bottom: 22px; }
.ld-modal-close { position: absolute; top: 20px; right: 20px; background: none; border: none; font-size: 1.4rem; color: #94a3b8; cursor: pointer; }

/* ── Listing metadata ── */
.ld-meta-row { display: flex; gap: 20px; flex-wrap: wrap; padding: 16px 0; border-bottom: 1px solid #f1f5f9; font-size: .82rem; color: #94a3b8; }
.ld-meta-row span { display: flex; align-items: center; gap: 5px; }

/* ── Similar listings grid (full width below fold) ── */
.ld-similar-section { max-width: 1380px; margin: 0 auto; padding: 0 24px 40px; }
.ld-similar-title { font-size: 1.25rem; font-weight: 800; color: #0f172a; margin-bottom: 20px; }
.ld-similar-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.ld-similar-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; overflow: hidden; text-decoration: none; color: inherit; transition: .2s; display: block; }
.ld-similar-card:hover { transform: translateY(-4px); box-shadow: 0 14px 32px rgba(15,23,42,.10); color: inherit; }
.ld-similar-card img { width: 100%; height: 150px; object-fit: cover; display: block; }
.ld-similar-card-body { padding: 14px; }
.ld-similar-card-price { font-size: 1.05rem; font-weight: 800; color: #1d4ed8; margin-bottom: 4px; }
.ld-similar-card-addr { font-size: .82rem; color: #64748b; line-height: 1.4; }
.ld-similar-card-type { font-size: .75rem; font-weight: 700; color: #94a3b8; margin-top: 5px; }

/* ── Responsive ── */
@media (max-width: 1100px) {
    .ld-body { grid-template-columns: 1fr 320px; gap: 24px; }
    .ld-similar-grid { grid-template-columns: repeat(3,1fr); }
}
@media (max-width: 900px) {
    .ld-gallery-grid { grid-template-columns: 1fr; }
    .ld-gallery-thumbs { grid-template-rows: unset; grid-template-columns: repeat(4,1fr); max-height: 100px; }
    .ld-gallery-main img { height: 300px; }
    .ld-body { grid-template-columns: 1fr; }
    .ld-sidebar { position: static; }
    .ld-similar-grid { grid-template-columns: repeat(2,1fr); }
    .ld-fact { padding: 14px 20px; min-width: 110px; }
}
@media (max-width: 600px) {
    .ld-title { font-size: 1.35rem; }
    .ld-fact-value.price { font-size: 1.2rem; }
    .ld-similar-grid { grid-template-columns: 1fr 1fr; }
    .ld-body { padding: 16px 14px; }
    .ld-header-inner { padding: 0 14px; }
}
@media (max-width: 440px) {
    .ld-similar-grid { grid-template-columns: 1fr; }
}
