/* ---------- Grid ---------- */
#attractions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 22px;
  align-items: stretch;
}
#attractions-grid > .loading { grid-column: 1 / -1; }
#attractions-grid:has(.attr-skel) > .loading { display: none; }

/* ---------- Card ---------- */
#attractions-grid > :not(.loading) {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid rgba(28, 27, 25, .06);
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .04), 0 10px 28px rgba(60, 40, 20, .07);
  transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s ease;
  animation: attrIn .55s cubic-bezier(.2, .7, .2, 1) both;
}
#attractions-grid > :not(.loading):nth-child(2) { animation-delay: .06s; }
#attractions-grid > :not(.loading):nth-child(3) { animation-delay: .12s; }
#attractions-grid > :not(.loading):nth-child(4) { animation-delay: .18s; }
#attractions-grid > :not(.loading):nth-child(n+5) { animation-delay: .24s; }

#attractions-grid.attr-no-anim > *,
#attractions-grid > .attr-ph { animation: none; }

#attractions-grid > :not(.loading):not(.attr-skel):hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, .06), 0 22px 44px rgba(60, 40, 20, .16);
}

/* ---------- Image ---------- */
#attractions-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  object-fit: cover;
  background: linear-gradient(100deg, #ece6dd 30%, #f7f2eb 50%, #ece6dd 70%) 0 0 / 200% 100%;
  animation: attrShimmer 1.4s linear infinite;
  transition: transform .7s cubic-bezier(.2, .7, .2, 1);
}
#attractions-grid img.is-loaded {
  animation: attrFade .5s ease both;
  background: none;
}
#attractions-grid > :hover img.is-loaded { transform: scale(1.06); }

/* ---------- Text ---------- */
#attractions-grid :is(h3, h4) {
  font-size: 1.05rem;
  line-height: 1.3;
  letter-spacing: -.01em;
  color: #1a2e22;
}
#attractions-grid p {
  display: -webkit-box;
  /* -webkit-line-clamp: 3; */
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.55;
}
#attractions-grid [class*="badge"] {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  background: rgba(20, 28, 40, .72) !important;
  letter-spacing: .06em;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .25);
}

/* ---------- Skeleton ---------- */
.attr-skel { pointer-events: none; }
.attr-skel-img,
.attr-skel-line {
  background: linear-gradient(100deg, #ece6dd 30%, #f7f2eb 50%, #ece6dd 70%) 0 0 / 200% 100%;
  animation: attrShimmer 1.4s linear infinite;
}
.attr-skel-img { aspect-ratio: 4 / 3; }
.attr-skel-body { padding: 18px 20px 22px; display: grid; gap: 12px; }
.attr-skel-line { height: 14px; border-radius: 8px; }
.attr-skel-line.w70 { width: 70%; height: 18px; }
.attr-skel-line.w40 { width: 40%; height: 22px; border-radius: 999px; }
.attr-skel-line.w90 { width: 90%; }

/* ---------- Motion ---------- */
@keyframes attrShimmer { to { background-position: -200% 0; } }
@keyframes attrIn   { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes attrFade { from { opacity: 0; } to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  #attractions-grid *, #attractions-grid { animation: none !important; transition: none !important; }
}
@media (max-width: 600px) {
  #attractions-grid { grid-template-columns: 1fr; gap: 16px; }
}