/**
 * Bro Dewata - Mobile App Touch UX & Ergonomics Styling
 */

/* 1. Touch-Friendly Ergonomics & Feedback */
button, 
a.btn, 
.bd-snap-card, 
.bd-currency-option, 
.bd-sheet-menu-item, 
.bd-bottom-nav-item,
.bd-chip-item {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.bd-touch-active:active,
button:active:not(:disabled),
a.btn:active {
  transform: scale(0.97);
  transition: transform 0.12s cubic-bezier(0.32, 0.72, 0, 1);
}

/* 2. Horizontal Snap-Scroll Carousel */
@media (max-width: 768px) {
  .bd-snap-carousel {
    display: flex !important;
    gap: 16px !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    padding: 6px 16px 20px !important;
    margin-left: -16px !important;
    margin-right: -16px !important;
  }

  .bd-snap-carousel::-webkit-scrollbar {
    display: none !important;
  }

  .bd-snap-card {
    flex: 0 0 82% !important;
    max-width: 320px !important;
    scroll-snap-align: start !important;
    scroll-snap-stop: always !important;
    border-radius: 20px !important;
    box-sizing: border-box !important;
  }

  /* Horizontal Filter Chips Bar */
  .bd-chip-bar {
    display: flex !important;
    gap: 8px !important;
    overflow-x: auto !important;
    scroll-snap-type: x proximity !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    padding: 4px 16px 12px !important;
    margin-left: -16px !important;
    margin-right: -16px !important;
  }

  .bd-chip-bar::-webkit-scrollbar {
    display: none !important;
  }

  .bd-chip-item {
    flex: 0 0 auto !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    height: 36px !important;
    padding: 0 16px !important;
    border-radius: 999px !important;
    font-family: 'Inter', system-ui, sans-serif !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    background: #ffffff !important;
    color: #374151 !important;
    border: 1px solid #e5e7eb !important;
    text-decoration: none !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
  }

  .bd-chip-item.active {
    background: #006e2e !important;
    color: #ffffff !important;
    border-color: #006e2e !important;
  }
}

/* 3. Sticky Bottom Booking Action Bar */
.bd-sticky-booking-bar {
  display: none;
  position: fixed;
  bottom: calc(60px + env(safe-area-inset-bottom, 0px));
  left: 0;
  right: 0;
  z-index: 985;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(229, 231, 235, 0.9);
  box-shadow: 0 -6px 25px rgba(0, 0, 0, 0.08);
  padding: 10px 16px;
}

.bd-sticky-booking-bar-inner {
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.bd-sticky-price-meta {
  display: flex;
  flex-direction: column;
}

.bd-sticky-price-label {
  font-size: 11px;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.bd-sticky-price-value {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: 18px;
  font-weight: 900;
  color: #006e2e;
}

.bd-sticky-price-sub {
  font-size: 11px;
  color: #4b5563;
  font-weight: 500;
}

.bd-sticky-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  background: #006e2e;
  color: #ffffff;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 110, 46, 0.25);
  transition: background 0.2s, transform 0.12s;
}

.bd-sticky-cta-btn:active {
  transform: scale(0.96);
  background: #005321;
}

@media (max-width: 980px) {
  .bd-sticky-booking-bar {
    display: block;
  }
}

/* 4. Skeleton Shimmer Loading */
@keyframes bd-shimmer-anim {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.bd-shimmer {
  background: linear-gradient(90deg, #f0f1f2 25%, #e2e8f0 50%, #f0f1f2 75%);
  background-size: 200% 100%;
  animation: bd-shimmer-anim 1.5s infinite;
  border-radius: 8px;
}
