/* FAVORITES SECTION */
.divider {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 20px 16px 12px;
  font-size: 18px;
  font-weight: 700;
  color: #1a1a1a;
}
.divider i {
  color: #ff3b30;
}

.favorites-scroll {
  display: flex;
  gap: 14px;
  padding: 0 16px 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
}
.favorites-scroll::-webkit-scrollbar {
  display: none;
} /* Chrome/Safari */

.no-favs {
  padding: 0 16px;
  color: #999;
  font-size: 14px;
  font-style: italic;
  width: 100%;
}

.fav-pin-card {
  position: relative;
  flex: 0 0 170px; /* fixed width cards */
  height: 120px;
  scroll-snap-align: start;
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  transition: transform 0.2s ease;
}
.fav-pin-card:active {
  transform: scale(0.97);
}

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

.fav-pin-card::after {
  /* gradient overlay for text readability */
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
}

.fav-pin-card p {
  position: absolute;
  bottom: 10px;
  left: 10px;
  right: 10px;
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  z-index: 2;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.remove-fav {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 26px;
  height: 26px;
  font-size: 18px;
  line-height: 26px;
  text-align: center;
  cursor: pointer;
  z-index: 3;
  backdrop-filter: blur(4px);
}
.remove-fav:active {
  background: rgba(255, 59, 48, 0.8);
}

/* CARD HEART BUTTON */
.fav-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.95);
  border: none;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  z-index: 2;
  color: #ccc;
  font-size: 18px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}
.fav-btn.active {
  color: #ff3b30;
}
.fav-btn:active {
  transform: scale(0.9);
}
