/* JX - Mobile header + slide-in menu (joinexcursions style, Aegean colours)
   Geri alma: layout'taki jx-header.css + jx-header.js satirlarini sil. */
.jxh, .jxh-ov, .jxh-dr { display: none; }

@media (max-width: 991px) {
  /* eski tema basligini gizle (logo ortada + MENU + seciciler), duyuru bandi da */
  #page > header > div, header > div[style*="background-color:#18508b"] { display: none !important; }
  body { padding-top: 64px !important; }

  .jxh {
    display: flex; align-items: center; gap: 8px;
    position: fixed; top: 0; left: 0; right: 0; z-index: 99990;
    height: 64px; padding: 0 12px;
    background: rgba(255,255,255,.97);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    box-shadow: 0 2px 14px rgba(15,31,79,.10);
    font-family: "Open Sans", Arial, sans-serif;
  }
  .jxh__logo { display: flex; align-items: center; margin-right: auto; }
  .jxh__logo img { height: 50px; width: auto; display: block; }

  .jxh__chip {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    height: 40px; min-width: 40px; padding: 0 10px; border-radius: 20px;
    background: #fff; border: 1px solid #DCE6F5; color: #0F1F4F;
    font: 700 13px/1 "Open Sans", Arial, sans-serif; cursor: pointer;
    box-shadow: 0 1px 4px rgba(15,31,79,.06);
  }
  .jxh__chip img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; }
  .jxh__chip--flag { padding: 0; width: 40px; }
  .jxh__sym {
    display: inline-flex; align-items: center; justify-content: center;
    width: 22px; height: 22px; border-radius: 50%;
    background: linear-gradient(135deg,#1A6FE0,#0F1F4F); color: #fff; font-size: 12px;
  }
  .jxh__burger {
    display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
    width: 44px; height: 44px; border: 0; border-radius: 12px; cursor: pointer;
    background: linear-gradient(135deg,#1A6FE0,#0F1F4F);
    box-shadow: 0 4px 12px rgba(26,111,224,.35);
  }
  .jxh__burger span { display: block; width: 20px; height: 2px; border-radius: 2px; background: #fff; }

  /* mini acilir liste (bayrak / para birimi) */
  .jxh__pop {
    position: fixed; top: 60px; z-index: 99999; display: none;
    background: #fff; border-radius: 14px; padding: 6px; min-width: 160px;
    box-shadow: 0 12px 32px rgba(15,31,79,.22); border: 1px solid #E3EBF7;
  }
  .jxh__pop.is-open { display: block; }
  .jxh__pop a {
    display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 10px;
    color: #0F1F4F; font: 600 14px/1.2 "Open Sans", Arial, sans-serif; text-decoration: none;
  }
  .jxh__pop a img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; }
  .jxh__pop a.is-on, .jxh__pop a:hover { background: #EEF4FD; color: #1A6FE0; }

  /* kayan menu */
  .jxh-ov {
    display: block; position: fixed; inset: 0; z-index: 99996;
    background: rgba(15,31,79,.45); opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s;
  }
  .jxh-dr {
    display: flex; flex-direction: column;
    position: fixed; top: 0; right: 0; bottom: 0; z-index: 99997;
    width: 88%; max-width: 380px; overflow-y: auto; -webkit-overflow-scrolling: touch;
    padding: 18px 18px 28px;
    background: linear-gradient(180deg,#F3F7FE 0%,#FFFFFF 100%);
    transform: translateX(100%); transition: transform .3s ease;
    box-shadow: -10px 0 30px rgba(15,31,79,.25);
    font-family: "Open Sans", Arial, sans-serif;
  }
  body.jxh-open { overflow: hidden; }
  body.jxh-open .jxh-ov { opacity: 1; visibility: visible; }
  body.jxh-open .jxh-dr { transform: none; }

  .jxh-dr__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
  .jxh-dr__top img { height: 46px; width: auto; }
  .jxh-dr__close {
    width: 42px; height: 42px; border-radius: 50%; border: 1px solid #C9D8F0; background: #fff;
    color: #1A6FE0; font-size: 24px; line-height: 1; cursor: pointer;
    box-shadow: 0 2px 8px rgba(15,31,79,.10);
  }
  .jxh-dr__nav { list-style: none; margin: 0 0 18px; padding: 0; }
  .jxh-dr__nav li { margin: 0 0 10px; }
  .jxh-dr__nav a {
    display: flex; align-items: center; justify-content: space-between;
    min-height: 52px; padding: 0 16px; border-radius: 14px;
    background: #fff; border: 1px solid #E3EBF7; border-left: 4px solid #1A6FE0;
    color: #0F1F4F; font-size: 16px; font-weight: 700; letter-spacing: .1px; text-decoration: none;
    box-shadow: 0 2px 8px rgba(15,31,79,.05);
  }
  .jxh-dr__nav a:after { content: "\203A"; font-size: 22px; color: #9DB5DB; font-weight: 400; }
  .jxh-dr__nav a.is-on { color: #1A6FE0; border-left-color: #0F1F4F; }

  .jxh-dr__lbl {
    margin: 4px 0 6px; color: #1A6FE0; font-size: 11.5px; font-weight: 800;
    letter-spacing: 1.2px; text-transform: uppercase;
  }
  .jxh-dr__lbl--wa { color: #18A957; }
  .jxh-dr__link {
    display: flex; align-items: center; gap: 10px; margin: 0 0 14px;
    color: #0F1F4F; font-size: 16px; font-weight: 600; text-decoration: none;
  }
  .jxh-dr__ico {
    display: inline-flex; align-items: center; justify-content: center; flex: 0 0 34px;
    width: 34px; height: 34px; border-radius: 50%; background: #EEF4FD; color: #1A6FE0;
  }
  .jxh-dr__ico--wa { background: #E6F7EE; color: #18A957; }
  .jxh-dr__ico svg { width: 18px; height: 18px; fill: currentColor; }

  .jxh-dr__sw { display: flex; gap: 10px; margin: 0 0 16px; flex-wrap: wrap; }
  .jxh-dr__sw .jxh__chip { height: 44px; padding: 0 14px; border-radius: 12px; }

  .jxh-dr__trust {
    list-style: none; margin: 4px 0 18px; padding: 14px 14px 6px; border-radius: 14px;
    background: #fff; border: 1px solid #CFE0F7; box-shadow: 0 2px 10px rgba(26,111,224,.08);
  }
  .jxh-dr__trust li {
    position: relative; padding-left: 28px; margin: 0 0 10px;
    color: #0F1F4F; font-size: 14px; line-height: 1.4; font-weight: 600;
  }
  .jxh-dr__trust li:before {
    content: "\2713"; position: absolute; left: 0; top: 0;
    width: 19px; height: 19px; border-radius: 50%; background: #1A6FE0; color: #fff;
    font-size: 11px; line-height: 19px; text-align: center; font-weight: 800;
  }
  .jxh-dr__cta {
    display: block; text-align: center; padding: 15px; border-radius: 14px;
    background: linear-gradient(135deg,#1A6FE0,#0F1F4F); color: #fff !important;
    font-size: 16px; font-weight: 800; text-decoration: none;
    box-shadow: 0 6px 16px rgba(26,111,224,.35);
  }
}
@media (max-width: 360px) {
  .jxh__logo img { height: 42px; }
  .jxh__chip { padding: 0 8px; }
}
