/* croaziere.co mobile menu — Liquid Glass preview
   Restyles the existing croaziere-header (1.2.2.2) mobile panel only.
   Desktop (>=1200px, the theme breakpoint) is untouched.
   Does not replace markup or menu items. */
@media (max-width: 1199.98px) {
  body.czh {
    --czg-lime: #CED970;
    --czg-ink: #1C1F1A;
    --czg-text: rgba(255, 255, 255, 0.92);
    --czg-muted: rgba(255, 255, 255, 0.56);
    --czg-ease: cubic-bezier(0.16, 1, 0.3, 1);
  }

  /* Hide the floating WhatsApp widget while the menu is open so it doesn't cover the pill. */
  body.czh.czh-menu .joinchat { visibility: hidden !important; pointer-events: none !important; }

  /* Panel is always in the tree so open/close can animate (theme uses display:none). */
  body.czh .mobile-nav-wrap {
    display: flex !important;
    flex-direction: column;
    justify-content: stretch;
    position: fixed;
    inset: 0;
    z-index: 1040;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    margin: 0;
    padding: 0;
    overflow: hidden;
    color: var(--czg-text);
    background:
      linear-gradient(180deg, rgba(10, 12, 10, 0.28) 0%, rgba(12, 14, 12, 0.42) 45%, rgba(8, 10, 8, 0.50) 100%),
      rgba(16, 18, 16, 0.38);
    -webkit-backdrop-filter: blur(56px) saturate(1.85);
    backdrop-filter: blur(56px) saturate(1.85);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.22),
      inset 0 0 80px rgba(255, 255, 255, 0.05),
      inset 0 -1px 0 rgba(255, 255, 255, 0.08);
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transform: scale(1.035);
    transition:
      opacity 0.62s var(--czg-ease),
      transform 0.72s var(--czg-ease),
      visibility 0s linear 0.62s;
  }
  body.czh .mobile-nav-wrap::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0) 18%),
      radial-gradient(120% 40% at 50% -10%, rgba(255, 255, 255, 0.18), transparent 55%);
    mix-blend-mode: screen;
    opacity: 0.85;
  }
  body.czh .mobile-nav-wrap.visible {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
    transition:
      opacity 0.55s var(--czg-ease),
      transform 0.72s var(--czg-ease),
      visibility 0s linear 0s;
  }

  /* Top bar: only a centred thin X, with a short lime line under it. Logo hidden. */
  body.czh .czh-mtop {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    height: calc(72px + env(safe-area-inset-top, 0px));
    padding: env(safe-area-inset-top, 0px) 8px 0;
    border-bottom: 0 !important;
    background: transparent;
    flex: 0 0 auto;
  }
  body.czh .czh-mtop .logo-wrap,
  body.czh .czh-mtop .czh-sp { display: none !important; }
  body.czh .mobile-nav-close {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    width: 48px;
    height: 52px;
    margin: 0;
    padding: 0 0 10px;
    color: var(--czg-text) !important;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
  body.czh .mobile-nav-close .icon { display: none; }
  body.czh .mobile-nav-close::before {
    width: 20px;
    height: 20px;
    background: currentColor;
  }
  body.czh .mobile-nav-close::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 4px;
    width: 32px;
    height: 1.5px;
    background: var(--czg-lime);
    border-radius: 2px;
    transform: translateX(-50%);
    box-shadow: 0 0 10px rgba(206, 217, 112, 0.55);
  }
  body.czh .mobile-nav-close:hover,
  body.czh .mobile-nav-close:focus-visible {
    color: var(--czg-lime) !important;
    background: transparent;
    border-color: transparent;
  }
  body.czh .mobile-nav-close:focus-visible {
    outline: 2px solid var(--czg-lime);
    outline-offset: 3px;
  }

  /* Items: vertically centred column, icons + letter-spaced labels. */
  body.czh .mobile-nav {
    position: relative;
    z-index: 2;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: auto !important;
    max-width: 420px;
    margin: 0 auto !important;
    padding: 8px 28px !important;
    list-style: none;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  body.czh .mobile-nav li {
    height: auto !important;
    padding: 0 !important;
    line-height: 1.2;
    border-bottom: 0 !important;
  }
  /* Stagger only top-level items; submenu rows must stay visible when opened. */
  body.czh .mobile-nav > li {
    opacity: 0;
    transform: translateY(16px);
  }
  body.czh .mobile-nav-wrap.visible .mobile-nav > li {
    animation: czg-in 0.72s var(--czg-ease) both;
  }
  body.czh .mobile-nav-wrap.visible .mobile-nav > li:nth-child(1) { animation-delay: .05s; }
  body.czh .mobile-nav-wrap.visible .mobile-nav > li:nth-child(2) { animation-delay: .10s; }
  body.czh .mobile-nav-wrap.visible .mobile-nav > li:nth-child(3) { animation-delay: .15s; }
  body.czh .mobile-nav-wrap.visible .mobile-nav > li:nth-child(4) { animation-delay: .20s; }
  body.czh .mobile-nav-wrap.visible .mobile-nav > li:nth-child(5) { animation-delay: .25s; }
  body.czh .mobile-nav-wrap.visible .mobile-nav > li:nth-child(6) { animation-delay: .30s; }
  body.czh .mobile-nav-wrap.visible .mobile-nav > li:nth-child(7) { animation-delay: .35s; }
  body.czh .mobile-nav-wrap.visible .mobile-nav > li:nth-child(8) { animation-delay: .40s; }
  body.czh .mobile-nav-wrap.visible .mobile-nav > li:nth-child(n+9) { animation-delay: .45s; }
  @keyframes czg-in {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  body.czh .mobile-nav li a {
    display: flex !important;
    align-items: center;
    justify-content: flex-start !important;
    gap: 16px;
    min-height: 52px;
    padding: 10px 18px !important;
    border-radius: 18px;
    font: 400 12.5px/1.25 Montserrat, "Helvetica Neue", Arial, sans-serif !important;
    font-weight: 400 !important;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--czg-text) !important;
    text-decoration: none !important;
    background: transparent;
    border: 1px solid transparent;
    box-shadow: none;
    transition: background .35s var(--czg-ease), border-color .35s ease, color .25s ease, box-shadow .35s ease;
  }
  /* drop the plugin's chevron */
  body.czh .mobile-nav li a::after { display: none !important; content: none !important; }

  /* thin line icons */
  body.czh .mobile-nav > li > a::before {
    content: "";
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    background: currentColor;
    -webkit-mask: var(--czg-ico) center / contain no-repeat;
    mask: var(--czg-ico) center / contain no-repeat;
    opacity: 0.9;
  }
  body.czh .mobile-nav > li { --czg-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='8'/%3E%3C/svg%3E"); }
  body.czh .mobile-nav > li.menu-item-270574 { --czg-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 10.5l7.5-7.5h8v8L12 18.5 4 10.5z'/%3E%3Ccircle cx='16.2' cy='7.8' r='1.1'/%3E%3C/svg%3E"); } /* Oferte — tag */
  body.czh .mobile-nav > li.menu-item-74588 { --czg-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s6.5-5.8 6.5-11A6.5 6.5 0 0 0 12 3.5 6.5 6.5 0 0 0 5.5 10c0 5.2 6.5 11 6.5 11z'/%3E%3Ccircle cx='12' cy='10' r='2'/%3E%3C/svg%3E"); } /* Destinații — pin */
  body.czh .mobile-nav > li.menu-item-czh-world { --czg-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='8.5'/%3E%3Cpath d='M3.5 12h17M12 3.5c2.6 2.4 3.9 5.4 3.9 8.5s-1.3 6.1-3.9 8.5M12 3.5C9.4 5.9 8.1 8.9 8.1 12s1.3 6.1 3.9 8.5'/%3E%3C/svg%3E"); } /* World — globe */
  body.czh .mobile-nav > li.menu-item-czh-ports { --czg-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='5' r='2.15'/%3E%3Cpath d='M12 7.2v13.3'/%3E%3Cpath d='M7.5 11.2h9'/%3E%3Cpath d='M5 15.2C6.6 19 9 21 12 21s5.4-2 7-5.8'/%3E%3C/svg%3E"); } /* Porturi — anchor */
  body.czh .mobile-nav > li.menu-item-89343 { --czg-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 16h18c-1.5 1.7-4.5 2.7-9 2.7S4.5 17.7 3 16z'/%3E%3Cpath d='M5.2 16l1.5-5.2h10.6L18.8 16'/%3E%3Cpath d='M8 10.8V8h3.2v2.8'/%3E%3Cpath d='M13.2 10.8V6.8h3.4V10.8'/%3E%3Cpath d='M14.9 6.8V5.2'/%3E%3C/svg%3E"); } /* Companii — ship */
  body.czh .mobile-nav > li.menu-item-czh-news { --czg-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 5.5h11.5A2.5 2.5 0 0 1 19 8v11.5H6.5A2.5 2.5 0 0 1 4 17V6.5'/%3E%3Cpath d='M8 9.5h6.5M8 13h8M8 16.5h5'/%3E%3C/svg%3E"); } /* Cruise News */
  body.czh .mobile-nav > li.menu-item-czh-about { --czg-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='8' r='2.2'/%3E%3Ccircle cx='15.5' cy='8.5' r='1.8'/%3E%3Cpath d='M4.5 18c.4-3 2.3-4.6 4.5-4.6s4.1 1.6 4.5 4.6'/%3E%3Cpath d='M14 13.8c1.7-.2 3.4 1.2 3.8 3.7'/%3E%3C/svg%3E"); } /* Despre noi */

  body.czh .mobile-nav li a:hover,
  body.czh .mobile-nav li a:focus-visible {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.16);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.28),
      inset 0 -1px 0 rgba(0, 0, 0, 0.16);
  }
  body.czh .mobile-nav li.current-menu-item > a,
  body.czh .mobile-nav li.current-menu-ancestor > a,
  body.czh .mobile-nav li.current_page_item > a {
    color: var(--czg-lime) !important;
    font-weight: 500 !important;
    background: rgba(206, 217, 112, 0.12);
    border-color: rgba(206, 217, 112, 0.38);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.28),
      0 0 24px rgba(206, 217, 112, 0.16);
  }

  /* Submenus (none in the live menu today; ready if WP children are added). */
  body.czh .mobile-nav li.menu-item-has-children > a { padding-right: 36px !important; }
  body.czh .mobile-nav li.menu-item-has-children > a .czg-caret,
  body.czh .mobile-nav li.menu-item-has-children > a::after {
    display: block !important;
    content: "" !important;
    width: 10px;
    height: 10px;
    flex: 0 0 10px;
    margin-left: auto;
    background: currentColor;
    opacity: 0.7;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
    transition: transform .35s var(--czg-ease);
  }
  body.czh .mobile-nav li.menu-item-has-children.czg-open > a::after { transform: rotate(180deg); }
  body.czh .mobile-nav .sub-menu {
    display: none;
    list-style: none;
    margin: 0 0 6px;
    padding: 2px 8px 8px 40px;
  }
  body.czh .mobile-nav li.czg-open > .sub-menu { display: block; }
  body.czh .mobile-nav .sub-menu > li {
    opacity: 1;
    transform: none;
  }
  body.czh .mobile-nav .sub-menu a {
    min-height: 42px;
    padding: 8px 14px !important;
    font-size: 11.5px !important;
    letter-spacing: 0.14em;
    color: var(--czg-muted) !important;
  }
  body.czh .mobile-nav .sub-menu a::before { display: none !important; }

  /* Bottom outlined glass pill: existing WhatsApp CTA. */
  body.czh .czh-mfoot {
    position: relative;
    z-index: 2;
    margin-top: 0;
    padding: 12px 28px calc(24px + env(safe-area-inset-bottom, 0px));
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    opacity: 0;
    transform: translateY(12px);
  }
  body.czh .mobile-nav-wrap.visible .czh-mfoot {
    animation: czg-in 0.7s var(--czg-ease) 0.42s both;
  }
  body.czh .czh-mfoot p {
    margin: 0;
    font: 400 12.5px/1.45 Montserrat, sans-serif;
    letter-spacing: 0.02em;
    color: var(--czg-muted);
    text-align: center;
  }
  body.czh .czh-mwa {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    width: 100%;
    max-width: 360px;
    padding: 0 22px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.42) !important;
    color: var(--czg-text) !important;
    text-decoration: none !important;
    font: 500 13px/1 Montserrat, sans-serif !important;
    letter-spacing: 0.06em;
    background: rgba(255, 255, 255, 0.07);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.35),
      inset 0 -1px 0 rgba(0, 0, 0, 0.2),
      0 8px 28px rgba(0, 0, 0, 0.18);
  }
  body.czh .czh-mwa svg { width: 20px; height: 20px; }
  body.czh .czh-mwa:hover,
  body.czh .czh-mwa:focus-visible {
    color: var(--czg-ink) !important;
    background: var(--czg-lime);
    border-color: var(--czg-lime) !important;
  }


  @media (max-width: 379.98px) {
    body.czh .mobile-nav {
      padding: 8px 18px !important;
    }
    body.czh .mobile-nav li a {
      letter-spacing: 0.12em;
      padding: 10px 12px !important;
      gap: 12px;
    }
  }

  /* Browsers without backdrop-filter: solid dimmed panel (page won't show through). */
  @supports not ((backdrop-filter: blur(2px)) or (-webkit-backdrop-filter: blur(2px))) {
    body.czh .mobile-nav-wrap {
      background: rgba(18, 20, 18, 0.96);
      -webkit-backdrop-filter: none;
      backdrop-filter: none;
    }
  }

  @media (prefers-reduced-motion: reduce) {
    body.czh .mobile-nav-wrap,
    body.czh .mobile-nav-wrap.visible,
    body.czh .mobile-nav li a,
    body.czh .czh-mwa,
    body.czh .mobile-nav li.menu-item-has-children > a::after {
      transition: none !important;
      animation: none !important;
      transform: none !important;
    }
    body.czh .mobile-nav li,
    body.czh .czh-mfoot,
    body.czh .mobile-nav-wrap.visible .mobile-nav > li,
    body.czh .mobile-nav-wrap.visible .czh-mfoot {
      animation: none !important;
      opacity: 1 !important;
      transform: none !important;
    }
  }
}
