/* Custom animations & Apple Liquid Glass utilities for WanaTravel Lampung */

html,
body {
  overflow-x: hidden;
  max-width: 100%;
}

/* Hide scrollbar cleanly for mobile horizontal carousels & filter pills */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

@keyframes slowZoom {
  0% {
    transform: scale(1.03);
  }
  50% {
    transform: scale(1.09);
  }
  100% {
    transform: scale(1.03);
  }
}

.animate-slow-zoom {
  animation: slowZoom 22s ease-in-out infinite;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.animate-fade-in {
  animation: fadeIn 0.25s ease-out forwards;
}

/* ==========================================================================
   APPLE VISIONOS / LIQUID FROSTED WHITE GLASS + DEEP BLACK SHADOW
   ========================================================================== */
.apple-glass-search {
  position: relative;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.28) 0%,
    rgba(255, 255, 255, 0.13) 52%,
    rgba(255, 255, 255, 0.22) 100%
  );
  backdrop-filter: blur(28px) saturate(185%);
  -webkit-backdrop-filter: blur(28px) saturate(185%);
  border: 1px solid rgba(255, 255, 255, 0.46);
  box-shadow:
    0 26px 56px -8px rgba(0, 0, 0, 0.78),
    0 12px 24px -6px rgba(0, 0, 0, 0.56),
    inset 0 1.5px 1px 0 rgba(255, 255, 255, 0.72),
    inset 0 -1px 1px 0 rgba(255, 255, 255, 0.18);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.apple-glass-search:hover,
.apple-glass-search:focus-within {
  border-color: rgba(255, 255, 255, 0.65);
  box-shadow:
    0 30px 64px -8px rgba(0, 0, 0, 0.84),
    0 14px 28px -6px rgba(0, 0, 0, 0.62),
    inset 0 1.5px 1.5px 0 rgba(255, 255, 255, 0.85),
    inset 0 -1px 1px 0 rgba(255, 255, 255, 0.24);
}

.apple-glass-icon {
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.26) 0%,
    rgba(255, 255, 255, 0.08) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.38);
  box-shadow:
    0 6px 14px -3px rgba(0, 0, 0, 0.45),
    inset 0 1px 0.5px rgba(255, 255, 255, 0.65);
}

.apple-glass-pill {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.22) 0%,
    rgba(255, 255, 255, 0.09) 100%
  );
  backdrop-filter: blur(22px) saturate(175%);
  -webkit-backdrop-filter: blur(22px) saturate(175%);
  border: 1px solid rgba(255, 255, 255, 0.38);
  box-shadow:
    0 18px 38px -6px rgba(0, 0, 0, 0.68),
    inset 0 1px 1px rgba(255, 255, 255, 0.6);
}

.apple-glass-text-shadow {
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.48);
}

/* Ensure dropdown options & date picker look sleek and readable across browsers */
.apple-glass-search {
  transform: translateZ(0);
}

.apple-glass-search select,
.apple-glass-search input[type="date"],
.apple-glass-search input[type="text"],
.apple-glass-search input[type="number"] {
  max-width: 100%;
  min-width: 0;
}

.apple-glass-search select option {
  background-color: #08182e;
  color: #f8fafc;
}

.apple-glass-search input[type="date"] {
  color-scheme: dark;
  -webkit-appearance: none;
  appearance: none;
  min-height: 1.5rem;
}

.apple-glass-search input[type="date"]::-webkit-date-and-time-value {
  text-align: left;
}

.apple-glass-search input[type="date"]::-webkit-calendar-picker-indicator {
  opacity: 0.85;
  cursor: pointer;
  margin-left: 4px;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
}

/* Prevent iOS Safari zoom on form inputs while keeping desktop compact */
@media (max-width: 639px) {
  .apple-glass-search select,
  .apple-glass-search input[type="date"],
  .apple-glass-search input[type="text"],
  .apple-glass-search input[type="number"],
  #booking-form input,
  #booking-form select,
  #booking-form textarea {
    font-size: 16px !important;
  }
}

/* Custom card glow matching reference image 1 */
.package-card-glow {
  box-shadow: 0 0 35px -10px rgba(56, 189, 248, 0.25);
}

.package-card-glow:hover {
  box-shadow: 0 0 45px -5px rgba(56, 189, 248, 0.45);
}

/* ==========================================================================
   POPULAR DESTINATIONS — PREMIUM INFINITE SMOOTH AUTO-GLIDE CAROUSEL
   ========================================================================== */
@media (min-width: 640px) {
  .dest-marquee-viewport {
    -webkit-mask-image: linear-gradient(
      to right,
      rgba(0, 0, 0, 0) 0%,
      rgba(0, 0, 0, 1) 3.5%,
      rgba(0, 0, 0, 1) 96.5%,
      rgba(0, 0, 0, 0) 100%
    );
    mask-image: linear-gradient(
      to right,
      rgba(0, 0, 0, 0) 0%,
      rgba(0, 0, 0, 1) 3.5%,
      rgba(0, 0, 0, 1) 96.5%,
      rgba(0, 0, 0, 0) 100%
    );
  }
}

.dest-marquee-track {
  backface-visibility: hidden;
  transform-style: preserve-3d;
  touch-action: pan-y;
  cursor: grab;
}

.dest-marquee-track:active {
  cursor: grabbing;
}

.dest-card-premium {
  transition:
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.dest-card-premium:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 42px -12px rgba(6, 19, 37, 0.38);
}
