/**
 * Safari Matrouh — forced dark theme for platform pages.
 * Overrides Elementor / theme when section background is not #0B0F1A.
 */

 :root {
  --smp-primary: #0B0F1A;
  --smp-secondary: #B38756;
  --smp-white: #FFFFFF;
}

/* ── Page / body backgrounds ── */
body.safari-wc-auth-page,
body.safari-wc-dashboard-page,
body.safari-wc-account-inner,
body.safari-wc-view-order,
body.safari-wc-dashboard-home,
body.pra-customer-register-page,
body.tbw-cart-page,
body.tbw-checkout-page,
body.tbw-order-received-page,
body.tbw-acc-results-page,
body.smp-dark-page:has(.tbw-acc-results-wrap) {
  background-color: var(--smp-primary) !important;
}

/* ── Hide duplicate theme page titles ── */
body.woocommerce-account .page-header,
body.woocommerce-account .entry-header,
body.woocommerce-account .page-header .entry-title,
body.woocommerce-cart .page-header:not(.tbw-shop-shell .page-header),
body.woocommerce-checkout .page-header:not(.tbw-shop-shell .page-header),
body.tbw-cart-page .page-header:not(.tbw-shop-shell .page-header),
body.tbw-checkout-page .page-header:not(.tbw-shop-shell .page-header) {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
}

/* ── Force dark background on Elementor sections that host platform UI ── */
.e-con.e-parent:has(.safari-wc-auth-wrap),
.e-con.e-parent:has(.safari-wc-lost-password-wrap),
.e-con.e-parent:has(.safari-wc-dashboard-wrap),
.e-con.e-parent:has(.pra-signup-wrap),
.e-con.e-parent:has(.pra-customer-register-wrap),
.e-con.e-parent:has(.pra-vendor-dashboard-wrap),
.e-con.e-parent:has(.pra-vendor-shortcodes),
.e-con.e-parent:has(.tbw-shop-shell),
.e-con.e-parent:has(.tbw-empty-state),
.e-con.e-parent:has(.tw-empty-state),
.e-con.e-parent:has(.woocommerce-cart-form),
.e-con.e-parent:has(form.checkout.woocommerce-checkout),
.e-con.e-parent:has(.tbw-acc-results-wrap) {
  background-color: var(--smp-primary) !important;
  background-image: none !important;
}

.e-con.e-parent:has(.safari-wc-auth-wrap)::before,
.e-con.e-parent:has(.safari-wc-lost-password-wrap)::before,
.e-con.e-parent:has(.safari-wc-dashboard-wrap)::before,
.e-con.e-parent:has(.pra-signup-wrap)::before,
.e-con.e-parent:has(.pra-customer-register-wrap)::before,
.e-con.e-parent:has(.pra-vendor-dashboard-wrap)::before,
.e-con.e-parent:has(.pra-vendor-shortcodes)::before,
.e-con.e-parent:has(.tbw-shop-shell)::before,
.e-con.e-parent:has(.tbw-empty-state)::before,
.e-con.e-parent:has(.tw-empty-state)::before,
.e-con.e-parent:has(.woocommerce-cart-form)::before,
.e-con.e-parent:has(form.checkout.woocommerce-checkout)::before,
.e-con.e-parent:has(.tbw-acc-results-wrap)::before {
  display: none !important;
}

/* إخفاء عنوان Elementor المكرر على صفحة نتائج البحث */
body.tbw-acc-results-page .elementor-widget-theme-post-title,
body.tbw-acc-results-page .entry-title,
body.tbw-acc-results-page .page-header:not(.tbw-acc-results-head) {
  display: none !important;
}

/* Shop shell transparent so Elementor section color shows through */
.tbw-shop-shell.shop-page {
  background: transparent !important;
}

/* ── Titles on dark sections (secondary color) ── */
.safari-wc-auth-header h1,
.safari-wc-lost-password-wrap .safari-wc-auth-header h1,
.pra-signup-hero-title,
.pra-vendor-dashboard-wrap.pra-vendor-guest .vd-guest-title,
.tbw-empty-state__title,
.tw-empty-state__title,
.tbw-shop-shell .page-header h1,
body.safari-wc-dashboard-page .udb-page-bar__title {
  color: var(--smp-secondary) !important;
}

/* ── Descriptions on dark sections (white) ── */
.safari-wc-auth-header p,
.safari-wc-lost-password-wrap .safari-wc-auth-header p,
.pra-signup-hero-lead,
.pra-vendor-dashboard-wrap.pra-vendor-guest .vd-guest-lead,
.tbw-empty-state__desc,
.tw-empty-state__desc,
.tbw-shop-shell .page-header p,
.tbw-shop-shell .shop-breadcrumb,
.tbw-shop-shell .shop-breadcrumb a,
.pra-vendor-dashboard-wrap .vendor-section-header p {
  color: var(--smp-white) !important;
}

/* —— Accommodation search results —— */
.tbw-acc-results-wrap .tour-title,
.tbw-acc-results-wrap .tbw-acc-results-head h1 {
  color: var(--smp-secondary) !important;
}

.tbw-acc-results-wrap .tour-subtitle,
.tbw-acc-results-wrap .tbw-acc-results-head p {
  color: var(--smp-white) !important;
}

.tbw-shop-shell .shop-breadcrumb span {
  color: rgba(255, 255, 255, 0.45) !important;
}

.tbw-shop-shell .shop-breadcrumb a:hover {
  color: var(--smp-secondary) !important;
}

/* Signup badge on dark hero */
.pra-signup-badge {
  background: #06506533 !important;
  color: var(--smp-white) !important;
  border-color: rgba(179, 135, 86, 0.35) !important;
}
