/* ================================================
   THEME TOGGLE - Dark/Light Mode Stylesheet
   Load this AFTER all other stylesheets
   ================================================ */

/* ---- CSS Variables for Theming ---- */
:root {
    --bg-primary: #0a0a0b;
    --bg-secondary: #111113;
    --bg-tertiary: #18181b;
    --bg-elevated: #1f1f23;
    --bg-input: #0d0d0e;
    --bg-see-through: #1f1f239c;
    
    --border-subtle: #27272a;
    --border-medium: #3f3f46;
    --border-accent: #4f46e5;
    
    --text-primary: #fafafa;
    --text-secondary: #a1a1aa;
    --text-tertiary: #71717a;
    --text-muted: #52525b;
    
    --accent-primary: #6366f1;
    --accent-hover: #818cf8;
    --accent-hover-muted: #818df824;
    --accent-glow: rgba(99, 102, 241, 0.15);
    
    --success: #22c55e;
    --success-bg: rgba(34, 197, 94, 0.1);
    --warning: #f59e0b;
    --warning-bg: rgba(245, 158, 11, 0.1);
    --error: #ef4444;
    
    --weekend-bg: rgba(251, 146, 60, 0.05);
    --holiday-accent: #a78bfa;
    --illness-accent: #f472b6;
    --vacation-accent: #22d3ee;
    
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.4);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.5);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.6);
    
    --transition-fast: 120ms ease;
    --transition-normal: 200ms ease;

    --icon-filter: invert(1);
    --icon-background: transparent;
    --icon-border: none;
    --icon-opacity: 1;
    --icon-filter-reverse: invert(0);
    --icon-filter-w-opacity: invert(1) opacity(0.5);

    --box-shadow: 0 10px 15px -3px rgba(255, 255, 255, 0.1), 0 4px 6px -2px rgba(255, 255, 255, 0.05);


    --status-listing-public: rgb(16 15 37 / 76%);
    --status-listing-listing: rgb(55 31 60 / 79%);
}

/* Light Mode */
[data-theme="light"] {
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f1f5f9;
    --bg-elevated: #e2e8f0;
    --bg-input: #ffffff;
    --bg-see-through: #ffffff00;
    
    --border-subtle: #e2e8f0;
    --border-medium: #cbd5e1;
    --border-accent: #4f46e5;
    
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-tertiary: #64748b;
    --text-muted: #94a3b8;
    
    --accent-primary: #4f46e5;
    --accent-hover: #6366f1;
    --accent-glow: rgba(79, 70, 229, 0.12);
    
    --success: #16a34a;
    --success-bg: rgba(22, 163, 74, 0.1);
    --warning: #d97706;
    --warning-bg: rgba(217, 119, 6, 0.1);
    --error: #dc2626;
    
    --weekend-bg: rgba(251, 146, 60, 0.08);
    --holiday-accent: #7c3aed;
    --illness-accent: #db2777;
    --vacation-accent: #0891b2;
    
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);

    --icon-filter: none;
    --icon-background: transparent;
    --icon-border: none;
    --icon-opacity: 0.5;
    --icon-filter-reverse: invert(1);
    --icon-filter-w-opacity: opacity(0.5);

    --box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);

    --status-listing-public: rgb(255 255 255 / 76%);
    --status-listing-listing: rgb(255 255 255 / 88%);
}


/* ================================================
   THEME TOGGLE BUTTON STYLES
   ================================================ */

.theme-toggle-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 10px;
    margin-top: auto;
    border-top: 1px solid var(--border-subtle);
    background: var(--bg-secondary);
}

.theme-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-md);
    padding: 10px 16px;
    cursor: pointer;
    transition: all var(--transition-normal);
    width: 100%;
    max-width: 180px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 500;
}

.theme-toggle-btn:hover {
    background: var(--bg-elevated);
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-sm);
}
#toggleSidebarDesktop{
    svg{
        color: var(--text-primary);
        width: 19px;
        padding-right: 1px;
        vertical-align: middle;
    }
}

.theme-toggle-btn:focus {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
}

.theme-toggle-btn .theme-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.theme-toggle-btn .theme-icon svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.theme-toggle-btn:hover .theme-icon {
    transform: rotate(15deg);
}

.theme-toggle-btn .theme-label {
    white-space: nowrap;
}

/* Sidebar collapsed state */
.sidebar.collapsed .theme-toggle-container {
    padding: 12px 5px;
}

.sidebar.collapsed .theme-toggle-btn {
    padding: 10px;
    max-width: 44px;
    justify-content: center;
}

.sidebar.collapsed .theme-toggle-btn .theme-label {
    display: none;
}

/* ================================================
   APPLY THEME VARIABLES TO EXISTING ELEMENTS
   ================================================ */

/* Body and main backgrounds */

#single_property{
    color: var(--text-primary);
    background: var(--bg-input);
    border: var(--border-subtle);
}

#filter-bar-inline{
    background: var(--bg-tertiary);
    background-color: var(--bg-tertiary);
    border: var(--border-subtle);   
}
#userAccount{
    h5{
        color: var(--text-primary);
    }
    .user_account{
        max-width: 40px;
        vertical-align: middle;
        filter: var(--icon-filter-w-opacity);
    }
}

.container-box{
    background: var(--bg-tertiary);
    border: var(--border-subtle);
    .settings-cog svg{
        color: var(--accent-primary);
        padding-right: 1px;
    }
    .img-fluid{
        width:19px;
        margin-left:2px;
        color: var(--accent-primary);
        cursor: pointer;
    }
}



#filter2button{
    h4{
        color: var(--accent-primary);
    }
    svg{
        max-width:19px;
        padding-right:1px;
        .s0{

            color: var(--accent-primary);
            stroke: var(--accent-primary);
            fill: none;
            opacity: 1;
        }
    }
    background: var(--accent-glow);
}

#filter2button:hover{
    border: 1px solid var(--accent-primary);
    h4{
        color: var(--accent-hover);
    }
    svg{
    max-width:19px;
    padding-right:1px;
    .s0{

        color: var(--accent-hover);
        stroke: var(--accent-hover);
        fill: none;
        opacity: 1;
    }
    }

}

body {
    background-color: var(--bg-primary) !important;
    color: var(--text-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Sidebar theming */
.sidebar {
    background: var(--bg-secondary) !important;
    border-right: 1px solid var(--border-subtle);
    transition: background-color 0.3s ease;
    display: flex;
    flex-direction: column;
}

.sidebar .logo-area {
    border-bottom: 1px solid var(--border-subtle);
}

.sidebar .logo-area h5 {
    color: var(--text-primary) !important;
}

.sidebar .nav-links {
    background: transparent;
    flex: 1;
}
.sidebar .nav-text {
    color: var(--text-secondary);
}

.sidebar .nav-item {
    color: var(--text-secondary);
    transition: all var(--transition-normal);
}

.sidebar .nav-item:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border-left: 4px solid var(--accent-primary);
}

.sidebar .nav-item.active {
    background: var(--accent-glow);
    color: var(--accent-primary);
    border-left: 3px solid var(--accent-primary);
}
.sidebar .nav-item.active .nav-text {
    color: var(--accent-primary);
}

.sidebar .nav-item img {
    filter: var(--icon-filter-reverse);
    opacity: var(--icon-opacity);
    transition: filter 0.3s ease;
}

.sidebar .nav-item .img-fluid-reverse {
    filter: var(--icon-filter);
    opacity: var(--icon-opacity);
    transition: filter 0.3s ease;
}

.sidebar .nav-item:hover img,
.sidebar .nav-item.active img {
    opacity: 1;
}

/* Main content area */
.main-content {
    background: var(--bg-primary) !important;
    transition: background-color 0.3s ease;
}

/* Mobile header */
.mobile-header {
    background: var(--bg-secondary) !important;
    border-bottom: 1px solid var(--border-subtle);
}

.mobile-header h3 {
    color: var(--text-primary) !important;
}

/* Cards and elevated elements */
.listing-card {
    background: var(--bg-secondary) !important;
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

.listing-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--border-medium);
}

.listing-card .listing-info {
    background: var(--bg-secondary);
}

.listing-card .listing-title {
    color: var(--text-primary) !important;
}

.listing-card .listing-title small {
    color: var(--text-secondary) !important;
}

.listing-card .listing-sub {
    color: var(--text-secondary) !important;
    border-color: var(--border-subtle) !important;
}

.listing-card .listing-sub span {
    color: var(--text-primary) !important;
}

.listing-card .listing-sub .listing-sub-label {
    color: var(--text-primary) !important;
    font-weight: 500;
}

.listing-card .hover-details {
    background: var(--bg-elevated) !important;
    border: 1px solid var(--border-subtle);
}

.listing-card .hover-details > div {
    background: var(--bg-secondary) !important;
    border-color: var(--border-subtle) !important;
    color: var(--text-secondary);
}
.listing-card .hover-details > div.view_details_hover {
    background: var(--accent-glow) !important;
}
.listing-card .hover-details > div.view_details_hover:hover {
    border-color: var(--accent-primary) !important;
}
.view_details_hover{
    background: var(--accent-glow) !important;
}
.view_details_hover:hover{
    border-color: var(--accent-primary) !important;
}

.listing-card .hover-details strong {
    color: var(--text-primary) !important;
}

.listing-card .status-x {
    background: var(--bg-secondary) !important;
    border-color: var(--border-subtle) !important;
    color: var(--error) !important;
}

.status-x:hover {
  outline: 2px solid var(--error);
  color: var(--error);
  transform: translateY(2px);
}

/* Status badges */
.status-badge{
    position: absolute;
    top: 7px;
    left: 4px;
    padding: 3px 8px;
    color: var(--accent-primary);
    background: var(--accent-glow);
    border-radius: 999px;
    /* box-shadow: 0 8px 18px rgba(91, 133, 255, .35); */
    font-size: .78rem;
    letter-spacing: 0.3px;

}
.status-badge.public{
    top: 7px;
    left: 4px;
    padding: 3px 8px;
    /* color: var(--accent-primary); */
    background: var(--accent-glow);
    /* background-color: var(--status-listing-public) !important; */
    color: #ff8c00;
    background: var(--accent-glow);
    background-color: #ff8c004d !important;
}
.status-badge.Public{
    top: 7px;
    left: 4px;
    padding: 3px 8px;
    /* color: var(--accent-primary); */
    background: var(--accent-glow);
    /* background-color: var(--status-listing-public) !important; */
    color: #ff8c00;
    background: var(--accent-glow);
    background-color: #ff8c004d !important;
}
.status-badge.listing{
    top: 7px;
    left: 4px;
    padding: 3px 8px;
    color: #cb5ce3 !important;
    background: rgb(203 92 227 / 15%)!important;
    background-color: var(--status-listing-listing) !important;
}
.status-badge.Listing{
    top: 7px;
    left: 4px;
    padding: 3px 8px;
    color: #cb5ce3 !important;
    background: rgb(203 92 227 / 15%)!important;
    background-color: var(--status-listing-listing) !important;
}


/* Form inputs */
input, 
select, 
textarea {
    background: var(--bg-input) !important;
    border: 1px solid var(--border-medium) !important;
    color: var(--text-primary) !important;
    transition: all var(--transition-normal);
}

input:focus, 
select:focus, 
textarea:focus {
    border-color: var(--accent-primary) !important;
    box-shadow: 0 0 0 3px var(--accent-glow);
    outline: none;
}

input::placeholder {
    color: var(--text-muted) !important;
}

/* Buttons */
button {
    transition: all var(--transition-normal);
}

/* Overlay */
.overlay {
    background: rgba(0, 0, 0, 0.5) !important;
}

/* Popup/Modal theming */
.popup-content,
.modal-content,
.filter-modal-content {
    background: var(--bg-secondary) !important;
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
}

.popup-content h2,
.popup-content p {
    color: var(--text-primary);
}

.popup-content a {
    color: var(--accent-primary);
}

/* Tabs */
.tabs {
    border-bottom-color: var(--border-subtle) !important;
}

.tabs button {
    color: var(--text-secondary) !important;
    background: transparent !important;
}

.tabs button.active {
    color: var(--accent-primary) !important;
    border-bottom-color: var(--accent-primary) !important;
}

/* Tables */
table {
    background: var(--bg-secondary);
}

th {
    background: var(--bg-tertiary) !important;
    color: var(--text-primary) !important;
    border-color: var(--border-subtle) !important;
}

td {
    background: var(--bg-secondary) !important;
    color: var(--text-primary) !important;
    border-color: var(--border-subtle) !important;
}

tr:hover td {
    background: var(--bg-tertiary) !important;
}

/* Heatmap panel */
.heatmap-panel {
    background: var(--bg-secondary) !important;
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-md);
}

.heatmap-toggle {
    color: var(--text-primary);
}

.legend {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-subtle);
}

.legend-title {
    color: var(--text-primary);
}

.legend-item {
    color: var(--text-secondary);
}

.gm-style .gm-style-iw-c{
        padding-right: 12px !important;
    }


/* Scrollbar theming */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-tertiary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-medium);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

    .marker_popup{
        svg{
            max-width: 22px;
            max-height: 22px;
            display: inline-block;
            margin-right: 0.25rem;
            fill: var(--accent-primary);
            /* filter: opacity(0.5); */
            background-size: contain;
            display: inline-block;
        }
    }

/* Property Explorer specific elements */
#listing-view {
    .listing-card{
        border-color: var(--border-medium);
        .image-wrapper{
            background: var(--bg-tertiary);
            
        }
        .listing-info{
            background: var(--bg-elevated);
            border-bottom-right-radius: 6px;
            border-bottom-left-radius: 6px;
            .listing-sub{
                display: flex;
                align-items: center;
                padding-top: 1px;
                svg{
                    max-width: 22px;
                    max-height: 22px;
                    margin-right: 0.25rem;
                    fill: var(--accent-primary);
                    /* filter: opacity(0.5); */
                    background-size: contain;
                    display: inline-block;
                }
            }
        }
        .hover-details{

        }

    }








    background: var(--bg-tertiary);
    
}
.lbc-widget-container{
        .lbc-widget-header{
            background: var(--bg-input);
            border-color: var(--border-subtle);
            .lbc-slider{
                background-color: var(--bg-tertiary);
                border: 1px solid var(--border-subtle);
                
            }
            /*input:checked + .lbc-slider { background-color: #28a745; background: linear-gradient(45deg, #00bdff, #28a745) border-box !important;}*/
            input:checked + .lbc-slider { background-color: var(--accent-glow);}
        }
        .lbc-pricing-nav{
            background-color: var(--bg-secondary);
            border-color: var(--border-subtle);
            .lbc-active{
                background-color: var(--accent-glow);
                color: var(--accent-primary);
            }
        }
        .lbc-display-area{
            background: var(--bg-input);
            border-color: var(--border-subtle);

            .lbc-status-active{
                background: var(--accent-glow);
                color: var(--accent-primary);
            }
            .lbc-status-upsell{
                background: var(--weekend-bg);
                color: var(--warning);
            }
            .lbc-plan-name{
                color: var(--text-primary);
                opacity: 0.5;
            }
            .lbc-plan-price{
                color: var(--success);
            }
            .lbc-plan-period{
                color: var(--text-primary);
                opacity: 0.5;
            }
            .lbc-plan-desc{
                color: var(--text-primary);
                opacity: 0.5;
            }
            .lbc-feature-list li{
                color: var(--text-primary);
                opacity: 0.5;
            }
            .lbc-plan-btn{
                background: linear-gradient(135deg, var(--accent-primary), #8b5cf6) !important;
            }
        }
    }

/* Filter sections */
.filter-section,
.favorites-container {
    background: var(--bg-tertiary) !important;
    border-color: var(--border-subtle) !important;
}

/* Icon filters for theme */
[data-theme="light"] .sidebar .logo-area img {
    filter: none !important;
}

[data-theme="light"] .sidebar .nav-item img {
    filter: invert(1);
    opacity: 0.7;
}

[data-theme="light"] .sidebar .nav-item .img-fluid-reverse {
    filter: invert(0)!important;
    opacity: 0.7;
}

[data-theme="light"] .sidebar .nav-item:hover img,
[data-theme="light"] .sidebar .nav-item.active img {
    opacity: 1;
}

/* Property card pre-icons */
.pre_prop_sqf::before,
.pre_prop_lot::before,
.pre_prop_yb::before,
.pre_prop_ds::before,
.pre_prop_sale::before {
    filter: var(--icon-filter);
    opacity: var(--icon-opacity);
}

/* View details hover */
.view_details_hover {
    background: var(--accent-glow);
    strong{
        color: var(--text-primary);
    }
}
.view_details_hover:hover {
    background: var(--accent-primary) ;
    strong{
        color: white;
    }
}

.view_details_hover{
    background: var(--accent-glow);
    color: var(--text-primary);
}
.view_details_hover:hover{
    background: var(--accent-glow);
    color: var(--text-primary);
}

/* Google Maps InfoWindow / Marker Popup theming */
.gm-style-iw,
.gm-style-iw-c {
    background: var(--bg-tertiary) !important;
}

.gm-style-iw-d {
    background: var(--bg-tertiary) !important;
    overflow: auto !important;
}

.gm-style-iw-tc::after {
    background: var(--bg-tertiary) !important;
}

.marker-popup-content {
    color: var(--text-primary) !important;
    background: var(--bg-tertiary) !important;
}

.marker-popup-content .listing-title {
    color: var(--text-primary) !important;
}

.marker-popup-content .listing-title small {
    color: var(--text-tertiary) !important;
}

.marker-popup-content .marker_popup {
    background: var(--bg-tertiary) !important;
    border-color: var(--border-subtle) !important;
    color: var(--text-primary) !important;
}

.marker-popup-content .marker_popup strong {
    color: var(--text-primary) !important;
}

.marker_popup_x {
    color: var(--error) !important;
    background: var(--bg-tertiary) !important;
    border-color: var(--border-subtle) !important;
}

.marker_popup_x:hover {
    background: var(--bg-elevated) !important;
}

/* Pricing Widget Theming */
.pricing-widget-container {
    max-width: 960px;
    margin: 24px auto;
    padding: 20px;
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    background: var(--bg-secondary);
}

.pricing-widget-title {
    margin: 0 0 8px;
    font-size: 1.25rem;
    line-height: 1.2;
    color: var(--text-primary);
}

.pricing-widget-text {
    margin: 0 0 16px;
    color: var(--text-secondary);
}

.pricing-widget-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.pricing-btn {
    display: inline-block;
    padding: 10px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all var(--transition-normal);
}

.pricing-btn-primary {
    border: 1px solid var(--accent-primary);
    background: var(--accent-primary);
    color: #fff !important;
}

.pricing-btn-primary:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
}

.pricing-btn-secondary {
    border: 1px solid var(--border-medium);
    background: var(--bg-secondary);
    color: var(--text-primary) !important;
}

.pricing-btn-secondary:hover {
    background: var(--bg-tertiary);
    border-color: var(--border-accent);
}

/* Trial text styling */
.trial-text {
    display: flex;
    justify-content: center;
    color: var(--accent-primary) !important;
    padding-top: 10px;
    font-weight: 500;
}

/* Product/Pricing Cards */
.productCard,
.cs-card {
    background: var(--bg-secondary) !important;
    border-color: var(--border-subtle) !important;
    color: var(--text-primary);
}

.productCard h4,
.productCard h5,
.productCard p {
    color: var(--text-primary);
}

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

.productinfotext .checkmark {
    color: var(--success);
}

.pricingnumber {
    color: var(--accent-primary) !important;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    /* Toast Notification */
        .toast {
            position: fixed;
            bottom: 24px;
            right: 24px;
            padding: 14px 20px;
            background: var(--bg-elevated);
            border: 1px solid var(--border-subtle);
            border-radius: var(--radius-md);
            box-shadow: var(--shadow-lg);
            display: flex;
            align-items: center;
            gap: 10px;
            transform: translateY(100px);
            opacity: 0;
            transition: all 300ms ease;
            z-index: 1000;
        }

        .toast.show {
            transform: translateY(0);
            opacity: 1;
        }

        .toast.success {
            border-left: 3px solid var(--success);
        }

        .toast.success::before {
            content: '✓';
            color: var(--success);
            font-weight: 700;
        }

        .toast.error {
            border-left: 3px solid var(--error);
        }

        .toast.error::before {
            content: '✕';
            color: var(--error);
            font-weight: 700;
        }
}


.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 20px;
    background: var(--success);
    color: white;
    border-radius: var(--radius-md);
    z-index: 10001;
    display: none;
    box-shadow: var(--shadow-lg);
}

.toast.show {
    display: block;
}

.toast.error {
    background: var(--error);
}
@media (max-width: 900px) {
    .theme-toggle-container {
        padding: 10px;
        border-top: 1px solid var(--border-subtle);
    }
    
    .theme-toggle-btn {
        max-width: 160px;
        padding: 8px 14px;
        font-size: 0.8125rem;
    }
    
    .sidebar.mobile-open .theme-toggle-container {
        display: flex;
    }
}

/* Animation for theme change */
* {
    transition: background-color 0.2s ease, 
                border-color 0.2s ease, 
                color 0.2s ease,
                box-shadow 0.2s ease;
}

/* Disable transition during initial load */
.no-transition * {
    transition: none !important;
}


#singleOptions{
    width: 95%;
    background-color: var(--bg-input);
    border-bottom-right-radius: 16px;
    border-bottom-left-radius: 16px;
    border-top: none;
    .searchheader_li{

        color: var(--text-primary);
        border-top: 1px solid var(--border-medium);
        border-bottom: 1px solid var(--border-medium);
    }
    li{
        color: var(--text-tertiary);
    }
    li:hover{
        background-color: var(--bg-elevated);
        color: var(--accent-hover);
    }
}



#imp_filters{
        background-color: var(--bg-tertiary);
        border-right: 1px solid var(--border-subtle);
        border-left: 1px solid var(--border-subtle);
        border-bottom: 1px solid var(--border-subtle);


    position: absolute;
    width: 99%;
    z-index: 99;
}

.top-bar-container {
    background: var(--bg-tertiary);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid var(--border-subtle);
    margin-bottom: 15px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    .heart_path{
        /* stroke: var(--text-tertiary) !important; */
        filter: var(--icon-filter-w-opacity);
    }
    .heart_container input:checked ~ .checkmark path {
    fill: #ef71c5;
    stroke: #92415c;
    filter: invert(0);
    /* stroke-width: 0; */
    }
}
.top-bar-container:hover {
    border-color: 1px solid var(--border-accent);
    border: 1px solid var(--border-accent);
}

/* --- Header & Toggle Area --- */
.imp-filters-widget-header {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-bottom: 12px;
  background-color: var(--bg-input);
  border-radius: 8px 8px 0 0;
  border: 1px solid var(--border-accent);
  border-bottom: none;
  margin-bottom: -1px;
  padding-top: 10px;

  span{
    color: var(--text-primary);
  }
}

.imp-filters-display-area{
    border: 1px solid var(--border-accent);
    border-top: none;
    .imp-filters-inside-display{
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--bg-see-through);
        z-index: 20;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        backdrop-filter: blur(2px);
        border-radius: 0 0 8px 8px;
        h4{
            color: var(--text-primary);
        }
        p{
            color: var(--text-secondary);
        }
    }
}

.imp-filters-pricing-nav{
    margin: -20px -15px 15px -15px;
    border-bottom: 1px solid var(--border-medium);
    background-color: var(--bg-tertiary);
    border-color: var(--border-subtle);
    .imp-filters-nav-item{
        flex: 1;
        text-align: center;
        padding: 10px 4px;
        font-size: 0.85rem;
        font-weight: 600;
        color: #6c757d;
        cursor: pointer;
        border-radius: 4px;
        transition: all 0.2s ease;
        user-select: none;
        border: none;
        background: none;
        line-height: 1.2;
    }
    .imp-filters-nav-item:hover{
        color: #6c757dbb;
    }
    .imp-filters-active{
        background-color: var(--accent-glow);
        color: var(--accent-primary);
    }
    .imp-filters-active:hover{
        color: var(--accent-hover);
    }
}

.imp-filters-display-area{
    background: var(--bg-elevated);
}

.imp-filters-plan-name{
    color: var(--text-primary);
}
.imp-filters-plan-btn{
    background: var(--accent-glow);
    color: var(--accent-primary);
}
.imp-filters-plan-btn:hover{
    color: var(--accent-hover);
}

#searchfilterbuttonlandmark_list{
    background: var(--accent-glow)
}

.imp-filters-card-header{
    border-bottom: 1px solid var(--accent-primary);
}


input:checked + .imp-filters-slider { background: var(--accent-primary);}




















#property-top-bar{
    img{
        filter: var(--icon-filter);
    }
    h3{
        color: var(--text-primary);
    }
    div{
        color: var(--text-primary);
        h3{
            color: var(--text-primary);
        }
        span{
            img{
                filter: var(--icon-filter-w-opacity);
            }
        }
    }
    h3{
        color: var(--text-primary);
    }
}


.property-stats-container{
    .stat-item{
        .material-symbols-outlined{
            img{ filter: var(--icon-filter-w-opacity); }
            svg{
                width: 20px;
                height: 20px;
                fill: var(--accent-primary);
            }
        }
        .stat-value{
            color: var(--text-tertiary);
        }
    }

}

#subjectImgListing{
    background: var(--bg-tertiary);
    border-color: var(--border-subtle);
}
#subjectImgListing:hover{
    border-color: var(--accent-primary);
}

#subjectInfoListing{
    background: var(--bg-tertiary);
    border-color: var(--border-subtle);

    .pd-container{
        background: transparent;
        .pd-features-title{
            color: var(--text-secondary);
        }
        .pd-header{
            .pd-header-flex{
                /* border: 1px solid var(--accent-hover); */
                padding: 0.5rem;
                border-radius: 16px;
                /* background: var(--bg-elevated); */
                img{
                    filter: var(--icon-filter-w-opacity);
                }
                h4{
                    color: var(--text-primary);
                }
            }
            .pd-header-flex:hover{
                /* border: 1px solid var(--accent-primary); */
            }
        }
    }

}

.pd-feature-card{
    background: var(--bg-elevated) !important;
    border: var(--accent-glow) !important;
    .pd-feature-name{
        color: var(--text-secondary) !important;
    }
    .pd-feature-desc{
        color: var(--text-tertiary) !important;
    }
    svg{
        /* fill: var(--warning)!important;
        color: var(--warning)!important; */
        fill: var(--accent-primary)!important;
        color: var(--accent-primary)!important;
    }
}
.pd-feature-card:hover{
    /* background: var(--weekend-bg) !important; */
    background: var(--accent-hover-muted) !important;
}


.details-card{
    background: var(--bg-secondary) !important;
    .details-header-title{
        color: var(--text-secondary);
    }
    .details-label{
        color: var(--text-secondary);
    }
    .details-value{
        color: var(--text-primary);
    }
}


.property-card-icon{
    background: none;
    svg{
        width: 25px;
        height: 25px;
            fill: var(--accent-primary);
    }
}

.property-card-icon-mls{
    background: none;
    svg{
        width: 25px;
        height: 25px;
            stroke: var(--accent-primary);
    }
}



#view_all_images_btn{
    background-color: var(--accent-hover);
    background: var(--accent-hover);
}


.pd-col-left{
    padding-left: 1rem !important;
    padding-top: 1rem !important;
}
.pd-col-right{
    padding-left: 1rem !important;
    padding-top: 1rem !important;
}

#login_banner{
    background:linear-gradient(white, white) padding-box,linear-gradient(45deg, #5a9bec, #9c83ec) border-box;
    background-clip: padding-box, border-box;
    background-origin: border-box;
    border: 1px solid transparent;
    position: relative;
    background: var(--weekend-bg);
    h3{
        color: var(--warning);
    }
    p{
        color: var(--text-secondary);
    }
}
#login_banner:hover{
    border: 1px solid var(--warning);
}
#login_banner_closer{
    background: none !important;
    color: var(--error) !important;
}
#legacy_banner{
    background:linear-gradient(white, white) padding-box,linear-gradient(45deg, #5a9bec, #9c83ec) border-box;
    background-clip: padding-box, border-box;
    background-origin: border-box;
    border: 1px solid transparent;
    position: relative;
    background: var(--success-bg);
    h3{
        color: var(--success);
    }
    p{
        color: var(--text-secondary);
    }
}
#legacy_banner:hover{
    border: 1px solid var(--success);
}
#legacy_banner_closer{
    background: none !important;
    color: var(--success) !important;
}



.pd-last-sale-date:hover{
    border-radius: 8px;
    background: var(--accent-glow);
    cursor: pointer;
}

.pd-market-value:hover{
    border-radius: 8px;
    background: var(--accent-glow);
    cursor: pointer;
}

.pd-last-sale-price:hover{
    border-radius: 8px;
    background: var(--accent-glow);
    cursor: pointer;
}
.pd-owner-info:hover{
    border-radius: 8px;
    background: var(--accent-glow);
    cursor: pointer;
}


#acceptBtn{
    border-radius: 8px;
    background: var(--accent-primary);
    cursor: pointer;
}
#acceptBtn:hover{
    background: var(--accent-hover);
}
#declineBtn{
    border-radius: 8px;
    background: var(--accent-primary);
    cursor: pointer;
}
#declineBtn:hover{
    background: var(--accent-hover);
}

.no_image_svg{
    width: 100%;
    height: 100%;
}


.popup_info{
    svg{
        width: 200px;
        height: 150px;
    }
}


/* Single Blur Overlay - spans both cards */
.cards-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-see-through);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  z-index: 10;
  transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

.cards-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.overlay-message {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  text-align: center;
}

.overlay-btn {
  background: var(--accent-primary);
  color: #fff;
  border: none;
  padding: 12px 32px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
  box-shadow: 0 0 20px var(--accent-glow);
}

.overlay-btn:hover {
  background: var(--accent-hover);
  box-shadow: 0 0 30px var(--accent-glow);
  transform: translateY(-2px);
}

.overlay-btn:active {
  transform: translateY(0);
}

.pd-header-flex{
    display: grid;
    /* grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); */
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    
}
.pd-card{
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    transition: all var(--transition-fast);
}
.pd-card:hover {
    border-color: var(--border-medium);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.pd-content{
    flex: 1;
    min-width: 0;
    h5{
        color: var(--text-secondary);
    }
}
#equityCount{
    color: var(--text-secondary);
}

.pd-icon{
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    flex-shrink: 0;
}


.avm{
    position: relative;
}

#confidenceRating_wrapper{
    display: none;
}
#confidenceRating{
    color: var(--text-primary);
}








/* ================================================
   MORTGAGE DOCUMENT NAVIGATION STYLES
   ================================================ */

.mortgage-doc-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    margin: 10px 0;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    overflow-x: auto;
}

.mortgage-doc-nav-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    margin-right: 4px;
}

.mortgage-doc-btns {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.mortgage-doc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 28px;
    padding: 0 10px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
    font-family: inherit;
}

.mortgage-doc-btn:hover {
    background: var(--bg-elevated);
    border-color: var(--border-medium);
    color: var(--text-primary);
}

.mortgage-doc-btn.active {
    background: var(--accent-glow);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.mortgage-doc-btn.active:hover {
    background: var(--accent-primary);
    color: #fff;
}

.mortgage-doc-date {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-left: 4px;
}

/* Scrollbar for nav overflow */
.mortgage-doc-nav::-webkit-scrollbar {
    height: 4px;
}

.mortgage-doc-nav::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 2px;
}

.mortgage-doc-nav::-webkit-scrollbar-thumb {
    background: var(--border-medium);
    border-radius: 2px;
}

.mortgage-doc-nav::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .mortgage-doc-nav {
        padding: 6px 10px;
    }
    
    .mortgage-doc-btn {
        min-width: 28px;
        height: 26px;
        padding: 0 8px;
        font-size: 0.75rem;
    }
    
    .mortgage-doc-date {
        display: none;
    }
    
    .mortgage-doc-nav-label {
        font-size: 0.7rem;
    }
    .special-things{
        display: flex !important;
    }
}

















/* Style for the iframe itself */
.internal-frame {
    width: 100%;       /* Take up full width of the parent container */
    border: none;      /* Remove the default inset border */
    overflow: hidden;  /* Hide scrollbars if you are auto-resizing */
    min-height: 400px; /* Fallback height */
    height: 100%;
    height: 90vh;
    display: block;    /* Prevents inline spacing issues */
}


.search_here_controlUI{
    background-color: rgb(81 167 241);
    background-color : var(--accent-primary);
    box-shadow : 0 2px 6px rgba(0,0,0,.3);
    cursor : pointer;
    margin : 10px;
    text-align : center;
    border-radius : 8px;
    border : 1px solid transparent;
}
.search_here_controlUI:hover{
    border : 1px solid var(--accent-primary);
    background-color : var(--accent-hover);
}

.search_here_controlText{
    color : white;
    font-family : Roboto, Arial, sans-serif;
    font-size : 0.9rem;
    font-weight : 600;
    line-height : 25px;
    width : 100%;
    padding : 0 10px;
    border-radius : 4px;
    cursor : pointer;
    background : linear-gradient(45deg, #5a9bec, #2c3e50) border-box;
    background : var(--accent-glow);
}



/* Owner Status Badges */
.owner-status-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px 12px;
    border-bottom: 1px solid var(--border-subtle);
}

.owner-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.owner-badge svg {
    flex-shrink: 0;
}

.owner-badge.owner-occupied {
    background: var(--success-bg);
    color: var(--success);
    border: 1px solid var(--success);
}

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

.owner-badge.owner-trust {
    background: var(--warning-bg);
    color: var(--warning);
    border: 1px solid var(--warning);
}

/* Multiple owners styling */
.owner-names-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.owner-name-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.owner-name-item:not(:last-child)::after {
    content: '';
}

.owner-name-divider {
    color: var(--text-muted);
    font-size: 12px;
}

/* Owner Names as Chips */
.owner-names-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.owner-name-chip {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    font-size: 13px;
    color: var(--text-primary);
    white-space: nowrap;
}

.owner-name-chip::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--accent-primary);
    border-radius: 50%;
    margin-right: 8px;
    flex-shrink: 0;
}


/* Owner Also Owns Section */
.owner-also-owns-section {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-subtle);
}

.owner-also-owns-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 10px;
    padding: 0 12px;
}

.owner-also-owns-header svg {
    color: var(--text-tertiary);
}

.owner-also-owns-count {
    background: var(--accent-glow);
    color: var(--accent-primary);
    padding: 2px 8px;
    border-radius: var(--radius-lg);
    font-size: 11px;
    font-weight: 600;
}

.owner-also-owns-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 0 12px;
    max-height: 200px;
    overflow-y: auto;
}

.owner-property-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.owner-property-card:hover {
    background: var(--bg-elevated);
    border-color: var(--accent-primary);
    transform: translateX(4px);
}

.owner-property-card:active {
    transform: translateX(2px);
}

.owner-property-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.owner-property-address {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.owner-property-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: var(--text-tertiary);
}

.owner-property-meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.owner-property-meta-divider {
    width: 3px;
    height: 3px;
    background: var(--text-muted);
    border-radius: 50%;
}

.owner-property-arrow {
    color: var(--text-muted);
    transition: color var(--transition-fast), transform var(--transition-fast);
    flex-shrink: 0;
}

.owner-property-card:hover .owner-property-arrow {
    color: var(--accent-primary);
    transform: translateX(4px);
}

/* Scrollbar for owner list */
.owner-also-owns-list::-webkit-scrollbar {
    width: 4px;
}

.owner-also-owns-list::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 2px;
}

.owner-also-owns-list::-webkit-scrollbar-thumb {
    background: var(--border-medium);
    border-radius: 2px;
}

.owner-also-owns-list::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}















/* ================================================
   RECORDER HISTORY STYLES
   ================================================ */

/* Header count badge */
.recorder-record-count {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    margin-left: auto;
    padding: 3px 10px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
}

.recorder-count-divider {
    color: var(--text-muted);
    margin: 0 1px;
}

/* Navigation Controls */
.recorder-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-subtle);
    gap: 12px;
}

.recorder-nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.recorder-nav-btn:hover:not(:disabled) {
    background: var(--accent-glow);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.recorder-nav-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.recorder-nav-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.recorder-nav-date {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.recorder-nav-type {
    font-size: 11px;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* Document Type Badge */
.recorder-doc-badge-container {
    padding: 8px 12px;
    border-bottom: 1px solid var(--border-subtle);
}

.recorder-doc-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: var(--radius-md);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--text-muted);
}
.restricted-chip{
    color: var(--text-muted);
}

.recorder-login-prompt{
    color: var(--text-secondary);
}

/* Badge color variants */
.recorder-doc-badge.deed-warranty {
    background: var(--success-bg);
    color: var(--success);
    border: 1px solid var(--success);
}

.recorder-doc-badge.deed-grant {
    background: var(--accent-glow);
    color: var(--accent-primary);
    border: 1px solid var(--accent-primary);
}

.recorder-doc-badge.deed-quit {
    background: var(--warning-bg);
    color: var(--warning);
    border: 1px solid var(--warning);
}

.recorder-doc-badge.deed-trust {
    background: rgba(167, 139, 250, 0.1);
    color: var(--holiday-accent);
    border: 1px solid var(--holiday-accent);
}

.recorder-doc-badge.deed-other {
    background: var(--bg-elevated);
    color: var(--text-secondary);
    border: 1px solid var(--border-medium);
}

/* Transfer Amount Highlight */
.recorder-transfer-amount {
    font-weight: 600;
    color: var(--success) !important;
}

.recorder-transfer-amount.no-value {
    color: var(--text-muted) !important;
    font-weight: 400;
}

/* Party Sections (Grantor/Grantee) */
.recorder-party-section {
    padding: 10px 12px;
    border-top: 1px solid var(--border-subtle);
    margin-top: 4px;
}

.recorder-party-header {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 8px;
}

.recorder-party-header svg {
    color: var(--text-muted);
}

.recorder-party-names {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.recorder-party-name {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    font-size: 13px;
    color: var(--text-primary);
}

.recorder-party-name.primary {
    background: var(--accent-glow);
    border-color: var(--accent-primary);
}

.recorder-party-name::before {
    content: '';
    width: 5px;
    height: 5px;
    background: var(--accent-primary);
    border-radius: 50%;
    margin-right: 8px;
    flex-shrink: 0;
}

/* Timeline Navigation */
.recorder-timeline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    border-top: 1px solid var(--border-subtle);
}

.recorder-timeline-dot {
    width: 10px;
    height: 10px;
    background: var(--bg-elevated);
    border: 2px solid var(--border-medium);
    border-radius: 50%;
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
}

.recorder-timeline-dot:hover {
    border-color: var(--accent-primary);
    transform: scale(1.2);
}

.recorder-timeline-dot.active {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    transform: scale(1.3);
}

.recorder-timeline-dot::after {
    content: attr(data-year);
    position: absolute;
    bottom: -18px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 9px;
    color: var(--text-muted);
    white-space: nowrap;
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.recorder-timeline-dot:hover::after,
.recorder-timeline-dot.active::after {
    opacity: 1;
}

/* Timeline connector line */
.recorder-timeline-line {
    flex: 1;
    height: 2px;
    background: var(--border-subtle);
    max-width: 30px;
}

/* Empty state */
.recorder-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    color: var(--text-muted);
    text-align: center;
}

.recorder-empty-state svg {
    margin-bottom: 8px;
    opacity: 0.5;
}

.recorder-empty-state-text {
    font-size: 13px;
}

/* Badge color variants */
.recorder-doc-badge.deed-warranty {
    background: var(--success-bg);
    color: var(--success);
    border: 1px solid var(--success);
}

.recorder-doc-badge.deed-grant {
    background: var(--accent-glow);
    color: var(--accent-primary);
    border: 1px solid var(--accent-primary);
}

.recorder-doc-badge.deed-quit {
    background: var(--warning-bg);
    color: var(--warning);
    border: 1px solid var(--warning);
}

.recorder-doc-badge.deed-trust {
    background: rgba(167, 139, 250, 0.1);
    color: var(--holiday-accent);
    border: 1px solid var(--holiday-accent);
}

.recorder-doc-badge.deed-family {
    background: rgba(34, 211, 238, 0.1);
    color: var(--vacation-accent);
    border: 1px solid var(--vacation-accent);
}

.recorder-doc-badge.deed-court {
    background: var(--bg-elevated);
    color: var(--text-secondary);
    border: 1px solid var(--border-medium);
}

.recorder-doc-badge.deed-other {
    background: var(--bg-elevated);
    color: var(--text-secondary);
    border: 1px solid var(--border-medium);
}












/* ================================================
   PROPERTY SPECIFICS ENHANCED STYLES
   ================================================ */

/* Section Title */
.property-section-title {
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 14px;
    padding: 0.5rem 0;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ================================================
   LOCATION CARD ENHANCEMENTS
   ================================================ */

/* Address Highlight Box */
.property-address-highlight {
    padding: 12px;
    background: var(--accent-glow);
    color: var(--accent-primary);
    border: 1px solid var(--accent-primary);
    border-radius: var(--radius-lg);
    text-align: center;
}

.property-address-main {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.property-address-sub {
    font-size: 13px;
    color: var(--text-secondary);
}

/* Coordinates Section */
.location-coords-section {
    margin-top: 8px;
    padding: 10px 12px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    margin: 8px 12px 0;
}

.location-coords-header {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 8px;
}

.location-coords-header svg {
    color: var(--text-muted);
}

.coords-copy-btn {
    margin-left: auto;
    padding: 4px 6px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    color: var(--text-tertiary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.coords-copy-btn:hover {
    background: var(--accent-glow);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.location-coords-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.coord-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.coord-label {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--bg-elevated);
    padding: 2px 6px;
    border-radius: var(--radius-sm);
}

.coord-value {
    font-size: 13px;
    font-family: 'SF Mono', 'Fira Code', monospace;
    color: var(--text-primary);
}

.coord-divider {
    color: var(--text-muted);
    font-size: 8px;
}




















/* ================================================
   BUILDING INFO CARD ENHANCEMENTS
   ================================================ */

/* Property Type Badge */
.property-type-badge-container {
    padding: 8px 12px;
    border-bottom: 1px solid var(--border-subtle);
}

.property-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: var(--radius-md);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    background: var(--accent-glow);
    color: var(--accent-primary);
    border: 1px solid var(--accent-primary);
}

/* Quick Stats Row */
.building-quick-stats {
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 12px;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-subtle);
}

.quick-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.quick-stat-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.quick-stat-label {
    font-size: 10px;
    font-weight: 500;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.quick-stat-divider {
    width: 1px;
    height: 30px;
    background: var(--border-subtle);
}

/* Year Built Value with Age */
.building-year-value {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.building-year-value .year-age {
    font-size: 11px;
    color: var(--text-tertiary);
    padding: 2px 6px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
}

/* Property Age Indicator */
.property-age-indicator {
    padding: 10px 12px;
    border-top: 1px solid var(--border-subtle);
}

.age-bar-container {
    height: 4px;
    background: var(--bg-elevated);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 6px;
}

.age-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--success) 0%, var(--warning) 50%, var(--error) 100%);
    border-radius: 2px;
    transition: width var(--transition-normal);
}

.age-text {
    font-size: 11px;
    color: var(--text-tertiary);
    text-align: center;
}




















/* ================================================
   ASSESSOR LOCATER CARD ENHANCEMENTS
   ================================================ */

/* Parcel ID Highlight */
.parcel-id-highlight {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-subtle);
}

.parcel-id-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-tertiary);
    text-transform: uppercase;
}

.parcel-id-value {
    flex: 1;
    font-size: 15px;
    font-weight: 600;
    font-family: 'SF Mono', 'Fira Code', monospace;
    color: var(--accent-primary);
}

.parcel-copy-btn {
    padding: 6px 8px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    color: var(--text-tertiary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.parcel-copy-btn:hover {
    background: var(--accent-glow);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

/* Monospace for IDs */
.assessor-mono {
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 13px;
}

/* STR Section */
.assessor-str-section {
    margin: 8px 12px;
    padding: 10px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
}

.assessor-str-header {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 8px;
    text-align: center;
}

.assessor-str-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.str-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    min-width: 50px;
}

.str-label {
    font-size: 9px;
    font-weight: 600;
    color: var(--text-muted);
}

.str-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    font-family: 'SF Mono', 'Fira Code', monospace;
}

.str-divider {
    color: var(--text-muted);
    font-size: 12px;
}

/* Legal Description */
.legal-description-section {
    margin: 8px 12px;
    padding: 10px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
}

.legal-description-header {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 8px;
}

.legal-description-header svg {
    color: var(--text-muted);
}

.legal-description-text {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.5;
    word-break: break-word;
}





















/* ================================================
   ASSESSMENT DETAILS CARD ENHANCEMENTS
   ================================================ */

/* Year Badge */
.assessment-year-badge {
    margin-left: auto;
    padding: 3px 10px;
    background: var(--success-bg);
    color: var(--success);
    border: 1px solid var(--success);
    border-radius: var(--radius-lg);
    font-size: 11px;
    font-weight: 600;
}

/* Assessment Summary */
.assessment-summary {
    padding: 12px;
    background: var(--success-bg);
    color: var(--success);
    border: 1px solid var(--success);
    border-radius: var(--radius-lg);
}

.assessment-summary-item {
    text-align: center;
    margin-bottom: 8px;
}

.assessment-summary-item.primary {
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-subtle);
    margin-bottom: 10px;
}

.assessment-summary-label {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 4px;
}

.assessment-summary-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--success);
}

.assessment-summary-value.small {
    font-size: 16px;
    color: var(--text-primary);
}

.assessment-summary-row {
    display: flex;
    justify-content: space-around;
}

/* Assessment Values */
.assessment-value {
    color: var(--text-primary);
    font-weight: 500;
}

.assessment-value.highlight {
    color: var(--success);
    font-weight: 600;
}

.assessment-exemption {
    color: var(--warning);
    font-weight: 500;
}

/* Value Breakdown Visual */
.assessment-breakdown {
    padding: 12px;
    border-top: 1px solid var(--border-subtle);
}

.breakdown-bar {
    display: flex;
    height: 8px;
    background: var(--bg-elevated);
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin-bottom: 8px;
}

.breakdown-segment {
    height: 100%;
    transition: width var(--transition-normal);
}

.breakdown-segment.land {
    background: var(--accent-primary);
}

.breakdown-segment.improvement {
    background: var(--success);
}

.breakdown-legend {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.legend-item-avm {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: var(--text-tertiary);
}

.legend-color {
    width: 10px;
    height: 10px;
    border-radius: 2px;
}

.legend-color.land {
    background: var(--accent-primary);
}

.legend-color.improvement {
    background: var(--success);
}


.ownername-data{
    align-items: flex-start !important;
}























/* ================================================
   AVM & EQUITY CARD - COMPLETE STYLES
   ================================================ */

.avm-equity-card {
    position: relative;
    overflow: hidden;

    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;


}

/* ================================================
   OVERLAY STATES
   ================================================ */
.avm-overlay {
    position: absolute;
    inset: 0;
    /* background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%); */
    background: linear-gradient(135deg, var(--bg-secondary) 0%, #18181b00 100%);
    border-radius: var(--radius-lg);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.avm-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.avm-overlay-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 24px;
    max-width: 280px;
}

.avm-overlay-icon {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-glow);
    border-radius: 50%;
    margin-bottom: 16px;
    color: var(--accent-primary);
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.4); }
    50% { transform: scale(1.05); box-shadow: 0 0 0 12px rgba(99, 102, 241, 0); }
}

.avm-overlay-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 4px 0;
}

.avm-overlay-title:empty { display: none; }

.avm-overlay-subtitle {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0 0 16px 0;
    line-height: 1.4;
}

.avm-overlay-subtitle:empty { display: none; }

.avm-overlay-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 32px;
    background: linear-gradient(135deg, var(--accent-primary) 0%, #4338ca 100%);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
    min-width: 160px;
}

.avm-overlay-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4);
}

.avm-overlay-btn:active {
    transform: translateY(0);
}

.avm-overlay-btn:empty { display: none; }

.avm-overlay-btn svg {
    width: 20px;
    height: 20px;
    /* fill: currentColor; */
    stroke: currentColor;
}

/* Loading state */
.avm-overlay-btn.loading {
    pointer-events: none;
    background: var(--bg-elevated);
    color: var(--text-secondary);
}

.avm-overlay-btn .spinner {
    width: 18px;
    height: 18px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.avm-overlay-uses {
    margin-top: 12px;
    padding: 8px 16px;
    background: var(--warning-bg);
    border: 1px dashed var(--warning);
    border-radius: var(--radius-md);
    font-size: 12px;
    color: var(--warning);
}

.avm-overlay-uses:empty { display: none; }

/* ================================================
   HEADER
   ================================================ */
.avm-equity-card .details-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0;

}

.avm-last-updated {
    margin-left: auto;
    padding: 4px 10px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-lg);
    font-size: 11px;
    color: var(--text-tertiary);
}

.avm-last-updated:empty { display: none; }

.avm-last-updated::before {
    content: 'Updated: ';
    color: var(--text-muted);
}

/* ================================================
   CONFIDENCE GAUGE
   ================================================ */
.avm-confidence-section {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 0.25rem 20px;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-subtle);
    margin-bottom: 0.25rem;
    border-bottom-right-radius: 16px;
    border-bottom-left-radius: 16px;
}

.confidence-gauge {
    position: relative;
    width: 100px;
    height: 100px;
    flex-shrink: 0;
}

.confidence-ring {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.confidence-ring-bg {
    fill: none;
    stroke: var(--bg-elevated);
    stroke-width: 8;
}

.confidence-ring-fill {
    fill: none;
    stroke: var(--success);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 339.292;
    stroke-dashoffset: 339.292;
    transition: stroke-dashoffset 1s ease-out, stroke 0.3s ease;
}

.confidence-center {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.confidence-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

.confidence-label {
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 2px;
}

.confidence-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.confidence-detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: var(--bg-elevated);
    border-radius: var(--radius-sm);
}

.confidence-detail-item .detail-label {
    font-size: 11px;
    color: var(--text-tertiary);
}

.confidence-detail-item .detail-value {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

/* ================================================
   AVM VALUE HERO
   ================================================ */
.avm-value-hero {
    padding: 24px;
    background: linear-gradient(135deg, var(--accent-glow) 0%, transparent 100%);
    text-align: center;
    border-bottom: 1px solid var(--border-subtle);
    background: var(--accent-glow);
    color: var(--accent-primary);
    border: 1px solid var(--accent-primary);
    border-radius: var(--radius-lg);
    padding: 0.25rem 24px;
}

.avm-hero-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
}

.avm-hero-value {
    font-size: 36px;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.avm-hero-sqft {
    font-size: 16px;
    color: var(--accent-primary);
}

.avm-hero-sqft .sqft-label {
    color: var(--text-muted);
    font-weight: 400;
}

/* ================================================
   AVM RANGE
   ================================================ */
.avm-range-section {
    padding: 16px;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 0;
}

.avm-range-bar {
    margin-bottom: 12px;
}

.range-track {
    position: relative;
    height: 8px;
    background: linear-gradient(90deg, var(--warning) 0%, var(--success) 100%);
    border-radius: var(--radius-sm);
    overflow: visible;
}

.range-fill {
    position: absolute;
    inset: 0;
    background: var(--bg-elevated);
    border-radius: var(--radius-sm);
    transform-origin: left;
}

.range-marker {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    background: var(--text-primary);
    border: 3px solid var(--bg-primary);
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    transition: left 0.6s ease-out;
}

.range-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
}

.range-label {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.range-label.high {
    text-align: right;
}

.range-label-title {
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.range-label-value {
    font-size: 14px;
    font-weight: 600;
}

.range-label.low .range-label-value {
    color: var(--warning);
}

.range-label.high .range-label-value {
    color: var(--success);
}

.avm-range-spread {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding-top: 12px;
    border-top: 1px dashed var(--border-subtle);
    font-size: 12px;
    color: var(--text-tertiary);
}

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

/* ================================================
   EQUITY SECTION
   ================================================ */
.equity-section {
    padding: 16px;
    border-bottom: 1px solid var(--border-subtle);
    padding-top: 0.5rem;
}

.equity-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 16px;
}

.equity-header svg {
    color: var(--success);
}

/* LTV Meter */
.ltv-meter-section {
    margin-bottom: 16px;
}

.ltv-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.ltv-label {
    font-size: 12px;
    color: var(--text-tertiary);
}

.ltv-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--accent-primary);
}

.ltv-meter {
    position: relative;
    height: 12px;
    background: var(--bg-elevated);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.ltv-meter-fill {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    background: var(--success);
    border-radius: var(--radius-md);
    transition: width 0.8s ease-out, background 0.3s ease;
    z-index: 2;
}

.ltv-meter-zones {
    display: flex;
    height: 100%;
    position: absolute;
    inset: 0;
    z-index: 1;
}

.ltv-zone {
    border-right: 1px solid var(--bg-secondary);
}

.ltv-zone.safe {
    width: 60%;
    background: rgba(34, 197, 94, 0.15);
}

.ltv-zone.moderate {
    width: 20%;
    background: rgba(245, 158, 11, 0.15);
}

.ltv-zone.high {
    width: 20%;
    background: rgba(239, 68, 68, 0.15);
    border-right: none;
}

.ltv-meter-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 4px;
    font-size: 9px;
    color: var(--text-muted);
}

/* Equity Cards */
.equity-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}

.equity-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
}

.equity-card.available {
    background: var(--success-bg);
    border-color: var(--success);
}

.equity-card.lendable {
    background: var(--accent-glow);
    border-color: var(--accent-primary);
}

.equity-card-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.equity-card.available .equity-card-icon {
    background: var(--success);
    color: white;
}

.equity-card.lendable .equity-card-icon {
    background: var(--accent-primary);
    color: white;
}

.equity-card-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.equity-card-label {
    font-size: 10px;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.equity-card-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Value Composition */
.value-composition {
    padding-top: 12px;
    border-top: 1px dashed var(--border-subtle);
}

.composition-label {
    font-size: 11px;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 10px;
}

.composition-bar {
    display: flex;
    height: 28px;
    background: var(--bg-elevated);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 10px;
}

.composition-segment {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: width 0.8s ease-out;
    min-width: 0;
}

.composition-segment .segment-text {
    font-size: 10px;
    font-weight: 600;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    opacity: 0;
    transition: opacity 0.3s ease;
    white-space: nowrap;
}

.composition-segment:hover .segment-text {
    opacity: 1;
}

.equity-segment {
    background: linear-gradient(135deg, var(--success) 0%, #16a34a 100%);
}

.loan-segment {
    background: linear-gradient(135deg, var(--accent-primary) 0%, #4338ca 100%);
}

.composition-legend {
    display: flex;
    justify-content: center;
    justify-content: space-around;
    gap: 24px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
}

.legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 2px;
}

.legend-dot.equity {
    background: var(--success);
}

.legend-dot.loan {
    background: var(--accent-primary);
}

.legend-label {
    color: var(--text-tertiary);
}

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

/* ================================================
   LOAN BREAKDOWN
   ================================================ */
.loan-breakdown-section {
    padding: 16px;
}

.loan-breakdown-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 12px;
}

.loan-breakdown-header svg {
    color: var(--text-muted);
}

.loan-items {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.loan-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-subtle);
}

.loan-item.hidden {
    display: none;
}

.loan-item.total {
    background: var(--bg-elevated);
    border-color: var(--border-medium);
    margin-top: 4px;
}

.loan-item-label {
    font-size: 12px;
    color: var(--text-secondary);
}

.loan-item.total .loan-item-label {
    font-weight: 600;
    color: var(--text-primary);
}

.loan-item-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.loan-item.total .loan-item-value {
    font-size: 16px;
    color: var(--accent-primary);
}

/* ================================================
   RESPONSIVE
   ================================================ */
@media (max-width: 480px) {
    .avm-confidence-section {
        flex-direction: column;
        text-align: center;
    }
    
    .confidence-details {
        width: 100%;
    }
    
    .avm-hero-value {
        font-size: 28px;
    }
    
    .equity-cards {
        grid-template-columns: 1fr;
    }
}





/* ================================================
   MORTGAGE DOCUMENT NAVIGATION & DISPLAY - REDESIGNED
   ================================================ */

/* Document Count Badge in Header */
.mortgage-doc-count {
    margin-left: auto;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--accent-primary);
    background: var(--accent-glow);
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid var(--accent-primary);
}

/* Navigation Container */
.mortgage-doc-nav {
    display: flex;
    gap: 10px;
    padding: 12px;
    margin: 0 -12px;
    background: var(--bg-primary);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
    overflow-x: auto;
    scroll-behavior: smooth;
    /* scrollbar-width: thin; */
}

.mortgage-doc-nav:empty {
    display: none;
}

/* Individual Document Tab */
.mortgage-doc-tab {
    display: flex;
    flex-direction: column;
    min-width: 140px;
    padding: 12px 14px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    height: -webkit-fill-available;
}

.mortgage-doc-tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: transparent;
    transition: background var(--transition-fast);
}

.mortgage-doc-tab:hover {
    background: var(--bg-tertiary);
    border-color: var(--border-medium);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.mortgage-doc-tab.active {
    background: var(--bg-elevated);
    border-color: var(--accent-primary);
}

.mortgage-doc-tab.active::before {
    background: var(--accent-primary);
}

/* Document Type Badge */
.doc-tab-type {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
    width: fit-content;
}

.doc-tab-type.type-mortgage {
    background: var(--accent-glow);
    color: var(--accent-primary);
}

.doc-tab-type.type-deed {
    background: var(--success-bg);
    color: var(--success);
}

.doc-tab-type.type-transfer {
    background: var(--warning-bg);
    color: var(--warning);
}

.doc-tab-type.type-other {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
}

/* Tab Amount */
.doc-tab-amount {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
    line-height: 1.2;
}

.doc-tab-amount.no-amount {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Tab Date */
.doc-tab-date {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

/* Tab Lender */
.doc-tab-lender {
    font-size: 0.7rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
}

/* Active Document Summary */
.mortgage-doc-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    margin: 12px 0;
}

.mortgage-doc-summary:empty,
.mortgage-doc-summary.hidden {
    display: none;
}

.doc-summary-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    background: var(--bg-elevated);
    color: var(--text-secondary);
}

.doc-summary-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-primary);
}

.doc-summary-badge.type-deed::before {
    background: var(--success);
}

.doc-summary-badge.type-transfer::before {
    background: var(--warning);
}

.doc-summary-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.7rem;
    color: var(--text-muted);
}

.doc-summary-instrument {
    font-family: monospace;
    background: var(--bg-secondary);
    padding: 2px 8px;
    border-radius: var(--radius-sm);
}

/* LTV Bar */
.ltv-bar-container {
    width: 60px;
    height: 6px;
    background: var(--bg-tertiary);
    border-radius: 3px;
    margin-left: 10px;
    display: inline-block;
    vertical-align: middle;
    overflow: hidden;
}

.ltv-bar {
    height: 100%;
    background: var(--accent-primary);
    border-radius: 3px;
    transition: width var(--transition-normal);
}

.ltv-bar.high-ltv {
    background: var(--warning);
}

.ltv-bar.very-high-ltv {
    background: var(--error);
}

/* Legal Description Section */
.mortgage-legal-section {
    margin-top: 12px;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.legal-section-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 10px 12px;
    background: var(--bg-tertiary);
    border: none;
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: inherit;
    border-bottom: 1px solid var(--border-subtle);
}

.legal-section-toggle:hover {
    background: var(--bg-elevated);
    color: var(--text-primary);
}

.toggle-chevron {
    transition: transform var(--transition-normal);
}

.legal-section-toggle.expanded .toggle-chevron {
    transform: rotate(180deg);
}

.legal-section-content {
    display: none;
    padding: 12px;
    background: var(--bg-secondary);
    background: var(--bg-tertiary);
    padding: 0;
}

.legal-section-content.show {
    display: block;
}

.legal-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 10px;
}

.legal-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.legal-label {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.legal-value {
    font-size: 0.8rem;
    color: var(--text-primary);
    font-weight: 500;
}

.legal-full-description {
    font-size: 0.75rem;
    color: var(--text-secondary);
    padding: 8px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    font-family: monospace;
    line-height: 1.5;
    display: none;
}

.legal-full-description:empty {
    display: none;
}

/* Document Timeline */
.mortgage-timeline {
    margin-top: 16px;
    padding: 12px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    margin-top: 0;
}

.mortgage-timeline:empty {
    display: none;
}

.timeline-title {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.timeline-items {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
}

.timeline-items::before {
    content: '';
    position: absolute;
    left: 5px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: var(--border-subtle);
}

.timeline-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 8px 0;
    position: relative;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.timeline-item:hover {
    background: var(--bg-elevated);
    margin: 0 -12px;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
}

.timeline-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 2px solid var(--border-medium);
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    transition: all var(--transition-fast);
}

.timeline-item.active .timeline-dot {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 4px var(--accent-glow);
}

.timeline-item.type-deed .timeline-dot {
    border-color: var(--success);
}

.timeline-item.type-deed.active .timeline-dot {
    background: var(--success);
    box-shadow: 0 0 0 4px var(--success-bg);
}

.timeline-content {
    flex: 1;
    min-width: 0;
}

.timeline-date {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.timeline-type {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-primary);
}

.timeline-amount {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent-primary);
}

.timeline-item.type-deed .timeline-amount {
    color: var(--success);
}

/* Scrollbar for nav */
.mortgage-doc-nav::-webkit-scrollbar {
    height: 6px;
}

.mortgage-doc-nav::-webkit-scrollbar-track {
    background: var(--bg-tertiary);
}

.mortgage-doc-nav::-webkit-scrollbar-thumb {
    background: var(--border-medium);
    border-radius: 4px;
}




/* Responsive */
@media (max-width: 991.98px) {
    .mortgage-doc-tab {
        min-width: 120px;
        padding: 10px 12px;
    }
    
    .doc-tab-amount {
        font-size: 1rem;
    }
    
    .legal-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .doc-summary-meta {
        display: none;
    }
}

@media (max-width: 575.98px) {
    .mortgage-doc-tab {
        min-width: 100px;
        padding: 8px 10px;
    }
    
    .doc-tab-lender {
        display: none;
    }
    
    .mortgage-doc-summary {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .legal-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Document Type Badge Colors - Extended */
.doc-tab-type.type-mortgage {
    background: var(--accent-glow);
    color: var(--accent-primary);
}

.doc-tab-type.type-deed {
    background: var(--success-bg);
    color: var(--success);
}

.doc-tab-type.type-foreclosure {
    background: rgba(239, 68, 68, 0.15);
    color: var(--error);
}

.doc-tab-type.type-legal {
    background: rgba(168, 85, 247, 0.15);
    color: #a855f7;
}

.doc-tab-type.type-release {
    background: rgba(34, 211, 238, 0.15);
    color: #22d3ee;
}

.doc-tab-type.type-transfer {
    background: var(--warning-bg);
    color: var(--warning);
}

.doc-tab-type.type-estate {
    background: rgba(236, 72, 153, 0.15);
    color: #ec4899;
}

.doc-tab-type.type-affidavit {
    background: rgba(148, 163, 184, 0.15);
    color: #94a3b8;
}

.doc-tab-type.type-lease {
    background: rgba(132, 204, 22, 0.15);
    color: #84cc16;
}

.doc-tab-type.type-contract {
    background: rgba(251, 191, 36, 0.15);
    color: #fbbf24;
}

.doc-tab-type.type-other {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
}

/* Timeline dot colors by type */
.timeline-item.type-mortgage .timeline-dot { border-color: var(--accent-primary); }
.timeline-item.type-mortgage.active .timeline-dot { background: var(--accent-primary); box-shadow: 0 0 0 4px var(--accent-glow); }

.timeline-item.type-deed .timeline-dot { border-color: var(--success); }
.timeline-item.type-deed.active .timeline-dot { background: var(--success); box-shadow: 0 0 0 4px var(--success-bg); }

.timeline-item.type-foreclosure .timeline-dot { border-color: var(--error); }
.timeline-item.type-foreclosure.active .timeline-dot { background: var(--error); box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.15); }

.timeline-item.type-legal .timeline-dot { border-color: #a855f7; }
.timeline-item.type-legal.active .timeline-dot { background: #a855f7; box-shadow: 0 0 0 4px rgba(168, 85, 247, 0.15); }

.timeline-item.type-release .timeline-dot { border-color: #22d3ee; }
.timeline-item.type-release.active .timeline-dot { background: #22d3ee; box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.15); }

.timeline-item.type-transfer .timeline-dot { border-color: var(--warning); }
.timeline-item.type-transfer.active .timeline-dot { background: var(--warning); box-shadow: 0 0 0 4px var(--warning-bg); }

.timeline-item.type-estate .timeline-dot { border-color: #ec4899; }
.timeline-item.type-estate.active .timeline-dot { background: #ec4899; box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.15); }

.timeline-item.type-affidavit .timeline-dot { border-color: #94a3b8; }
.timeline-item.type-affidavit.active .timeline-dot { background: #94a3b8; box-shadow: 0 0 0 4px rgba(148, 163, 184, 0.15); }

.timeline-item.type-lease .timeline-dot { border-color: #84cc16; }
.timeline-item.type-lease.active .timeline-dot { background: #84cc16; box-shadow: 0 0 0 4px rgba(132, 204, 22, 0.15); }

.timeline-item.type-contract .timeline-dot { border-color: #fbbf24; }
.timeline-item.type-contract.active .timeline-dot { background: #fbbf24; box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.15); }

/* Summary badge colors */
.doc-summary-badge::before { background: var(--text-muted); }
.doc-summary-badge.type-mortgage::before { background: var(--accent-primary); }
.doc-summary-badge.type-deed::before { background: var(--success); }
.doc-summary-badge.type-foreclosure::before { background: var(--error); }
.doc-summary-badge.type-legal::before { background: #a855f7; }
.doc-summary-badge.type-release::before { background: #22d3ee; }
.doc-summary-badge.type-transfer::before { background: var(--warning); }
.doc-summary-badge.type-estate::before { background: #ec4899; }
.doc-summary-badge.type-affidavit::before { background: #94a3b8; }
.doc-summary-badge.type-lease::before { background: #84cc16; }
.doc-summary-badge.type-contract::before { background: #fbbf24; }

/* Timeline amount colors by type */
.timeline-item.type-deed .timeline-amount { color: var(--success); }
.timeline-item.type-foreclosure .timeline-amount { color: var(--error); }
.timeline-item.type-transfer .timeline-amount { color: var(--warning); }










/* ================================================
   ASSESSOR PROPERTY CARD STYLES (assessor-pc- prefix)
   ================================================ */

/* Header Badges */
.assessor-pc-header-badges {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.assessor-pc-year-badge {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--accent-primary);
    background: var(--accent-glow);
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid var(--accent-primary);
}

.assessor-pc-delinquent-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--error);
    background: rgba(239, 68, 68, 0.15);
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid var(--error);
}

.assessor-pc-delinquent-badge svg {
    flex-shrink: 0;
}

/* Tax Bill Summary */
.assessor-pc-bill-summary {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 16px;
    padding: 16px;
    margin: 12px 0;
    background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-secondary) 100%);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
}

.assessor-pc-bill-summary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-primary), var(--success));
}

.assessor-pc-bill-main {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.assessor-pc-bill-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.assessor-pc-bill-amount {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.1;
}

.assessor-pc-bill-meta {
    font-size: 0.7rem;
    color: var(--text-tertiary);
}

.assessor-pc-bill-details {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    padding-left: 16px;
    border-left: 1px solid var(--border-subtle);
}

.assessor-pc-bill-detail {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.assessor-pc-bill-detail-label {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.assessor-pc-bill-detail-value {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Exemptions */
.assessor-pc-exemptions {
    padding: 12px;
    margin-bottom: 12px;
    background: var(--success-bg);
    border: 1px solid var(--success);
    border-radius: var(--radius-md);
}

.assessor-pc-exemptions-label {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--success);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.assessor-pc-exemptions-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.assessor-pc-exemption-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--success);
    background: var(--bg-secondary);
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--success);
}

.assessor-pc-exemption-badge svg {
    width: 12px;
    height: 12px;
}

/* Value Section */
.assessor-pc-value-section {
    padding: 12px;
    margin-bottom: 12px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
}

.assessor-pc-value-section.market {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, var(--bg-tertiary) 100%);
    border-color: var(--accent-primary);
}

.assessor-pc-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.assessor-pc-section-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.assessor-pc-section-year {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--bg-secondary);
    padding: 2px 8px;
    border-radius: var(--radius-sm);
}

/* Value Cards */
.assessor-pc-value-cards {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.assessor-pc-value-card {
    padding: 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.assessor-pc-value-card.total {
    background: var(--bg-elevated);
    border-color: var(--border-medium);
}

.assessor-pc-value-card.total.market {
    border-left: 3px solid var(--accent-primary);
}

.assessor-pc-value-card-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.assessor-pc-value-card.small {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px;
}

.assessor-pc-value-card.small.land {
    border-left: 3px solid #84cc16;
}

.assessor-pc-value-card.small.improvement {
    border-left: 3px solid var(--accent-primary);
}

.assessor-pc-value-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    flex-shrink: 0;
}

.assessor-pc-value-card.small.land .assessor-pc-value-card-icon {
    color: #84cc16;
    background: rgba(132, 204, 22, 0.1);
}

.assessor-pc-value-card.small.improvement .assessor-pc-value-card-icon {
    color: var(--accent-primary);
    background: var(--accent-glow);
}

.assessor-pc-value-card-content {
    flex: 1;
    min-width: 0;
}

.assessor-pc-value-card-label {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 2px;
}

.assessor-pc-value-card-amount {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.assessor-pc-value-card.total .assessor-pc-value-card-amount {
    font-size: 1.4rem;
}

.assessor-pc-value-card.small .assessor-pc-value-card-amount {
    font-size: 0.95rem;
}

.assessor-pc-value-card-percent {
    font-size: 0.65rem;
    color: var(--text-tertiary);
    margin-top: 2px;
}

.assessor-pc-value-card-change {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-top: 4px;
    padding: 2px 8px;
    border-radius: var(--radius-sm);
}

.assessor-pc-value-card-change.positive {
    color: var(--success);
    background: var(--success-bg);
}

.assessor-pc-value-card-change.negative {
    color: var(--error);
    background: rgba(239, 68, 68, 0.1);
}

.assessor-pc-value-card-change.neutral {
    color: var(--text-muted);
    background: var(--bg-tertiary);
}

/* Breakdown Bar */
.assessor-pc-breakdown {
    margin-top: 12px;
}

.assessor-pc-breakdown-bar {
    display: flex;
    height: 8px;
    background: var(--bg-secondary);
    border-radius: 4px;
    overflow: hidden;
}

.assessor-pc-breakdown-segment {
    height: 100%;
    transition: width var(--transition-normal);
}

.assessor-pc-breakdown-segment.land {
    background: #84cc16;
}

.assessor-pc-breakdown-segment.improvement {
    background: var(--accent-primary);
}

/* Details Section */
.assessor-pc-details-section {
    margin-top: 12px;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.assessor-pc-details-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 10px 12px;
    background: var(--bg-tertiary);
    border: none;
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: inherit;
}

.assessor-pc-details-toggle:hover {
    background: var(--bg-elevated);
    color: var(--text-primary);
}

.assessor-pc-toggle-chevron {
    transition: transform var(--transition-normal);
}

.assessor-pc-details-toggle.expanded .assessor-pc-toggle-chevron {
    transform: rotate(180deg);
}

.assessor-pc-details-content {
    display: none;
    padding: 12px;
    background: var(--bg-secondary);
}

.assessor-pc-details-content.show {
    display: block;
}

.assessor-pc-details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.assessor-pc-detail-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 8px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
}

.assessor-pc-detail-item.highlight {
    background: var(--accent-glow);
    border: 1px solid var(--accent-primary);
}

.assessor-pc-detail-item.highlight .assessor-pc-detail-value {
    color: var(--accent-primary);
}

.assessor-pc-detail-label {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.assessor-pc-detail-value {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
}

.assessor-pc-detail-value.exemption {
    color: var(--success);
}

/* Footer */
.assessor-pc-footer {
    display: flex;
    justify-content: space-between;
    padding: 10px 12px;
    margin-top: 12px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
}

.assessor-pc-update-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.assessor-pc-update-label {
    font-size: 0.6rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.assessor-pc-update-value {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 991.98px) {
    .assessor-pc-bill-summary {
        flex-direction: column;
        gap: 12px;
    }
    
    .assessor-pc-bill-details {
        flex-direction: row;
        padding-left: 0;
        padding-top: 12px;
        border-left: none;
        border-top: 1px solid var(--border-subtle);
    }
    
    .assessor-pc-bill-detail {
        flex: 1;
    }
    
    .assessor-pc-value-card-row {
        grid-template-columns: 1fr;
    }
    
    .assessor-pc-details-grid {
        grid-template-columns: 1fr;
    }
    
    .assessor-pc-footer {
        flex-direction: column;
        gap: 8px;
    }
}

@media (max-width: 575.98px) {
    .assessor-pc-header-badges {
        flex-wrap: wrap;
    }
    
    .assessor-pc-bill-amount {
        font-size: 1.5rem;
    }
    
    .assessor-pc-exemptions-badges {
        gap: 4px;
    }
    
    .assessor-pc-exemption-badge {
        font-size: 0.65rem;
        padding: 3px 8px;
    }
}





/* ================================================
   BUILDING PROPERTY CARD STYLES (building-pc- prefix)
   ================================================ */

/* Header Badges */
.building-pc-header-badges {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.building-pc-style-badge {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--accent-primary);
    background: var(--accent-glow);
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.building-pc-stories-badge {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--bg-tertiary);
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid var(--border-subtle);
}

/* Property Type */
.building-pc-type-container {
    margin: 8px 0 12px;
}

.building-pc-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-primary);
    background: var(--bg-tertiary);
    padding: 6px 14px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
}

/* Quick Stats */
.building-pc-quick-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    padding: 12px;
    margin-bottom: 12px;
    background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-secondary) 100%);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
}

.building-pc-quick-stat {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.building-pc-quick-stat:hover {
    background: var(--bg-elevated);
}

.building-pc-quick-stat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--accent-glow);
    border-radius: var(--radius-sm);
    color: var(--accent-primary);
    flex-shrink: 0;
}

.building-pc-quick-stat-content {
    min-width: 0;
}

.building-pc-quick-stat-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.building-pc-quick-stat-label {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Property Age Indicator */
.building-pc-age-indicator {
    padding: 10px 12px;
    margin-bottom: 12px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
}

.building-pc-age-bar-container {
    height: 6px;
    background: var(--bg-secondary);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 6px;
}

.building-pc-age-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--success) 0%, var(--warning) 50%, var(--error) 100%);
    border-radius: 3px;
    transition: width var(--transition-normal);
}

.building-pc-age-text {
    font-size: 0.7rem;
    color: var(--text-secondary);
    text-align: center;
}

/* Section Styling */
.building-pc-section {
    margin-bottom: 12px;
    padding: 12px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
}

.building-pc-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-subtle);
}

.building-pc-section-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Area Breakdown */
.building-pc-area-cards {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.building-pc-area-card {
    padding: 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
}

.building-pc-area-card.total {
    background: var(--bg-elevated);
    border-left: 3px solid var(--accent-primary);
}

.building-pc-area-card-label {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 2px;
}

.building-pc-area-card-value {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-primary);
}

.building-pc-area-card-sub {
    font-size: 0.65rem;
    color: var(--text-tertiary);
    margin-top: 2px;
}

.building-pc-area-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.building-pc-area-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 10px;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
}

.building-pc-area-item-label {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.building-pc-area-item-value {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Lot Details */
.building-pc-lot-details {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-subtle);
}

.building-pc-lot-card {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
}

.building-pc-lot-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(132, 204, 22, 0.1);
    border-radius: var(--radius-sm);
    color: #84cc16;
    flex-shrink: 0;
}

.building-pc-lot-content {
    flex: 1;
}

.building-pc-lot-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.building-pc-lot-row.secondary {
    margin-top: 4px;
    padding-top: 4px;
    border-top: 1px dashed var(--border-subtle);
}

.building-pc-lot-label {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.building-pc-lot-value {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
}

.building-pc-lot-dimensions {
    font-size: 0.7rem;
    color: var(--text-tertiary);
    margin-top: 4px;
}

.building-pc-lot-topo {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    padding: 6px 10px;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
}

.building-pc-topo-label {
    font-size: 0.65rem;
    color: var(--text-muted);
}

.building-pc-topo-value {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
}

/* Room Grid */
.building-pc-room-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.building-pc-room-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 8px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    text-align: center;
    transition: all var(--transition-fast);
}

.building-pc-room-card:hover {
    background: var(--bg-elevated);
    border-color: var(--border-medium);
}

.building-pc-room-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--bg-tertiary);
    border-radius: 50%;
    margin-bottom: 8px;
    color: var(--text-muted);
}

.building-pc-room-icon.beds { color: var(--accent-primary); background: var(--accent-glow); }
.building-pc-room-icon.baths { color: #22d3ee; background: rgba(34, 211, 238, 0.1); }
.building-pc-room-icon.half-baths { color: #a78bfa; background: rgba(167, 139, 250, 0.1); }
.building-pc-room-icon.rooms { color: var(--warning); background: var(--warning-bg); }

.building-pc-room-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

.building-pc-room-label {
    font-size: 0.65rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Special Rooms */
.building-pc-special-rooms {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-subtle);
}

.building-pc-special-rooms-label {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.building-pc-special-rooms-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.building-pc-room-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--bg-secondary);
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-subtle);
}

.building-pc-room-badge svg {
    width: 12px;
    height: 12px;
    color: var(--text-muted);
}

.building-pc-room-badge.highlight {
    background: var(--warning-bg);
    border-color: var(--warning);
    color: var(--warning);
}

.building-pc-room-badge.highlight svg {
    color: var(--warning);
}

/* Basement */
.building-pc-basement {
    margin-top: 12px;
    padding: 10px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
}

.building-pc-basement-header {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.building-pc-basement-header svg {
    color: var(--text-muted);
}

.building-pc-basement-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.building-pc-basement-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.building-pc-basement-label {
    font-size: 0.6rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.building-pc-basement-value {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Attic */
.building-pc-attic {
    margin-top: 8px;
}

.building-pc-attic-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--bg-secondary);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-subtle);
}

.building-pc-attic-badge svg {
    color: var(--text-muted);
}

.building-pc-attic-area {
    font-weight: 600;
    color: var(--text-primary);
}

/* Construction Grid */
.building-pc-construction-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.building-pc-construction-card {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
}

.building-pc-construction-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    flex-shrink: 0;
}

.building-pc-construction-content {
    min-width: 0;
}

.building-pc-construction-label {
    font-size: 0.6rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.building-pc-construction-value {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
    word-break: break-word;
}

/* HVAC */
.building-pc-hvac {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-subtle);
}

.building-pc-hvac-title {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.building-pc-hvac-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.building-pc-hvac-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
}

.building-pc-hvac-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    flex-shrink: 0;
}

.building-pc-hvac-icon.cooling { background: rgba(34, 211, 238, 0.1); color: #22d3ee; }
.building-pc-hvac-icon.heating { background: rgba(251, 146, 60, 0.1); color: #fb923c; }
.building-pc-hvac-icon.fuel { background: rgba(168, 85, 247, 0.1); color: #a855f7; }
.building-pc-hvac-icon.water { background: rgba(59, 130, 246, 0.1); color: #3b82f6; }
.building-pc-hvac-icon.sewer { background: rgba(132, 204, 22, 0.1); color: #84cc16; }

.building-pc-hvac-content {
    min-width: 0;
}

.building-pc-hvac-label {
    font-size: 0.6rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.building-pc-hvac-value {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Parking */
.building-pc-parking-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.building-pc-parking-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
}

.building-pc-parking-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    flex-shrink: 0;
}

.building-pc-parking-icon.garage {
    background: var(--accent-glow);
    color: var(--accent-primary);
}

.building-pc-parking-icon.carport {
    background: rgba(132, 204, 22, 0.1);
    color: #84cc16;
}

.building-pc-parking-type {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
}

.building-pc-parking-area {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.building-pc-parking-spaces {
    display: flex;
    align-items: center;
    gap: 6px;
    grid-column: span 2;
    padding: 8px 12px;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
}

.building-pc-spaces-count {
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent-primary);
}

.building-pc-spaces-label {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.building-pc-driveway {
    margin-top: 8px;
    padding: 6px 10px;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    font-size: 0.7rem;
}

.building-pc-driveway-label {
    color: var(--text-muted);
}

.building-pc-driveway-value {
    font-weight: 600;
    color: var(--text-secondary);
}

/* Outdoor Features */
.building-pc-outdoor-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.building-pc-outdoor-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
}

.building-pc-outdoor-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(132, 204, 22, 0.1);
    border-radius: var(--radius-sm);
    color: #84cc16;
    flex-shrink: 0;
}

.building-pc-outdoor-label {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.building-pc-outdoor-value {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Pool */
.building-pc-pool {
    margin-top: 10px;
}

.building-pc-pool-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(34, 211, 238, 0.1);
    border: 1px solid #22d3ee;
    border-radius: var(--radius-md);
    color: #22d3ee;
    font-size: 0.8rem;
    font-weight: 600;
}

.building-pc-pool-badge svg {
    flex-shrink: 0;
}

.building-pc-pool-area {
    font-size: 0.7rem;
    opacity: 0.8;
}

/* Outdoor Badges */
.building-pc-outdoor-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.building-pc-outdoor-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--bg-secondary);
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-subtle);
}

/* Amenities Grid */
.building-pc-amenities-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.building-pc-amenity-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-primary);
    background: var(--bg-secondary);
    padding: 8px 12px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
}

.building-pc-amenity-badge svg {
    width: 14px;
    height: 14px;
    color: var(--accent-primary);
}

.building-pc-amenity-badge.premium {
    background: var(--accent-glow);
    border-color: var(--accent-primary);
}

/* Outbuildings Grid */
.building-pc-outbuildings-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.building-pc-outbuilding-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
}

.building-pc-outbuilding-name {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-primary);
}

.building-pc-outbuilding-area {
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* Responsive */
@media (max-width: 991.98px) {
    .building-pc-quick-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .building-pc-room-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .building-pc-construction-grid {
        grid-template-columns: 1fr;
    }
    
    .building-pc-hvac-grid {
        grid-template-columns: 1fr;
    }
    
    .building-pc-parking-grid {
        grid-template-columns: 1fr;
    }
    
    .building-pc-parking-spaces {
        grid-column: span 1;
    }
    
    .building-pc-outdoor-grid {
        grid-template-columns: 1fr;
    }
    
    .building-pc-outbuildings-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575.98px) {
    .building-pc-quick-stat {
        flex-direction: column;
        text-align: center;
    }
    
    .building-pc-area-grid {
        grid-template-columns: 1fr;
    }
    
    .building-pc-basement-details {
        grid-template-columns: 1fr;
    }
}





























/* ================================================
   MLS LISTING DATA CARD STYLES
   Dark/Light Theme Support
   ================================================ */

/* ---- Header Badges ---- */
.mls-pc-header-badges {
    display: flex;
    gap: 0.5rem;
    margin-left: auto;
    flex-wrap: wrap;
}

.mls-pc-source-badge {
    font-size: 0.65rem;
    padding: 0.2rem 0.5rem;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    border: 1px solid var(--border-subtle);
}

.mls-pc-status-badge {
    font-size: 0.65rem;
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.mls-pc-status-badge.status-active {
    background: var(--success-bg);
    color: var(--success);
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.mls-pc-status-badge.status-pending {
    background: var(--warning-bg);
    color: var(--warning);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.mls-pc-status-badge.status-sold {
    background: var(--accent-glow);
    color: var(--accent-primary);
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.mls-pc-status-badge.status-off-market {
    background: var(--bg-tertiary);
    color: var(--text-tertiary);
    border: 1px solid var(--border-subtle);
}

.mls-pc-status-badge.status-other {
    background: var(--bg-tertiary);
    color: var(--text-tertiary);
    border: 1px solid var(--border-subtle);
}

/* ---- MLS Number Highlight ---- */
.mls-pc-number-highlight {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--accent-glow);
    border-radius: var(--radius-md);
    margin: 0.75rem 0;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.mls-pc-number-label {
    font-size: 0.7rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}

.mls-pc-number-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent-primary);
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Mono', monospace;
    letter-spacing: 0.025em;
}

.mls-copy-btn {
    margin-left: auto;
    background: none;
    border: none;
    padding: 0.35rem;
    cursor: pointer;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.mls-copy-btn:hover {
    background: var(--accent-glow);
    color: var(--accent-primary);
}

/* ---- Property Type Container ---- */
.mls-pc-type-container {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}

.mls-pc-type-badge,
.mls-pc-subtype-badge {
    font-size: 0.7rem;
    padding: 0.25rem 0.6rem;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    font-weight: 500;
    border: 1px solid var(--border-subtle);
}

.mls-pc-type-badge {
    background: var(--accent-glow);
    color: var(--accent-primary);
    border-color: rgba(99, 102, 241, 0.2);
}

/* ---- Quick Stats ---- */
.mls-pc-quick-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.mls-pc-quick-stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    transition: border-color var(--transition-fast);
}

.mls-pc-quick-stat:hover {
    border-color: var(--border-medium);
}

.mls-pc-quick-stat-icon {
    color: var(--text-tertiary);
}

.mls-pc-quick-stat-icon svg {
    width: 18px;
    height: 18px;
}

.mls-pc-quick-stat-content {
    display: flex;
    flex-direction: column;
}

.mls-pc-quick-stat-value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.mls-pc-quick-stat-label {
    font-size: 0.65rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* ---- Section Styles ---- */
.mls-pc-section {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-subtle);
}

.mls-pc-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.mls-pc-section-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ---- Pricing Section ---- */
.mls-pc-price-cards {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mls-pc-price-card {
    padding: 0.75rem;
    border-radius: var(--radius-md);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-subtle);
}

.mls-pc-price-card.primary {
    background: var(--success-bg);
    border-color: rgba(34, 197, 94, 0.2);
}

.mls-pc-price-card-label {
    font-size: 0.65rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 0.25rem;
}

.mls-pc-price-card-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--success);
    line-height: 1.2;
}

.mls-pc-price-card-value.sold {
    color: var(--accent-primary);
}

.mls-pc-price-card-sub,
.mls-pc-price-card-date {
    font-size: 0.7rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

.mls-pc-price-card-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.mls-pc-price-card.small .mls-pc-price-card-value {
    font-size: 1rem;
    color: var(--text-primary);
}

/* ---- Days on Market ---- */
.mls-pc-dom-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 0.75rem;
    padding: 0.6rem 0.75rem;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
}

.mls-pc-dom-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
}

.mls-pc-dom-item svg {
    color: var(--text-tertiary);
}

.mls-pc-dom-label {
    color: var(--text-secondary);
}

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

/* ---- Dates Grid ---- */
.mls-pc-dates-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 0.75rem;
}

.mls-pc-date-item {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.mls-pc-date-label {
    font-size: 0.65rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.mls-pc-date-value {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-primary);
}

/* ---- Property Details Grid ---- */
.mls-pc-details-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.mls-pc-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-subtle);
}

.mls-pc-detail-row:last-child {
    border-bottom: none;
}

.mls-pc-detail-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.mls-pc-detail-value {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-primary);
    text-align: right;
}

/* ---- Features Section ---- */
.mls-pc-features-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.mls-pc-feature-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.mls-pc-feature-label {
    font-size: 0.7rem;
    color: var(--text-tertiary);
    font-weight: 500;
}

.mls-pc-feature-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.mls-pc-feature-badge {
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
    background: var(--bg-elevated);
    color: var(--text-primary);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-subtle);
    transition: all var(--transition-fast);
}

.mls-pc-feature-badge:hover {
    border-color: var(--border-medium);
    background: var(--bg-tertiary);
}

/* ---- Pool Section ---- */
.mls-pc-pool-section {
    margin-top: 0.75rem;
}

.mls-pc-pool-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: var(--accent-glow);
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: var(--radius-md);
    color: var(--accent-primary);
    font-weight: 600;
    font-size: 0.85rem;
}

.mls-pc-pool-features {
    font-weight: 400;
    color: var(--text-secondary);
    font-size: 0.8rem;
}

/* ---- HOA Section ---- */
.mls-pc-hoa-card {
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    padding: 0.75rem;
    border: 1px solid var(--border-subtle);
}

.mls-pc-hoa-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.35rem 0;
}

.mls-pc-hoa-row:not(:last-child) {
    border-bottom: 1px solid var(--border-subtle);
}

.mls-pc-hoa-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.mls-pc-hoa-value {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-primary);
}

/* ---- Schools Section ---- */
.mls-pc-schools-grid {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mls-pc-school-card {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.6rem;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    transition: border-color var(--transition-fast);
}

.mls-pc-school-card:hover {
    border-color: var(--border-medium);
}

.mls-pc-school-icon {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mls-pc-school-icon.elementary {
    background: var(--success-bg);
    color: var(--success);
}

.mls-pc-school-icon.middle {
    background: var(--warning-bg);
    color: var(--warning);
}

.mls-pc-school-icon.high {
    background: var(--accent-glow);
    color: var(--accent-primary);
}

.mls-pc-school-content {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
}

.mls-pc-school-level {
    font-size: 0.65rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.mls-pc-school-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
}

.mls-pc-school-district {
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* ---- Agent Section ---- */
.mls-pc-agents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
}

.mls-pc-agent-card {
    padding: 0.75rem;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    transition: border-color var(--transition-fast);
}

.mls-pc-agent-card:hover {
    border-color: var(--border-medium);
}

.mls-pc-agent-header {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.7rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 0.5rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid var(--border-subtle);
}

.mls-pc-agent-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.35rem;
}

.mls-pc-agent-contact {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 0.2rem;
}

.mls-pc-agent-contact svg {
    color: var(--text-muted);
    flex-shrink: 0;
}

.mls-pc-agent-office {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 0.35rem;
    padding-top: 0.35rem;
    border-top: 1px dashed var(--border-subtle);
}

/* ---- Remarks Section ---- */
.mls-pc-remarks {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
    background: var(--bg-tertiary);
    padding: 0.75rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
}

/* ---- Legal Section ---- */
.mls-pc-legal-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.mls-pc-legal-row {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-subtle);
}

.mls-pc-legal-row:last-child {
    border-bottom: none;
}

.mls-pc-legal-label {
    font-size: 0.65rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.mls-pc-legal-value {
    font-size: 0.8rem;
    color: var(--text-primary);
    word-break: break-word;
}

/* ---- Footer ---- */
.mls-pc-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-subtle);
}

.mls-pc-footer-item {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.7rem;
}

.mls-pc-footer-label {
    color: var(--text-muted);
}

.mls-pc-footer-value {
    color: var(--text-secondary);
    font-weight: 500;
}

/* ---- Responsive Adjustments ---- */
@media (max-width: 480px) {
    .mls-pc-quick-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .mls-pc-price-card-row {
        grid-template-columns: 1fr;
    }
    
    .mls-pc-agents-grid {
        grid-template-columns: 1fr;
    }
    
    .mls-pc-number-highlight {
        flex-wrap: wrap;
    }
    
    .mls-pc-number-value {
        font-size: 0.95rem;
    }
}

/* property-specs-wrapper / split-container-wrapper rules removed —
   the new modern REAPI view (.reapi-mpv) injected from
   property_explorer.js owns the property details layout now. */











/* ================================================
   MLS LISTING DATA CARD - CONSOLIDATED STYLES
   ================================================ */

/* ---- Header ---- */
.mls-pc-header-badges {
    display: flex;
    gap: 0.5rem;
    margin-left: auto;
}

.mls-pc-status-badge {
    font-size: 0.6rem;
    padding: 0.15rem 0.4rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.mls-pc-status-badge.status-active { background: var(--success-bg); color: var(--success); }
.mls-pc-status-badge.status-pending { background: var(--warning-bg); color: var(--warning); }
.mls-pc-status-badge.status-sold { background: var(--accent-glow); color: var(--accent-primary); }
.mls-pc-status-badge.status-off-market,
.mls-pc-status-badge.status-other { background: var(--bg-tertiary); color: var(--text-tertiary); }

.mls-pc-record-count {
    display: flex;
    align-items: center;
    gap: 0.15rem;
    font-size: 0.7rem;
    color: var(--text-tertiary);
    margin-left: 0.5rem;
    padding: 0.2rem 0.5rem;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
}

.mls-count-divider { opacity: 0.5; }

/* ---- Navigation ---- */
.mls-pc-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem;
    margin: 0.5rem 0;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
}

.mls-pc-nav-btn {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.3rem 0.5rem;
    background: var(--success-bg);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    color: var(--success);
    font-size: 0.7rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.mls-pc-nav-btn:hover:not(:disabled) {
    /* background: var(--accent-glow); */
    /* border-color: var(--accent-primary); */
    border-color: var(--success);
    /* color: var(--accent-primary); */
}

.mls-pc-nav-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    background: var(--bg-elevated);
}

.mls-pc-nav-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.1rem;
}

.mls-pc-nav-status {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-primary);
}

.mls-pc-nav-date {
    font-size: 0.65rem;
    color: var(--text-tertiary);
}

/* ---- MLS Number Row ---- */
.mls-pc-id-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin: 0.5rem 0;
}

.mls-pc-number-box {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.6rem;
    background: var(--accent-glow);
    border-radius: var(--radius-md);
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.mls-pc-number-label {
    font-size: 0.6rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.mls-pc-number-value {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--accent-primary);
    font-family: 'SF Mono', monospace;
}

.mls-copy-btn {
    background: none;
    border: none;
    padding: 0.25rem;
    cursor: pointer;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    display: flex;
}

.mls-copy-btn:hover {
    background: rgba(99, 102, 241, 0.15);
    color: var(--accent-primary);
}

.mls-pc-type-badges {
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.mls-pc-type-badge,
.mls-pc-subtype-badge {
    font-size: 0.6rem;
    padding: 0.2rem 0.45rem;
    border-radius: var(--radius-sm);
    font-weight: 500;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border: 1px solid var(--border-subtle);
}

.mls-pc-type-badge {
    background: var(--accent-glow);
    color: var(--accent-primary);
    border-color: transparent;
}

/* ---- Quick Stats Row ---- */
.mls-pc-stats-row {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.35rem;
    margin: 0.5rem 0;
}

.mls-pc-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.4rem 0.25rem;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-subtle);
}

.mls-pc-stat-val {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.mls-pc-stat-lbl {
    font-size: 0.55rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

/* ---- Pricing Grid ---- */
.mls-pc-pricing-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 0.5rem;
    margin: 0.5rem 0;
}

.mls-pc-price-main {
    padding: 0.6rem;
    background: var(--success-bg);
    border-radius: var(--radius-md);
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.mls-pc-price-main.sold {
    background: var(--accent-glow);
    border-color: rgba(99, 102, 241, 0.2);
}

.mls-pc-price-main.sold .mls-pc-price-value {
    color: var(--accent-primary);
}

.mls-pc-price-primary {
    display: flex;
    flex-direction: column;
}

.mls-pc-price-label {
    font-size: 0.6rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.mls-pc-price-value {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--success);
    line-height: 1.2;
}

.mls-pc-price-meta {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.25rem;
    font-size: 0.65rem;
    color: var(--text-tertiary);
}

.mls-pc-price-secondary {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.mls-pc-price-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.3rem 0.5rem;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-subtle);
}

.mls-pc-price-item-lbl {
    font-size: 0.6rem;
    color: var(--text-tertiary);
}

.mls-pc-price-item-val {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* ---- Dates Row ---- */
.mls-pc-dates-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 0.5rem 0;
    border-top: 1px solid var(--border-subtle);
    margin-top: 0.5rem;
}

.mls-pc-date {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.mls-pc-date-lbl {
    font-size: 0.55rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.mls-pc-date-val {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-primary);
}

/* ---- Details Compact Grid ---- */
.mls-pc-details-compact {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.25rem 0.5rem;
    padding: 0.5rem 0;
    border-top: 1px solid var(--border-subtle);
}

.mls-pc-detail {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.3rem 0;
}

.mls-pc-d-lbl {
    font-size: 0.7rem;
    color: var(--text-secondary);
}

.mls-pc-d-val {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--text-primary);
    text-align: right;
}

/* ---- Section Title ---- */
.mls-pc-section-title {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.4rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border-subtle);
}

/* ---- Features Section ---- */
.mls-pc-features {
    margin-top: 0.5rem;
}

.mls-pc-features-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.mls-pc-feat-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem;
}

.mls-pc-feat-lbl {
    font-size: 0.6rem;
    color: var(--text-tertiary);
    font-weight: 500;
    min-width: 60px;
}

.mls-pc-feat-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.2rem;
}

.mls-pc-badge {
    font-size: 0.6rem;
    padding: 0.15rem 0.35rem;
    background: var(--bg-elevated);
    color: var(--text-primary);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-subtle);
}

/* ---- Pool & HOA Row ---- */
.mls-pc-extras-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border-subtle);
}

.mls-pc-pool-badge,
.mls-pc-hoa-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.6rem;
    border-radius: var(--radius-md);
    font-size: 0.7rem;
    font-weight: 500;
}

.mls-pc-pool-badge {
    background: var(--accent-glow);
    color: var(--accent-primary);
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.mls-pc-pool-feat {
    font-weight: 400;
    color: var(--text-secondary);
    font-size: 0.65rem;
}

.mls-pc-hoa-badge {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border: 1px solid var(--border-subtle);
}

.mls-pc-hoa-fee {
    font-weight: 600;
    color: var(--text-primary);
}

/* ---- Schools Compact ---- */
.mls-pc-schools {
    margin-top: 0.5rem;
}

.mls-pc-schools-grid {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.mls-pc-school {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-subtle);
}

.mls-pc-school-lvl {
    width: 22px;
    height: 22px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 700;
    flex-shrink: 0;
}

.mls-pc-school-lvl.elem { background: var(--success-bg); color: var(--success); }
.mls-pc-school-lvl.mid { background: var(--warning-bg); color: var(--warning); }
.mls-pc-school-lvl.high { background: var(--accent-glow); color: var(--accent-primary); }

.mls-pc-school-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.mls-pc-school-name {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mls-pc-school-dist {
    font-size: 0.6rem;
    color: var(--text-muted);
}

/* ---- Agents Compact ---- */
.mls-pc-agents {
    margin-top: 0.5rem;
}

.mls-pc-agents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.4rem;
}

.mls-pc-agent {
    padding: 0.5rem;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-subtle);
}

.mls-pc-agent-type {
    font-size: 0.55rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 0.2rem;
}

.mls-pc-agent-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.mls-pc-agent-contact {
    font-size: 0.65rem;
    color: var(--text-secondary);
    margin-bottom: 0.1rem;
}

.mls-pc-agent-office {
    font-size: 0.6rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
    padding-top: 0.2rem;
    border-top: 1px dashed var(--border-subtle);
}

/* ---- Remarks ---- */
.mls-pc-remarks-section {
    margin-top: 0.5rem;
}

.mls-pc-remarks {
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.5;
    padding: 0.5rem;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-subtle);
    max-height: 100px;
    overflow-y: auto;
}

/* ---- Legal ---- */
.mls-pc-legal {
    margin-top: 0.5rem;
}

.mls-pc-legal-grid {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.mls-pc-legal-item {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    padding: 0.3rem 0;
    border-bottom: 1px solid var(--border-subtle);
}

.mls-pc-legal-item:last-child {
    border-bottom: none;
}

.mls-pc-legal-lbl {
    font-size: 0.55rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.mls-pc-legal-val {
    font-size: 0.7rem;
    color: var(--text-primary);
    word-break: break-word;
}

/* ---- Timeline ---- */
.mls-pc-timeline {
    display: flex;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    border-top: 1px solid var(--border-subtle);
}

.mls-timeline-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid var(--border-medium);
    background: var(--bg-tertiary);
    cursor: pointer;
    transition: all var(--transition-fast);
    padding: 0;
}

.mls-timeline-dot:hover {
    transform: scale(1.2);
}

.mls-timeline-dot.active {
    border-color: var(--accent-primary);
    background: var(--accent-primary);
}

.mls-timeline-dot.status-active { border-color: var(--success); }
.mls-timeline-dot.status-active.active { background: var(--success); }
.mls-timeline-dot.status-pending { border-color: var(--warning); }
.mls-timeline-dot.status-pending.active { background: var(--warning); }
.mls-timeline-dot.status-sold { border-color: var(--accent-primary); }
.mls-timeline-dot.status-sold.active { background: var(--accent-primary); }

/* ---- Footer ---- */
.mls-pc-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border-subtle);
}

.mls-pc-footer-item {
    font-size: 0.6rem;
}

.mls-pc-footer-lbl {
    color: var(--text-muted);
}

.mls-pc-footer-item span:last-child {
    color: var(--text-secondary);
    font-weight: 500;
}

/* ---- Responsive ---- */
@media (max-width: 480px) {
    .mls-pc-stats-row {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .mls-pc-pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .mls-pc-details-compact {
        grid-template-columns: 1fr;
    }
    
    .mls-pc-id-row {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* (Legacy property-specs-wrapper / split-container-wrapper masonry rules
    removed — the new .reapi-mpv grid in property_explorer.js owns this. */




@media (max-width: 768px) {
    .side_by_side_features{
        display: flex;
        flex-direction: column;
        width: 100%;
        .mls-pc-features{
            width: 100%;
        }
        .mls-pc-schools{
            width: 100%;
        }
    }
}
.side_by_side_features{
    display: flex;
    width: 100%;
    .mls-pc-features{
        width: 50%;
    }
    .mls-pc-schools{
        width: 50%;
    }
}



























@media only screen and (min-width: 0px) {
    #timetable-1773{
        tr{
            background: none !important;
            border: none !important;
        }
        th{
            background: none !important;
            border: none !important;
        }
        td{
            background: none !important;
            border: none !important;
        }
        .cs-table{
            min-width: 0px !important;
            width: 100vw;
        }
        
    }
    .timetable-1774{
        table{
            min-width: 0px !important;
            width: 100vw;
        }
        tr{
            background: none !important;
            border: none !important;
        }
        th{
            background: none !important;
            border: none !important;
        }
        td{
            background: none !important;
            border: none !important;
        }
    }
    #id01{
        z-index: 998;
        position: relative;
        margin-top: 6rem;
    }
    .nav-links{
        z-index: 999;
    }

}

@media only screen and (min-width: 1349px) {
#id01{
    z-index: 998;
    position: relative;
    margin-top: 0;
}
}
@media only screen and (max-width: 700px) {
    #singleOptions{
        position: absolute;
    }
    #userAccount{
        display: none;
    }
    #filter-bar-inline{
        margin-top: 0rem;
    }
    #unique_location_card{
        width: 100vw !important;
    }
    #mainContent{
        padding: 10px;
    }
    #property-top-bar{
        flex-direction: column-reverse;
        #prop_card_logo{
            display: none !important;
        }
        #lblAddressEntry{
            text-align: center;
        }
    }
    #mainContent{
    margin-top: 6rem;
    }
    #taxInfoNav{
            margin: 0;
            width: 100vw;
        }
    #assessmentTable{
        min-width: 0px !important;
        width: 100vw;
    }
}
#assessmentTable{
        min-width: 0px !important;
    }

.mobile-header{
    overflow: hidden;
    position: fixed;
    width: 100%;
    z-index: 999999;
    padding: 1rem 0;
}


.logo_svg{
    width: 35px;
    height: 35px;
}

#closeModal{
    color: var(--error);
}

.chevron_black{
    width: 45px;
    height: 45px;
    stroke: var(--text-primary);
}

#closeFilterWidget{
    right: 2%;
    height: 25px;
    font-size: 20pt;
}





























/* ============================================================
   BUYERS REPORT — buyers-report.css
   Uses app-level CSS variables (--bg-*, --text-*, --border-*, etc.)
   ============================================================ */

/* ---- Card Layout ---- */
.br-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition-normal);
}
.br-card:hover {
  border-color: var(--border-medium);
}
.br-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 8px;
}
.br-card-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.01em;
}

/* ---- Top Bar ---- */
.br-top-bar {
  margin-bottom: 20px;
}
.br-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

/* ---- Badge ---- */
.br-badge {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 99px;
  background: var(--accent-glow);
  color: var(--accent-primary);
  white-space: nowrap;
}
.br-badge--muted {
  background: var(--bg-tertiary);
  color: var(--text-tertiary);
}
.br-badge--success {
  background: var(--success-bg);
  color: var(--success);
}

/* ---- Subject Details Grid ---- */
.br-subject-details {
  animation: brFadeIn 0.25s ease;
}
.br-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px 20px;
}
.br-detail-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.br-detail-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.br-detail-value {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  word-break: break-word;
}

/* ---- Filters ---- */
.br-filters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px 24px;
  margin-bottom: 20px;
}
.br-filter-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.br-filter-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}
.br-range-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.br-range-dash {
  color: var(--text-muted);
  font-size: 14px;
  flex-shrink: 0;
}
.br-input-wrap {
  position: relative;
  flex: 1;
  min-width: 0;
}
.br-input-prefix {
  position: absolute;
  top: 50%;
  left: 10px;
  transform: translateY(-50%);
  font-size: 11px;
  color: var(--text-muted);
  pointer-events: none;
}
.br-input {
  width: 100%;
  padding: 8px 10px 8px 38px;
  font-size: 13px;
  font-family: inherit;
  color: var(--text-primary);
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  box-sizing: border-box;
  -moz-appearance: textfield;
}
.br-input::-webkit-inner-spin-button,
.br-input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.br-input:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.br-select {
  width: 100%;
  padding: 8px 10px;
  font-size: 13px;
  font-family: inherit;
  color: var(--text-primary);
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  outline: none;
  cursor: pointer;
  transition: border-color var(--transition-fast);
}
.br-select:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

/* ---- Buttons ---- */
.br-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.br-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 22px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  color: #fff;
  background: var(--accent-primary);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
  text-decoration: none;
  white-space: nowrap;
}
.br-btn-primary:hover:not(:disabled) {
  background: var(--accent-hover);
  box-shadow: 0 0 0 4px var(--accent-glow);
}
.br-btn-primary:active:not(:disabled) {
  transform: scale(0.97);
}
.br-btn-primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.br-btn-icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}
.br-btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 22px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  color: var(--text-primary);
  background: transparent;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background var(--transition-fast), border-color var(--transition-fast);
  text-decoration: none;
  white-space: nowrap;
}
.br-btn-outline:hover {
  background: var(--bg-tertiary);
  border-color: var(--accent-primary);
}
.br-btn-ghost {
  background: none;
  border: none;
  font-size: 12px;
  font-family: inherit;
  color: var(--text-tertiary);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast), background var(--transition-fast);
}
.br-btn-ghost:hover {
  color: var(--accent-primary);
  background: var(--accent-glow);
}

/* ---- Results Table ---- */
.br-table-container {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.br-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  min-width: 560px;
}
.br-table thead {
  position: sticky;
  top: 0;
  z-index: 2;
}
.br-table th {
  padding: 10px 14px;
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--bg-tertiary);
  border-bottom: 1px solid var(--border-subtle);
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  transition: color var(--transition-fast);
}
.br-table th:first-child {
  border-radius: var(--radius-md) 0 0 0;
}
.br-table th:last-child {
  border-radius: 0 var(--radius-md) 0 0;
}
.br-table th:hover {
  color: var(--text-primary);
}
.br-table th .br-sort-arrow {
  display: inline-block;
  margin-left: 4px;
  font-size: 10px;
  opacity: 0.4;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}
.br-table th[data-sort="asc"] .br-sort-arrow {
  opacity: 1;
  transform: rotate(0deg);
}
.br-table th[data-sort="desc"] .br-sort-arrow {
  opacity: 1;
  transform: rotate(180deg);
}
.br-table td {
  padding: 10px 14px;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: top;
}
.br-table tbody tr.br-row {
  cursor: pointer;
  transition: background var(--transition-fast);
}
.br-table tbody tr.br-row:hover {
  background: var(--accent-glow);
}
.br-table tbody tr.br-row--expanded {
  background: var(--bg-tertiary);
}
.br-table tbody tr.br-row td:first-child {
  position: relative;
  padding-left: 28px;
}
.br-row-chevron {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%) rotate(0deg);
  width: 12px;
  height: 12px;
  color: var(--text-muted);
  transition: transform 0.2s ease, color 0.15s ease;
  flex-shrink: 0;
}
.br-row--expanded .br-row-chevron {
  transform: translateY(-50%) rotate(90deg);
  color: var(--accent-primary);
}

/* ---- Detail / Expanded Row ---- */
.br-detail-row td {
  padding: 0 !important;
  border-bottom: 1px solid var(--border-subtle);
}
.br-detail-inner {
  padding: 12px 14px 16px 28px;
  animation: brSlideDown 0.2s ease;
}
.br-detail-inner .br-detail-heading {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}
.br-sub-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.br-sub-table th {
  padding: 6px 10px;
  text-align: left;
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border-subtle);
  cursor: default;
}
.br-sub-table td {
  padding: 7px 10px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-subtle);
}
.br-sub-table tbody tr:last-child td {
  border-bottom: none;
}
.br-sub-table a {
  color: var(--accent-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}
.br-sub-table a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

/* ---- Empty / No results ---- */
.br-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-tertiary);
  font-size: 14px;
}

/* ---- Pricing Upsell ---- */
.br-pricing-card {
  border-color: var(--border-accent);
}
.br-pricing-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px 10px;
  gap: 10px;
}
.br-pricing-icon {
  color: var(--accent-primary);
  margin-bottom: 4px;
}
.br-pricing-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}
.br-pricing-text {
  font-size: 14px;
  color: var(--text-secondary);
  max-width: 400px;
  margin: 0;
  line-height: 1.5;
}
.br-pricing-btns {
  display: flex;
  gap: 10px;
  margin-top: 6px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ---- Error ---- */
.br-error-card {
  border-color: var(--error);
}
.br-error-text {
  color: var(--error);
  font-size: 13px;
  margin: 0;
}

/* ---- Locked / Teaser Table ---- */
.br-locked-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
}
.br-table--locked tbody tr.br-row--blurred td {
  color: var(--text-muted);
  filter: blur(4px);
  user-select: none;
  pointer-events: none;
}
.br-locked-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--bg-secondary) 80%, transparent);
  backdrop-filter: blur(2px);
  z-index: 5;
}
.br-locked-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding: 28px 24px;
  max-width: 380px;
}
.br-locked-cta svg {
  color: var(--accent-primary);
  margin-bottom: 4px;
}
.br-locked-heading {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}
.br-locked-sub {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.5;
}
.br-locked-btns {
  display: flex;
  gap: 10px;
  margin-top: 4px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ---- Loading Spinner on button ---- */
.br-btn-primary.is-loading {
  pointer-events: none;
  position: relative;
  color: transparent;
}
.br-btn-primary.is-loading::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  top: 50%;
  left: 50%;
  margin: -8px 0 0 -8px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: brSpin 0.6s linear infinite;
}

/* ---- Animations ---- */
@keyframes brFadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes brSlideDown {
  from { opacity: 0; max-height: 0; }
  to   { opacity: 1; max-height: 600px; }
}
@keyframes brSpin {
  to { transform: rotate(360deg); }
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .br-card {
    padding: 14px;
    border-radius: var(--radius-md);
  }
  .br-detail-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px 14px;
  }
  .br-filters-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .br-table {
    font-size: 12px;
    min-width: 480px;
  }
  .br-table th,
  .br-table td {
    padding: 8px 10px;
  }
  .br-detail-inner {
    padding: 10px 10px 14px 14px;
  }
  .br-title {
    font-size: 17px;
  }
}

@media (max-width: 480px) {
  .br-detail-grid {
    grid-template-columns: 1fr;
  }
  .br-range-row {
    flex-direction: column;
    gap: 6px;
  }
  .br-range-dash {
    display: none;
  }
  .br-card-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .br-pricing-btns {
    flex-direction: column;
    width: 100%;
  }
  .br-pricing-btns a {
    width: 100%;
    justify-content: center;
  }
  .br-locked-cta {
    padding: 20px 16px;
  }
  .br-locked-btns {
    flex-direction: column;
    width: 100%;
  }
  .br-locked-btns a {
    width: 100%;
    justify-content: center;
  }
}

#view-buyer{
    overflow-y: auto;
}



/* ============================================================
   FAVORITES LIST STYLES
   Expects your theme CSS variables to be defined (:root / [data-theme])
   ============================================================ */

/* List wrapper */
.favorites-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Empty state */
.favorites-list .empty-placeholder {
    text-align: center;
    padding: 3rem 1.5rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Loading spinner (shown while fetching) */
.favorites-list .loading-placeholder {
    text-align: center;
    padding: 3rem 1.5rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}
.favorites-list .loading-placeholder::after {
    content: '';
    display: block;
    width: 24px;
    height: 24px;
    margin: 0.75rem auto 0;
    border: 2px solid var(--border-medium);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: fav-spin 0.6s linear infinite;
}
@keyframes fav-spin {
    to { transform: rotate(360deg); }
}

/* Single favorite row */
.favorite-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: inherit;
    transition: background var(--transition-fast),
                transform var(--transition-fast),
                box-shadow var(--transition-fast);
}
.favorite-item:hover {
    background: var(--bg-elevated);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

/* Thumbnail */
.favorite-image {
    flex-shrink: 0;
    width: 80px;
    height: 56px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--bg-elevated);
}
.favorite-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Text block */
.favorite-details {
    flex: 1;
    min-width: 0;          /* allow text truncation */
}
.favorite-details h4 {
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 0.15rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.favorite-details p {
    color: var(--text-tertiary);
    font-size: 0.82rem;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Error state */
.favorites-list .error-placeholder {
    text-align: center;
    padding: 2rem 1.5rem;
    color: var(--error);
    font-size: 0.9rem;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .favorite-image {
        display: none;
    }
}










/* ═══════════════════════════════════════════════════════════════
   Comp Finder — Styles (themed via app CSS variables)
   ═══════════════════════════════════════════════════════════════ */


/* ── Results count banner (sticky top of listing-view) ── */

.comp-results-banner {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--bg-tertiary);
  border-bottom: 1px solid var(--border-subtle);
  font-family: 'Montserrat', sans-serif;
}

.comp-results-banner__count {
  font-weight: 700;
  font-size: 13px;
  color: var(--text-primary);
}

.comp-results-banner__radius {
  font-size: 11px;
  color: var(--text-tertiary);
}


/* ── Highlighted comp card (when clicking a map pin) ── */

.listing-card.comp-highlight {
  outline: 2px solid var(--accent-primary);
  box-shadow: 0 0 12px var(--accent-glow);
  transition: outline var(--transition-fast), box-shadow var(--transition-fast);
}


/* ── Subject card inside comper modal ── */

.comp-subject-card {
  display: grid;
  gap: 6px;
  width: 100%;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  color: var(--text-primary);
}

.comp-subject-card__title {
  font-weight: 800;
  font-size: 15px;
  color: var(--accent-primary);
  border-bottom: 2px solid var(--accent-primary);
  padding-bottom: 6px;
}

.comp-subject-card__sub {
  color: var(--text-secondary);
  font-size: 12px;
}

.comp-subject-card__id {
  color: var(--text-tertiary);
  font-size: 11px;
}

.comp-subject-card__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 16px;
  margin-top: 4px;
}

.comp-subject-card__grid > div {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.comp-subject-card__label {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.comp-subject-card__value {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
}


/* ── Comper modal overrides (use app variables) ── */

#comper_subject_card {
  border-left: 3px solid var(--accent-primary);
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  padding: 12px;
}

.cpd-comper__dialog {
  background: var(--bg-secondary) !important;
  border: 1px solid var(--border-subtle) !important;
  box-shadow: var(--shadow-lg) !important;
}

.cpd-comper__header {
  background: var(--bg-tertiary) !important;
  border-bottom: 1px solid var(--border-subtle) !important;
}

.cpd-comper__header h2 {
  color: var(--text-primary) !important;
}

.cpd-comper__close {
  color: var(--text-secondary) !important;
}

.cpd-comper__close:hover {
  background: var(--accent-glow) !important;
}

.cpd-comper__footer {
  background: var(--bg-tertiary) !important;
  border-top: 1px solid var(--border-subtle) !important;
}

.cpd-comper__body {
  background: var(--bg-secondary) !important;
}

.cpd-comper__backdrop {
  background: rgba(0, 0, 0, 0.6) !important;
  backdrop-filter: blur(4px) !important;
}

.cpd-section__title {
  color: var(--text-primary) !important;
}


/* ── Form fields ── */

.cpd-fieldset {
  border: 1px solid var(--border-subtle) !important;
  background: var(--bg-tertiary) !important;
  border-radius: var(--radius-lg) !important;
}

.cpd-legend {
  color: var(--text-primary) !important;
}

.cpd-field span {
  color: var(--text-tertiary) !important;
}

.cpd-field input {
  background: var(--bg-input) !important;
  border: 1.5px solid var(--border-medium) !important;
  color: var(--text-primary) !important;
  border-radius: var(--radius-md) !important;
}

.cpd-field input:focus {
  border-color: var(--accent-primary) !important;
  box-shadow: 0 0 0 3px var(--accent-glow) !important;
}

.cpd-field input::placeholder {
  color: var(--text-muted);
}


/* ── CTA button ── */

.cpd-btn--primary {
  background: var(--accent-primary) !important;
  color: #fff !important;
  border: none !important;
  border-radius: var(--radius-md) !important;
  transition: background var(--transition-fast);
}

.cpd-btn--primary:hover {
  background: var(--accent-hover) !important;
  filter: none !important;
}


/* ── Map control buttons (stop / edit) ── */

.outlined_button,
.outlined_button_edit {
  background: var(--bg-secondary) !important;
  color: var(--text-primary) !important;
  border: 1.5px solid var(--border-medium) !important;
  border-radius: var(--radius-md) !important;
  box-shadow: var(--shadow-sm) !important;
  font-family: 'Montserrat', sans-serif !important;
  font-weight: 600 !important;
  font-size: 12px !important;
  transition: all var(--transition-fast) !important;
}

.outlined_button:hover {
  background: var(--error) !important;
  color: #fff !important;
  border-color: var(--error) !important;
}

.outlined_button_edit:hover {
  background: var(--accent-primary) !important;
  color: #fff !important;
  border-color: var(--accent-primary) !important;
}


/* ── Make the Distance field visible ── */

#comper_form .cpd-fieldset:has(#distance_comper) {
  display: grid !important;
}


/* ── Info window (comp popup on map) ── */

.comp-iw {
  font-family: 'Montserrat', sans-serif;
  padding: 8px;
  max-width: 240px;
}

.comp-iw__label {
  font-weight: 700;
  font-size: 12px;
  color: var(--accent-primary, #6366f1);
  margin-bottom: 2px;
}

.comp-iw__address {
  font-weight: 700;
  font-size: 14px;
  color: var(--text-primary, #0f172a);
}

.comp-iw__sub {
  color: var(--text-secondary, #475569);
  font-size: 12px;
  margin-bottom: 6px;
}

.comp-iw__stats {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 12px;
  color: var(--text-primary, #0f172a);
}

.comp-iw__stats b {
  color: var(--text-secondary, #475569);
}

.comp-iw__btn {
  margin-top: 8px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--border-medium, #cbd5e1);
  border-radius: var(--radius-md, 8px);
  background: var(--bg-secondary, #fff);
  color: var(--text-primary, #0f172a);
  transition: all 120ms ease;
}

.comp-iw__btn:hover {
  background: var(--accent-primary, #6366f1);
  color: #fff;
  border-color: var(--accent-primary, #6366f1);
}

/* ================================================
   LEAFLET POPUP THEMING
   leaflet.css is loaded before this file and ships hard-coded
   `background: white` on .leaflet-popup-content-wrapper and
   .leaflet-popup-tip, so we override it here where it'll actually win.
   ================================================ */
.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
  background-color: var(--bg-secondary);
  background: var(--bg-secondary);
  color: var(--text-primary);
}
.leaflet-popup-content-wrapper {
  border: 1px solid var(--border-subtle);
}
.leaflet-popup-content {
  color: var(--text-primary);
}
.leaflet-popup-content a {
  color: var(--accent-primary);
}
.leaflet-container a.leaflet-popup-close-button {
  color: var(--text-secondary);
}
.leaflet-container a.leaflet-popup-close-button:hover {
  color: var(--text-primary);
}

/* ================================================
   GLOBAL READABILITY + NAV THEMING
   (theme-toggle.css loads last, so these win over
   root.css's hardcoded light-mode defaults)
   ================================================ */

/* root.css hardcodes p/li to #353535 which is unreadable on dark bg */
p, li {
  color: var(--text-secondary);
}

/* Guard: legacy bare `.active` rules must not recolor the visible
   filing-form section (labels etc. inherit from the section) */
.form-section.active {
  color: inherit;
}

/* CodeStitch nav: dark-logo SVG and hamburger lines must invert in dark mode */
#cs-navigation .cs-logo img {
  filter: var(--icon-filter);
}
#cs-navigation .cs-line {
  background-color: var(--text-primary);
}
#cs-navigation .cs-drop-icon {
  filter: var(--icon-filter);
}

/* Nav home/user icons (black SVGs) invert to white in dark mode */
#cs-navigation .cs-ul .cs-li-link img.avatar {
  filter: var(--icon-filter);
}

/* Compact icon-only theme toggle that lives inside the nav bar
   (mobile: next to the hamburger; desktop: in the header row) */
.nav-theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: 50%;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  margin: 0 0.5rem;
  cursor: pointer;
  color: var(--text-primary);
  flex: none;
  transition: border-color var(--transition-normal), background var(--transition-normal);
}
.nav-theme-toggle:hover {
  border-color: var(--accent-primary);
  background: var(--accent-glow);
}
.nav-theme-toggle svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: currentColor;
  pointer-events: none;
}

/* ---- CodeStitch nav bar layout (mobile + desktop) ----
   The nav is a flex row where .cs-logo is order:1 and .cs-nav is order:2.
   Actions must sit between them, and the logo keeps the left edge. */
#cs-navigation .cs-logo {
  margin-right: auto;
}
/* The logo img is sized by height with width:auto, so on narrow screens its
   intrinsic width overflows the (centered) logo box. Keep it inside. */
#cs-navigation .cs-logo img {
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
}
#cs-navigation .nav-back-btn,
#cs-navigation .nav-theme-toggle {
  order: 1;
}

/* root.css styles every <button> with the brand gradient, which painted the
   mobile menu toggle as a solid gradient square (the template only cleared
   background-color, leaving the gradient image). */
#cs-navigation .cs-toggle {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  box-shadow: none !important;
}

/* Same cause: the first filing step has no "Previous", so its button is an
   empty spacer with an inline transparent background-color, which cannot
   clear root.css's gradient background-image. */
#intro-section .navigation-buttons .prev-btn {
  background: transparent !important;
  box-shadow: none !important;
}

/* Back-to-File-Online button that sits beside the nav theme toggle */
.nav-back-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: 50%;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  margin: 0 0.5rem;
  cursor: pointer;
  color: var(--text-primary);
  text-decoration: none;
  flex: none;
  transition: border-color var(--transition-normal), background var(--transition-normal);
}
.nav-back-btn:hover {
  border-color: var(--accent-primary);
  background: var(--accent-glow);
}
.nav-back-btn svg {
  width: 1.25rem;
  height: 1.25rem;
  pointer-events: none;
}

/* Mobile: tighten the action buttons so logo + actions + menu fit one row */
@media only screen and (max-width: 30rem) {
  #cs-navigation .cs-container {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    gap: 0;
  }
  #cs-navigation .cs-logo {
    max-width: 8.5rem;
  }
  #cs-navigation .nav-back-btn,
  #cs-navigation .nav-theme-toggle {
    width: 2.25rem;
    height: 2.25rem;
    margin: 0 0.25rem;
  }
  #cs-navigation .nav-back-btn svg,
  #cs-navigation .nav-theme-toggle svg {
    width: 1.05rem;
    height: 1.05rem;
  }
}

/* Cleveland-only availability notice on the 921 flow */
.county-notice {
  display: block;
  margin: 0.75rem auto;
  padding: 0.6rem 1rem;
  max-width: 40rem;
  text-align: center;
  font-weight: 600;
  color: var(--warning);
  background: var(--warning-bg);
  border: 1px solid var(--warning);
  border-radius: 8px;
}

/* Rejected-filing banner (form unlocked for corrections) */
.rejection-notice {
  display: block;
  margin: 0.75rem auto;
  padding: 0.6rem 1rem;
  max-width: 40rem;
  text-align: center;
  font-weight: 600;
  color: var(--error);
  background: color-mix(in srgb, var(--error) 12%, transparent);
  border: 1px solid var(--error);
  border-radius: 8px;
}