/* black backgrounds → backend login deep green */
:root{
  --fg-deep-green:#062818;
  --fg-deep-green-grad:linear-gradient(165deg,#0a3a24 0%,#062818 52%,#0c3220 100%);
}
/* Footer / chrome */
[data-footer*="type-1"] .ct-footer,
.ct-footer,
.ct-related-posts-container{
  background-color:#062818 !important;
  background-image:linear-gradient(165deg,#0a3a24 0%,#062818 52%,#0c3220 100%) !important;
}
/* Elementor containers/sections whose background was the black global or #000 */
.elementor .e-con:not(.elementor-widget).elementor-element:not(.e-con-boxed.e-grid) {}
.elementor-element.e-con:where(
  .elementor-element-23d6bd1,
  .elementor-element-62f7ed61,
  .elementor-element-7e51dbe1,
  .elementor-element-5984b451,
  .elementor-element-4884625,
  .elementor-element-a081cb6,
  .elementor-element-7244563,
  .elementor-element-80aed0a,
  .elementor-element-1dbcc1e,
  .elementor-element-b95d969,
  .elementor-element-ff1f84c
),
.elementor-element.e-con:where(
  .elementor-element-23d6bd1,
  .elementor-element-62f7ed61,
  .elementor-element-7e51dbe1,
  .elementor-element-5984b451,
  .elementor-element-4884625,
  .elementor-element-a081cb6,
  .elementor-element-7244563,
  .elementor-element-80aed0a,
  .elementor-element-1dbcc1e,
  .elementor-element-b95d969,
  .elementor-element-ff1f84c
):not(.elementor-motion-effects-element-type-background),
.elementor-element.e-con:where(
  .elementor-element-23d6bd1,
  .elementor-element-62f7ed61,
  .elementor-element-7e51dbe1,
  .elementor-element-5984b451,
  .elementor-element-4884625,
  .elementor-element-a081cb6,
  .elementor-element-7244563,
  .elementor-element-80aed0a,
  .elementor-element-1dbcc1e,
  .elementor-element-b95d969,
  .elementor-element-ff1f84c
) > .elementor-motion-effects-container > .elementor-motion-effects-layer{
  background-color:#062818 !important;
  background-image:linear-gradient(165deg,#0a3a24 0%,#062818 52%,#0c3220 100%) !important;
}
/* Black CTA buttons that used the black global */
.elementor-element .elementor-button{
  /* only when previous bg was black global — already patched in css files */
}
/* Offcanvas already green; reinforce */
[data-header*="type-1"] #offcanvas .ct-panel-inner{
  background-color:#062818 !important;
  background-image:linear-gradient(165deg,#0a3a24 0%,#062818 52%,#0c3220 100%) !important;
}

/* Footer text on deep green: white + centered */
.ct-footer,
.ct-footer .textwidget,
.ct-footer .textwidget p,
.ct-footer-copyright,
.ct-footer-copyright p,
[data-footer] .ct-footer-copyright,
[data-footer] .ct-footer-copyright p {
  color: #ffffff !important;
  text-align: center !important;
}
.ct-footer [data-row="middle"] .ct-container,
.ct-footer [data-row="bottom"] .ct-container {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
}
.ct-footer [data-column="widget-area-2"],
.ct-footer [data-column="widget-area-4"],
.ct-footer [data-column="copyright"],
.ct-footer [data-column="ghost"] {
  width: 100% !important;
  max-width: 720px !important;
  text-align: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
  --horizontal-alignment: center !important;
}
.ct-footer [data-column="ghost"] { display: none !important; }
.ct-footer .wp-block-image,
.ct-footer .wp-block-image img {
  margin-left: auto !important;
  margin-right: auto !important;
}
/* bottom floating language picker: mobile only (desktop header already has it) */
body > .gtranslate_wrapper,
.gtranslate_wrapper[id^="gt-wrapper"] {
  display: none !important;
}
@media (max-width: 1024px) {
  body > .gtranslate_wrapper,
  .gtranslate_wrapper[id^="gt-wrapper"] {
    display: flex !important;
    justify-content: center !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    text-align: center !important;
    bottom: 12px !important;
    position: fixed !important;
    z-index: 50 !important;
    pointer-events: none !important;
  }
  body > .gtranslate_wrapper .gt_selector,
  .gtranslate_wrapper[id^="gt-wrapper"] .gt_selector,
  body > .gtranslate_wrapper select,
  .gtranslate_wrapper[id^="gt-wrapper"] select {
    pointer-events: auto !important;
    color: #ffffff !important;
    background: transparent !important;
    border: 1px solid rgba(255,255,255,.75) !important;
    margin: 0 auto !important;
    width: auto !important;
    max-width: 90% !important;
    display: block !important;
    text-align: center !important;
    text-align-last: center !important;
  }
  body > .gtranslate_wrapper .gt_selector option,
  .gtranslate_wrapper[id^="gt-wrapper"] .gt_selector option {
    color: #062818 !important;
    background: #ffffff !important;
  }
}
/* keep header language readable on white header */
.ct-header .gt_selector,
header .gt_selector,
.menu-item-gtranslate .gt_selector {
  color: #0f0f30 !important;
  background: #ffffff !important;
  border-color: #cfcfcf !important;
}

/* Desktop text readability ONLY — never touch videos/background heroes */
@media (min-width: 1025px) {
  body:not(.home) #main .elementor-widget-text-editor > .elementor-widget-container,
  body:not(.home) #main .elementor-widget-heading > .elementor-widget-container {
    max-width: 920px;
    margin-left: auto;
    margin-right: auto;
  }
}

/*
  ONLY 首頁 / 巨杉城 / 酒店：電腦也顯示手機首屏視頻（上半部+動畫）
  其他頁不動。
*/
@media (min-width: 768px) {
  /* —— 首頁 —— */
  body.home .elementor-element-bfa16b3,
  body.elementor-page-1263 .elementor-element-bfa16b3 {
    display: flex !important;
    min-height: 70vh !important;
    width: 100% !important;
    max-width: none !important;
  }
  body.home .elementor-element-4f890d5,
  body.elementor-page-1263 .elementor-element-4f890d5 {
    display: block !important;
  }
  body.home .elementor-element-65a8b10,
  body.elementor-page-1263 .elementor-element-65a8b10 {
    display: none !important;
  }

  /* —— 巨杉城 —— */
  body.elementor-page-1995 .elementor-element-04ee900 {
    display: flex !important;
    min-height: 70vh !important;
    width: 100% !important;
    max-width: none !important;
  }
  body.elementor-page-1995 .elementor-element-adb1b22 {
    display: none !important;
  }
  /* keep phone content blocks visible; hide desktop duplicates that steal the top */
  body.elementor-page-1995 .elementor-element-67f180b,
  body.elementor-page-1995 .elementor-element-5fd98f1,
  body.elementor-page-1995 .elementor-element-f8e3d71,
  body.elementor-page-1995 .elementor-element-07af365,
  body.elementor-page-1995 .elementor-element-08cf014,
  body.elementor-page-1995 .elementor-element-2f0abf5 {
    display: var(--display, flex) !important;
  }
  body.elementor-page-1995 .elementor-element-3dab067,
  body.elementor-page-1995 .elementor-element-a5909ff,
  body.elementor-page-1995 .elementor-element-fbd3400 {
    display: none !important;
  }

  /* —— 酒店 —— */
  body.elementor-page-465 .elementor-element-b798583 {
    display: flex !important;
    min-height: 70vh !important;
    width: 100% !important;
    max-width: none !important;
  }
  body.elementor-page-465 .elementor-element-e36fe96 {
    display: none !important;
  }
  body.elementor-page-465 .elementor-element-62cd4bc,
  body.elementor-page-465 .elementor-element-dd2c37c,
  body.elementor-page-465 .elementor-element-64a935e {
    display: var(--display, flex) !important;
  }
  body.elementor-page-465 .elementor-element-d562d67,
  body.elementor-page-465 .elementor-element-8474d2f {
    display: none !important;
  }

  /* video fill for these three pages' heroes */
  body.home .elementor-element-bfa16b3 .elementor-background-video-container,
  body.home .elementor-element-bfa16b3 .elementor-background-video-container video,
  body.elementor-page-1263 .elementor-element-bfa16b3 .elementor-background-video-container,
  body.elementor-page-1263 .elementor-element-bfa16b3 .elementor-background-video-container video,
  body.elementor-page-1995 .elementor-element-04ee900 .elementor-background-video-container,
  body.elementor-page-1995 .elementor-element-04ee900 .elementor-background-video-container video,
  body.elementor-page-465 .elementor-element-b798583 .elementor-background-video-container,
  body.elementor-page-465 .elementor-element-b798583 .elementor-background-video-container video {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
  }
}


/* Other subpages (diamond etc): keep prior phone-hero restore — leave as-is */
@media (min-width: 768px) {
  body:not(.home):not(.elementor-page-1995):not(.elementor-page-465) .elementor .elementor-hidden-desktop,
  body:not(.home):not(.elementor-page-1995):not(.elementor-page-465) .elementor .elementor-hidden-tablet {
    display: var(--display, flex) !important;
  }
  body:not(.home):not(.elementor-page-1995):not(.elementor-page-465) .elementor .elementor-hidden-mobile {
    display: none !important;
  }
  body:not(.home):not(.elementor-page-1995):not(.elementor-page-465) .elementor .elementor-hidden-desktop[data-settings*="background_background"],
  body:not(.home):not(.elementor-page-1995):not(.elementor-page-465) .elementor .elementor-hidden-tablet[data-settings*="background_background"] {
    min-height: 70vh !important;
    width: 100% !important;
    max-width: none !important;
  }
  body:not(.home):not(.elementor-page-1995):not(.elementor-page-465) .elementor .elementor-background-video-container,
  body:not(.home):not(.elementor-page-1995):not(.elementor-page-465) .elementor .elementor-background-video-container video {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
  }
}
