/* BitkiMO — нижнее мобильное меню (≤767px) */
@media (max-width:767px){
  .bmo-bottom-nav{
    position:fixed; left:0; right:0; bottom:0; z-index:60;
    display:flex; justify-content:space-around; align-items:flex-end;
    background:#F5F2ED; border-top:1px solid #E4DFD5;
    box-shadow:0 -4px 14px rgba(15,23,39,0.06);
    /* 3D-2 (13.09.2026): env() с фолбэком — без него весь шортхенд padding
       невалиден там, где env() не поддержан. */
    padding:6px 6px calc(6px + env(safe-area-inset-bottom,0px));
  }
  /* 3D-6 (13.09.2026): визуальный пол нижнего отступа панели.
     Причина: внутри iOS WKWebView страница печатается без viewport-fit=cover,
     поэтому env(safe-area-inset-bottom) отдаёт 0, а shell намеренно НЕ резервирует
     нижний inset (D-11 / F-02 CASE C) — панель доходит до физического низа экрана и
     подписи Ana Sayfa / Hesabım упираются в скругление. 18px — визуальный фолбэк-пол
     для ветки env=0: цель не зарезервировать весь safe-area внутри панели (фон и
     должен доходить до низа), а поднять labels/tap-content над опасной зоной, не
     создавая заметной пустой полосы снизу — контент едет вверх ровно на 12px.
     Там, где env() реален (Android WebView = 48px, мобильный Safari с cover), max()
     оставляет прежнее значение — Android не меняется.
     Селектор html body .bmo-bottom-nav (0,1,2): дубликат .bmo-bottom-nav в Customizer
     (CSS-CUSTOMIZER-01) печатается на wp_head@101, т.е. ПОЗЖЕ этого файла, и его
     шортхенд padding перебил бы одиночный класс. Первая строка — фолбэк для движков
     без max()/env(). */
  html body .bmo-bottom-nav{
    padding-bottom:18px;
    padding-bottom:max(18px, calc(6px + env(safe-area-inset-bottom,0px)));
  }
  .bmo-bn__item{
    flex:1 1 0; display:flex; flex-direction:column; align-items:center; gap:4px;
    color:#2D6A4F !important; font-size:11px; font-weight:600;
    text-decoration:none; padding:2px 0 0; min-height:44px; justify-content:flex-end; /* 3D-2: тап-цель ≥44px */
  }
  .bmo-bn__item i{ font-size:20px; line-height:1; }
  .bmo-bn__item span{ line-height:1.25; } /* 3D-2: явный line-height подписи вместо унаследованного от темы */
  .bmo-bn__item:hover, .bmo-bn__item:active{ color:#7FA35A !important; }
  /* центральная İlan Ver — приподнятый зелёный круг */
  .bmo-bn__fab{
    flex:0 0 auto; width:52px; height:52px; margin:0 4px 0; padding:0;
    border:0; border-radius:50%; background:#2D6A4F; color:#fff;
    display:flex; align-items:center; justify-content:center;
    font-size:22px; cursor:pointer;
    box-shadow:0 6px 16px rgba(45,106,79,0.40);
    transition:background .15s, transform .05s;
  }
  .bmo-bn__fab:hover{ background:#7FA35A; }
  .bmo-bn__fab:active{ transform:translateY(1px); }
  /* 3D-2 (13.09.2026): резерв под панель = её фактическая высота 64px + inset
     (+8px запаса), а не фиксированные 72px. Селектор html body (0,0,2): дубликат
     .bmo-bottom-nav-блока в Customizer печатается ПОЗЖЕ этого файла и тоже с
     !important — при равной специфичности body он бы перебил это правило. */
  /* 3D-6: резерв под панель следует за её фактической высотой (6 top + 52 FAB +
     padding-bottom) + 8px запаса: в ветке пола 76 + 8 = 84px, при живом env —
     прежние 72px + inset. Фолбэком идёт первая строка. */
  html body{
    padding-bottom:84px !important;
    padding-bottom:max(84px, calc(72px + env(safe-area-inset-bottom,0px))) !important;
  } /* контент не прячется под меню */
  /* 3A-05 (11.09.2026): верхняя шапка на мобиле убрана ЦЕЛИКОМ — только CSS.
     DOM header.site-header ОСТАЁТСЯ: внутри него лежат ul.hp-menu--user-account,
     пункты favorite/listing-submit и .menu-item-61 (Blog) — из них читают
     нижняя навигация (1213), лист Hesabım (1251), FAB и Journal. display:none
     не удаляет узлы, .click() по скрытым ссылкам работает. */
  header.site-header{ display:none !important; }
}
@media (min-width:768px){ .bmo-bottom-nav{ display:none !important; } }
/* BitkiMO — Hesabım выдвижная панель (bottom sheet) */
.bmo-sheet-overlay{
  position:fixed; inset:0; background:rgba(15,23,39,0.35); z-index:70;
  opacity:0; visibility:hidden; transition:opacity .2s;
}
.bmo-sheet{
  position:fixed; left:0; right:0; bottom:0; z-index:71;
  background:#F5F2ED; border-radius:20px 20px 0 0;
  box-shadow:0 -10px 30px rgba(15,23,39,0.18);
  padding:8px 18px calc(18px + env(safe-area-inset-bottom));
  transform:translateY(100%);
  max-height:85vh; overflow-y:auto;
}
body.bmo-sheet-open{ overflow:hidden; }
body.bmo-sheet-open .bmo-sheet-overlay{ opacity:1; visibility:visible; }
body.bmo-sheet-open .bmo-sheet{ transform:translateY(0); }
.bmo-sheet__head{ display:flex; align-items:center; gap:12px; padding:14px 4px 10px; }
.bmo-sheet__ava{
  width:46px; height:46px; border-radius:50%; background:#E4DFD5;
  display:flex; align-items:center; justify-content:center; color:#2D6A4F; font-size:20px;
}
.bmo-sheet__who{ flex:1 1 auto; }
.bmo-sheet__nick{ font-weight:700; color:#1a1a1a; font-size:16px; }
.bmo-sheet__close{ border:0; background:transparent; color:#666; font-size:20px; cursor:pointer; padding:6px; }
.bmo-sheet__sec{
  font-size:11px; font-weight:700; letter-spacing:.06em; color:#7FA35A;
  text-transform:uppercase; margin:14px 4px 6px;
}
.bmo-sheet__link{
  display:block; padding:13px 6px; color:#2D6A4F !important; font-weight:600;
  text-decoration:none; border-bottom:1px solid rgba(45,106,79,0.08);
}
.bmo-sheet__link:active{ color:#7FA35A !important; }
@media (min-width:768px){ .bmo-sheet, .bmo-sheet-overlay{ display:none !important; } }
/* BitkiMO — Hesabım панель: группы + фикс крестика */
.bmo-sheet__close{ align-self:flex-start !important; margin-top:4px !important; line-height:1 !important;
  display:flex; align-items:center; justify-content:center; }
.bmo-sheet__group{
  width:100%; text-align:left; border:0; background:transparent; cursor:pointer;
  display:flex; align-items:center; justify-content:space-between;
  padding:13px 6px; color:#2D6A4F; font-weight:600; font-size:16px;
  border-bottom:1px solid rgba(45,106,79,0.08);
}
.bmo-sheet__group i{ transition:transform .2s; font-size:13px; color:#7FA35A; }
.bmo-sheet__group.is-open i{ transform:rotate(180deg); }
.bmo-sheet__sub{ display:none; padding-left:14px; }
.bmo-sheet__sub.is-open{ display:block; }
.bmo-sheet__sub .bmo-sheet__link{ color:#3a7a5c !important; }
.bmo-sheet__link--logout{ color:#a13b3b !important; }
/* FIX (iOS): закрытая панель Hesabım не должна перехватывать тапы по форме */
.bmo-sheet{
  visibility:hidden;
  pointer-events:none;
  transition:transform .25s ease, visibility 0s linear .25s;
}
body.bmo-sheet-open .bmo-sheet{
  visibility:visible;
  pointer-events:auto;
  transition:transform .25s ease, visibility 0s;
}
.bmo-sheet-overlay{ pointer-events:none; }
body.bmo-sheet-open .bmo-sheet-overlay{ pointer-events:auto; }