/* Page-specific CSS for the "favourites" page — moved out of main.css so the */
.fav-page {
  padding: 28px 12px 60px;
}

/* .fav-page__title */
.fav-page__title {
  font-size: var(--fs-22);
  font-weight: var(--fw-bold);
  color: var(--navy);
  margin: 0 0 6px;
}

/* .fav-page__sub */
.fav-page__sub {
  color: var(--c-muted);
  font-size: var(--fs-13);
  margin: 0 0 20px;
}

/* .fav-page__grid */
.fav-page__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}

/* .fav-card */
.fav-card {
  position: relative;
  background: var(--c-surface);
  border: var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow 0.15s;
}

.fav-card:hover {
  box-shadow: 0 4px 18px rgba(var(--c-dark-rgb), 0.08);
}

/* .fav-card__photo */
.fav-card__photo {
  aspect-ratio: 4/5;
  background: var(--bg-2);
  overflow: hidden;
}

.fav-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* .fav-card__body */
.fav-card__body {
  padding: 10px 12px 12px;
}

/* .fav-card__name */
.fav-card__name {
  font-size: 13.5px;
  font-weight: var(--fw-bold);
  color: var(--navy);
  margin: 0 0 2px;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* .fav-card__meta */
.fav-card__meta {
  font-size: 11.5px;
  color: var(--c-muted);
  margin: 0;
  display: flex;
  gap: 8px;
  line-height: 1.3;
}

/* .fav-card__remove */
.fav-card__remove {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 30px;
  height: 30px;
  border-radius: var(--r-full);
  background: rgba(var(--c-surface-rgb), 0.95);
  border: 0;
  color: var(--main-dark);
  cursor: pointer;
  box-shadow: var(--shadow-xs);
}

.fav-card__remove:hover {
  background: var(--c-surface);
}

/* .fav-card--skel — pehli paint ke placeholder slots (geometry asli card ki hi classes se aati */
.fav-card--skel {
  pointer-events: none;
}

/* .fav-page__empty — sirf wrapper; asli card = shared .listing-empty (main.css) */
.fav-page__empty {
  padding: 8px 0 20px;
}

/* ── Responsive (moved from responsive.css) ── */
@media only screen and (min-width: 540px) and (max-width: 767px) {
  .fav-page__grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
}

@media only screen and (min-width: 768px) and (max-width: 991px) {
  .fav-page__grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
}

@media only screen and (min-width: 992px) and (max-width: 1199px) {
  .fav-page__grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
}

@media only screen and (min-width: 1200px) and (max-width: 1399px) {
  .fav-page__grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
}
