/* Makrakanta Suimaki - Mobile section snap
   iPhone/Safari adres çubuğu için gerçek görünür viewport kullanır. */
@media (max-width: 991px) {
  html.mk-mobile-section-snap,
  body.mk-mobile-section-snap {
    min-height: var(--mk-mlc-mobile-vh, 100dvh) !important;
    scroll-behavior: smooth;
    overscroll-behavior-y: contain;
    -webkit-text-size-adjust: 100%;
  }

  html.mk-mobile-section-scroll-snap {
    scroll-snap-type: y mandatory;
  }

  html.mk-mobile-section-native-fp {
    scroll-snap-type: none !important;
  }

  body.mk-mobile-section-snap {
    overflow-x: hidden !important;
    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
  }

  body.mk-mobile-section-snap #fullpage,
  body.mk-mobile-section-snap #fullpage-main,
  body.mk-mobile-section-snap .fullpage-wrapper {
    min-height: var(--mk-mlc-mobile-vh, 100dvh) !important;
  }

  body.mk-mobile-section-snap .fp-section,
  body.mk-mobile-section-snap .section {
    min-height: var(--mk-mlc-mobile-vh, 100dvh) !important;
    height: var(--mk-mlc-mobile-vh, 100dvh) !important;
    max-height: var(--mk-mlc-mobile-vh, 100dvh) !important;
    scroll-snap-align: start !important;
    scroll-snap-stop: always !important;
    overflow: hidden !important;
  }

  body.mk-mobile-section-snap .fp-tableCell {
    min-height: var(--mk-mlc-mobile-vh, 100dvh) !important;
    height: var(--mk-mlc-mobile-vh, 100dvh) !important;
    max-height: var(--mk-mlc-mobile-vh, 100dvh) !important;
    display: table-cell !important;
    vertical-align: middle !important;
  }

  body.mk-mobile-section-snap .fp-auto-height-responsive,
  body.mk-mobile-section-snap .fp-auto-height-responsive .fp-tableCell {
    min-height: var(--mk-mlc-mobile-vh, 100dvh) !important;
    height: var(--mk-mlc-mobile-vh, 100dvh) !important;
    max-height: var(--mk-mlc-mobile-vh, 100dvh) !important;
  }

  body.mk-mobile-section-snap .background-page,
  body.mk-mobile-section-snap .bg-overlay,
  body.mk-mobile-section-snap #mk-mlc-safe-video-bg {
    min-height: var(--mk-mlc-mobile-vh, 100dvh) !important;
    height: var(--mk-mlc-mobile-vh, 100dvh) !important;
    max-height: var(--mk-mlc-mobile-vh, 100dvh) !important;
  }

  body.mk-mobile-section-snap .background-page video,
  body.mk-mobile-section-snap #mk-mlc-safe-video-bg video {
    height: var(--mk-mlc-mobile-vh, 100dvh) !important;
  }

  #mk-mobile-section-arrow {
    position: fixed;
    left: 50%;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 24px);
    width: 46px;
    height: 46px;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(255,255,255,0.78);
    border-radius: 999px;
    background: rgba(0,0,0,0.10);
    transform: translate3d(-50%, 0, 0);
    z-index: 2147483000;
    cursor: pointer;
    opacity: 0.96;
    -webkit-tap-highlight-color: transparent;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
  }

  #mk-mobile-section-arrow span {
    position: absolute;
    left: 50%;
    top: 45%;
    width: 13px;
    height: 13px;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: translate(-50%, -50%) rotate(45deg);
    animation: mk-mobile-arrow-bounce 1.35s infinite;
  }

  #mk-mobile-section-arrow.mk-is-last-section {
    opacity: 0;
    pointer-events: none;
  }
}

@keyframes mk-mobile-arrow-bounce {
  0%, 100% { transform: translate(-50%, -55%) rotate(45deg); }
  50% { transform: translate(-50%, -30%) rotate(45deg); }
}

@supports not (height: 100dvh) {
  @media (max-width: 991px) {
    body.mk-mobile-section-snap .fp-section,
    body.mk-mobile-section-snap .section,
    body.mk-mobile-section-snap .fp-tableCell,
    body.mk-mobile-section-snap .fp-auto-height-responsive,
    body.mk-mobile-section-snap .fp-auto-height-responsive .fp-tableCell,
    body.mk-mobile-section-snap .background-page,
    body.mk-mobile-section-snap .bg-overlay,
    body.mk-mobile-section-snap #mk-mlc-safe-video-bg {
      min-height: var(--mk-mlc-mobile-vh, 100svh) !important;
      height: var(--mk-mlc-mobile-vh, 100svh) !important;
      max-height: var(--mk-mlc-mobile-vh, 100svh) !important;
    }
  }
}


/* v1.2.5 - iPhone mobile arrows + top pull guard visual fixes */
@media (max-width: 991px) {
  #mk-mobile-section-arrow,
  #mk-mobile-section-arrow-up,
  .mk-mobile-section-arrow-btn {
    position: fixed !important;
    left: 50% !important;
    width: 46px !important;
    height: 46px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid rgba(255,255,255,0.82) !important;
    border-radius: 999px !important;
    background: rgba(0,0,0,0.16) !important;
    transform: translate3d(-50%, 0, 0) !important;
    z-index: 2147483000 !important;
    cursor: pointer !important;
    opacity: 0.96 !important;
    -webkit-tap-highlight-color: transparent !important;
    backdrop-filter: blur(4px) !important;
    -webkit-backdrop-filter: blur(4px) !important;
    display: block !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }

  #mk-mobile-section-arrow,
  .mk-mobile-section-arrow-down {
    bottom: calc(env(safe-area-inset-bottom, 0px) + 34px) !important;
    top: auto !important;
  }

  #mk-mobile-section-arrow-up,
  .mk-mobile-section-arrow-up {
    top: calc(env(safe-area-inset-top, 0px) + 34px) !important;
    bottom: auto !important;
  }

  #mk-mobile-section-arrow span,
  #mk-mobile-section-arrow-up span,
  .mk-mobile-section-arrow-btn span {
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    width: 13px !important;
    height: 13px !important;
    border-right: 2px solid #fff !important;
    border-bottom: 2px solid #fff !important;
  }

  #mk-mobile-section-arrow span,
  .mk-mobile-section-arrow-down span {
    transform: translate(-50%, -55%) rotate(45deg) !important;
    animation: mk-mobile-arrow-bounce 1.35s infinite !important;
  }

  #mk-mobile-section-arrow-up span,
  .mk-mobile-section-arrow-up span {
    transform: translate(-50%, -35%) rotate(225deg) !important;
    animation: mk-mobile-arrow-up-bounce 1.35s infinite !important;
  }

  #mk-mobile-section-arrow.mk-is-last-section,
  #mk-mobile-section-arrow-up.mk-is-first-section {
    opacity: 0 !important;
    pointer-events: none !important;
    visibility: hidden !important;
  }
}

@keyframes mk-mobile-arrow-up-bounce {
  0%, 100% { transform: translate(-50%, -30%) rotate(225deg); }
  50% { transform: translate(-50%, -55%) rotate(225deg); }
}


/* v1.2.6 - Boundary overscroll guard for first/last mobile sections */
@media (max-width: 991px) {
  html.mk-mobile-section-snap,
  body.mk-mobile-section-snap,
  body.mk-mobile-section-snap #fullpage,
  body.mk-mobile-section-snap #fullpage-main,
  body.mk-mobile-section-snap .fullpage-wrapper {
    overscroll-behavior-y: none !important;
  }

  body.mk-mobile-section-snap .fp-section,
  body.mk-mobile-section-snap .section {
    overscroll-behavior: contain !important;
  }
}

/* v1.2.7 - Arrow tap navigation guard: prevent iOS/fullpage snap-back while arrows move. */
@media (max-width: 991px) {
  html.mk-mobile-arrow-moving,
  body.mk-mobile-arrow-moving {
    scroll-behavior: auto !important;
  }

  html.mk-mobile-section-scroll-snap.mk-mobile-arrow-moving {
    scroll-snap-type: none !important;
  }

  .mk-mobile-section-arrow-btn {
    touch-action: manipulation !important;
    user-select: none !important;
    -webkit-user-select: none !important;
  }
}


/* v1.2.8 - Hide theme/WordPress footer on mobile fullpage pages.
   Some themes still print “Powered by WordPress” even when footer is disabled. */
@media (max-width: 991px) {
  body.mk-mobile-section-snap > footer,
  body.mk-mobile-section-snap #footer,
  body.mk-mobile-section-snap #colophon,
  body.mk-mobile-section-snap .site-footer,
  body.mk-mobile-section-snap .footer-parallax,
  body.mk-mobile-section-snap .footer-container,
  body.mk-mobile-section-snap .footer-wrapper,
  body.mk-mobile-section-snap .footer-content,
  body.mk-mobile-section-snap .footer-area,
  body.mk-mobile-section-snap .footer-bottom,
  body.mk-mobile-section-snap .site-info,
  body.mk-mobile-section-snap .powered-by,
  body.mk-mobile-section-snap .powered-by-wordpress,
  body.mk-mobile-section-snap [class*="powered-by"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    min-height: 0 !important;
    max-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    pointer-events: none !important;
  }

  body.mk-mobile-section-snap .mk-mlc-hidden-footer {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    min-height: 0 !important;
    max-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    pointer-events: none !important;
  }

  body.mk-mobile-section-snap,
  body.mk-mobile-section-snap #page,
  body.mk-mobile-section-snap .site,
  body.mk-mobile-section-snap #wrapper,
  body.mk-mobile-section-snap .wrapper {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
  }
}
