/* ================================================================
   home-extra.css  –  index.html micro-interaction & mobile styles
   Extracted from inline <style> for performance (no render-blocking)
   ================================================================ */

/* Base */
body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: #0f172a;
  background-color: #ffffff;
  overflow-x: hidden;
}

/* Instant tap responsiveness */
button, a, select, .pkg-tab, .lang-btn, .navbar__toggle {
  touch-action: manipulation;
}

/* ── Subtle Hero Entrance Animation (GPU-only, crisp) ── */
@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.hero .relative.z-10 > div,
.hero .relative.z-10 > h1,
.hero .relative.z-10 > p {
  animation: heroFadeUp 0.65s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.hero .relative.z-10 > div:nth-child(1) { animation-delay: 0.04s; }
.hero .relative.z-10 > div:nth-child(2) { animation-delay: 0.1s; }
.hero .relative.z-10 > h1               { animation-delay: 0.16s; }
.hero .relative.z-10 > p                { animation-delay: 0.22s; }
.hero .relative.z-10 > div:last-child   { animation-delay: 0.28s; }

/* ── Package Card Micro-Interactions ── */
.tour-card {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.3s ease !important;
  will-change: transform, box-shadow;
}
.tour-card:hover {
  transform: translateY(-8px) !important;
  box-shadow: 0 20px 40px -10px rgba(225,29,72,0.22), 0 8px 16px -6px rgba(0,0,0,0.06) !important;
  border-color: rgba(244,63,94,0.45) !important;
}
.tour-card-img {
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1) !important;
  will-change: transform;
}
.tour-card:hover .tour-card-img {
  transform: scale(1.1) !important;
}
.quick-preview-overlay {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1rem;
  background: linear-gradient(to top, rgba(15,23,42,0.98) 0%, rgba(15,23,42,0.88) 65%, transparent 100%) !important;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
  z-index: 20 !important;
  will-change: transform;
}
.tour-card:hover .quick-preview-overlay {
  transform: translateY(0) !important;
}

/* Smooth filter reveal for cards */
@keyframes cardFadeScale {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.tour-card.card-revealed {
  animation: cardFadeScale 0.32s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* ── Filter Status & Empty State ── */
.home-search-status {
  display: none;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  padding: 0.85rem 1.25rem;
  border-radius: 1rem;
  background: #fff1f2;
  border: 1px solid rgba(225, 29, 72, 0.2);
  color: #881337;
  font-size: 0.875rem;
  font-weight: 600;
}
.home-search-status.visible {
  display: flex;
}
.home-search-reset-btn {
  padding: 0.45rem 1rem;
  border-radius: 9999px;
  background: #e11d48;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.home-search-reset-btn:hover {
  background: #be123c;
  transform: translateY(-1px);
}
.home-search-empty {
  display: none;
  text-align: center;
  padding: 3.5rem 1.5rem;
  border-radius: 1.5rem;
  background: #fff9fa;
  border: 1px dashed rgba(225, 29, 72, 0.3);
  margin-top: 1rem;
}
.home-search-empty.visible {
  display: block;
}
.home-search-empty h3 {
  font-size: 1.125rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.4rem;
}
.home-search-empty p {
  font-size: 0.9rem;
  color: #64748b;
  margin-bottom: 1.25rem;
}

/* ── Shimmer Badge ── */
.shimmer-badge {
  position: relative !important;
  overflow: hidden !important;
}
.shimmer-glimmer {
  position: absolute !important;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.65) 50%, transparent 100%) !important;
  transform: translateX(-150%) skewX(-20deg);
  animation: glimmerSweep 2.8s infinite !important;
  pointer-events: none;
}
@keyframes glimmerSweep {
  0%        { transform: translateX(-150%) skewX(-20deg); }
  50%, 100% { transform: translateX(250%) skewX(-20deg); }
}

/* ── Glassmorphism ── */
.glass-card {
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.8);
}
.glass-card-dark {
  background: rgba(15,23,42,0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.12);
}

/* ── Bento Grid ── */
.bento-card {
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.bento-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 35px -10px rgba(225,29,72,0.18);
}

/* ── Hide scrollbar for tabs ── */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* ── WhatsApp Floating Pulse ── */
.wa-pulse-ring {
  position: absolute;
  inset: -4px;
  border-radius: 9999px;
  background: rgba(37,211,102,0.35);
  animation: ping 2s cubic-bezier(0,0,0.2,1) infinite;
  pointer-events: none;
}

/* ── Language Switcher Contrast (Desktop Transparent, Desktop Solid, Drawer & Mobile Pink Bar) ── */
.lang-btn {
  cursor: pointer !important;
  touch-action: manipulation;
  user-select: none;
  border: none !important;
  outline: none !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.lang-btn.active {
  background-color: #e11d48 !important;
  color: #ffffff !important;
  box-shadow: 0 1px 4px rgba(225,29,72,0.35) !important;
}
.announcement-bar .lang-btn:not(.active),
.navbar.navbar--transparent .lang-btn:not(.active),
#nav-menu .lang-btn:not(.active) {
  background-color: transparent !important;
  color: rgba(255,255,255,0.88) !important;
}
.announcement-bar .lang-btn:not(.active):hover,
.navbar.navbar--transparent .lang-btn:not(.active):hover,
#nav-menu .lang-btn:not(.active):hover {
  color: #ffffff !important;
  background-color: rgba(255,255,255,0.18) !important;
}
@media (min-width: 993px) {
  .navbar.navbar--solid .lang-btn:not(.active) {
    background-color: transparent !important;
    color: #475569 !important;
  }
  .navbar.navbar--solid .lang-btn:not(.active):hover {
    background-color: rgba(225,29,72,0.12) !important;
    color: #be123c !important;
  }
}
@media (max-width: 992px) {
  .navbar .navbar__mobile-actions .lang-btn:not(.active) {
    background-color: transparent !important;
    color: rgba(255,255,255,0.9) !important;
  }
  .navbar .navbar__mobile-actions .lang-btn.active {
    background-color: #ffffff !important;
    color: #9f1239 !important;
  }
}

/* ── Reduced motion accessibility ── */
@media (prefers-reduced-motion: reduce) {
  .hero .relative.z-10 > div,
  .hero .relative.z-10 > h1,
  .hero .relative.z-10 > p,
  .tour-card.card-revealed,
  .shimmer-glimmer,
  .wa-pulse-ring {
    animation: none !important;
  }
}

/* ── Mobile (≤639px) ── */
@media (max-width: 639px) {
  .announcement-bar .max-w-7xl {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  /* Bento Grid Destinations — prevent text overlap on narrow mobile screens */
  #destinations .grid {
    grid-template-columns: 1fr !important;
    grid-auto-rows: auto !important;
    gap: 1rem !important;
  }
  #destinations .grid > article {
    grid-column: span 1 !important;
    grid-row: span 1 !important;
    min-height: 260px;
    height: auto !important;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
  }
  #destinations .grid > article > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  #destinations .grid > article > .inset-x-0.bottom-0 {
    position: relative !important;
    inset: auto !important;
    padding: 4rem 1.25rem 1.25rem !important;
    width: 100%;
  }
  #destinations .grid > article h3 {
    font-size: 1.25rem !important;
    line-height: 1.3 !important;
  }
  #packages-grid { grid-template-columns: 1fr !important; }
  .count-up-number { font-size: 2.5rem !important; }
  .tour-card .h-60 { height: 200px !important; }
  #search-tour-form {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }
  #testi-carousel { grid-template-columns: 1fr !important; }
  .flight-cards-grid { grid-template-columns: 1fr !important; }
  .footer .grid { grid-template-columns: 1fr !important; }
  #wa-float-btn ~ a { display: none !important; }
  .fixed.bottom-6 {
    bottom: 5rem !important;
    right: 1.25rem !important;
  }
  .hero .relative.z-10 { padding-bottom: 8rem !important; }
  .relative.z-30.-mt-14 { margin-top: -3rem !important; }
}

/* ── Tablet (640–1023px) ── */
@media (min-width: 640px) and (max-width: 1023px) {
  #destinations .grid {
    grid-auto-rows: minmax(280px, auto) !important;
  }
  #destinations .grid > article {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
  }
  #destinations .grid > article > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  #destinations .grid > article > .inset-x-0.bottom-0 {
    position: relative !important;
    inset: auto !important;
    padding-top: 3.75rem !important;
    width: 100%;
  }
  #destinations .grid > article.lg\:col-span-2 {
    grid-column: span 2 !important;
  }
}
