/* ============================================================
   OpenTripSkeleton.module.css — Shimmer Skeleton for /open-trip
   ============================================================ */

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.shimmerBase {
  background: linear-gradient(
    90deg,
    #F0F4F1 0%,
    #E5EDE7 50%,
    #F0F4F1 100%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite ease-in-out;
}

/* ── Search bar shimmer ───────────────────────────────────── */

.searchBarShimmer {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 24px;
}

.searchInputShimmer {
  height: 46px;
  width: 100%;
  max-width: 620px;
  border-radius: 14px;
  composes: shimmerBase;
}

.filterChipShimmer {
  height: 42px;
  flex: 1 1 170px;
  border-radius: 12px;
  composes: shimmerBase;
}

/* ── Category tabs shimmer ────────────────────────────────── */

.tabsShimmer {
  display: flex;
  gap: 10px;
  padding-bottom: 16px;
  margin-bottom: 24px;
  border-bottom: 1px solid #EAEFEA;
  overflow: hidden;
}

.tabChipShimmer {
  height: 32px;
  width: 90px;
  border-radius: 999px;
  flex-shrink: 0;
  composes: shimmerBase;
}

/* ── Card grid shimmer ────────────────────────────────────── */

.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  width: 100%;
}

.skeletonCard {
  background-color: #FFFFFF;
  border: 1px solid rgba(23, 35, 47, 0.08);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(20, 40, 30, 0.03);
  display: flex;
  flex-direction: column;
}

.imgShimmer {
  width: 100%;
  aspect-ratio: 4 / 3;
  composes: shimmerBase;
}

.bodyShimmer {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.skTitle {
  height: 20px;
  width: 60%;
  border-radius: 6px;
  composes: shimmerBase;
  margin-bottom: 4px;
}

.skMeta {
  height: 12px;
  width: 75%;
  border-radius: 4px;
  composes: shimmerBase;
}

.footerRow {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding-top: 14px;
  margin-top: 4px;
  border-top: 1px solid #F0F4F1;
}

.skPriceWrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 55%;
}

.skLabel {
  height: 10px;
  width: 40%;
  border-radius: 4px;
  composes: shimmerBase;
}

.skPrice {
  height: 18px;
  width: 85%;
  border-radius: 6px;
  composes: shimmerBase;
}

.skBtn {
  height: 36px;
  width: 36px;
  border-radius: 50%;
  composes: shimmerBase;
}

/* ── Responsive ────────────────────────────────────────────── */

@media (max-width: 1199px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .filterChipShimmer {
    flex: 1 1 100%;
  }
}
