/* ═══════════════════════════════════════════════════
   DREAMLAND SAFARI — Elementor Extra Styles
   ═══════════════════════════════════════════════════ */

/* Elementor container */
.elementor-container { max-width: 1200px; }
.elementor-widget-heading .elementor-heading-title { font-family: 'Cormorant Garamond', Georgia, serif; }
.elementor-button { border-radius: 6px; letter-spacing: 0.04em; transition: all 0.2s ease; }
.elementor-button:hover { transform: translateY(-2px); }
.elementor-image img { transition: transform 0.3s ease; }
.elementor-image:hover img { transform: scale(1.05); }
@media (max-width: 768px) { .elementor-container { padding: 0 15px !important; } }

/* ═══════════════════════════════════════════════════
   NOTE: Tab pane visibility is controlled PURELY by
   inline JS styles (style.display) set at wp_footer
   priority 99. Do NOT add tab-pane CSS rules here —
   they will conflict with the JS inline style approach.
   ═══════════════════════════════════════════════════ */

/* Scroll-reveal */
.r { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
.r.v { opacity: 1 !important; transform: translateY(0) !important; }

/* Utility show/hide classes */
.ds-hidden { display: none !important; visibility: hidden !important; pointer-events: none !important; }
.ds-shown  { display: block !important; visibility: visible !important; pointer-events: auto !important; }
.ds-shown-flex { display: flex !important; visibility: visible !important; }

/* ═══════════════════════════════════════════════════
   Elementor global header — mobile repair
   Keeps the existing desktop header, but prevents the
   mobile dropdown from sitting beside the logo/toggle.
   ═══════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .ds-elementor-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #fff;
    box-shadow: 0 10px 26px rgba(55, 41, 24, .09);
  }

  body.admin-bar .ds-elementor-header {
    top: 46px;
  }

  .ds-elementor-header :is(.elementor-section, .elementor-container, .e-con, .e-con-inner, .elementor-widget-wrap) {
    overflow: visible !important;
  }

  .ds-elementor-header > :is(.elementor, .elementor-section, .e-con),
  .ds-elementor-header :is(.elementor-section, .e-con):has(.elementor-widget-nav-menu) {
    position: relative !important;
  }

  .ds-elementor-header :is(.elementor-container, .e-con-inner):has(.elementor-widget-nav-menu) {
    position: relative !important;
    display: grid !important;
    grid-template-columns: auto 1fr auto !important;
    align-items: center !important;
    gap: 10px !important;
    min-height: 64px !important;
    padding: 8px 14px !important;
  }

  .ds-elementor-header .elementor-container:has(.elementor-widget-nav-menu) > .elementor-column,
  .ds-elementor-header .elementor-container:has(.elementor-widget-nav-menu) > .elementor-column > .elementor-widget-wrap {
    display: contents !important;
    width: auto !important;
  }

  .ds-elementor-header .elementor-widget-image,
  .ds-elementor-header .elementor-widget-theme-site-logo {
    grid-column: 1 !important;
    flex: 0 0 auto !important;
    width: auto !important;
    margin-right: auto !important;
  }

  .ds-elementor-header :is(.elementor-widget-image, .elementor-widget-theme-site-logo) img {
    width: auto !important;
    max-width: 108px !important;
    max-height: 46px !important;
    object-fit: contain !important;
  }

  .ds-elementor-header .elementor-widget-button {
    grid-column: 2 !important;
    justify-self: end !important;
    flex: 0 0 auto !important;
    width: auto !important;
    margin: 0 !important;
  }

  .ds-elementor-header .elementor-widget-button .elementor-button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 38px !important;
    padding: 0 13px !important;
    border-radius: 999px !important;
    background: #B8824A !important;
    color: #fff !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    letter-spacing: .06em !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    box-shadow: 0 8px 18px rgba(184, 130, 74, .24);
    transform: none !important;
  }

  .ds-elementor-header .elementor-widget-nav-menu {
    grid-column: 3 !important;
    justify-self: end !important;
    position: static !important;
    flex: 0 0 auto !important;
    width: auto !important;
    margin-left: 0 !important;
  }

  .ds-elementor-header .elementor-menu-toggle {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 42px !important;
    height: 42px !important;
    margin: 0 !important;
    border: 1px solid rgba(75, 48, 27, .16) !important;
    border-radius: 10px !important;
    background: #FDFAF6 !important;
    color: #4b301b !important;
    box-shadow: none !important;
  }

  .ds-elementor-header .elementor-nav-menu--main {
    display: none !important;
  }

  .ds-elementor-header .elementor-nav-menu--dropdown {
    position: absolute !important;
    top: calc(100% + 8px) !important;
    left: 12px !important;
    right: 12px !important;
    z-index: 1001 !important;
    width: auto !important;
    max-height: calc(100dvh - 136px) !important;
    margin: 0 !important;
    padding: 8px 14px !important;
    overflow: auto !important;
    border: 1px solid rgba(237, 227, 213, .95) !important;
    border-radius: 14px !important;
    background: #fff !important;
    box-shadow: 0 24px 60px rgba(55, 41, 24, .22) !important;
    transform: none !important;
  }

  .ds-elementor-header .elementor-nav-menu--dropdown ul,
  .ds-elementor-header .elementor-nav-menu--dropdown li {
    width: 100% !important;
  }

  .ds-elementor-header .elementor-nav-menu--dropdown a {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    min-height: 44px !important;
    padding: 0 2px !important;
    border-bottom: 1px solid rgba(237, 227, 213, .92) !important;
    color: #4b301b !important;
    background: transparent !important;
    font-size: 12.5px !important;
    font-weight: 800 !important;
    letter-spacing: .06em !important;
    text-transform: uppercase !important;
  }

  .ds-elementor-header .elementor-nav-menu--dropdown li:last-child > a {
    border-bottom: 0 !important;
  }

  .ds-elementor-header .sub-menu {
    position: static !important;
    width: 100% !important;
    margin: 0 !important;
    padding-left: 12px !important;
    border: 0 !important;
    box-shadow: none !important;
  }
}

@media (max-width: 380px) {
  .ds-elementor-header :is(.elementor-container, .e-con-inner):has(.elementor-widget-nav-menu) {
    gap: 8px !important;
    padding-inline: 10px !important;
  }

  .ds-elementor-header :is(.elementor-widget-image, .elementor-widget-theme-site-logo) img {
    max-width: 94px !important;
    max-height: 42px !important;
  }

  .ds-elementor-header .elementor-widget-button .elementor-button {
    min-height: 36px !important;
    padding-inline: 11px !important;
    font-size: 10px !important;
  }
}
