/* ============================================================
   D.S AIRLINES — Mobile Bottom Navigation & Floating CTA
   Luxury mobile-native experience with glass morphism
   ============================================================ */

/* ── Bottom Navigation Bar ── */
.ds-mobile-nav {
  display: none; /* Hidden on desktop */
}

@media (max-width: 768px) {
  .ds-mobile-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 72px;
    z-index: 9999;
    background: rgba(4, 10, 26, 0.92);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-top: 1px solid rgba(201, 168, 76, 0.2);
    box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: space-around;
    padding: 0 8px;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
  }

  .ds-mobile-nav.nav-hidden {
    transform: translateY(100%);
  }

  /* ── Tab Item ── */
  .ds-mob-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex: 1;
    padding: 8px 4px 6px;
    cursor: pointer;
    text-decoration: none;
    position: relative;
    -webkit-tap-highlight-color: transparent;
    transition: all 0.25s ease;
  }

  .ds-mob-tab svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: rgba(168, 178, 200, 0.6);
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  }

  .ds-mob-tab span {
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 0.62rem;
    font-weight: 500;
    color: rgba(168, 178, 200, 0.6);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: color 0.3s ease;
    white-space: nowrap;
  }

  /* Active State */
  .ds-mob-tab.active svg {
    stroke: #c9a84c;
    filter: drop-shadow(0 0 8px rgba(201, 168, 76, 0.4));
    transform: scale(1.1) translateY(-2px);
  }

  .ds-mob-tab.active span {
    color: #c9a84c;
    font-weight: 600;
  }

  /* Active dot indicator */
  .ds-mob-tab.active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: #c9a84c;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(201, 168, 76, 0.6);
    animation: mobDotPulse 2s ease-in-out infinite;
  }

  @keyframes mobDotPulse {
    0%, 100% { box-shadow: 0 0 8px rgba(201, 168, 76, 0.6); }
    50% { box-shadow: 0 0 16px rgba(201, 168, 76, 0.9); }
  }

  /* Tap ripple effect */
  .ds-mob-tab:active svg {
    transform: scale(0.85);
    transition-duration: 0.1s;
  }

  /* ── Floating Book CTA ── */
  .ds-mobile-book-cta {
    position: fixed;
    bottom: 88px; /* Above bottom nav */
    left: 50%;
    transform: translateX(-50%);
    z-index: 9998;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: linear-gradient(135deg, #a07c2e, #c9a84c, #dcc06e);
    color: #040a1a;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-decoration: none;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    box-shadow:
      0 4px 24px rgba(201, 168, 76, 0.4),
      0 0 60px rgba(201, 168, 76, 0.15);
    animation: ctaFloat 3s ease-in-out infinite, ctaGlow 2s ease-in-out infinite alternate;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s;
    -webkit-tap-highlight-color: transparent;
  }

  .ds-mobile-book-cta:active {
    transform: translateX(-50%) scale(0.95);
  }

  .ds-mobile-book-cta.cta-hidden {
    transform: translateX(-50%) translateY(200px);
    opacity: 0;
    pointer-events: none;
  }

  @keyframes ctaFloat {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-6px); }
  }

  @keyframes ctaGlow {
    from { box-shadow: 0 4px 24px rgba(201, 168, 76, 0.3), 0 0 40px rgba(201, 168, 76, 0.1); }
    to { box-shadow: 0 8px 36px rgba(201, 168, 76, 0.5), 0 0 80px rgba(201, 168, 76, 0.2); }
  }

  /* ── Adjust body for bottom nav ── */
  body {
    padding-bottom: 80px !important;
  }

  /* ── Swipe Hint Indicator ── */
  .ds-swipe-hint {
    position: fixed;
    bottom: 152px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9990;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(4, 10, 26, 0.9);
    border: 1px solid rgba(201, 168, 76, 0.3);
    border-radius: 30px;
    backdrop-filter: blur(12px);
    color: rgba(201, 168, 76, 0.8);
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    animation: swipeHintFade 4s ease forwards;
    pointer-events: none;
  }

  .ds-swipe-hint svg {
    width: 16px;
    height: 16px;
    stroke: #c9a84c;
    fill: none;
    stroke-width: 2;
    animation: swipeHintSlide 1.5s ease-in-out infinite;
  }

  @keyframes swipeHintSlide {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(8px); }
  }

  @keyframes swipeHintFade {
    0% { opacity: 0; transform: translateX(-50%) translateY(10px); }
    15% { opacity: 1; transform: translateX(-50%) translateY(0); }
    80% { opacity: 1; }
    100% { opacity: 0; transform: translateX(-50%) translateY(-10px); }
  }
}
