/* HiDEAL V25 — design-preserving, database-color-based page coverage.
   Place AFTER theme_global.css. CSS variables come from theme_head.php.
   Logged-out inner pages are intentionally untouched. */

/* Homepage: entire viewport, left and right gutters same light tint as the middle. */
html[data-hd-homepage="true"],
html[data-hd-homepage="true"] body,
html[data-hd-homepage="true"] main.wrap,
html[data-hd-homepage="true"] .results-section {
  background-color:var(--hd-page-bg,var(--bg,#f3f7fe)) !important;
}

/* Site-wide logged-in pages, including the blank side gutters. */
html[data-hd-theme-scope="site"],
html[data-hd-theme-scope="site"] body {
  background-color:var(--hd-page-bg,var(--bg,#f3f7fe)) !important;
  min-height:100%;
}
html[data-hd-theme-scope="site"] .results-section,
html[data-hd-theme-scope="site"] #hidealRouteContent,
html[data-hd-theme-scope="site"] .main-layout {
  background-color:transparent !important;
}

/* Inner-page route widgets (buttons, links, highlighted tabs, toolbar). */
html[data-hd-theme-scope="site"] .hd-inner-breadcrumb {
  background-color:var(--primary,var(--hd-primary,#1668d2)) !important;
  color:#fff !important;
}
html[data-hd-theme-scope="site"] .hideal-admin-toolbar-v23 {
  border-color:var(--hd-border,#dfe7f2) !important;
  background:var(--hd-surface-tint,#fff) !important;
}
html[data-hd-theme-scope="site"] .hideal-admin-toolbar-v23 a:not(.back):not(.dashboard),
html[data-hd-theme-scope="site"] .hideal-admin-toolbar-v23 button,
html[data-hd-theme-scope="site"] .btn-glass.highlight {
  background:var(--primary,#1668d2) !important;
  border-color:var(--primary,#1668d2) !important;
  color:#fff !important;
}
html[data-hd-theme-scope="site"] .hideal-admin-toolbar-v23 .back {
  background:var(--hd-soft,#eff6ff) !important;
  border-color:var(--hd-border,#dfe7f2) !important;
  color:var(--hd-text,#15233f) !important;
}
html[data-hd-theme-scope="site"] .sidebar-box,
html[data-hd-theme-scope="site"] .property-card {
  border-color:var(--hd-border,#dfe7f2) !important;
}
html[data-hd-theme-scope="site"] .input-group input:focus {
  border-color:var(--primary,#1668d2) !important;
  box-shadow:0 0 0 3px var(--hd-soft,#eff6ff) !important;
}
html[data-hd-theme-scope="site"] .menu-item:hover a,
html[data-hd-theme-scope="site"] .menu-item:hover .left-icon,
html[data-hd-theme-scope="site"] .menu-item:hover .right-icon {
  color:var(--primary,#1668d2) !important;
}
html[data-hd-theme-scope="site"] .menu-item:hover {
  background:var(--hd-soft,#eff6ff) !important;
}

/* Leave neutral white surfaces white for readability, and retain semantic
   success/error indicators and WhatsApp branding unchanged. */

/* V26: keep large details panels light, not primary orange. */
html[data-hd-theme-scope="site"] #hidealRouteContent .boxmiddle,
html[data-hd-theme-scope="site"] #hidealRouteContent .container-main {
  background:transparent!important; color:var(--hd-text,#15233f)!important;
}
html[data-hd-theme-scope="site"] .hd-inner-breadcrumb{background:var(--primary,#1668D2)!important}
