/* Dream Lands — Listing/reel cards, badges, skeletons, empty/loading */
/* ===== Card grid ===== */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

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

@media (min-width: 900px) {
  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ===== "New since last visit" ===== */
.card-new {
  box-shadow: 0 0 0 2px var(--green-light), var(--shadow);
}

.badge-new {
  position: absolute;
  top: 8px;
  left: 8px;
  background: #ff5722;
  color: #fff;
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .5px;
  padding: .15rem .5rem;
  border-radius: 4px;
  z-index: 2;
  text-transform: uppercase;
}

.new-count-badge {
  display: inline-block;
  background: #ff5722;
  color: #fff;
  font-size: .65rem;
  font-weight: 700;
  padding: .1rem .45rem;
  border-radius: 2rem;
  margin-left: .4rem;
  vertical-align: middle;
  letter-spacing: .3px;
}

/* ===== Listing card ===== */
.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .13);
}

.card-thumb {
  position: relative;
  aspect-ratio: 16/9;
  background: #ddd;
  overflow: hidden;
}

.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.badge {
  position: absolute;
  top: .6rem;
  right: .6rem;
  padding: .2rem .55rem;
  border-radius: 2rem;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .4px;
  color: #fff;
}

.badge-residential_plot {
  background: #1565c0;
}

.badge-commercial {
  background: #e65100;
}

.badge-farm_land {
  background: #2e7d32;
}

.badge-house {
  background: #6a1b9a;
}

.card-body {
  padding: .9rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.card-title {
  font-size: .95rem;
  font-weight: 600;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: .2rem;
  padding: .2rem .55rem;
  border-radius: 2rem;
  font-size: .72rem;
  font-weight: 600;
  line-height: 1.4;
}

.chip-location,
.chip-area {
  background: #f3f4f6;
  color: var(--muted);
}

.chip svg {
  width: .85em;
  height: .85em;
  flex-shrink: 0;
}

.card-price {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--green);
}

.card-highlights {
  list-style: none;
  font-size: .78rem;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: .2rem;
}

.card-highlights li {
  display: flex;
  align-items: flex-start;
  gap: .3rem;
}

.card-highlights li svg {
  flex-shrink: 0;
  margin-top: .15em;
  color: var(--green-light);
}

.scroll-sentinel {
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
  color: var(--muted);
  margin-top: 1rem;
}

/* ===== Empty / loading state ===== */
.state-msg {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--muted);
  font-size: .95rem;
  grid-column: 1/-1;
}

/* ===== Skeleton loaders ===== */
/* Shimmer placeholders shown while async content (cards, grids) is fetched. */
@keyframes skeleton-shimmer {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

.skeleton {
  background-color: var(--card-bg-2);
  background-image: linear-gradient(100deg,
      rgba(255, 255, 255, 0) 35%,
      rgba(255, 255, 255, .08) 50%,
      rgba(255, 255, 255, 0) 65%);
  background-size: 200% 100%;
  background-repeat: no-repeat;
  animation: skeleton-shimmer 1.5s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .skeleton {
    animation: none;
  }
}

/* Category card placeholder — matches .cat-card height */
.skel-cat {
  height: 185px;
  border: 1px solid var(--border);
  border-radius: 16px;
}

@media (max-width: 520px) {
  .skel-cat {
    height: 150px;
  }
}

/* Reel/video card placeholder (Latest + Explore) — matches .reel-card shape */
.skel-reel {
  aspect-ratio: 9 / 16;
  border: 1px solid var(--border);
  border-radius: 16px;
}

.reel-row .skel-reel {
  flex: 0 0 220px;
}

/* Listing card placeholder (category full-page grid) — matches .card layout */
.skel-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.skel-card-thumb {
  aspect-ratio: 16 / 9;
}

.skel-card-body {
  padding: .9rem;
  display: flex;
  flex-direction: column;
  gap: .55rem;
}

.skel-line {
  height: 12px;
  border-radius: 6px;
}

.skel-line-title {
  height: 16px;
  width: 80%;
}

.skel-line-sm {
  width: 55%;
}

.skel-line-price {
  height: 18px;
  width: 40%;
  margin-top: .2rem;
}


