/**
 * EstateBooks dark theme — scoped to html[data-eb-theme="dark"] only.
 * Does not modify page IDs/classes; overrides via attribute selector.
 */

html[data-eb-theme="dark"] {
  color-scheme: dark;
  /* Material / GitHub-style dark palette (not pure black) */
  --eb-bg: #121212;
  --eb-bg-elevated: #1e1e1e;
  --eb-bg-surface: #2d2d2d;
  --eb-bg-hover: #383838;
  --eb-bg-gray: #827d7d;
  --eb-text: #e8eaed;
  --eb-text-muted: #9aa0a6;
  --eb-border: #3c4043;
  --eb-input-bg: #303134;
  --eb-placeholder: #9aa0a6;
  --eb-link: #8ab4f8;
}

/* ── Base ── */
html[data-eb-theme="dark"] body {
  background-color: var(--eb-bg) !important;
  color: var(--eb-text) !important;
}

html[data-eb-theme="dark"] .text-dark,
html[data-eb-theme="dark"] .text-body,
html[data-eb-theme="dark"] .text-muted,
html[data-eb-theme="dark"] .text-gray-800,
html[data-eb-theme="dark"] .text-gray-900,
html[data-eb-theme="dark"] .text-secondary {
  color: var(--eb-text-muted) !important;
}

html[data-eb-theme="dark"] h1,
html[data-eb-theme="dark"] h2,
html[data-eb-theme="dark"] h3,
html[data-eb-theme="dark"] h4:not(.eb-jumbo-title),
html[data-eb-theme="dark"] h5,
html[data-eb-theme="dark"] h6,
html[data-eb-theme="dark"] p,
html[data-eb-theme="dark"] li,
html[data-eb-theme="dark"] label,
html[data-eb-theme="dark"] span:not(.badge):not(.status):not(.rental-avail-badge):not(.carousel-control-prev-icon):not(.carousel-control-next-icon):not(.listing-mode-switch-view):not(.listing-mode-switch-label):not(.eb-jumbo-title-text):not(.sale-unverified-badge-btn):not(.sale-verification-info-btn):not(.listing-boost-p-badge):not(.listing-crown-badge):not(.listing-new-badge):not(.listing-hot-deal-tag):not(.to-let-badge-stack):not(.eb-home-video-ad-badge):not(.picture-label-badge):not(.badge-land-title):not(.listing-land-title-badge),
html[data-eb-theme="dark"] td,
html[data-eb-theme="dark"] th,
html[data-eb-theme="dark"] dt,
html[data-eb-theme="dark"] dd,
html[data-eb-theme="dark"] .heading-section,
html[data-eb-theme="dark"] .card-title,
html[data-eb-theme="dark"] .card-text,
html[data-eb-theme="dark"] .modal-title,
html[data-eb-theme="dark"] .page-header h2,
html[data-eb-theme="dark"] .section-title {
  color: var(--eb-text) !important;
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
}

html[data-eb-theme="dark"] a:not(.btn):not(.badge):not([class*="status"]):not(.listing-mode-switch-nav):not(.btn-cta) {
  color: var(--eb-link) !important;
  background-color: transparent !important;
  background-image: none !important;
}

/* Keep Bootstrap carousel chevrons visible in dark mode */
html[data-eb-theme="dark"] .carousel-control-prev-icon,
html[data-eb-theme="dark"] .carousel-control-next-icon {
  background-color: transparent !important;
}

html[data-eb-theme="dark"] .carousel-control-prev-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23ffffff' viewBox='0 0 8 8'%3E%3Cpath d='M5.25 0l-4 4 4 4 1.5-1.5L4.25 4l2.5-2.5L5.25 0z'/%3E%3C/svg%3E") !important;
}

html[data-eb-theme="dark"] .carousel-control-next-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23ffffff' viewBox='0 0 8 8'%3E%3Cpath d='M2.75 0l-1.5 1.5L3.75 4l-2.5 2.5L2.75 8l4-4-4-4z'/%3E%3C/svg%3E") !important;
}

html[data-eb-theme="dark"] i,
html[data-eb-theme="dark"] em,
html[data-eb-theme="dark"] strong,
html[data-eb-theme="dark"] small,
html[data-eb-theme="dark"] b {
  background-color: transparent !important;
  background-image: none !important;
}

html[data-eb-theme="dark"] img,
html[data-eb-theme="dark"] picture,
html[data-eb-theme="dark"] video,
html[data-eb-theme="dark"] svg:not(.eb-theme-icon) {
  background-color: transparent !important;
  background-image: none !important;
  filter: none !important;
}

/* ── Public navbar ── */
html[data-eb-theme="dark"] #ftco-navbar,
html[data-eb-theme="dark"] .ftco-navbar-light,
html[data-eb-theme="dark"] .ftco_navbar {
  background: var(--eb-bg-elevated) !important;
  box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.5) !important;
}

html[data-eb-theme="dark"] .ftco-navbar-light .navbar-brand,
html[data-eb-theme="dark"] .ftco-navbar-light .navbar-nav > .nav-item > .nav-link,
html[data-eb-theme="dark"] .ftco-navbar-light .navbar-nav > .nav-item > .nav-link:hover {
  color: var(--eb-text) !important;
}

html[data-eb-theme="dark"] .ftco-navbar-light .navbar-toggler {
  color: var(--eb-text) !important;
}

html[data-eb-theme="dark"] .navbar-brand,
html[data-eb-theme="dark"] .navbar-brand img,
html[data-eb-theme="dark"] .ftco-navbar-light .navbar-brand,
html[data-eb-theme="dark"] .ftco-navbar-light .navbar-brand img {
  background-color: transparent !important;
  background-image: none !important;
  filter: none !important;
  box-shadow: none !important;
}

/* Listing mode switch: black text on yellow pill (light mode stays green in header.php) */
html[data-eb-theme="dark"] a.listing-mode-switch-nav,
html[data-eb-theme="dark"] a.listing-mode-switch-nav:hover,
html[data-eb-theme="dark"] a.listing-mode-switch-nav:focus,
html[data-eb-theme="dark"] a.listing-mode-switch-nav .listing-mode-switch-view,
html[data-eb-theme="dark"] a.listing-mode-switch-nav .listing-mode-switch-label {
  color: #000000 !important;
}

/* Keep the pill background yellow in dark mode (text-only should change) */
html[data-eb-theme="dark"] a.listing-mode-switch-nav {
  background: #fdf34e !important;
  background-color: #fdf34e !important;
}

html[data-eb-theme="dark"] a.listing-mode-switch-nav:hover,
html[data-eb-theme="dark"] a.listing-mode-switch-nav:focus {
  background: #e6a600 !important;
  background-color: #e6a600 !important;
}

/* Keep switch pill text black on dark mode */
html[data-eb-theme="dark"] .listing-mode-switch-nav,
html[data-eb-theme="dark"] .listing-mode-switch-nav:hover,
html[data-eb-theme="dark"] .listing-mode-switch-nav:focus,
html[data-eb-theme="dark"] .listing-mode-switch-nav .listing-mode-switch-view,
html[data-eb-theme="dark"] .listing-mode-switch-nav .listing-mode-switch-label,
html[data-eb-theme="dark"] .listing-mode-switch-nav span {
  color: #000000 !important;
}

/* ── Dashboard shell (SB Admin–style pages: profile, dashboard, etc.) ── */
html[data-eb-theme="dark"] body,
html[data-eb-theme="dark"] body#page-top {
  background-color: var(--eb-bg) !important;
  color: var(--eb-text) !important;
}

html[data-eb-theme="dark"] #wrapper,
html[data-eb-theme="dark"] #content-wrapper,
html[data-eb-theme="dark"] #content,
html[data-eb-theme="dark"] .page-content,
html[data-eb-theme="dark"] .container-fluid {
  background-color: var(--eb-bg) !important;
  color: var(--eb-text) !important;
}

/* Top bar: the outer <nav> already has the background; the inner container-fluid must not paint a second layer */
html[data-eb-theme="dark"] nav.topbar .container-fluid,
html[data-eb-theme="dark"] .topbar .container-fluid {
  background-color: transparent !important;
  background-image: none !important;
}

html[data-eb-theme="dark"] .text-gray-800,
html[data-eb-theme="dark"] .text-gray-900 {
  color: var(--eb-text) !important;
}

html[data-eb-theme="dark"] .border-left-primary,
html[data-eb-theme="dark"] .border-left-success,
html[data-eb-theme="dark"] .border-left-info,
html[data-eb-theme="dark"] .border-left-warning {
  border-left-color: var(--eb-border) !important;
}

html[data-eb-theme="dark"] .topbar .js-dropdown-menu,
html[data-eb-theme="dark"] .navbar .js-dropdown-menu {
  background-color: var(--eb-bg-elevated) !important;
  border-color: var(--eb-border) !important;
  color: var(--eb-text) !important;
}

html[data-eb-theme="dark"] .topbar .notification-header,
html[data-eb-theme="dark"] .topbar .notification-item,
html[data-eb-theme="dark"] .topbar .dropdown-item {
  background-color: transparent !important;
  color: var(--eb-text-muted) !important;
  border-color: var(--eb-border) !important;
}

html[data-eb-theme="dark"] .topbar #mobileHamburger {
  color: var(--eb-text-muted) !important;
}

html[data-eb-theme="dark"] .topbar #mobileHamburger:hover {
  color: var(--eb-link) !important;
}

html[data-eb-theme="dark"] .passport-upload-area:hover,
html[data-eb-theme="dark"] .drag-drop-area:hover {
  background-color: var(--eb-bg-hover) !important;
}

html[data-eb-theme="dark"] .nav-tabs .nav-link {
  color: var(--eb-text-muted) !important;
  border-color: var(--eb-border) !important;
}

html[data-eb-theme="dark"] .nav-tabs .nav-link.active {
  color: var(--eb-text) !important;
  background-color: var(--eb-bg-elevated) !important;
  border-color: var(--eb-border) var(--eb-border) var(--eb-bg-elevated) !important;
}

/* ── Dashboard profile & cards (profile.php, etc.) ── */
html[data-eb-theme="dark"] .card.bg-light,
html[data-eb-theme="dark"] .card.upgrade-option,
html[data-eb-theme="dark"] .upgrade-option,
html[data-eb-theme="dark"] .rental-card {
  background-color: var(--eb-bg-elevated) !important;
  border-color: var(--eb-border) !important;
  color: var(--eb-text) !important;
}

html[data-eb-theme="dark"] .card-header:not(.bg-primary):not(.bg-success):not(.bg-danger):not(.bg-warning):not(.bg-info):not(.text-white) {
  background-color: var(--eb-bg-surface) !important;
  color: var(--eb-text) !important;
  border-color: var(--eb-border) !important;
}

html[data-eb-theme="dark"] .card-header:not(.bg-primary) h5,
html[data-eb-theme="dark"] .card-header:not(.bg-primary) p {
  color: var(--eb-text) !important;
}

html[data-eb-theme="dark"] .profile-section,
html[data-eb-theme="dark"] #occupationInfoDisplay,
html[data-eb-theme="dark"] .passport-upload-section .card-body,
html[data-eb-theme="dark"] .passport-upload-area,
html[data-eb-theme="dark"] .community-manager-option {
  background-color: var(--eb-bg-surface) !important;
  border-color: var(--eb-border) !important;
  color: var(--eb-text-muted) !important;
}

html[data-eb-theme="dark"] .community-manager-option {
  border-left-color: #5eb8d4 !important;
}

html[data-eb-theme="dark"] .passport-upload-area.drag-over {
  background-color: #1a2a3a !important;
  border-color: var(--eb-link) !important;
}

html[data-eb-theme="dark"] .rental-card img {
  background: transparent !important;
}

html[data-eb-theme="dark"] #rentalAlertContainer .alert,
html[data-eb-theme="dark"] #saleAcquisitionAlertContainer .alert {
  background: var(--eb-bg-surface) !important;
  background-image: none !important;
  border-color: var(--eb-border) !important;
  color: var(--eb-text) !important;
  box-shadow: none !important;
}

html[data-eb-theme="dark"] #rentalAlertContainer .alert.alert-info,
html[data-eb-theme="dark"] #saleAcquisitionAlertContainer .alert.alert-info {
  border-left: 4px solid var(--eb-link) !important;
}

html[data-eb-theme="dark"] #rentalAlertContainer .alert.alert-warning,
html[data-eb-theme="dark"] #saleAcquisitionAlertContainer .alert.alert-warning {
  border-left: 4px solid #c9a227 !important;
}

html[data-eb-theme="dark"] #rentalAlertContainer .alert .alert-heading,
html[data-eb-theme="dark"] #saleAcquisitionAlertContainer .alert .alert-heading,
html[data-eb-theme="dark"] #rentalAlertContainer .alert p,
html[data-eb-theme="dark"] #saleAcquisitionAlertContainer .alert p {
  color: var(--eb-text) !important;
}

/* Extension reminder history (extension-reminder-history.php) */
html[data-eb-theme="dark"] .eb-extension-reminder-history pre.eb-reminder-message,
html[data-eb-theme="dark"] .eb-extension-reminder-history .erh-reminder-message {
  color: var(--eb-text) !important;
  background-color: transparent !important;
}

html[data-eb-theme="dark"] .eb-extension-reminder-history .erh-summary {
  color: var(--eb-text-muted) !important;
}

html[data-eb-theme="dark"] .eb-extension-reminder-history .erh-group-header {
  background-color: var(--eb-bg-surface) !important;
  border-color: var(--eb-border) !important;
}

html[data-eb-theme="dark"] .eb-extension-reminder-history .erh-group-header:hover {
  background-color: var(--eb-bg-hover) !important;
}

html[data-eb-theme="dark"] .eb-extension-reminder-history .erh-group-title {
  color: var(--eb-text) !important;
}

html[data-eb-theme="dark"] .eb-extension-reminder-history .erh-group-sub,
html[data-eb-theme="dark"] .eb-extension-reminder-history .erh-sent,
html[data-eb-theme="dark"] .eb-extension-reminder-history .erh-email-tag {
  color: var(--eb-text-muted) !important;
}

html[data-eb-theme="dark"] .eb-extension-reminder-history .erh-chevron {
  color: var(--eb-text-muted) !important;
}

html[data-eb-theme="dark"] .eb-extension-reminder-history .erh-group-body {
  background-color: var(--eb-bg-elevated) !important;
}

html[data-eb-theme="dark"] .eb-extension-reminder-history .erh-reminder-card {
  background-color: var(--eb-bg-surface) !important;
  border-color: var(--eb-border) !important;
}

html[data-eb-theme="dark"] .eb-extension-reminder-history .erh-search-wrap i {
  color: var(--eb-text-muted) !important;
}

html[data-eb-theme="dark"] .eb-extension-reminder-history .erh-toolbar .form-control {
  background-color: var(--eb-input-bg) !important;
  color: var(--eb-text) !important;
  border-color: var(--eb-border) !important;
}

html[data-eb-theme="dark"] .eb-extension-reminder-history .erh-toolbar-actions {
  border-top-color: var(--eb-border) !important;
}

/* Extend tenure modal (components/extend_tenure.php) — scoped to #rentform only */
html[data-eb-theme="dark"] #rentform .form-control.bg-light,
html[data-eb-theme="dark"] #rentform .form-control.bg-white,
html[data-eb-theme="dark"] #rentform .input-group-text.bg-white {
  background-color: var(--eb-input-bg) !important;
  color: var(--eb-text) !important;
  border-color: var(--eb-border) !important;
}

html[data-eb-theme="dark"] #rentform .form-control.text-dark {
  color: var(--eb-text) !important;
}

html[data-eb-theme="dark"] #rentform #expiry_date.text-primary {
  color: var(--eb-link) !important;
}

html[data-eb-theme="dark"] #rentform .card.bg-light,
html[data-eb-theme="dark"] #rentform .card.bg-light .card-body {
  background-color: var(--eb-bg-surface) !important;
  color: var(--eb-text) !important;
  border-color: var(--eb-border) !important;
}

html[data-eb-theme="dark"] #rentform #breakdown,
html[data-eb-theme="dark"] #rentform #breakdown b {
  color: var(--eb-text) !important;
}

html[data-eb-theme="dark"] #rentform #login-messages .alert-success,
html[data-eb-theme="dark"] #rentform #rent_echo .alert-success {
  background-color: #1a2e22 !important;
  border-color: #2d5a3d !important;
  color: #b8e6c8 !important;
}

html[data-eb-theme="dark"] #rentform #login-messages .alert-danger,
html[data-eb-theme="dark"] #rentform #rent_echo .alert-danger {
  background-color: #2e1a1a !important;
  border-color: #5a2d2d !important;
  color: #e8b8b8 !important;
}

html[data-eb-theme="dark"] #rentform #login-messages .alert-info,
html[data-eb-theme="dark"] #rentform #rent_echo .alert-info {
  background-color: #1a2836 !important;
  border-color: #2d4a5f !important;
  color: #b8d4e8 !important;
}

html[data-eb-theme="dark"] #rentform #login-messages .alert-warning,
html[data-eb-theme="dark"] #rentform #rent_echo .alert-warning {
  background-color: #2e2a1a !important;
  border-color: #5a4f2d !important;
  color: #e8d9b8 !important;
}

html[data-eb-theme="dark"] #rentform #login-messages .alert .close,
html[data-eb-theme="dark"] #rentform #rent_echo .alert .close {
  color: inherit !important;
}

/* Rentals page (/rentals) — section headers: dark text on all gradients in dark mode */
html[data-eb-theme="dark"] .section-header,
html[data-eb-theme="dark"] .section-header h4,
html[data-eb-theme="dark"] .section-header h4 span:not(.badge):not(.status),
html[data-eb-theme="dark"] .section-header h4 span:not(.badge) i,
html[data-eb-theme="dark"] .section-header .collapse-icon {
  color: #212529 !important;
}

html[data-eb-theme="dark"] .section-header .badge {
  background: rgba(0, 0, 0, 0.12) !important;
  color: #212529 !important;
}

/* Dedicated dark-mode instance for Rentals/Acquisition section-header titles */
html[data-eb-theme="dark"] .section-header .eb-jumbo-title,
html[data-eb-theme="dark"] .section-header .eb-jumbo-title .eb-jumbo-title-text,
html[data-eb-theme="dark"] .section-header .eb-jumbo-title .eb-jumbo-title-text i,
html[data-eb-theme="dark"] .section-header .eb-jumbo-title + div .collapse-icon {
  color: inherit !important;
}

/* Preserve per-header text/icon colors on Rentals + Property Acquisition in dark mode */
html[data-eb-theme="dark"] .section-header.acquisition-requests h4,
html[data-eb-theme="dark"] .section-header.acquisition-requests h4 span:not(.badge):not(.status),
html[data-eb-theme="dark"] .section-header.acquisition-requests h4 span:not(.badge) i,
html[data-eb-theme="dark"] .section-header.acquisition-requests .collapse-icon {
  color: #212529 !important;
}

html[data-eb-theme="dark"] .property-rental-card {
  background: var(--eb-bg-elevated) !important;
  border-left-color: #667eea !important;
  color: var(--eb-text) !important;
}

html[data-eb-theme="dark"] .rental-property-title h3 {
  color: var(--eb-text) !important;
}

html[data-eb-theme="dark"] .rental-property-address,
html[data-eb-theme="dark"] .rental-info-label,
html[data-eb-theme="dark"] .empty-state {
  color: var(--eb-text-muted) !important;
}

html[data-eb-theme="dark"] .rental-info-value {
  color: var(--eb-text) !important;
}

html[data-eb-theme="dark"] .rental-amount {
  color: #81c995 !important;
}

html[data-eb-theme="dark"] .rental-card-actions {
  border-top-color: var(--eb-border) !important;
}

html[data-eb-theme="dark"] .move-in-permit-btn.status-none {
  background: #2563eb !important;
  background-color: #2563eb !important;
  color: #fff !important;
}
html[data-eb-theme="dark"] .move-in-permit-btn.status-pending {
  background: #ea580c !important;
  background-color: #ea580c !important;
  color: #fff !important;
}
html[data-eb-theme="dark"] .move-in-permit-btn.status-approved {
  background: #16a34a !important;
  background-color: #16a34a !important;
  color: #fff !important;
}
html[data-eb-theme="dark"] .move-in-permit-btn.status-rejected {
  background: #dc2626 !important;
  background-color: #dc2626 !important;
  color: #fff !important;
}
html[data-eb-theme="dark"] .move-in-permit-btn i {
  color: #fff !important;
}

html[data-eb-theme="dark"] .move-in-permit-strip.status-none {
  background: #2563eb !important;
  background-color: #2563eb !important;
  color: #fff !important;
}
html[data-eb-theme="dark"] .move-in-permit-strip.status-pending {
  background: #ea580c !important;
  background-color: #ea580c !important;
  color: #fff !important;
}
html[data-eb-theme="dark"] .move-in-permit-strip.status-approved {
  background: #16a34a !important;
  background-color: #16a34a !important;
  color: #fff !important;
}
html[data-eb-theme="dark"] .move-in-permit-strip.status-rejected {
  background: #dc2626 !important;
  background-color: #dc2626 !important;
  color: #fff !important;
}

html[data-eb-theme="dark"] .rental-status.completed {
  background: #1e3a28 !important;
  color: #81c995 !important;
}

html[data-eb-theme="dark"] .rental-status.pending {
  background: #3a3318 !important;
  color: #fdd663 !important;
}

html[data-eb-theme="dark"] .rental-status.active {
  background: #1a2e36 !important;
  color: #78d9ec !important;
}

html[data-eb-theme="dark"] .bulk-payment-bill-type {
  color: var(--eb-text) !important;
}

html[data-eb-theme="dark"] .bulk-payment-unit-info {
  color: var(--eb-text-muted) !important;
}

html[data-eb-theme="dark"] .bulk-payment-item {
  border-bottom-color: var(--eb-border) !important;
}

html[data-eb-theme="dark"] .bulk-payment-total {
  border-top-color: var(--eb-border) !important;
}

/* Sale properties (/sale-properties) & similar dashboard list pages */
html[data-eb-theme="dark"] .main-card {
  background-color: var(--eb-bg-elevated) !important;
  border-color: var(--eb-border) !important;
  color: var(--eb-text) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25) !important;
}

html[data-eb-theme="dark"] .page-header h2 {
  color: var(--eb-text) !important;
}

html[data-eb-theme="dark"] .sale-property-card {
  background-color: var(--eb-bg-elevated) !important;
  border-color: var(--eb-border) !important;
  color: var(--eb-text) !important;
}

html[data-eb-theme="dark"] .sale-property-card-thumb {
  background-color: var(--eb-bg-surface) !important;
}

html[data-eb-theme="dark"] .sale-property-card-title {
  color: var(--eb-text) !important;
}

html[data-eb-theme="dark"] .sale-property-card-price {
  color: #f5a623 !important;
}

html[data-eb-theme="dark"] .sale-starting-price-line .sale-price-amount,
html[data-eb-theme="dark"] .properties .price.sale-card-price {
  color: #81c995 !important;
}

html[data-eb-theme="dark"] .sale-property-card-meta-line,
html[data-eb-theme="dark"] .sale-property-card-meta-line .meta-item {
  color: var(--eb-text-muted) !important;
}

html[data-eb-theme="dark"] .sale-property-card-meta-line .meta-item i,
html[data-eb-theme="dark"] .sale-property-card-meta-line .meta-sep {
  color: var(--eb-text-muted) !important;
}

html[data-eb-theme="dark"] .sale-property-card-actions {
  background-color: var(--eb-bg-surface) !important;
  border-top-color: var(--eb-border) !important;
}

html[data-eb-theme="dark"] .sale-property-card-actions .btn-interests:disabled {
  background-color: var(--eb-bg-hover) !important;
  color: var(--eb-text-muted) !important;
  border-color: var(--eb-border) !important;
}

html[data-eb-theme="dark"] .badge-status.badge-pending {
  background-color: #3a3318 !important;
  color: #fdd663 !important;
}

html[data-eb-theme="dark"] .badge-status.badge-approved {
  background-color: #1e3a28 !important;
  color: #81c995 !important;
}

html[data-eb-theme="dark"] .badge-status.badge-rejected {
  background-color: #2e1a1a !important;
  color: #f28b82 !important;
}

html[data-eb-theme="dark"] .badge-status.badge-sold {
  background-color: #3a1f1f !important;
  color: #f28b82 !important;
}

html[data-eb-theme="dark"] .reject-reason-box {
  background-color: #2e1a1a !important;
  border-color: #5c3030 !important;
  color: #f28b82 !important;
}

html[data-eb-theme="dark"] #salesTable_wrapper .dataTables_filter input,
html[data-eb-theme="dark"] #salesTable_wrapper .dataTables_length select,
html[data-eb-theme="dark"] .dataTables_wrapper .dataTables_filter input,
html[data-eb-theme="dark"] .dataTables_wrapper .dataTables_length select {
  background-color: var(--eb-input-bg) !important;
  border-color: var(--eb-border) !important;
  color: var(--eb-text) !important;
}

html[data-eb-theme="dark"] #salesTable_wrapper .dataTables_info,
html[data-eb-theme="dark"] #salesTable_wrapper .dataTables_paginate,
html[data-eb-theme="dark"] .dataTables_wrapper .dataTables_info,
html[data-eb-theme="dark"] .dataTables_wrapper .dataTables_paginate {
  color: var(--eb-text-muted) !important;
}

html[data-eb-theme="dark"] .dataTables_wrapper .pagination .page-link {
  background-color: var(--eb-bg-surface) !important;
  border-color: var(--eb-border) !important;
  color: var(--eb-text) !important;
}

html[data-eb-theme="dark"] .dataTables_wrapper .pagination .page-item.active .page-link {
  background-color: var(--eb-link) !important;
  border-color: var(--eb-link) !important;
  color: #121212 !important;
}

html[data-eb-theme="dark"] .dataTables_wrapper .pagination .page-item.disabled .page-link {
  background-color: var(--eb-bg-elevated) !important;
  color: var(--eb-text-muted) !important;
}

html[data-eb-theme="dark"] #interestsModal .modal-header:not(.bg-primary):not(.bg-danger):not(.bg-warning) {
  background-color: var(--eb-bg-surface) !important;
  border-color: var(--eb-border) !important;
  color: var(--eb-text) !important;
}

html[data-eb-theme="dark"] #interestsList .list-group-item h5 {
  color: var(--eb-text) !important;
}

/* Properties, Estates (/properties, /estates) */
html[data-eb-theme="dark"] .stat-card {
  background-color: var(--eb-bg-elevated) !important;
  border-color: var(--eb-border) !important;
  color: var(--eb-text) !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25) !important;
}

html[data-eb-theme="dark"] .stat-info .label {
  color: var(--eb-text-muted) !important;
}

html[data-eb-theme="dark"] .stat-info .value {
  color: var(--eb-text) !important;
}

html[data-eb-theme="dark"] .stat-icon.total {
  background-color: #1e3a28 !important;
  color: #81c995 !important;
}

html[data-eb-theme="dark"] .stat-icon.multi,
html[data-eb-theme="dark"] .stat-icon.properties {
  background-color: #1a2a3a !important;
  color: #78d9ec !important;
}

html[data-eb-theme="dark"] .stat-icon.tenancy {
  background-color: #3a3318 !important;
  color: #fdd663 !important;
}

html[data-eb-theme="dark"] .page-content .table thead th {
  background-color: var(--eb-bg-surface) !important;
  color: var(--eb-text-muted) !important;
  border-color: var(--eb-border) !important;
}

html[data-eb-theme="dark"] .page-content .table tbody td {
  color: var(--eb-text) !important;
  border-top-color: var(--eb-border) !important;
}

/* Properties page — mobile list cards + list UI */
html[data-eb-theme="dark"] #properties_t tbody tr.property-list-row,
html[data-eb-theme="dark"] #units_tm tbody tr.property-list-row {
  background-color: var(--eb-bg-elevated) !important;
  border-color: var(--eb-border) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28) !important;
}

html[data-eb-theme="dark"] #properties_t tbody td::before,
html[data-eb-theme="dark"] #units_tm tbody td::before {
  color: var(--eb-text-muted) !important;
}

html[data-eb-theme="dark"] .property-name {
  color: var(--eb-text) !important;
}

html[data-eb-theme="dark"] .property-list-name-text .small,
html[data-eb-theme="dark"] .property-list-name-text .text-muted {
  color: var(--eb-text-muted) !important;
}

html[data-eb-theme="dark"] .property-address-cell,
html[data-eb-theme="dark"] .property-address-cell .text-muted {
  color: var(--eb-text-muted) !important;
}

html[data-eb-theme="dark"] .property-list-thumb {
  background-color: var(--eb-bg-surface) !important;
  border-color: var(--eb-border) !important;
}

html[data-eb-theme="dark"] .property-list-loading {
  background: rgba(18, 18, 18, 0.94) !important;
  color: var(--eb-text-muted) !important;
}

html[data-eb-theme="dark"] .property-list-loading-bar {
  background-color: var(--eb-bg-surface) !important;
}

html[data-eb-theme="dark"] .property-list-loading-bar span {
  background-color: var(--eb-link) !important;
}

html[data-eb-theme="dark"] .property-status-badge.badge-outline-danger,
html[data-eb-theme="dark"] a.property-status-badge.badge-outline-danger {
  color: #f28b82 !important;
  border-color: #f28b82 !important;
  background-color: transparent !important;
}

html[data-eb-theme="dark"] .property-status-badge.badge-outline-info,
html[data-eb-theme="dark"] a.property-status-badge.badge-outline-info {
  color: #78d9ec !important;
  border-color: #78d9ec !important;
  background-color: transparent !important;
}

html[data-eb-theme="dark"] .property-status-badge.badge-outline-success,
html[data-eb-theme="dark"] a.property-status-badge.badge-outline-success {
  color: #81c995 !important;
  border-color: #81c995 !important;
  background-color: transparent !important;
}

html[data-eb-theme="dark"] .property-status-badge.badge-outline-primary,
html[data-eb-theme="dark"] a.property-status-badge.badge-outline-primary {
  color: var(--eb-link) !important;
  border-color: var(--eb-link) !important;
  background-color: transparent !important;
}

html[data-eb-theme="dark"] .property-status-badge.badge-danger,
html[data-eb-theme="dark"] a.property-status-badge.badge-danger {
  color: #fff !important;
  background-color: #c5221f !important;
  border-color: #c5221f !important;
}

html[data-eb-theme="dark"] .property-expired-tenancy-hint {
  color: #f28b82 !important;
}

html[data-eb-theme="dark"] .property-close-tenancy-header {
  border-color: #f28b82 !important;
  background-color: rgba(242, 139, 130, 0.08) !important;
}

html[data-eb-theme="dark"] .property-close-tenancy-header .close-tenancy-button {
  color: #fff !important;
  border: none !important;
  background-color: #c5221f !important;
}

html[data-eb-theme="dark"] .property-close-tenancy-header .close-tenancy-button:hover {
  color: #fff !important;
  background-color: #a61b19 !important;
}

html[data-eb-theme="dark"] .property-close-tenancy-notice {
  color: #f28b82 !important;
}

html[data-eb-theme="dark"] .property-close-tenancy-notice strong {
  color: #ff9b94 !important;
}

html[data-eb-theme="dark"] .property-action-dropdown .dropdown-item.text-danger {
  color: #f28b82 !important;
}

html[data-eb-theme="dark"] .property-action-dropdown .dropdown-item.text-warning {
  color: #fdd663 !important;
}

html[data-eb-theme="dark"] #ebConfirmModal .modal-body,
html[data-eb-theme="dark"] #ebConfirmModal .eb-confirm-item-name {
  color: var(--eb-text) !important;
}

html[data-eb-theme="dark"] #ebConfirmModal .eb-confirm-note {
  color: var(--eb-text-muted) !important;
}

html[data-eb-theme="dark"] #ebConfirmModal .modal-footer {
  border-top-color: var(--eb-border) !important;
}

html[data-eb-theme="dark"] #ebConfirmHeader {
  background: linear-gradient(135deg, #c94a3f 0%, #9e2218 100%) !important;
  color: #fff !important;
  border-color: transparent !important;
}

html[data-eb-theme="dark"] #ebConfirmHeader .close {
  color: #fff !important;
}

html[data-eb-theme="dark"] .l_p > a,
html[data-eb-theme="dark"] .l_p > a > i {
  color: #f7dd10 !important;
}

/* RentNest — about, dashboard, mandate setup */
html[data-eb-theme="dark"] .rentnest-container,
html[data-eb-theme="dark"] .rn-page {
  color: var(--eb-text) !important;
}

html[data-eb-theme="dark"] .rn-hero,
html[data-eb-theme="dark"] .rn-hero h1,
html[data-eb-theme="dark"] .rn-hero p,
html[data-eb-theme="dark"] .rn-hero p.lead,
html[data-eb-theme="dark"] .rentnest-header,
html[data-eb-theme="dark"] .rentnest-header h2 {
  color: #fff !important;
}

html[data-eb-theme="dark"] .rn-section,
html[data-eb-theme="dark"] .rentnest-card {
  background-color: var(--eb-bg-elevated) !important;
  border-color: var(--eb-border) !important;
  color: var(--eb-text) !important;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3) !important;
}

html[data-eb-theme="dark"] .rn-section h3 {
  color: #c4a8f0 !important;
  border-bottom-color: var(--eb-border) !important;
}

html[data-eb-theme="dark"] .feature-box {
  background-color: var(--eb-bg-surface) !important;
  color: var(--eb-text) !important;
}

html[data-eb-theme="dark"] .feature-box:hover {
  background-color: var(--eb-bg-hover) !important;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.25) !important;
}

html[data-eb-theme="dark"] .feature-box h5,
html[data-eb-theme="dark"] .feature-box p {
  color: var(--eb-text) !important;
}

html[data-eb-theme="dark"] .feature-box p {
  color: var(--eb-text-muted) !important;
}

html[data-eb-theme="dark"] .rn-section-header {
  background-color: var(--eb-bg-surface) !important;
  border-bottom-color: var(--eb-border) !important;
}

html[data-eb-theme="dark"] .rn-section-header:hover {
  background-color: var(--eb-bg-hover) !important;
}

html[data-eb-theme="dark"] .rn-section-body,
html[data-eb-theme="dark"] .rentnest-body {
  color: var(--eb-text) !important;
}

html[data-eb-theme="dark"] .sh-title,
html[data-eb-theme="dark"] .page-topbar h2,
html[data-eb-theme="dark"] .bank-name,
html[data-eb-theme="dark"] .m-title,
html[data-eb-theme="dark"] .concise-date,
html[data-eb-theme="dark"] .rental-property-name,
html[data-eb-theme="dark"] .rentnest-body h5 {
  color: var(--eb-text) !important;
}

html[data-eb-theme="dark"] .sh-count {
  background-color: var(--eb-bg-hover) !important;
  color: #a8b4f0 !important;
}

html[data-eb-theme="dark"] .bank-sub,
html[data-eb-theme="dark"] .sh-chevron,
html[data-eb-theme="dark"] .toolbar-label,
html[data-eb-theme="dark"] .pager-info,
html[data-eb-theme="dark"] .m-progress-label,
html[data-eb-theme="dark"] .m-name,
html[data-eb-theme="dark"] .rn-empty,
html[data-eb-theme="dark"] .divider-text {
  color: var(--eb-text-muted) !important;
}

html[data-eb-theme="dark"] .sh-icon,
html[data-eb-theme="dark"] .bank-avatar {
  background-color: var(--eb-bg-hover) !important;
}

html[data-eb-theme="dark"] .bank-item {
  background-color: var(--eb-bg-surface) !important;
  border-color: var(--eb-border) !important;
}

html[data-eb-theme="dark"] .badge-primary-bank {
  background-color: #1e3a28 !important;
  color: #81c995 !important;
}

html[data-eb-theme="dark"] .btn-add-bank {
  border-color: var(--eb-border) !important;
  color: var(--eb-text-muted) !important;
}

html[data-eb-theme="dark"] .btn-add-bank:hover {
  background-color: var(--eb-bg-hover) !important;
  border-color: var(--eb-link) !important;
  color: var(--eb-text) !important;
}

html[data-eb-theme="dark"] .rn-toolbar input[type="text"],
html[data-eb-theme="dark"] .rn-toolbar select,
html[data-eb-theme="dark"] .rn-toolbar .search-wrap i {
  background-color: var(--eb-input-bg) !important;
  border-color: var(--eb-border) !important;
  color: var(--eb-text) !important;
}

html[data-eb-theme="dark"] .rn-toolbar input[type="text"]:focus {
  background-color: var(--eb-bg-elevated) !important;
  border-color: var(--eb-link) !important;
}

html[data-eb-theme="dark"] .m-card {
  background-color: var(--eb-bg-elevated) !important;
  border-color: var(--eb-border) !important;
  border-left-color: #7f77dd !important;
}

html[data-eb-theme="dark"] .m-amount,
html[data-eb-theme="dark"] .contribution-amount,
html[data-eb-theme="dark"] .target-amount,
html[data-eb-theme="dark"] .required-contribution {
  color: #a8b4f0 !important;
}

html[data-eb-theme="dark"] .m-ref {
  background-color: #2a2848 !important;
  color: #c4bdf5 !important;
}

html[data-eb-theme="dark"] .m-pill {
  background-color: var(--eb-bg-surface) !important;
  color: var(--eb-text-muted) !important;
}

html[data-eb-theme="dark"] .m-actions {
  border-top-color: var(--eb-border) !important;
}

html[data-eb-theme="dark"] .btn-pdf-sm {
  border-color: #5a5499 !important;
  color: #a8b4f0 !important;
}

html[data-eb-theme="dark"] .btn-pdf-sm:hover {
  background-color: #2a2848 !important;
}

html[data-eb-theme="dark"] .btn-page {
  background-color: var(--eb-bg-surface) !important;
  border-color: var(--eb-border) !important;
  color: var(--eb-text) !important;
}

html[data-eb-theme="dark"] .btn-page:hover:not(:disabled) {
  background-color: var(--eb-bg-hover) !important;
}

html[data-eb-theme="dark"] .m-progress-bar {
  background-color: var(--eb-bg-hover) !important;
}

html[data-eb-theme="dark"] .add-bank-form {
  background-color: var(--eb-bg-surface) !important;
  border-color: var(--eb-border) !important;
}

html[data-eb-theme="dark"] .view-toggle {
  background-color: var(--eb-bg-surface) !important;
}

html[data-eb-theme="dark"] .view-toggle button {
  color: var(--eb-text-muted) !important;
}

html[data-eb-theme="dark"] .view-toggle button.active {
  background-color: var(--eb-bg-elevated) !important;
  color: var(--eb-link) !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important;
}

html[data-eb-theme="dark"] .concise-header {
  background-color: var(--eb-bg-surface) !important;
  color: var(--eb-text-muted) !important;
}

html[data-eb-theme="dark"] .concise-item {
  background-color: var(--eb-bg-elevated) !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2) !important;
}

html[data-eb-theme="dark"] .concise-item.paid {
  background-color: #1e3a28 !important;
  border-color: #27ae60 !important;
}

html[data-eb-theme="dark"] .concise-item.unpaid {
  background-color: #3a3318 !important;
  border-color: #f1c40f !important;
}

html[data-eb-theme="dark"] .concise-item.due,
html[data-eb-theme="dark"] .concise-item.rejected {
  background-color: #2e1a1a !important;
  border-color: #e74c3c !important;
}

html[data-eb-theme="dark"] .concise-item.pending {
  background-color: #2a1f36 !important;
  border-color: #9b59b6 !important;
}

html[data-eb-theme="dark"] .concise-item.paid .concise-date,
html[data-eb-theme="dark"] .concise-item.unpaid .concise-date,
html[data-eb-theme="dark"] .concise-item.due .concise-date,
html[data-eb-theme="dark"] .concise-item.pending .concise-date {
  color: var(--eb-text) !important;
}

html[data-eb-theme="dark"] .cal-day.header {
  background-color: var(--eb-bg-surface) !important;
  color: var(--eb-text-muted) !important;
  border-color: var(--eb-border) !important;
}

html[data-eb-theme="dark"] .cal-day {
  border-color: var(--eb-border) !important;
  color: var(--eb-text-muted) !important;
}

html[data-eb-theme="dark"] .cal-day.paid {
  background-color: #1e3a28 !important;
  color: #81c995 !important;
  border-color: #1a7a40 !important;
}

html[data-eb-theme="dark"] .cal-day.unpaid {
  background-color: #3a3318 !important;
  color: #fdd663 !important;
  border-color: #d97706 !important;
}

html[data-eb-theme="dark"] .cal-day.due {
  background-color: #2e1a1a !important;
  color: #f28b82 !important;
  border-color: #dc2626 !important;
}

html[data-eb-theme="dark"] .cal-day.pending {
  background-color: #2a1f36 !important;
  color: #d8b4fe !important;
  border-color: #7e22ce !important;
}

html[data-eb-theme="dark"] .cal-day:hover:not(.header) {
  background-color: var(--eb-bg-hover) !important;
}

html[data-eb-theme="dark"] .guide-step h6 {
  color: #a8b4f0 !important;
}

html[data-eb-theme="dark"] .guide-step li {
  color: var(--eb-text-muted) !important;
}

html[data-eb-theme="dark"] .guide-step strong {
  color: var(--eb-text) !important;
}

html[data-eb-theme="dark"] .rental-select-card {
  background-color: var(--eb-bg-elevated) !important;
  border-color: var(--eb-border) !important;
}

html[data-eb-theme="dark"] .rental-select-card:hover {
  border-color: var(--eb-link) !important;
}

html[data-eb-theme="dark"] .rental-select-card.selected {
  background-color: #1a2440 !important;
  border-color: var(--eb-link) !important;
}

html[data-eb-theme="dark"] .rental-amount {
  color: #81c995 !important;
}

html[data-eb-theme="dark"] .form-section {
  background-color: var(--eb-bg-surface) !important;
  color: var(--eb-text) !important;
}

html[data-eb-theme="dark"] .fee-breakdown {
  background-color: #3a3318 !important;
  border-left-color: #fdd663 !important;
  color: var(--eb-text) !important;
}

html[data-eb-theme="dark"] .contribution-option {
  background-color: var(--eb-bg-elevated) !important;
  border-color: var(--eb-border) !important;
  color: var(--eb-text) !important;
}

html[data-eb-theme="dark"] .contribution-option.selected {
  background-color: #1a2440 !important;
  border-color: var(--eb-link) !important;
}

html[data-eb-theme="dark"] .listing-badge.target-badge {
  color: #212529 !important;
}

/* RentNest mandate setup — instruction box (/rent-nest) */
html[data-eb-theme="dark"] .instruction-box {
  background-color: #1a2440 !important;
  border-color: var(--eb-border) !important;
  border-left-color: #667eea !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25) !important;
  color: var(--eb-text) !important;
}

html[data-eb-theme="dark"] .instruction-main strong {
  color: #a8b4f0 !important;
}

html[data-eb-theme="dark"] .instruction-main p,
html[data-eb-theme="dark"] .instruction-box .instruction-main span:not(.read-more-link),
html[data-eb-theme="dark"] .instruction-list,
html[data-eb-theme="dark"] .instruction-list li,
html[data-eb-theme="dark"] .instruction-footer {
  color: var(--eb-text-muted) !important;
}

html[data-eb-theme="dark"] .instruction-list li strong {
  color: var(--eb-text) !important;
}

html[data-eb-theme="dark"] .instruction-footer {
  border-top-color: var(--eb-border) !important;
}

html[data-eb-theme="dark"] .read-more-link,
html[data-eb-theme="dark"] .instruction-box .read-more-link {
  color: var(--eb-link) !important;
}

html[data-eb-theme="dark"] .read-more-link:hover,
html[data-eb-theme="dark"] .instruction-box .read-more-link:hover {
  color: #a8c7fa !important;
}

/* Express Acquisition Interest summary (/sale-property-info.php → #interestModal) */
.interest-property-summary {
  font-size: 1.05rem;
}

.interest-property-summary > p.font-weight-bold {
  font-size: 1.35rem;
}

.interest-property-summary p {
  font-size: 1.05rem;
}

html[data-eb-theme="dark"] .interest-property-summary {
  background-color: #0f3d2e !important;
  border-color: #0b2f23 !important;
}

html[data-eb-theme="dark"] .interest-property-summary p,
html[data-eb-theme="dark"] .interest-property-summary span,
html[data-eb-theme="dark"] .interest-property-summary strong,
html[data-eb-theme="dark"] .interest-property-summary i,
html[data-eb-theme="dark"] .interest-property-summary svg,
html[data-eb-theme="dark"] .interest-property-summary .text-dark,
html[data-eb-theme="dark"] .interest-property-summary .text-muted {
  color: #ffffff !important;
}

html[data-eb-theme="dark"] .interest-property-summary .text-muted * {
  color: #ffffff !important;
}

/* Express Acquisition Interest: Structural financing panel (recent) */
html[data-eb-theme="dark"] #interestModal .intent-detail-panel {
  color: var(--eb-text) !important;
}

html[data-eb-theme="dark"] #interestModal #acqStepSfTerms label,
html[data-eb-theme="dark"] #interestModal #sfPlansBox label {
  color: var(--eb-text) !important;
}

html[data-eb-theme="dark"] #interestModal .acq-sf-terms-card {
  background-color: var(--eb-bg-surface) !important;
  border-color: var(--eb-border) !important;
}

html[data-eb-theme="dark"] #interestModal .acq-sf-terms-card #sfTermsList,
html[data-eb-theme="dark"] #interestModal .acq-sf-terms-card #sfTermsList.text-muted,
html[data-eb-theme="dark"] #interestModal .acq-sf-terms-card #sfTermsList li,
html[data-eb-theme="dark"] #interestModal .acq-sf-terms-card #sfTermsList * {
  color: #f1f5f9 !important;
}

html[data-eb-theme="dark"] #interestModal #sfPlansBox #sfPlansList,
html[data-eb-theme="dark"] #interestModal #sfPlansBox #sfPlansList * {
  color: var(--eb-text-muted) !important;
}

/* Intent cards: inactive readable; active keeps blue fill */
html[data-eb-theme="dark"] #interestModal .acq-partner-card.is-selected,
html[data-eb-theme="dark"] #interestModal .acq-plan-card.is-selected {
  border-color: #3b82f6 !important;
  background-color: #1e3a5f !important;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.45);
}

html[data-eb-theme="dark"] #interestModal .acq-plan-card.is-selected .acq-plan-label,
html[data-eb-theme="dark"] #interestModal .acq-partner-card.is-selected .acq-partner-name {
  color: #f8fafc !important;
}

html[data-eb-theme="dark"] #interestModal .acq-plan-card.is-selected .acq-plan-meta {
  color: #93c5fd !important;
}

html[data-eb-theme="dark"] #interestModal .intent-card:not(.is-active) {
  background-color: transparent !important;
  border-color: var(--eb-border) !important;
  color: var(--eb-text) !important;
}

html[data-eb-theme="dark"] #interestModal .intent-card:not(.is-active) *,
html[data-eb-theme="dark"] #interestModal .intent-card:not(.is-active) label {
  color: var(--eb-text) !important;
}

html[data-eb-theme="dark"] #interestModal .intent-card.is-active {
  background-color: #3b82f6 !important;
  border-color: #3b82f6 !important;
  color: #ffffff !important;
}

html[data-eb-theme="dark"] #interestModal .intent-card.is-active *,
html[data-eb-theme="dark"] #interestModal .intent-card.is-active label {
  color: #ffffff !important;
}

/* Upload signature (/upload-signature) */
html[data-eb-theme="dark"] .signature-preview-box {
  background-color: var(--eb-bg-surface) !important;
  border-color: var(--eb-border) !important;
  color: var(--eb-text) !important;
}

html[data-eb-theme="dark"] .signature-preview-box h4 {
  color: var(--eb-text-muted) !important;
}

html[data-eb-theme="dark"] .signature-preview-box img {
  background-color: #fff !important;
  padding: 10px !important;
  border-radius: 8px !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2) !important;
}

html[data-eb-theme="dark"] #canvasDiv {
  background-color: #fff !important;
  border-color: var(--eb-border) !important;
}

html[data-eb-theme="dark"] .page-content .form-group label {
  color: var(--eb-text) !important;
}

html[data-eb-theme="dark"] .file-upload-wrapper input[type="file"] {
  background-color: var(--eb-input-bg) !important;
  border-color: var(--eb-border) !important;
  color: var(--eb-text) !important;
}

html[data-eb-theme="dark"] .modal-body {
  background-color: var(--eb-bg-elevated) !important;
  color: var(--eb-text) !important;
}

html[data-eb-theme="dark"] .modal-footer,
html[data-eb-theme="dark"] .upgrade-modal-footer {
  background-color: var(--eb-bg-elevated) !important;
  border-color: var(--eb-border) !important;
  color: var(--eb-text) !important;
}

/* DataTables inside modals (units, legals, letters on /properties, etc.) */
html[data-eb-theme="dark"] .modal-content .dataTables_wrapper {
  color: var(--eb-text) !important;
}

html[data-eb-theme="dark"] .modal-content table.dataTable thead th,
html[data-eb-theme="dark"] .modal-content table.dataTable thead td,
html[data-eb-theme="dark"] .modal-content .table thead th,
html[data-eb-theme="dark"] .modal-content .table thead td {
  background-color: var(--eb-bg-surface) !important;
  color: var(--eb-text-muted) !important;
  border-color: var(--eb-border) !important;
}

html[data-eb-theme="dark"] .modal-content table.dataTable thead th.sorting,
html[data-eb-theme="dark"] .modal-content table.dataTable thead th.sorting_asc,
html[data-eb-theme="dark"] .modal-content table.dataTable thead th.sorting_desc,
html[data-eb-theme="dark"] .modal-content table.dataTable thead th.sorting_disabled {
  background-color: var(--eb-bg-surface) !important;
  color: var(--eb-text-muted) !important;
}

html[data-eb-theme="dark"] .modal-content table.dataTable thead > tr > th.sorting:before,
html[data-eb-theme="dark"] .modal-content table.dataTable thead > tr > th.sorting:after,
html[data-eb-theme="dark"] .modal-content table.dataTable thead > tr > th.sorting_asc:before,
html[data-eb-theme="dark"] .modal-content table.dataTable thead > tr > th.sorting_asc:after,
html[data-eb-theme="dark"] .modal-content table.dataTable thead > tr > th.sorting_desc:before,
html[data-eb-theme="dark"] .modal-content table.dataTable thead > tr > th.sorting_desc:after {
  filter: invert(1);
  opacity: 0.5;
}

html[data-eb-theme="dark"] .modal-content table.dataTable tbody td,
html[data-eb-theme="dark"] .modal-content .table tbody td {
  background-color: transparent !important;
  color: var(--eb-text) !important;
  border-color: var(--eb-border) !important;
}

html[data-eb-theme="dark"] .modal-content table.dataTable tbody tr {
  background-color: var(--eb-bg-elevated) !important;
}

html[data-eb-theme="dark"] .modal-content table.dataTable.display tbody tr.odd,
html[data-eb-theme="dark"] .modal-content table.dataTable.stripe tbody tr.odd {
  background-color: var(--eb-bg-elevated) !important;
}

html[data-eb-theme="dark"] .modal-content table.dataTable.display tbody tr.even,
html[data-eb-theme="dark"] .modal-content table.dataTable.stripe tbody tr.even {
  background-color: var(--eb-bg-surface) !important;
}

html[data-eb-theme="dark"] .modal-content table.dataTable.hover tbody tr:hover,
html[data-eb-theme="dark"] .modal-content table.dataTable.display tbody tr:hover {
  background-color: var(--eb-bg-hover) !important;
}

html[data-eb-theme="dark"] .modal-content .dataTables_wrapper .dataTables_length,
html[data-eb-theme="dark"] .modal-content .dataTables_wrapper .dataTables_filter,
html[data-eb-theme="dark"] .modal-content .dataTables_wrapper .dataTables_info,
html[data-eb-theme="dark"] .modal-content .dataTables_wrapper .dataTables_paginate {
  color: var(--eb-text-muted) !important;
}

html[data-eb-theme="dark"] .modal-body .sidebar_widget {
  background-color: transparent !important;
}

html[data-eb-theme="dark"] .modal-body .pr_form,
html[data-eb-theme="dark"] form.es_form,
html[data-eb-theme="dark"] form.pr_form {
  background-color: var(--eb-bg-surface) !important;
  color: var(--eb-text) !important;
  border: 1px solid var(--eb-border) !important;
}

html[data-eb-theme="dark"] form.es_form .form-control,
html[data-eb-theme="dark"] form.es_form label,
html[data-eb-theme="dark"] form.pr_form .form-control,
html[data-eb-theme="dark"] form.pr_form label {
  color: var(--eb-text) !important;
}

html[data-eb-theme="dark"] form.es_form .form-control,
html[data-eb-theme="dark"] form.pr_form .form-control {
  background-color: var(--eb-input-bg) !important;
  border-color: var(--eb-border) !important;
}

html[data-eb-theme="dark"] h3.es_form.text-dark,
html[data-eb-theme="dark"] h3.pr_form.text-dark {
  color: var(--eb-text) !important;
}

/* Google Places autocomplete (#pr_location etc.) — rendered on <body> */
html[data-eb-theme="dark"] .pac-container {
  z-index: 99999 !important;
  background-color: var(--eb-bg-elevated) !important;
  border: 1px solid var(--eb-border) !important;
  border-radius: 4px !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45) !important;
  color: var(--eb-text) !important;
  font-family: inherit !important;
}

html[data-eb-theme="dark"] .pac-item {
  color: var(--eb-text) !important;
  border-top: 1px solid var(--eb-border) !important;
  cursor: pointer !important;
}

html[data-eb-theme="dark"] .pac-item:first-child {
  border-top: none !important;
}

html[data-eb-theme="dark"] .pac-item-query {
  color: var(--eb-text) !important;
  font-size: inherit !important;
}

html[data-eb-theme="dark"] .pac-item span:not(.pac-icon) {
  color: var(--eb-text-muted) !important;
}

html[data-eb-theme="dark"] .pac-item .pac-item-query,
html[data-eb-theme="dark"] .pac-item .pac-item-query span {
  color: var(--eb-text) !important;
}

html[data-eb-theme="dark"] .pac-matched {
  color: var(--eb-link) !important;
  font-weight: 600 !important;
}

html[data-eb-theme="dark"] .pac-item:hover,
html[data-eb-theme="dark"] .pac-item-selected,
html[data-eb-theme="dark"] .pac-item-selected:hover {
  background-color: var(--eb-bg-hover) !important;
}

html[data-eb-theme="dark"] .pac-icon {
  filter: invert(0.9) brightness(1.1) !important;
}

html[data-eb-theme="dark"] .pac-logo:after {
  filter: invert(1) brightness(1.15) grayscale(1) !important;
}

html[data-eb-theme="dark"] .modal-body .legal-file,
html[data-eb-theme="dark"] .modal-body .legal-file p {
  color: var(--eb-text-muted) !important;
}

html[data-eb-theme="dark"] .modal-body .modal-title {
  color: var(--eb-text) !important;
}

/* Manage clusters (/manage-clusters) */
html[data-eb-theme="dark"] #properties_selection {
  background-color: var(--eb-bg-surface) !important;
  border: 1px solid var(--eb-border) !important;
  border-radius: 8px !important;
  color: var(--eb-text) !important;
}

html[data-eb-theme="dark"] .property-checkbox-label {
  background-color: var(--eb-bg-elevated) !important;
  border-color: var(--eb-border) !important;
  color: var(--eb-text) !important;
}

html[data-eb-theme="dark"] .property-checkbox-label:hover {
  background-color: var(--eb-bg-hover) !important;
  border-color: var(--eb-link) !important;
}

html[data-eb-theme="dark"] .property-checkbox-label strong {
  color: var(--eb-text) !important;
}

html[data-eb-theme="dark"] .property-checkbox-label small {
  color: var(--eb-text-muted) !important;
}

html[data-eb-theme="dark"] .cluster-card.card {
  background-color: var(--eb-bg-elevated) !important;
  border-color: var(--eb-border) !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25) !important;
}

html[data-eb-theme="dark"] .cluster-card .text-dark {
  color: var(--eb-text-muted) !important;
}

html[data-eb-theme="dark"] .cluster-header h3.text-dark {
  color: var(--eb-text) !important;
}

html[data-eb-theme="dark"] .cluster-header .text-secondary {
  color: var(--eb-text-muted) !important;
}

/* Legal documents (/legal-docs) */
html[data-eb-theme="dark"] .alert-rates {
  background-color: #1e3a28 !important;
  border-color: #3d8a55 !important;
  color: var(--eb-text) !important;
}

html[data-eb-theme="dark"] .alert-rates h3 {
  color: #81c995 !important;
}

html[data-eb-theme="dark"] .alert-rates b,
html[data-eb-theme="dark"] .alert-rates li,
html[data-eb-theme="dark"] .alert-rates p,
html[data-eb-theme="dark"] .alert-rates span {
  color: var(--eb-text) !important;
}

html[data-eb-theme="dark"] .doc-title {
  color: var(--eb-text) !important;
}

html[data-eb-theme="dark"] .doc-category {
  color: var(--eb-text-muted) !important;
}

/* Tenants (/tenants) */
html[data-eb-theme="dark"] .tenant-card {
  background-color: var(--eb-bg-elevated) !important;
  border-color: var(--eb-border) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25) !important;
}

html[data-eb-theme="dark"] .tenant-card:hover {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35) !important;
}

html[data-eb-theme="dark"] .tenant-card::before {
  background-color: var(--eb-link) !important;
}

html[data-eb-theme="dark"] .tenant-name {
  color: var(--eb-text) !important;
}

html[data-eb-theme="dark"] .tenant-phone,
html[data-eb-theme="dark"] .expiry-date-label {
  color: var(--eb-text-muted) !important;
}

html[data-eb-theme="dark"] .view-tenant-icon {
  color: var(--eb-link) !important;
}

html[data-eb-theme="dark"] .view-tenant-icon:hover {
  color: #a8c7fa !important;
}

html[data-eb-theme="dark"] .tenant-card-actions {
  border-top-color: var(--eb-border) !important;
}

/* Transfer requests (/transfer-requests) */
html[data-eb-theme="dark"] .transfer-card {
  background-color: var(--eb-bg-elevated) !important;
  border-color: var(--eb-border) !important;
  color: var(--eb-text) !important;
}

html[data-eb-theme="dark"] .transfer-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35) !important;
  border-color: var(--eb-link) !important;
}

html[data-eb-theme="dark"] .transfer-card .property-title {
  color: var(--eb-text) !important;
}

html[data-eb-theme="dark"] .transfer-card .property-meta,
html[data-eb-theme="dark"] .transfer-card .transfer-date {
  color: var(--eb-text-muted) !important;
}

html[data-eb-theme="dark"] .transfer-card .property-meta .meta-label {
  color: var(--eb-text) !important;
}

html[data-eb-theme="dark"] .transfer-card .property-type-badge {
  background: rgba(138, 180, 248, 0.28) !important;
  color: #a8c7fa !important;
  border: 1px solid rgba(138, 180, 248, 0.55) !important;
}

html[data-eb-theme="dark"] .transfer-card .tenant-name,
html[data-eb-theme="dark"] .transfer-card .tenant-name span {
  color: var(--eb-text) !important;
}

html[data-eb-theme="dark"] .transfer-card .tenant-label {
  background: var(--eb-bg-surface) !important;
  color: var(--eb-text-muted) !important;
}

html[data-eb-theme="dark"] .transfer-card .tenant-label.to-label {
  background: rgba(40, 167, 69, 0.2) !important;
  color: #7dcea0 !important;
}

html[data-eb-theme="dark"] .transfer-card .view-tenant-btn,
html[data-eb-theme="dark"] .transfer-card .rental-value-link {
  color: var(--eb-link) !important;
}

html[data-eb-theme="dark"] .transfer-card .view-tenant-btn:hover {
  background: rgba(138, 180, 248, 0.12) !important;
  color: #a8c7fa !important;
}

html[data-eb-theme="dark"] .transfer-card .status-badge {
  background: rgba(201, 162, 39, 0.2) !important;
  color: #e6c35c !important;
}

html[data-eb-theme="dark"] .search-input-wrapper i {
  color: var(--eb-text-muted) !important;
}

html[data-eb-theme="dark"] .search-input-wrapper input {
  background-color: var(--eb-input-bg) !important;
  border-color: var(--eb-border) !important;
  color: var(--eb-text) !important;
}

html[data-eb-theme="dark"] .search-input-wrapper input:focus {
  border-color: var(--eb-link) !important;
  box-shadow: 0 5px 15px rgba(138, 180, 248, 0.15) !important;
}

html[data-eb-theme="dark"] .btn-info[style*="color:black"],
html[data-eb-theme="dark"] .btn-info[style*="color: black"],
html[data-eb-theme="dark"] .btn-warning[style*="color:black"],
html[data-eb-theme="dark"] .btn-warning[style*="color: black"],
html[data-eb-theme="dark"] h3.pr_form .btn-info,
html[data-eb-theme="dark"] h3.pr_form .btn-warning {
  color: #fff !important;
}

/* Documents center (/documents) */
html[data-eb-theme="dark"] .tenant-section {
  background-color: var(--eb-bg-elevated) !important;
  border-color: var(--eb-border) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25) !important;
}

html[data-eb-theme="dark"] .tenant-header {
  background-color: var(--eb-bg-surface) !important;
  border-bottom-color: var(--eb-border) !important;
}

html[data-eb-theme="dark"] .tenant-header:hover {
  background-color: var(--eb-bg-hover) !important;
}

html[data-eb-theme="dark"] .tenant-header-info h4 {
  color: var(--eb-text) !important;
}

html[data-eb-theme="dark"] .tenancy-group {
  background-color: var(--eb-bg-elevated) !important;
  border-bottom-color: var(--eb-border) !important;
}

html[data-eb-theme="dark"] .property-header {
  border-bottom-color: var(--eb-border) !important;
}

html[data-eb-theme="dark"] .property-header h5 {
  color: var(--eb-text) !important;
}

html[data-eb-theme="dark"] .property-header i {
  color: var(--eb-link) !important;
}

html[data-eb-theme="dark"] .doc-card {
  background-color: var(--eb-bg-surface) !important;
  border-color: var(--eb-border) !important;
}

html[data-eb-theme="dark"] .doc-card:hover {
  background-color: var(--eb-bg-hover) !important;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.25) !important;
}

html[data-eb-theme="dark"] .documents .doc-title,
html[data-eb-theme="dark"] .tenant-section .doc-title {
  color: var(--eb-text) !important;
}

html[data-eb-theme="dark"] .doc-date {
  color: var(--eb-text-muted) !important;
}

html[data-eb-theme="dark"] .chevron-icon {
  color: var(--eb-text-muted) !important;
}

html[data-eb-theme="dark"] .text-gray-300 {
  color: var(--eb-text-muted) !important;
}

html[data-eb-theme="dark"] .text-gray-500 {
  color: var(--eb-text-muted) !important;
}

html[data-eb-theme="dark"] .d_c > a,
html[data-eb-theme="dark"] .d_c > a > i {
  color: #f7dd10 !important;
}

/* Blog entry (/blog-entry) + TinyMCE */
html[data-eb-theme="dark"] h3.pr_form.text-dark {
  color: var(--eb-text) !important;
}

html[data-eb-theme="dark"] .card.shadow .card-header {
  background-color: var(--eb-bg-surface) !important;
  border-color: var(--eb-border) !important;
}

html[data-eb-theme="dark"] .form-horizontal .control-label {
  color: var(--eb-text) !important;
}

html[data-eb-theme="dark"] .tox-tinymce,
html[data-eb-theme="dark"] .tox .tox-editor-container,
html[data-eb-theme="dark"] .tox .tox-editor-header,
html[data-eb-theme="dark"] .tox .tox-toolbar,
html[data-eb-theme="dark"] .tox .tox-toolbar__primary,
html[data-eb-theme="dark"] .tox .tox-toolbar-overlord,
html[data-eb-theme="dark"] .tox .tox-statusbar,
html[data-eb-theme="dark"] .tox .tox-sidebar-wrap {
  background-color: var(--eb-bg-surface) !important;
  border-color: var(--eb-border) !important;
}

html[data-eb-theme="dark"] .tox .tox-statusbar {
  color: var(--eb-text-muted) !important;
}

html[data-eb-theme="dark"] .tox .tox-tbtn,
html[data-eb-theme="dark"] .tox .tox-tbtn--disabled,
html[data-eb-theme="dark"] .tox .tox-tbtn--enabled {
  color: var(--eb-text-muted) !important;
}

html[data-eb-theme="dark"] .tox .tox-tbtn:hover {
  background-color: var(--eb-bg-hover) !important;
  color: var(--eb-text) !important;
}

html[data-eb-theme="dark"] .tox .tox-tbtn svg {
  fill: var(--eb-text-muted) !important;
}

html[data-eb-theme="dark"] .tox .tox-edit-area__iframe {
  background-color: var(--eb-bg-elevated) !important;
}

html[data-eb-theme="dark"] .tox .tox-promotion,
html[data-eb-theme="dark"] .tox .tox-menubar {
  background-color: var(--eb-bg-surface) !important;
}

/* Document editor (/doc-info) — legal guide alert */
html[data-eb-theme="dark"] .card-body .alert-info b,
html[data-eb-theme="dark"] .card-body .alert-info p,
html[data-eb-theme="dark"] .card-body .alert-info span,
html[data-eb-theme="dark"] .card-body .alert-info #gd_xtra {
  color: var(--eb-text-muted) !important;
}

html[data-eb-theme="dark"] .card-body .alert-info b[onclick],
html[data-eb-theme="dark"] .card-body .alert-info span[onclick] {
  color: var(--eb-link) !important;
  cursor: pointer;
}

html[data-eb-theme="dark"] .control-label span[style*="color:blue"],
html[data-eb-theme="dark"] .control-label span[style*="color: blue"] {
  color: var(--eb-link) !important;
}

html[data-eb-theme="dark"] .card-body .alert-info [style*="max-height"] {
  border-top: 1px solid var(--eb-border);
  padding-top: 10px;
}

html[data-eb-theme="dark"] #clusterSearch {
  background-color: var(--eb-input-bg) !important;
  border-color: var(--eb-border) !important;
  color: var(--eb-text) !important;
}

html[data-eb-theme="dark"] .input-group-text {
  background-color: var(--eb-bg-surface) !important;
  border-color: var(--eb-border) !important;
  color: var(--eb-text-muted) !important;
}

/* Upgrade / seller / owner modals — upload zones & tab panels */
html[data-eb-theme="dark"] .modal-content .upload-box {
  background-color: var(--eb-bg-surface) !important;
  border-color: var(--eb-border) !important;
  color: var(--eb-text) !important;
}

html[data-eb-theme="dark"] .modal-content .upload-box:hover {
  background-color: var(--eb-bg-hover) !important;
  border-color: var(--eb-link) !important;
}

html[data-eb-theme="dark"] .modal-content .upload-box.dragover {
  background-color: #1a2a3a !important;
  border-color: var(--eb-link) !important;
}

html[data-eb-theme="dark"] .modal-content .upload-box.uploading {
  background-color: #2e2a1a !important;
  border-color: #8a7340 !important;
}

html[data-eb-theme="dark"] .modal-content .upload-box.success {
  background-color: #1a2e22 !important;
  border-color: #3d8a55 !important;
}

html[data-eb-theme="dark"] .modal-content .upload-box.error,
html[data-eb-theme="dark"] .modal-content .upload-box.rejected {
  background-color: #2e1a1a !important;
  border-color: #c44 !important;
}

html[data-eb-theme="dark"] .modal-content .upload-icon {
  color: var(--eb-text-muted) !important;
}

html[data-eb-theme="dark"] .modal-content .upload-text {
  color: var(--eb-text) !important;
}

html[data-eb-theme="dark"] .modal-content .upload-hint,
html[data-eb-theme="dark"] .modal-content .upload-progress .text-muted {
  color: var(--eb-text-muted) !important;
}

html[data-eb-theme="dark"] .modal-content .upload-container.border,
html[data-eb-theme="dark"] .modal-content .upload-container.rounded,
html[data-eb-theme="dark"] .modal-content .upload-container.p-4 {
  background-color: var(--eb-bg-surface) !important;
  border-color: var(--eb-border) !important;
}

html[data-eb-theme="dark"] #upgradeTabsContent,
html[data-eb-theme="dark"] #sellerTabsContent,
html[data-eb-theme="dark"] #ownerTabsContent,
html[data-eb-theme="dark"] .modal-content .tab-content.border-left {
  background-color: var(--eb-bg-elevated) !important;
  border-color: var(--eb-border) !important;
  color: var(--eb-text) !important;
}

html[data-eb-theme="dark"] .modal-content .btn-outline-primary {
  color: var(--eb-link) !important;
  border-color: var(--eb-link) !important;
  background-color: transparent !important;
}

html[data-eb-theme="dark"] .modal-content .btn-outline-primary:hover {
  background-color: var(--eb-bg-hover) !important;
  color: var(--eb-text) !important;
}

html[data-eb-theme="dark"] .modal-content .btn-outline-primary.active,
html[data-eb-theme="dark"] .modal-content .btn-group-toggle .active.btn-outline-primary,
html[data-eb-theme="dark"] .modal-content label.btn-outline-primary.active {
  background-color: var(--eb-link) !important;
  border-color: var(--eb-link) !important;
  color: #121212 !important;
}

html[data-eb-theme="dark"] .modal-content .progress {
  background-color: var(--eb-bg-hover) !important;
}

html[data-eb-theme="dark"] .modal-content .form-text.text-muted,
html[data-eb-theme="dark"] .modal-content small.text-muted {
  color: var(--eb-text-muted) !important;
}

html[data-eb-theme="dark"] .toast {
  background-color: var(--eb-bg-elevated) !important;
  color: var(--eb-text) !important;
}

html[data-eb-theme="dark"] .toast-header:not(.bg-success):not(.bg-danger):not(.bg-warning) {
  background-color: var(--eb-bg-surface) !important;
  color: var(--eb-text) !important;
  border-color: var(--eb-border) !important;
}

html[data-eb-theme="dark"] .list-group-item {
  background-color: var(--eb-bg-elevated) !important;
  color: var(--eb-text) !important;
  border-color: var(--eb-border) !important;
}

html[data-eb-theme="dark"] .list-group-item-action:hover,
html[data-eb-theme="dark"] .list-group-item-action:focus {
  background-color: var(--eb-bg-hover) !important;
  color: var(--eb-text) !important;
}

html[data-eb-theme="dark"] .border,
html[data-eb-theme="dark"] .border-top,
html[data-eb-theme="dark"] .border-bottom {
  border-color: var(--eb-border) !important;
}

html[data-eb-theme="dark"] hr {
  border-color: var(--eb-border) !important;
}

/* Dashboard sidebar — match topbar elevated dark shell */
html[data-eb-theme="dark"] #ebCustomSidebar.eb-custom-sidebar,
html[data-eb-theme="dark"] .eb-custom-sidebar {
  background: var(--eb-bg-elevated) !important;
  background-image: none !important;
  color: var(--eb-text-muted) !important;
  box-shadow: 2px 0 12px rgba(0, 0, 0, 0.35) !important;
}

html[data-eb-theme="dark"] .eb-custom-sidebar .eb-sidebar-header {
  border-bottom-color: var(--eb-border) !important;
}

html[data-eb-theme="dark"] .eb-custom-sidebar .eb-sidebar-logo {
  filter: brightness(0) invert(1);
  opacity: 0.92;
}

html[data-eb-theme="dark"] .eb-custom-sidebar a.eb-nav-link,
html[data-eb-theme="dark"] .eb-custom-sidebar .eb-nav-link,
html[data-eb-theme="dark"] .eb-custom-sidebar .eb-nav-label,
html[data-eb-theme="dark"] .eb-custom-sidebar .eb-nav-link i {
  color: var(--eb-text-muted) !important;
}

html[data-eb-theme="dark"] .eb-custom-sidebar .eb-nav-link:hover,
html[data-eb-theme="dark"] .eb-custom-sidebar .eb-sub-menu-item .eb-nav-link:hover {
  background-color: var(--eb-bg-surface) !important;
  color: var(--eb-text) !important;
}

html[data-eb-theme="dark"] .eb-custom-sidebar .eb-nav-link:hover .eb-nav-label,
html[data-eb-theme="dark"] .eb-custom-sidebar .eb-nav-link:hover i {
  color: var(--eb-text) !important;
}

/* Active/hover highlight on the link row only — not on labels, icons, or images */
html[data-eb-theme="dark"] .eb-custom-sidebar .eb-nav-link.eb-menu-active,
html[data-eb-theme="dark"] .eb-custom-sidebar .eb-nav-item.active > .eb-nav-link {
  background-color: var(--eb-bg-surface) !important;
  color: #f7dd10 !important;
}

html[data-eb-theme="dark"] .eb-custom-sidebar .eb-nav-link.eb-menu-active .eb-nav-label,
html[data-eb-theme="dark"] .eb-custom-sidebar .eb-nav-link.eb-menu-active i,
html[data-eb-theme="dark"] .eb-custom-sidebar .eb-nav-item.active > .eb-nav-link .eb-nav-label,
html[data-eb-theme="dark"] .eb-custom-sidebar .eb-nav-item.active > .eb-nav-link i,
html[data-eb-theme="dark"] .eb-custom-sidebar .eb-nav-link .eb-nav-label,
html[data-eb-theme="dark"] .eb-custom-sidebar .eb-nav-link i,
html[data-eb-theme="dark"] .eb-custom-sidebar .eb-nav-link span,
html[data-eb-theme="dark"] .eb-custom-sidebar .eb-nav-link .eb-nav-icon-label,
html[data-eb-theme="dark"] .eb-custom-sidebar .eb-nav-link .eb-label-caption,
html[data-eb-theme="dark"] .eb-custom-sidebar .eb-nav-link img {
  background: none !important;
  background-color: transparent !important;
}

html[data-eb-theme="dark"] .eb-custom-sidebar .eb-nav-link.eb-menu-active,
html[data-eb-theme="dark"] .eb-custom-sidebar .eb-nav-link.eb-menu-active .eb-nav-label,
html[data-eb-theme="dark"] .eb-custom-sidebar .eb-nav-link.eb-menu-active i,
html[data-eb-theme="dark"] .eb-custom-sidebar .eb-nav-item.active > .eb-nav-link,
html[data-eb-theme="dark"] .eb-custom-sidebar .eb-nav-item.active > .eb-nav-link .eb-nav-label,
html[data-eb-theme="dark"] .eb-custom-sidebar .eb-nav-item.active > .eb-nav-link i {
  color: #f7dd10 !important;
}

html[data-eb-theme="dark"] .eb-custom-sidebar .eb-menu-section {
  border-bottom-color: var(--eb-border) !important;
}

html[data-eb-theme="dark"] .eb-custom-sidebar .eb-menu-section-title {
  color: var(--eb-text-muted) !important;
}

html[data-eb-theme="dark"] .eb-custom-sidebar .eb-menu-section-title:hover {
  color: #f7dd10 !important;
}

html[data-eb-theme="dark"] .eb-custom-sidebar .eb-menu-caption-label {
  color: #f7dd10 !important;
}

html[data-eb-theme="dark"] .eb-custom-sidebar .eb-sidebar-toggle {
  background-color: var(--eb-bg-surface) !important;
  color: var(--eb-text) !important;
}

html[data-eb-theme="dark"] .eb-custom-sidebar .eb-sidebar-toggle:hover {
  background-color: var(--eb-bg-hover) !important;
}

html[data-eb-theme="dark"] .eb-custom-sidebar #rn-img {
  border-color: var(--eb-border) !important;
}

html[data-eb-theme="dark"] .eb-mobile-overlay.eb-active {
  background: rgba(0, 0, 0, 0.65) !important;
}

/* Legacy SB Admin sidebar (if present) */
html[data-eb-theme="dark"] .sidebar,
html[data-eb-theme="dark"] .sidebar .nav-item .nav-link {
  background-color: var(--eb-bg-elevated) !important;
  color: var(--eb-text-muted) !important;
}

html[data-eb-theme="dark"] .sidebar .nav-item.active .nav-link,
html[data-eb-theme="dark"] .sidebar .nav-item .nav-link:hover {
  color: var(--eb-text) !important;
  background-color: var(--eb-bg-surface) !important;
}

html[data-eb-theme="dark"] .topbar,
html[data-eb-theme="dark"] nav.topbar,
html[data-eb-theme="dark"] .navbar-light.bg-white {
  background-color: var(--eb-bg-elevated) !important;
  color: var(--eb-text) !important;
  box-shadow: 0 0.15rem 1rem rgba(0, 0, 0, 0.35) !important;
}

html[data-eb-theme="dark"] .topbar .username,
html[data-eb-theme="dark"] .notification-bell,
html[data-eb-theme="dark"] #ftco-navbar .notification-bell,
html[data-eb-theme="dark"] .topbar .notification-bell,
html[data-eb-theme="dark"] .eb-navbar-actions .notification-bell {
  color: var(--eb-text-muted) !important;
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
}

html[data-eb-theme="dark"] .notification-bell:hover,
html[data-eb-theme="dark"] .notification-bell:focus,
html[data-eb-theme="dark"] .notification-bell:active,
html[data-eb-theme="dark"] .notification-bell:focus-visible,
html[data-eb-theme="dark"] .topbar .notification-bell:hover,
html[data-eb-theme="dark"] .topbar #mobileHamburger:hover {
  color: var(--eb-link) !important;
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
}

html[data-eb-theme="dark"] .sticky-footer,
html[data-eb-theme="dark"] footer.bg-white,
html[data-eb-theme="dark"] .ftco-footer {
  background-color: var(--eb-bg-elevated) !important;
  color: var(--eb-text-muted) !important;
}

/* ── Cards, sections, modals ── */
html[data-eb-theme="dark"] .card,
html[data-eb-theme="dark"] .form-card,
html[data-eb-theme="dark"] .modal-content,
html[data-eb-theme="dark"] .dropdown-menu,
html[data-eb-theme="dark"] .notification-dropdown,
html[data-eb-theme="dark"] .js-dropdown-menu,
html[data-eb-theme="dark"] .properties .text,
html[data-eb-theme="dark"] .blog-entry,
html[data-eb-theme="dark"] .block-20,
html[data-eb-theme="dark"] .table-responsive,
html[data-eb-theme="dark"] .list-group-item {
  background-color: var(--eb-bg-elevated) !important;
  color: var(--eb-text) !important;
  border-color: var(--eb-border) !important;
}

html[data-eb-theme="dark"] .ftco-section,
html[data-eb-theme="dark"] section.ftco-section,
html[data-eb-theme="dark"] .ftco-section.bg-light {
  background-color: var(--eb-bg) !important;
  color: var(--eb-text) !important;
}

/* Bootstrap light surfaces → theme grays (jobs, governance, articles, etc.) */
html[data-eb-theme="dark"] .bg-white {
  background-color: var(--eb-bg-elevated) !important;
}

html[data-eb-theme="dark"] .bg-light:not(.btn):not(.badge) {
  background-color: var(--eb-bg-surface) !important;
}

/* .bg-white / .bg-light on text nodes — container already provides the panel */
html[data-eb-theme="dark"] span.bg-white,
html[data-eb-theme="dark"] span.bg-light,
html[data-eb-theme="dark"] p.bg-white,
html[data-eb-theme="dark"] p.bg-light,
html[data-eb-theme="dark"] label.bg-white,
html[data-eb-theme="dark"] label.bg-light,
html[data-eb-theme="dark"] h1.bg-white,
html[data-eb-theme="dark"] h2.bg-white,
html[data-eb-theme="dark"] h3.bg-white,
html[data-eb-theme="dark"] h4.bg-white,
html[data-eb-theme="dark"] h5.bg-white,
html[data-eb-theme="dark"] h6.bg-white,
html[data-eb-theme="dark"] li.bg-white,
html[data-eb-theme="dark"] li.bg-light,
html[data-eb-theme="dark"] i.bg-white,
html[data-eb-theme="dark"] i.bg-light,
html[data-eb-theme="dark"] .ftco-navbar-light .navbar-nav > .nav-item > .nav-link {
  background-color: transparent !important;
  background-image: none !important;
}

html[data-eb-theme="dark"] .badge.bg-light,
html[data-eb-theme="dark"] .badge.bg-light.text-dark {
  background-color: var(--eb-bg-surface) !important;
  color: var(--eb-text) !important;
  border-color: var(--eb-border) !important;
}

html[data-eb-theme="dark"] .badge.bg-warning.text-dark {
  background-color: #5a4f2d !important;
  color: #e8d9b8 !important;
}

html[data-eb-theme="dark"] .input-group-text.bg-white {
  background-color: var(--eb-input-bg) !important;
  color: var(--eb-text-muted) !important;
  border-color: var(--eb-border) !important;
}

html[data-eb-theme="dark"] .btn-light {
  background-color: var(--eb-bg-surface) !important;
  color: var(--eb-text) !important;
  border-color: var(--eb-border) !important;
}

html[data-eb-theme="dark"] .btn-outline-secondary {
  color: var(--eb-text-muted) !important;
  border-color: var(--eb-border) !important;
}

html[data-eb-theme="dark"] .btn-outline-secondary:hover {
  background-color: var(--eb-bg-hover) !important;
  color: var(--eb-text) !important;
}

/* ── Careers / jobs page ── */
html[data-eb-theme="dark"] .why-card,
html[data-eb-theme="dark"] .job-card,
html[data-eb-theme="dark"] .filter-section,
html[data-eb-theme="dark"] .openings-note,
html[data-eb-theme="dark"] .bg-soft-light {
  background-color: var(--eb-bg-elevated) !important;
  border-color: var(--eb-border) !important;
  color: var(--eb-text) !important;
}

html[data-eb-theme="dark"] .why-card h4,
html[data-eb-theme="dark"] .job-title,
html[data-eb-theme="dark"] .job-title a,
html[data-eb-theme="dark"] .section-title {
  color: var(--eb-text) !important;
}

html[data-eb-theme="dark"] .why-card p,
html[data-eb-theme="dark"] .job-description,
html[data-eb-theme="dark"] .job-meta,
html[data-eb-theme="dark"] .section-subhead {
  color: var(--eb-text-muted) !important;
}

html[data-eb-theme="dark"] .why-icon {
  color: #5eb8d4 !important;
}

html[data-eb-theme="dark"] .trait-badge {
  background-color: var(--eb-bg-surface) !important;
  color: var(--eb-text) !important;
}

html[data-eb-theme="dark"] .trait-list li {
  color: var(--eb-text) !important;
}

html[data-eb-theme="dark"] .job-footer {
  border-top-color: var(--eb-border) !important;
}

html[data-eb-theme="dark"] .openings-note {
  border-left-color: #5eb8d4 !important;
}

/* ── Corporate governance (/cg_risk, /corporate_governance, etc.) ── */
html[data-eb-theme="dark"] .gov-docs .doc-card,
html[data-eb-theme="dark"] .gov-doc-page .doc-shell {
  background-color: var(--eb-bg-elevated) !important;
  border-color: var(--eb-border) !important;
  color: var(--eb-text) !important;
}

html[data-eb-theme="dark"] .gov-docs .doc-title,
html[data-eb-theme="dark"] .gov-doc-page .doc-title,
html[data-eb-theme="dark"] .gov-doc-page .doc-section-title,
html[data-eb-theme="dark"] .gov-doc-page .doc-body,
html[data-eb-theme="dark"] .gov-doc-page .doc-body p,
html[data-eb-theme="dark"] .gov-doc-page .doc-body li {
  color: var(--eb-text) !important;
}

html[data-eb-theme="dark"] .gov-docs .doc-meta,
html[data-eb-theme="dark"] .gov-doc-page .doc-subtitle,
html[data-eb-theme="dark"] .gov-docs .heading-section .doc-meta {
  color: var(--eb-text-muted) !important;
}

html[data-eb-theme="dark"] .gov-doc-page .heading-section h3 {
  color: var(--eb-text) !important;
}

html[data-eb-theme="dark"] .careers-page .panel {
  background-color: var(--eb-bg-elevated) !important;
  border-color: var(--eb-border) !important;
  color: var(--eb-text) !important;
}

html[data-eb-theme="dark"] .careers-page .hero-title,
html[data-eb-theme="dark"] .careers-page .section-title,
html[data-eb-theme="dark"] .careers-page .body-text {
  color: var(--eb-text) !important;
}

html[data-eb-theme="dark"] .careers-page .hero-subtitle {
  color: var(--eb-text-muted) !important;
}

/* ── FAQ (/faq) ── */
html[data-eb-theme="dark"] .faq-section .card-header {
  background-color: var(--eb-bg-surface) !important;
}

html[data-eb-theme="dark"] .faq-section .card-body {
  background-color: var(--eb-bg-elevated) !important;
  color: var(--eb-text-muted) !important;
}

html[data-eb-theme="dark"] .faq-section .nav-tabs .nav-link {
  color: var(--eb-text-muted) !important;
  border-color: var(--eb-border) !important;
  background-color: transparent !important;
}

html[data-eb-theme="dark"] .faq-section .nav-tabs .nav-link:hover:not(.active) {
  background-color: var(--eb-bg-hover) !important;
  color: var(--eb-text) !important;
}

html[data-eb-theme="dark"] .faq-section .btn-link {
  color: #5eb8d4 !important;
}

html[data-eb-theme="dark"] .faq-section .btn-link:hover {
  color: #8ed4ea !important;
}

/* ── Investors (/investors) & Partners (/partners) ── */
html[data-eb-theme="dark"] .why-section,
html[data-eb-theme="dark"] .partnerships-section,
html[data-eb-theme="dark"] .commit-section,
html[data-eb-theme="dark"] .intro-strip,
html[data-eb-theme="dark"] .expand-section {
  background: var(--eb-bg) !important;
}

/* Partners CTA button — solid black fill on dark mode */
html[data-eb-theme="dark"] .cta-band .btn-cta,
html[data-eb-theme="dark"] .cta-band .btn-cta:hover,
html[data-eb-theme="dark"] .cta-band .btn-cta:focus {
  background: #000000 !important;
  background-color: #000000 !important;
  color: #ffffff !important;
  border: 1px solid #000000 !important;
  box-shadow: none !important;
  transform: none !important;
}

html[data-eb-theme="dark"] .cta-band .btn-cta:hover {
  background: #121212 !important;
  background-color: #121212 !important;
  border-color: #121212 !important;
}

html[data-eb-theme="dark"] .join-section {
  background: var(--eb-bg) !important;
  border-color: var(--eb-border) !important;
}

html[data-eb-theme="dark"] .intro-strip {
  border-bottom-color: var(--eb-border) !important;
}

html[data-eb-theme="dark"] .intro-strip .intro-text,
html[data-eb-theme="dark"] .section-lead,
html[data-eb-theme="dark"] .section-sub,
html[data-eb-theme="dark"] .partner-card .card-desc,
html[data-eb-theme="dark"] .why-card .wc-desc,
html[data-eb-theme="dark"] .commit-item .ci-text span,
html[data-eb-theme="dark"] .join-section .contact-box p,
html[data-eb-theme="dark"] .join-section .ji-item,
html[data-eb-theme="dark"] .collab-point .cp-text span {
  color: var(--eb-text-muted) !important;
}

html[data-eb-theme="dark"] .partner-card .card-title,
html[data-eb-theme="dark"] .why-card .wc-title,
html[data-eb-theme="dark"] .commit-item .ci-text strong,
html[data-eb-theme="dark"] .join-section .contact-box h4,
html[data-eb-theme="dark"] .collab-point .cp-text strong {
  color: var(--eb-text) !important;
}

html[data-eb-theme="dark"] .partner-card,
html[data-eb-theme="dark"] .commit-item,
html[data-eb-theme="dark"] .join-section .ji-wrap,
html[data-eb-theme="dark"] .join-section .contact-box {
  background-color: var(--eb-bg-elevated) !important;
  border-color: var(--eb-border) !important;
}

html[data-eb-theme="dark"] .partner-tag,
html[data-eb-theme="dark"] .section-label {
  background: rgba(94, 184, 212, 0.18) !important;
  color: #8ed4ea !important;
}

html[data-eb-theme="dark"] .img-placeholder {
  background: var(--eb-bg-surface) !important;
  border-color: var(--eb-border) !important;
  color: var(--eb-text-muted) !important;
}

/* Partners (/partners) — network callout: no light panel in dark mode */
html[data-eb-theme="dark"] .eb-partners-network-callout {
  background: transparent !important;
  background-color: transparent !important;
  border-color: var(--eb-border) !important;
}

html[data-eb-theme="dark"] .eb-partners-network-callout p {
  color: #8ed4ea !important;
}

html[data-eb-theme="dark"] .eb-partners-network-callout a {
  color: #5eb8d4 !important;
  font-weight: 700 !important;
  text-decoration: none !important;
}

html[data-eb-theme="dark"] .eb-partners-network-callout i,
html[data-eb-theme="dark"] .eb-partners-network-callout svg {
  color: #8ed4ea !important;
}

/* ── Finance partner dashboard (/finance-partner-dashboard) ── */
html[data-eb-theme="dark"] .fp-page {
  color: var(--eb-text) !important;
}

html[data-eb-theme="dark"] .fp-page .fp-metric {
  background-color: var(--eb-bg-elevated) !important;
}

html[data-eb-theme="dark"] .fp-page .fp-metric h3 {
  color: var(--eb-text) !important;
}

html[data-eb-theme="dark"] .fp-page .fp-metric p {
  color: var(--eb-text-muted) !important;
}

html[data-eb-theme="dark"] .fp-page .fp-quick-link {
  background-color: var(--eb-bg-elevated) !important;
  border-color: var(--eb-border) !important;
  color: var(--eb-text) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25) !important;
}

html[data-eb-theme="dark"] .fp-page .fp-quick-link:hover,
html[data-eb-theme="dark"] .fp-page .fp-quick-link:focus {
  color: var(--eb-link) !important;
  border-color: var(--eb-link) !important;
}

html[data-eb-theme="dark"] .fp-page .card,
html[data-eb-theme="dark"] .fp-page .card-body {
  background-color: var(--eb-bg-elevated) !important;
  color: var(--eb-text) !important;
  border-color: var(--eb-border) !important;
}

html[data-eb-theme="dark"] .fp-page .thead-light th {
  background-color: var(--eb-bg-surface) !important;
  color: var(--eb-text-muted) !important;
  border-color: var(--eb-border) !important;
}

html[data-eb-theme="dark"] .fp-page .table th,
html[data-eb-theme="dark"] .fp-page .table td {
  color: var(--eb-text) !important;
  border-color: var(--eb-border) !important;
}

html[data-eb-theme="dark"] .fp-page .table-hover tbody tr:hover th,
html[data-eb-theme="dark"] .fp-page .table-hover tbody tr:hover td {
  background-color: var(--eb-bg-hover) !important;
}

html[data-eb-theme="dark"] .fp-page .badge-light {
  background-color: var(--eb-bg-surface) !important;
  color: var(--eb-text) !important;
  border: 1px solid var(--eb-border) !important;
}

/* Finance partner requests + settings pages (/finance-partner-requests, /finance-partner-settings) */
html[data-eb-theme="dark"] .fp-page {
  background-color: var(--eb-bg) !important;
}

html[data-eb-theme="dark"] .fp-page .fp-card {
  background-color: var(--eb-bg-elevated) !important;
  color: var(--eb-text) !important;
  border-left-color: var(--eb-border) !important; /* page inline colors still apply; this keeps dark base */
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25) !important;
}

html[data-eb-theme="dark"] .fp-page .fp-card .text-muted,
html[data-eb-theme="dark"] .fp-page .fp-card .text-muted * {
  color: var(--eb-text-muted) !important;
}

html[data-eb-theme="dark"] .fp-page .fp-logo-upload {
  background-color: var(--eb-bg-surface) !important;
  border-color: var(--eb-border) !important;
}

html[data-eb-theme="dark"] .fp-page .fp-logo-placeholder {
  color: var(--eb-text-muted) !important;
}

/* ── Community (/community) ── */
html[data-eb-theme="dark"] .modern-card,
html[data-eb-theme="dark"] .hero-section,
html[data-eb-theme="dark"] .pbc-card,
html[data-eb-theme="dark"] .modal-defaulter-card,
html[data-eb-theme="dark"] .about-section {
  background-color: var(--eb-bg-elevated) !important;
  border-color: var(--eb-border) !important;
}

html[data-eb-theme="dark"] .card-image-wrapper {
  background-color: var(--eb-bg-surface) !important;
}

html[data-eb-theme="dark"] .card-name,
html[data-eb-theme="dark"] .subsection-title {
  color: var(--eb-text) !important;
}

html[data-eb-theme="dark"] .card-info,
html[data-eb-theme="dark"] .empty-state {
  color: var(--eb-text-muted) !important;
}

html[data-eb-theme="dark"] .pbc-label {
  background-color: var(--eb-bg-surface) !important;
  color: var(--eb-text-muted) !important;
}

html[data-eb-theme="dark"] .loading-card {
  background: linear-gradient(
    90deg,
    var(--eb-bg-surface) 25%,
    var(--eb-bg-hover) 50%,
    var(--eb-bg-surface) 75%
  ) !important;
}

/* ── Agent properties (agent-properties.php) ── */
html[data-eb-theme="dark"] .community-features {
  background-color: var(--eb-bg) !important;
}

html[data-eb-theme="dark"] .community-features .section-title {
  color: var(--eb-text) !important;
}

html[data-eb-theme="dark"] .community-features .section-subtitle {
  color: var(--eb-text-muted) !important;
}

html[data-eb-theme="dark"] .feature-card {
  background-color: var(--eb-bg-elevated) !important;
  border: 1px solid var(--eb-border);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.25) !important;
}

html[data-eb-theme="dark"] .feature-card:hover {
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.35) !important;
}

html[data-eb-theme="dark"] .feature-image {
  background-color: var(--eb-bg-surface) !important;
  color: var(--eb-text-muted) !important;
}

html[data-eb-theme="dark"] .feature-content h3 {
  color: #5eb8d4 !important;
}

html[data-eb-theme="dark"] .feature-content p {
  color: var(--eb-text-muted) !important;
}

html[data-eb-theme="dark"] .read-more {
  color: var(--eb-link) !important;
}

html[data-eb-theme="dark"] .read-more:hover {
  color: #a8c7fa !important;
}

html[data-eb-theme="dark"] .ln_cs {
  color: var(--eb-text-muted) !important;
}

html:not([data-eb-theme="dark"]) .properties .ln_cs,
html:not([data-eb-theme="dark"]) .properties .ln_cs b {
  color: #495057 !important;
}

/* ── Job detail (/job/…) ── */
html[data-eb-theme="dark"] .job-detail-card {
  background-color: var(--eb-bg-elevated) !important;
  color: var(--eb-text) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35) !important;
}

html[data-eb-theme="dark"] .job-detail-card h3,
html[data-eb-theme="dark"] .job-detail-card h5 {
  color: var(--eb-text) !important;
}

html[data-eb-theme="dark"] .job-description,
html[data-eb-theme="dark"] .job-description p,
html[data-eb-theme="dark"] .job-description li,
html[data-eb-theme="dark"] .job-description span {
  color: var(--eb-text-muted) !important;
}

html[data-eb-theme="dark"] .job-info-item {
  border-bottom-color: var(--eb-border) !important;
}

html[data-eb-theme="dark"] .job-info-label {
  color: var(--eb-text) !important;
}

html[data-eb-theme="dark"] .job-info-value {
  color: var(--eb-text-muted) !important;
}

html[data-eb-theme="dark"] .job-info-icon {
  color: #5eb8d4 !important;
}

html[data-eb-theme="dark"] .share-section {
  border-top-color: var(--eb-border) !important;
}

html[data-eb-theme="dark"] .captcha-box {
  background-color: var(--eb-bg-surface) !important;
  border-color: var(--eb-border) !important;
}

html[data-eb-theme="dark"] .captcha-question {
  color: #5eb8d4 !important;
}

html[data-eb-theme="dark"] section.ftco-section .card .card-body {
  background-color: var(--eb-bg-elevated) !important;
}

/* ── About (/about) ── */
html[data-eb-theme="dark"] .purpose-section,
html[data-eb-theme="dark"] .approach-section,
html[data-eb-theme="dark"] .vision-section,
html[data-eb-theme="dark"] .ahead-section {
  background: var(--eb-bg) !important;
  border-color: var(--eb-border) !important;
}

html[data-eb-theme="dark"] .purpose-card,
html[data-eb-theme="dark"] .vtag {
  background-color: var(--eb-bg-elevated) !important;
  border-color: var(--eb-border) !important;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25) !important;
}

html[data-eb-theme="dark"] .approach-pillar {
  background-color: var(--eb-bg-elevated) !important;
  border-color: var(--eb-border) !important;
}

html[data-eb-theme="dark"] .purpose-card .pc-title,
html[data-eb-theme="dark"] .approach-pillar .ap-text strong,
html[data-eb-theme="dark"] .tl-item h4 {
  color: var(--eb-text) !important;
}

html[data-eb-theme="dark"] .purpose-card .pc-desc,
html[data-eb-theme="dark"] .approach-pillar .ap-text span,
html[data-eb-theme="dark"] .tl-item p,
html[data-eb-theme="dark"] .vision-quote {
  color: var(--eb-text-muted) !important;
}

html[data-eb-theme="dark"] .vtag {
  color: #8ed4ea !important;
}

html[data-eb-theme="dark"] .vtag i {
  color: #5eb8d4 !important;
}

html[data-eb-theme="dark"] .ahead-section .mt-4.p-4 {
  background-color: var(--eb-bg-surface) !important;
  border: 1px solid var(--eb-border) !important;
}

html[data-eb-theme="dark"] .ahead-section .mt-4.p-4 p {
  color: var(--eb-text-muted) !important;
}

html[data-eb-theme="dark"] .ahead-section .mt-4.p-4 a {
  color: var(--eb-link) !important;
}

html[data-eb-theme="dark"] .modal-header,
html[data-eb-theme="dark"] .modal-footer,
html[data-eb-theme="dark"] .notification-header,
html[data-eb-theme="dark"] .dropdown-item {
  background-color: var(--eb-bg-surface) !important;
  color: var(--eb-text) !important;
  border-color: var(--eb-border) !important;
}

html[data-eb-theme="dark"] .dropdown-item:hover,
html[data-eb-theme="dark"] .dropdown-item:focus {
  background-color: var(--eb-bg) !important;
  color: var(--eb-text) !important;
}

html[data-eb-theme="dark"] .close,
html[data-eb-theme="dark"] button.close,
html[data-eb-theme="dark"] .close span {
  color: var(--eb-text) !important;
  text-shadow: none;
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  border: none !important;
  box-shadow: none !important;
}

html[data-eb-theme="dark"] .close:hover,
html[data-eb-theme="dark"] .close:focus,
html[data-eb-theme="dark"] button.close:hover,
html[data-eb-theme="dark"] button.close:focus {
  background: transparent !important;
  background-color: transparent !important;
}

/* ── Forms ── */
html[data-eb-theme="dark"] input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]):not([type="submit"]):not([type="button"]):not([type="image"]),
html[data-eb-theme="dark"] textarea,
html[data-eb-theme="dark"] select,
html[data-eb-theme="dark"] .form-control,
html[data-eb-theme="dark"] .custom-select {
  background-color: var(--eb-input-bg) !important;
  color: var(--eb-text) !important;
  border-color: var(--eb-border) !important;
}

html[data-eb-theme="dark"] input::placeholder,
html[data-eb-theme="dark"] textarea::placeholder,
html[data-eb-theme="dark"] .form-control::placeholder {
  color: var(--eb-placeholder) !important;
  opacity: 1 !important;
}

html[data-eb-theme="dark"] .input-group-text,
html[data-eb-theme="dark"] .custom-file-label {
  background-color: var(--eb-bg-surface) !important;
  color: var(--eb-text) !important;
  border-color: var(--eb-border) !important;
}

/* ── Tables ── */
html[data-eb-theme="dark"] .table,
html[data-eb-theme="dark"] table {
  color: var(--eb-text) !important;
}

html[data-eb-theme="dark"] .table thead th,
html[data-eb-theme="dark"] .table td,
html[data-eb-theme="dark"] .table th {
  border-color: var(--eb-border) !important;
  color: var(--eb-text) !important;
}

html[data-eb-theme="dark"] .table-striped tbody tr:nth-of-type(odd) {
  background-color: var(--eb-bg-surface) !important;
}

/* ── Search / autocomplete (header.php) ── */
html[data-eb-theme="dark"] .ftco-search {
  background: #1a3a44 !important;
}

html[data-eb-theme="dark"] .ui-autocomplete {
  background-color: var(--eb-bg-elevated) !important;
  border-color: var(--eb-border) !important;
  color: var(--eb-text) !important;
}

html[data-eb-theme="dark"] .search-wrap .heading {
  background: var(--eb-bg-surface) !important;
  color: var(--eb-text) !important;
}

/* Search toggle (#show-search-md): transparent h2, dark grey pill, black lens */
html[data-eb-theme="dark"] #show-search-md.heading,
html[data-eb-theme="dark"] .search-wrap #show-search-md {
  background: transparent !important;
  color: inherit !important;
}

html[data-eb-theme="dark"] #show-search-md > span.sh_icon,
html[data-eb-theme="dark"] .search-wrap #show-search-md > span {
  background: var(--eb-bg-gray) !important;
  color: #1a1a1a !important;
}

/* Floating home search panel — light mode (overrides style.css white hero fields) */
html:not([data-eb-theme="dark"]) #search-md .search-property .form-group label,
html:not([data-eb-theme="dark"]) #search-md .search-caption {
  color: #212529 !important;
}

html:not([data-eb-theme="dark"]) #search-md .search-property .form-group .form-control,
html:not([data-eb-theme="dark"]) #search-md .search-property select.form-control,
html:not([data-eb-theme="dark"]) #search-md .search-property input.form-control {
  color: #212529 !important;
  background-color: #fff !important;
  border-color: #495057 !important;
  -webkit-text-fill-color: #212529 !important;
}

html:not([data-eb-theme="dark"]) #search-md .search-property .form-group .form-control::placeholder,
html:not([data-eb-theme="dark"]) #search-md .search-property .form-group .form-control::-webkit-input-placeholder {
  color: #6c757d !important;
  opacity: 1 !important;
}

html:not([data-eb-theme="dark"]) #search-md .search-property .form-group .icon {
  color: #495057 !important;
}

#search-md .search-property .search-submit-btn {
  min-height: 42px;
  height: 42px;
  background-color: #252a2b !important;
  border: 1px solid #252a2b !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  font-weight: 600;
  border-radius: 15px;
}

/* ── Header price accents → readable on dark ── */
html[data-eb-theme="dark"] .two_top,
html[data-eb-theme="dark"] .two,
html[data-eb-theme="dark"] .properties .text .two .price {
  color: #f5a623 !important;
}

html[data-eb-theme="dark"] .option-btns {
  color: var(--eb-link) !important;
  border-color: var(--eb-border) !important;
}

html[data-eb-theme="dark"] .ow_selected {
  color: var(--eb-text) !important;
  background: #117da3 !important;
}

/* ── Property info sidebars (sale + rental) & engagement pills ── */
html[data-eb-theme="dark"] .ftco-section .sidebar.col-lg-4 {
  background-color: var(--eb-bg) !important;
}

html[data-eb-theme="dark"] .ftco-section .sidebar-box {
  background: var(--eb-bg) !important;
  color: var(--eb-text) !important;
}

html[data-eb-theme="dark"] .ftco-section .room-card.card,
html[data-eb-theme="dark"] .ftco-section .room-card .card-body {
  background-color: var(--eb-bg) !important;
  color: var(--eb-text) !important;
  border-color: var(--eb-border) !important;
  box-shadow: none !important;
}

html[data-eb-theme="dark"] .ftco-section .room-card .card-title,
html[data-eb-theme="dark"] .ftco-section .room-card .card-text {
  color: var(--eb-text) !important;
}

html[data-eb-theme="dark"] .ftco-section .room-card .text-secondary {
  color: var(--eb-text-muted) !important;
}

html[data-eb-theme="dark"] .sidebar-box h3,
html[data-eb-theme="dark"] .sidebar-box h6 {
  color: var(--eb-text) !important;
}

html[data-eb-theme="dark"] #owner_info {
  background: var(--eb-bg-surface) !important;
  border-color: var(--eb-border) !important;
  color: var(--eb-text) !important;
}

html[data-eb-theme="dark"] #owner_info h6,
html[data-eb-theme="dark"] #owner_info h3,
html[data-eb-theme="dark"] #owner_info p {
  color: var(--eb-text) !important;
}

html[data-eb-theme="dark"] .sidebar-box .report_div {
  background: var(--eb-bg-surface) !important;
  border: 1px solid var(--eb-border);
}

html[data-eb-theme="dark"] .sidebar-box .reason_option {
  color: var(--eb-text) !important;
}

html[data-eb-theme="dark"] .sidebar-box .report_div textarea {
  background: var(--eb-input-bg) !important;
  color: var(--eb-text) !important;
  border-color: var(--eb-border) !important;
}

html[data-eb-theme="dark"] .seller-info-card {
  background: var(--eb-bg-elevated) !important;
  border-color: var(--eb-border) !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.35) !important;
}

html[data-eb-theme="dark"] .seller-info-card .meta-list {
  color: var(--eb-text-muted) !important;
}

html[data-eb-theme="dark"] .engagement-pill {
  background: var(--eb-bg-surface) !important;
  border-color: var(--eb-border) !important;
  color: var(--eb-text) !important;
}

html[data-eb-theme="dark"] a.engagement-pill {
  color: var(--eb-text) !important;
}

html[data-eb-theme="dark"] .engagement-pill:hover {
  background: var(--eb-bg-hover) !important;
  border-color: var(--eb-border) !important;
}

html[data-eb-theme="dark"] .engagement-pill.is-liked {
  background: #3d2a2a !important;
  border-color: #8b4545 !important;
}

html[data-eb-theme="dark"] .engagement-pill-label {
  color: var(--eb-text-muted) !important;
}

html[data-eb-theme="dark"] .engagement-pill-count {
  color: var(--eb-text) !important;
}

html[data-eb-theme="dark"] .badge-map {
  background-color: rgba(34, 197, 94, 0.12) !important;
  color: #86efac !important;
  border: 1px solid #22c55e !important;
}

html[data-eb-theme="dark"] .badge-map:hover {
  background-color: #16a34a !important;
  color: #fff !important;
  border-color: #16a34a !important;
}

/* ── Preserve semantic UI (buttons, badges, status pills) ── */
/* Actual preservation is handled by eb-theme.js skip rules and component-specific CSS. */

/* Property rental availability pills — keep solid status colors in dark mode */
html[data-eb-theme="dark"] .rental-avail-badge {
  color: #fff !important;
}
html[data-eb-theme="dark"] .rental-avail-badge.is-available {
  background-color: #28a745 !important;
  background-image: none !important;
}
html[data-eb-theme="dark"] .rental-avail-badge.is-occupied {
  background-color: #ff8c00 !important;
  background-image: none !important;
}
html[data-eb-theme="dark"] .rental-avail-badge.is-unavailable {
  background-color: #000 !important;
  background-image: none !important;
}

/* Sponsored listing P/crown badge — keep circular dark pill + gold letter in dark mode */
html[data-eb-theme="dark"] .listing-boost-p-badge,
html[data-eb-theme="dark"] .listing-crown-badge {
  background: rgba(0, 0, 0, 0.55) !important;
  background-image: none !important;
  color: #f5d76e !important;
  box-shadow: none !important;
}
html[data-eb-theme="dark"] .listing-crown-badge {
  color: gold !important;
}
html[data-eb-theme="dark"] .listing-new-badge {
  background: transparent !important;
  background-image: none !important;
  color: inherit !important;
  box-shadow: none !important;
}
html[data-eb-theme="dark"] .listing-hot-deal-tag,
html[data-eb-theme="dark"] .to-let-badge-stack {
  background: transparent !important;
  background-image: none !important;
  color: inherit !important;
  box-shadow: none !important;
}

/* Sub-listing yellow badge — keep dark text on warning yellow (not muted text-dark) */
html[data-eb-theme="dark"] .subunit-listing-badge,
html[data-eb-theme="dark"] .subunit-listing-badge.text-dark,
html[data-eb-theme="dark"] .status.sale.bg-warning.text-dark,
html[data-eb-theme="dark"] .subunit-listing-badge b,
html[data-eb-theme="dark"] .status.sale.bg-warning.text-dark b {
  color: #212529 !important;
}
html[data-eb-theme="dark"] .subunit-listing-badge,
html[data-eb-theme="dark"] .status.sale.bg-warning.text-dark {
  background-color: #ffc107 !important;
  background-image: none !important;
}

html[data-eb-theme="dark"] .alert-success {
  background-color: #1a2e22 !important;
  border-color: #2d5a3d !important;
  color: #b8e6c8 !important;
}

html[data-eb-theme="dark"] .alert-info {
  background-color: #1a2836 !important;
  border-color: #2d4a5f !important;
  color: #b8d4e8 !important;
}

html[data-eb-theme="dark"] .alert-warning {
  background-color: #2e2a1a !important;
  border-color: #5a4f2d !important;
  color: #e8d9b8 !important;
}

html[data-eb-theme="dark"] .alert-danger {
  background-color: #2e1a1a !important;
  border-color: #5a2d2d !important;
  color: #e8b8b8 !important;
}

html[data-eb-theme="dark"] .alert .alert-heading {
  color: inherit !important;
}

html[data-eb-theme="dark"] .alert .close {
  color: inherit !important;
  opacity: 0.8;
  background: transparent !important;
  background-color: transparent !important;
}

/* Signature pad keeps a white “paper” behind the ink only */
html[data-eb-theme="dark"] .signature-preview-box img,
html[data-eb-theme="dark"] #canvasDiv {
  background-color: #fff !important;
}

/* ── Theme toggle: icon only, no circle/border on any state ── */
#eb-theme-toggle.eb-theme-toggle,
.eb-theme-toggle {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  height: auto !important;
  min-width: 0 !important;
  margin-right: 8px;
  padding: 4px !important;
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  outline: none !important;
  color: inherit;
  cursor: pointer;
  vertical-align: middle;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  pointer-events: auto;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  appearance: none;
  -webkit-appearance: none;
}

#eb-theme-toggle.eb-theme-toggle:hover,
#eb-theme-toggle.eb-theme-toggle:focus,
#eb-theme-toggle.eb-theme-toggle:active,
#eb-theme-toggle.eb-theme-toggle:focus-visible,
.eb-theme-toggle:hover,
.eb-theme-toggle:focus,
.eb-theme-toggle:active,
.eb-theme-toggle:focus-visible {
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  outline: none !important;
}

/* Plain controls use page bg; icon/ghost controls in top nav excluded */
html[data-eb-theme="dark"] a:not(.close):not(.listing-mode-switch-nav):not(.btn-cta),
html[data-eb-theme="dark"] button:not(.close):not(.eb-combobox__toggle):not(.notification-bell):not(.eb-theme-toggle):not(#mobileHamburger):not(.js-dropdown-toggle):not(.sale-unverified-badge-btn):not(.listing-view-button):not(.listing-realtime-filter-btn):not(.move-in-permit-btn):not(.move-in-permit-strip),
html[data-eb-theme="dark"] input {
  background-color: var(--eb-bg) !important;
  color: var(--eb-text) !important;
}

/* Top nav icon buttons — no black pill behind bell / menu / theme toggle */
html[data-eb-theme="dark"] .topbar .notification-bell,
html[data-eb-theme="dark"] .topbar #mobileHamburger,
html[data-eb-theme="dark"] .topbar .eb-theme-toggle,
html[data-eb-theme="dark"] .topbar .js-dropdown-toggle {
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
}

/* Search combobox dropdown toggle — same bg as field, white chevron */
html[data-eb-theme="dark"] #search-md .eb-combobox__toggle {
  background-color: #2b3035 !important;
  color: #fff !important;
  border: none !important;
  box-shadow: none !important;
}

html[data-eb-theme="dark"] #search-md .eb-combobox__toggle span {
  color: #fff !important;
}

/* ── Create property/unit (/create-property-unit) ── */
html[data-eb-theme="dark"] body#page-top {
  background-color: var(--eb-bg) !important;
  color: var(--eb-text) !important;
}

html[data-eb-theme="dark"] .form-container {
  background-color: var(--eb-bg-elevated) !important;
  color: var(--eb-text) !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35) !important;
}

html[data-eb-theme="dark"] .form-container h3.text-dark {
  color: var(--eb-text) !important;
}

html[data-eb-theme="dark"] .form-container .form-group label {
  color: var(--eb-text) !important;
}

html[data-eb-theme="dark"] .form-container .post-label,
html[data-eb-theme="dark"] .form-container .input_info {
  color: var(--eb-text-muted) !important;
}

html[data-eb-theme="dark"] .form-container .form-control,
html[data-eb-theme="dark"] .form-container select.form-control,
html[data-eb-theme="dark"] .form-container textarea.form-control {
  background-color: var(--eb-input-bg) !important;
  border-color: var(--eb-border) !important;
  color: var(--eb-text) !important;
}

html[data-eb-theme="dark"] .form-container .form-control:focus {
  border-color: var(--eb-link) !important;
  box-shadow: 0 0 0 0.2rem rgba(138, 180, 248, 0.25) !important;
}

html[data-eb-theme="dark"] .form-container .section-header,
html[data-eb-theme="dark"] .form-container .section-header span,
html[data-eb-theme="dark"] .form-container .section-header i {
  color: #fff !important;
}

html[data-eb-theme="dark"] .form-container .card {
  background-color: var(--eb-bg-elevated) !important;
  border-color: var(--eb-border) !important;
}

html[data-eb-theme="dark"] .form-container .card .card-header,
html[data-eb-theme="dark"] .form-container .card .card-header h5 {
  color: #fff !important;
}

html[data-eb-theme="dark"] .form-container .card-body {
  background-color: var(--eb-bg-elevated) !important;
  color: var(--eb-text) !important;
}

html[data-eb-theme="dark"] .form-container .table,
html[data-eb-theme="dark"] .form-container .table thead th,
html[data-eb-theme="dark"] .form-container .table tbody td {
  color: var(--eb-text) !important;
  border-color: var(--eb-border) !important;
}

html[data-eb-theme="dark"] .form-container .table tbody tr[style*="f8f9fa"],
html[data-eb-theme="dark"] .form-container .table tbody tr[style*="#f8f9fa"] {
  background-color: var(--eb-bg-surface) !important;
}

html[data-eb-theme="dark"] .form-container .feature-card {
  background-color: var(--eb-bg-surface) !important;
  border-color: var(--eb-border) !important;
  color: var(--eb-text) !important;
}

html[data-eb-theme="dark"] .form-container .feature-card:hover {
  border-color: var(--eb-link) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35) !important;
}

html[data-eb-theme="dark"] .form-container .feature-card i {
  color: var(--eb-link) !important;
}

html[data-eb-theme="dark"] .form-container .feature-card.opt-clicked {
  border-color: #8ab4f8 !important;
  background: rgba(102, 126, 234, 0.25) !important;
}

html[data-eb-theme="dark"] .form-container .feature-card.opt-clicked i {
  color: #a8c7fa !important;
}

html[data-eb-theme="dark"] .form-container .image-upload-area {
  background-color: var(--eb-bg-surface) !important;
  border-color: var(--eb-border) !important;
  color: var(--eb-text-muted) !important;
}

html[data-eb-theme="dark"] .form-container .image-upload-area:hover,
html[data-eb-theme="dark"] .form-container .image-upload-area.has-image {
  border-color: var(--eb-link) !important;
}

html[data-eb-theme="dark"] .form-container .image-upload-area h1 {
  color: var(--eb-link) !important;
}

html[data-eb-theme="dark"] .form-container .option-btns {
  background-color: var(--eb-input-bg) !important;
  border-color: var(--eb-border) !important;
  color: var(--eb-text) !important;
}

html[data-eb-theme="dark"] .form-container .option-btns:hover {
  border-color: var(--eb-link) !important;
  color: var(--eb-link) !important;
}

html[data-eb-theme="dark"] .form-container .eb-mode-toggle-row > span {
  color: var(--eb-text) !important;
}

html[data-eb-theme="dark"] .form-container .eb-pill-toggle {
  --eb-pill-accent: #667eea;
  border-color: var(--eb-pill-accent) !important;
  background: var(--eb-pill-accent) !important;
}

html[data-eb-theme="dark"] .form-container .eb-pill-toggle__option {
  color: #fff !important;
}

html[data-eb-theme="dark"] .form-container .eb-pill-toggle__input:checked + .eb-pill-toggle__option {
  background: #fff !important;
  color: var(--eb-pill-accent) !important;
}

html[data-eb-theme="dark"] .form-container .option-btns.ow_selected {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  color: #fff !important;
  border-color: #667eea !important;
}

html[data-eb-theme="dark"] .form-container .dims-list-item,
html[data-eb-theme="dark"] .form-container .features-list-item {
  background-color: var(--eb-bg-surface) !important;
  border-left-color: var(--eb-link) !important;
  color: var(--eb-text) !important;
}

html[data-eb-theme="dark"] .form-container .proh_span {
  color: var(--eb-text) !important;
}

html[data-eb-theme="dark"] .form-container .section-saved-indicator {
  color: #81c995 !important;
}

html[data-eb-theme="dark"] #exampleModalCenter .modal-content,
html[data-eb-theme="dark"] #reuseParentPicturesModal .modal-content {
  background-color: var(--eb-bg-elevated) !important;
  color: var(--eb-text) !important;
  border-color: var(--eb-border) !important;
}

html[data-eb-theme="dark"] #reuseParentPicturesModal .modal-header,
html[data-eb-theme="dark"] #reuseParentPicturesModal .modal-header .close {
  color: #fff !important;
}

html[data-eb-theme="dark"] #reuseParentPicturesModal .parent-pic-card {
  background-color: var(--eb-bg-surface) !important;
  border-color: var(--eb-border) !important;
}

html[data-eb-theme="dark"] #ModalLongTitle {
  color: #81c995 !important;
}

html[data-eb-theme="dark"] .toggle.btn-light {
  background-color: var(--eb-bg-surface) !important;
  color: var(--eb-text) !important;
  border-color: var(--eb-border) !important;
}

html[data-eb-theme="dark"] select,
html[data-eb-theme="dark"] textarea,
html[data-eb-theme="dark"] [role="button"],
html[data-eb-theme="dark"] [data-toggle],
html[data-eb-theme="dark"] .btn {
  pointer-events: auto;
}

html[data-eb-theme="dark"] .eb-theme-toggle,
html[data-eb-theme="dark"] .eb-theme-toggle:hover,
html[data-eb-theme="dark"] .eb-theme-toggle:focus,
html[data-eb-theme="dark"] .eb-theme-toggle:active,
html[data-eb-theme="dark"] .eb-theme-toggle:focus-visible {
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  outline: none !important;
  color: var(--eb-text);
}

.eb-theme-toggle .eb-theme-icon {
  font-size: 1rem;
  line-height: 1;
  display: none;
}

/* Light mode: moon only (switch to dark) */
.eb-theme-toggle .eb-theme-icon-moon {
  display: inline-block;
}

html[data-eb-theme="dark"] .eb-theme-toggle .eb-theme-icon-moon {
  display: none;
}

html[data-eb-theme="dark"] .eb-theme-toggle .eb-theme-icon-bulb {
  display: inline-block;
}

.topbar .eb-theme-toggle,
.navbar .eb-theme-toggle,
.eb-navbar-actions .eb-theme-toggle {
  border: none !important;
  border-radius: 0 !important;
  width: auto !important;
  height: auto !important;
  min-width: 0 !important;
  padding: 4px !important;
  background: transparent !important;
  box-shadow: none !important;
  outline: none !important;
}

.eb-navbar-actions .eb-theme-toggle {
  margin-top: 4px;
}

@media (max-width: 1000px) {
  .eb-navbar-actions .eb-theme-toggle {
    margin-top: 0;
  }
}

.topbar .eb-theme-toggle {
  margin-right: 12px;
}

/* ── Footer support popover (WhatsApp/email/phone quick actions) ── */
html[data-eb-theme="dark"] .popover {
  background-color: var(--eb-bg-elevated) !important;
  border: 1px solid var(--eb-border) !important;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45) !important;
}

html[data-eb-theme="dark"] .popover .arrow::before,
html[data-eb-theme="dark"] .popover.bs-popover-top .arrow::before,
html[data-eb-theme="dark"] .popover.bs-popover-auto[x-placement^="top"] .arrow::before {
  border-top-color: var(--eb-border) !important;
}

html[data-eb-theme="dark"] .popover .arrow::after,
html[data-eb-theme="dark"] .popover.bs-popover-top .arrow::after,
html[data-eb-theme="dark"] .popover.bs-popover-auto[x-placement^="top"] .arrow::after {
  border-top-color: var(--eb-bg-elevated) !important;
}

html[data-eb-theme="dark"] .popover-body {
  background-color: var(--eb-bg-elevated) !important;
  color: var(--eb-text) !important;
}

html[data-eb-theme="dark"] .popover-body ul.list-unstyled.text-success,
html[data-eb-theme="dark"] .popover-body ul.list-unstyled.text-success li,
html[data-eb-theme="dark"] .popover-body ul.list-unstyled.text-success a {
  color: var(--eb-text) !important;
}

html[data-eb-theme="dark"] .popover-body .myu_icons,
html[data-eb-theme="dark"] .popover-body svg.myu_icons,
html[data-eb-theme="dark"] .popover-body i.myu_icons {
  color: #8ab4f8 !important;
}

html[data-eb-theme="dark"] .popover-body ul.list-unstyled.text-success a:hover .myu_icons,
html[data-eb-theme="dark"] .popover-body ul.list-unstyled.text-success a:focus .myu_icons {
  color: #a8c7fa !important;
}

/* ── Structural financing apply (/structural-financing-apply) ── */
html[data-eb-theme="dark"] body.sf-apply-body {
  background-color: var(--eb-bg) !important;
}

html[data-eb-theme="dark"] .sf-apply-right {
  background-color: var(--eb-bg) !important;
}

html[data-eb-theme="dark"] .sf-apply-card {
  background-color: var(--eb-bg-elevated) !important;
  color: var(--eb-text) !important;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35) !important;
}

html[data-eb-theme="dark"] .sf-apply-card label,
html[data-eb-theme="dark"] .sf-apply-card .font-weight-bold {
  color: var(--eb-text) !important;
}

html[data-eb-theme="dark"] .sf-apply-card .form-control {
  background-color: var(--eb-input-bg) !important;
  color: var(--eb-text) !important;
  border-color: var(--eb-border) !important;
}

html[data-eb-theme="dark"] .sf-apply-card .form-control::placeholder {
  color: var(--eb-placeholder) !important;
}

html[data-eb-theme="dark"] .sf-apply-card .form-control-file {
  color: var(--eb-text) !important;
}

html[data-eb-theme="dark"] .sf-apply-card small.text-muted,
html[data-eb-theme="dark"] .sf-apply-card p.text-muted {
  color: var(--eb-text-muted) !important;
}

html[data-eb-theme="dark"] .sf-apply-card p strong {
  color: var(--eb-text) !important;
}

html[data-eb-theme="dark"] .sf-apply-card a:not(.btn) {
  color: var(--eb-link) !important;
  background-color: transparent !important;
}

html[data-eb-theme="dark"] .sf-reg-dropzone {
  background-color: var(--eb-input-bg) !important;
  border-color: var(--eb-border) !important;
}

html[data-eb-theme="dark"] .sf-reg-dropzone:hover,
html[data-eb-theme="dark"] .sf-reg-dropzone:focus,
html[data-eb-theme="dark"] .sf-reg-dropzone.drag-over {
  border-color: #26baee !important;
  background-color: rgba(38, 186, 238, 0.08) !important;
  box-shadow: 0 0 0 4px rgba(38, 186, 238, 0.12) !important;
}

html[data-eb-theme="dark"] .sf-reg-title {
  color: var(--eb-text) !important;
}

html[data-eb-theme="dark"] .sf-reg-icon {
  color: #26baee !important;
}

html[data-eb-theme="dark"] .sf-reg-progress .progress {
  background-color: var(--eb-border) !important;
}

html[data-eb-theme="dark"] .sf-reg-doc-alert {
  background-color: rgba(255, 193, 7, 0.12) !important;
  border-color: rgba(255, 193, 7, 0.35) !important;
  color: var(--eb-text) !important;
}

html[data-eb-theme="dark"] .sf-reg-doc-alert a {
  color: var(--eb-link) !important;
}

.eb-nav-link-disabled {
  opacity: 0.45;
  cursor: not-allowed !important;
  pointer-events: none;
}

html[data-eb-theme="dark"] .eb-nav-link-disabled {
  opacity: 0.35;
}

/* Left gradient panel keeps white text in dark mode */
html[data-eb-theme="dark"] .sf-apply-left,
html[data-eb-theme="dark"] .sf-apply-left h1,
html[data-eb-theme="dark"] .sf-apply-lead,
html[data-eb-theme="dark"] .sf-apply-points li,
html[data-eb-theme="dark"] .sf-apply-points li span,
html[data-eb-theme="dark"] .sf-apply-points li i {
  color: #fff !important;
  background-color: transparent !important;
}

/* Page-load spinner (footer #ftco-loader) — follows html[data-eb-theme] */
html[data-eb-theme="dark"] #ftco-loader.fullscreen {
  background-color: var(--eb-bg) !important;
  box-shadow: none;
}

html[data-eb-theme="dark"] #ftco-loader:not(.fullscreen) {
  background-color: rgba(30, 30, 30, 0.92) !important;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
}

html[data-eb-theme="dark"] #ftco-loader .path-bg {
  stroke: var(--eb-border) !important;
}

/* Agent Services — animated Special Offer sidebar link */
.eb-agent-offer-animated span {
  background: linear-gradient(90deg, #d97706, #f59e0b, #fbbf24, #fffef8, #fefce8, #fbbf24, #f59e0b, #d97706);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
  font-weight: 800;
  animation: eb-agent-offer-shimmer 3s linear infinite;
}
.eb-agent-offer-animated i {
  color: #fbbf24 !important;
  filter: drop-shadow(0 0 4px rgba(251, 191, 36, 0.45));
  animation: eb-agent-offer-pulse 1.6s ease-in-out infinite;
}
@keyframes eb-agent-offer-shimmer {
  0% { background-position: 0% 50%; }
  100% { background-position: 300% 50%; }
}
@keyframes eb-agent-offer-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.12); opacity: 0.85; }
}

/* Similar Properties (property-info / sale-property-info) — home desktop cards, swipe both viewports */
.eb-similar-properties {
  padding-top: 1.5rem;
  padding-bottom: 2.5rem;
  margin-bottom: 3rem;
}

.eb-similar-properties__title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #1a202c;
}

.eb-similar-properties__sub {
  font-size: 0.9rem;
}

.eb-similar-properties__browse {
  color: #198754;
  text-decoration: none;
  white-space: nowrap;
  margin-top: 0.35rem;
}

.eb-similar-properties__browse:hover,
.eb-similar-properties__browse:focus {
  color: #146c43;
  text-decoration: underline;
}

.eb-similar-properties__track {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: stretch !important;
  overflow-x: auto !important;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  margin-left: -8px;
  margin-right: -8px;
  padding-top: 14px;
  padding-bottom: 0.75rem;
  gap: 0;
}

.eb-similar-properties__track::-webkit-scrollbar {
  height: 6px;
}

.eb-similar-properties__track::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
}

/* Always use home desktop card body */
.eb-similar-properties .one_top,
.eb-similar-properties .two_top {
  display: none !important;
}

.eb-similar-properties .d_flex_div,
.eb-similar-properties .d_flex_div.d-flex {
  display: flex !important;
  flex-direction: column;
  flex: 1 1 auto;
}

.eb-similar-properties .d_flex_div .one_ {
  margin-bottom: 0 !important;
  width: 100% !important;
}

.eb-similar-properties .d_flex_div .two,
.eb-similar-properties .properties .text .two,
.eb-similar-properties .listing-card-price-row {
  display: flex !important;
  flex-direction: column;
  align-items: flex-start;
  width: auto !important;
  max-width: 100% !important;
  padding-left: 0 !important;
  margin-top: 10px !important;
  min-height: 0;
  line-height: 1.35;
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
}

.eb-similar-properties .listing-card-from-label {
  display: block;
  color: #6b7280;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  min-height: 1.2em;
  margin: 0 0 2px;
}

.eb-similar-properties .listing-card-from-label--spacer {
  visibility: hidden;
}

.eb-similar-properties .d_flex_div .two .price,
.eb-similar-properties .listing-card-price-row .price,
.eb-similar-properties .properties .d_flex_div .price,
.eb-similar-properties .properties .d_flex_div .price.sale-card-price {
  display: block !important;
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 !important;
  max-width: 100%;
  word-break: break-word;
}

.eb-similar-properties .listing-card-title-row,
.eb-similar-properties .listing-card-meta-row {
  display: flex;
  align-items: baseline;
  gap: 3px;
  width: 100%;
  min-width: 0;
  margin: 0;
  line-height: 1.25;
}

.eb-similar-properties .listing-card-title-row {
  margin-bottom: 2px !important;
}

.eb-similar-properties .listing-card-meta-row {
  font-size: 11px;
}

.eb-similar-properties .listing-card-title,
.eb-similar-properties .listing-card-location {
  flex: 1 1 0;
  min-width: 0;
  overflow: hidden;
}

.eb-similar-properties .listing-card-title a,
.eb-similar-properties .listing-card-location {
  display: block;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.eb-similar-properties .listing-card-ln-label,
.eb-similar-properties .listing-card-ln-value {
  flex: 0 0 auto;
  white-space: nowrap;
  font-size: 13px;
}

.eb-similar-properties .av-span {
  font-size: 11px !important;
  display: block;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.eb-similar-properties .bottom-area,
.eb-similar-properties .single-card-footer {
  margin-top: auto !important;
  flex-shrink: 0;
}

.eb-similar-properties__track > .listing-card-item,
.eb-similar-properties__track > .col-6,
.eb-similar-properties__track > .col-md-4 {
  display: flex !important;
  flex-direction: column;
  float: none !important;
  position: relative;
  scroll-snap-align: start;
  padding-left: 8px;
  padding-right: 8px;
  box-sizing: border-box;
}

.eb-similar-properties__track > .listing-card-item > .properties {
  display: flex !important;
  flex-direction: column;
  flex: 1 1 auto;
  height: 100% !important;
  width: 100%;
  margin-bottom: 0 !important;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: visible;
  box-shadow: 0 3px 12px rgba(15, 23, 42, 0.07);
}

.eb-similar-properties .properties > a,
.eb-similar-properties .properties .carousel.slide {
  overflow: visible;
}

.eb-similar-properties .to-let-badge-stack {
  position: absolute;
  top: -8px;
  left: 4px;
  z-index: 410;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  pointer-events: none;
}

.eb-similar-properties .to-let-badge {
  position: absolute;
  top: -8px;
  left: 4px;
  z-index: 400;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.25);
}

.eb-similar-properties .to-let-badge-stack .to-let-badge {
  position: relative;
  top: auto;
  left: auto;
  z-index: 1;
}

.eb-similar-properties .properties .text {
  display: flex !important;
  flex-direction: column;
  flex: 1 1 auto;
  padding: 0.75rem !important;
  border-radius: 0 0 7px 7px;
}

.eb-similar-properties .properties .carousel-inner {
  overflow: hidden;
  border-radius: 7px 7px 0 0;
}

.eb-similar-properties .properties .img,
.eb-similar-properties .properties .img-2,
.eb-similar-properties .img-2 {
  height: 150px !important;
  max-height: 150px !important;
  object-fit: cover;
  width: 100% !important;
}

.eb-similar-properties .pr-cat {
  margin: 0 0 4px !important;
  font-size: 12px;
}

.eb-similar-properties .listing-card-beds {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
  margin-right: 0;
  font-size: 16px;
  font-weight: 700;
  color: #4c1d95;
  white-space: nowrap;
  vertical-align: middle;
}

@media (max-width: 768px) {
  .eb-similar-properties__head {
    flex-direction: column;
    align-items: flex-start !important;
  }

  .eb-similar-properties__browse {
    margin-top: 0.5rem;
    white-space: normal;
  }

  .eb-similar-properties__track > .listing-card-item,
  .eb-similar-properties__track > .col-6.listing-card-item,
  .eb-similar-properties__track > .col-6 {
    flex: 0 0 260px !important;
    width: 260px !important;
    max-width: 72vw !important;
    min-width: 240px !important;
  }

  .eb-similar-properties .listing-card-ln-label,
  .eb-similar-properties .listing-card-ln-value {
    font-size: 12px;
  }
}

@media (min-width: 769px) {
  .eb-similar-properties__track {
    margin-left: -15px;
    margin-right: -15px;
  }

  .eb-similar-properties__track > .listing-card-item,
  .eb-similar-properties__track > .col-6.listing-card-item,
  .eb-similar-properties__track > .col-md-4.listing-card-item {
    flex: 0 0 280px !important;
    width: 280px !important;
    max-width: 280px !important;
    min-width: 280px !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .eb-similar-properties .properties .img,
  .eb-similar-properties .properties .img-2,
  .eb-similar-properties .img-2 {
    height: 160px !important;
    max-height: 160px !important;
  }
}

html[data-eb-theme="dark"] .eb-similar-properties__title {
  color: var(--eb-text) !important;
}

html[data-eb-theme="dark"] .eb-similar-properties__sub {
  color: var(--eb-text-muted, #adb5bd) !important;
}

html[data-eb-theme="dark"] .eb-similar-properties__browse {
  color: #6fcf97 !important;
}

html[data-eb-theme="dark"] .eb-similar-properties__track > .listing-card-item > .properties {
  border-color: var(--eb-border, #495057);
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.25);
}




