/* Palette remapping leaves Elementor layout and photographic sections intact. */
html[data-essam-theme] body.essam-site {
  --e-global-color-primary:var(--estm-heading); --e-global-color-secondary:var(--estm-bg);
  --e-global-color-text:var(--estm-text); --e-global-color-accent:var(--estm-accent);
  --e-global-color-surface:var(--estm-surface); --e-global-color-feature:var(--estm-feature);
  --e-global-color-footer:var(--estm-footer); --e-global-color-brand_action:var(--estm-accent);
  --e-global-color-brand_highlight:var(--estm-hover);
  --essam-booking-surface:var(--estm-surface); --essam-brand-on-action:var(--estm-on-accent);
  --essam-brand-on-bright:var(--estm-on-hover); --essam-ocean:var(--estm-accent);
  --btn-color:var(--estm-on-accent); --btn-color-hover:var(--estm-on-hover);
  --essam-brand-line:color-mix(in srgb,var(--estm-text) 30%,var(--estm-bg));
  --essam-line:color-mix(in srgb,var(--estm-text) 70%,var(--estm-bg));
  color-scheme:light; background:var(--estm-bg); color:var(--estm-text);
}
html[data-essam-theme="dark"] body.essam-site {color-scheme:dark;}
html[data-essam-theme] body.essam-site :is(.wpcf7 input,.wpcf7 textarea,.wpcf7 select) {color-scheme:inherit;}
html[data-essam-theme] body.essam-site :is(.button:not(.cs-btn-outline):not(.cs-btn-underline),.essam-rd-book .button.cs-btn-outline,.essam-contact-whatsapp .elementor-button,.essam-room-banner .elementor-button,.wpcf7 input[type=submit]) {color:var(--estm-on-accent)!important;}
html[data-essam-theme] body.essam-site :is(.button:not(.cs-btn-underline),.essam-contact-whatsapp .elementor-button,.essam-room-banner .elementor-button,.wpcf7 input[type=submit]):hover {color:var(--estm-on-hover)!important;}
html[data-essam-theme] body.essam-site .essam-contact-whatsapp .elementor-button svg {fill:currentColor!important;}
html[data-essam-theme] body.essam-site .essam-booking-bar .cs-form-field {border-color:var(--essam-brand-line)!important;}
html[data-essam-theme] body.essam-site .essam-booking-bar .cs-form-icon svg path {fill:var(--estm-accent)!important;}
html[data-essam-theme] body.essam-site .essam-drawer-menu .dropdown-toggle {color:var(--estm-accent);}
html[data-essam-theme] body.essam-site :is(.essam-facilities .cs-info-box-img i,.essam-facilities .cs-subtitle) {color:var(--estm-facilities)!important;}
html[data-essam-theme] body.essam-site .daterangepicker td.active,
html[data-essam-theme] body.essam-site .daterangepicker td.active:hover {color:var(--estm-on-accent)!important;}
html[data-essam-theme] body.essam-site .essam-contact-panel a {color:var(--estm-accent);}
html[data-essam-theme] body.essam-site ::selection {background:var(--estm-accent);color:var(--estm-on-accent);}
html[data-essam-theme="dark"] body.essam-site :is(.essam-footer,.essam-drawer) .elementor-widget-cs_logo img {filter:brightness(0) invert(1)!important;opacity:1;}
html[data-essam-theme="dark"] body.essam-site .essam-footer-partners img {filter:brightness(0) invert(1);}
html[data-essam-theme="dark"] body.essam-site .wpcf7-not-valid-tip {color:#FFC4B6;}
/* Header remains legible over every hero; dropdowns follow the selected palette. */
html[data-essam-theme] body.essam-site .essam-rd-hero .button.cs-btn-outline {background:#101D24!important;color:#FFFFFF!important;border-color:#FFFFFF!important;}
html[data-essam-theme] body.essam-site .essam-rd-hero .button.cs-btn-outline:hover {background:#FFFFFF!important;color:#18313B!important;}
html[data-essam-theme] body.essam-site #masthead :is(.sub-menu,.pll-switcher-inner ul) {background:var(--estm-surface)!important;color:var(--estm-heading)!important;--essam-ink:var(--estm-heading);}
html[data-essam-theme] body.essam-site #masthead :is(.sub-menu,.pll-switcher-inner ul) a,
html[data-essam-theme] body.essam-site #masthead .pll-switcher-inner ul .pll-switcher-label {color:var(--estm-heading)!important;}
html[data-essam-theme] body.essam-site #masthead .pll-switcher-inner li a:hover {background:var(--estm-feature)!important;}
html[data-essam-theme] body.essam-site #masthead .button.cs-btn-outline:hover {color:#18313B!important;}
.estm-header-controls {display:flex;align-items:center;gap:12px;}
body.essam-site #masthead .estm-toggle {display:inline-flex;align-items:center;justify-content:center;flex:0 0 44px;width:44px;height:44px;min-height:44px;margin:0;padding:10px;background:transparent;color:#FFFFFF;border:0;border-radius:50%;box-shadow:none;cursor:pointer;line-height:1;transition:color 180ms ease-out;}
body.essam-site #masthead .estm-toggle[hidden] {display:none;}
body.essam-site #masthead .estm-toggle:hover {background:transparent;color:#A8D9DC;}
body.essam-site #masthead .estm-toggle:focus-visible {outline:2px solid #FFFFFF!important;outline-offset:4px;}
.estm-toggle svg {display:block;width:22px;height:22px;pointer-events:none;}
.estm-toggle .estm-sun {display:none;}
html[data-essam-theme="dark"] .estm-toggle .estm-moon {display:none;}
html[data-essam-theme="dark"] .estm-toggle .estm-sun {display:block;}
@media(max-width:600px) {
  html[data-essam-theme] body.essam-site .essam-header-mobile>.elementor-container>.elementor-column:first-child {width:35%!important;}
  html[data-essam-theme] body.essam-site .essam-header-mobile .essam-header-actions {width:65%!important;}
  html[data-essam-theme] body.essam-site .essam-header-mobile .essam-header-actions>.elementor-widget-wrap {gap:8px!important;}
  .estm-header-controls {gap:4px;}
}
@media(prefers-reduced-motion:reduce) {.estm-toggle {transition:none!important;}}