/* ============================================
   RV — Card Grid & Cards
   App-like · Gradient · Emotional
   ============================================ */

.rv-cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  max-width: 340px;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 480px) {
  .rv-cards-grid { grid-template-columns: repeat(2, 1fr); max-width: none; gap: 16px; }
}

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

@media (min-width: 1200px) {
  .rv-cards-grid { grid-template-columns: repeat(4, 1fr); gap: 24px; }
}

/* --- Card --- */
.rv-card {
  display: flex;
  flex-direction: column;
  background: var(--rv-surface);
  border: none;
  border-radius: var(--rv-radius-xl);
  overflow: hidden;
  box-shadow: var(--rv-shadow-card);
  transition: transform 0.3s var(--rv-ease), box-shadow 0.3s var(--rv-ease);
  position: relative;
}

.rv-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--rv-shadow-card-hover);
}

/* --- Photo --- */
.rv-card__photo-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.rv-card__photo {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, #F5EEFF 0%, #FFF0F5 100%);
}

.rv-card__photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--rv-ease);
}

.rv-card:hover .rv-card__photo-img { transform: scale(1.04); }

.rv-card__photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--rv-border-hover);
}

.rv-card__photo-placeholder svg { width: 40px; height: 40px; }

/* --- Badges (top-left) --- */
.rv-card__badges {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 2;
}

.rv-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: var(--rv-radius-pill);
  font-size: 0.6875rem;
  font-weight: 700;
  color: #fff;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.rv-card__badge--verified { background: rgba(168,85,247,0.85); }
.rv-card__badge--online { background: rgba(236,72,153,0.85); }
.rv-card__badge svg { width: 11px; height: 11px; }

/* --- Heart button (centered bottom of photo) --- */
.rv-card__heart {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 50%;
  color: var(--rv-pink);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  z-index: 3;
  border: none;
  box-shadow: 0 4px 16px rgba(236,72,153,0.2);
}

.rv-card__heart svg { width: 18px; height: 18px; }

.rv-card__heart:hover {
  background: #fff;
  transform: translateX(-50%) scale(1.1);
  box-shadow: 0 6px 24px rgba(236,72,153,0.35);
}

.rv-card__heart.is-active {
  background: var(--rv-pink);
  color: #fff;
  box-shadow: var(--rv-shadow-glow);
}

/* --- Price badge (top-right) --- */
.rv-card__price {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 5px 14px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: var(--rv-radius-pill);
  color: var(--rv-text);
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.2;
  z-index: 2;
}

@media (min-width: 768px) {
  .rv-card__price { font-size: 0.875rem; padding: 6px 16px; }
}

/* --- Photo count badge --- */
.rv-card__photo-count {
  position: absolute;
  bottom: 12px;
  left: 12px;
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 4px 10px;
  background: rgba(31, 42, 58, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: var(--rv-radius-pill);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 600;
}

.rv-card__photo-count svg { width: 12px; height: 12px; }

/* --- Card Content (below photo) --- */
.rv-card__content {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
  flex: 1;
}

@media (min-width: 480px) {
  .rv-card__content { gap: 6px; padding: 12px; }
}

@media (min-width: 768px) {
  .rv-card__content { gap: 8px; padding: 16px; }
}

/* --- Name + Age --- */
.rv-card__header {
  display: flex;
  align-items: baseline;
  gap: 6px;
  text-decoration: none;
  color: inherit;
}

.rv-card__name {
  font-family: var(--rv-font-heading);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--rv-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rv-card__age {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--rv-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

/* --- Location --- */
.rv-card__location {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  color: var(--rv-muted);
}

.rv-card__location svg { width: 12px; height: 12px; }

.rv-card__location-link {
  color: var(--rv-purple);
  text-decoration: none;
  font-weight: 500;
}

.rv-card__location-link:hover { text-decoration: underline; }

/* --- Actions (phone / detail + messengers) --- */
.rv-card__actions-bottom {
  margin-top: auto;
  padding-top: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.rv-card__phone-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: 1;
  padding: 8px 10px;
  background: var(--rv-gradient);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--rv-radius-pill);
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
  box-shadow: 0 4px 16px rgba(236,72,153,0.3);
}

.rv-card__phone-btn:hover {
  transform: scale(1.04);
  filter: brightness(1.1);
  box-shadow: 0 6px 24px rgba(236,72,153,0.4);
}

.rv-card__phone-btn svg { width: 14px; height: 14px; flex-shrink: 0; }

.rv-card__detail-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  padding: 10px 12px;
  background: var(--rv-surface);
  color: var(--rv-pink);
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: var(--rv-radius-pill);
  text-decoration: none;
  border: 2px solid var(--rv-light-pink);
  transition: all 0.2s var(--rv-ease);
}

.rv-card__detail-btn:hover {
  background: rgba(251,207,232,0.2);
  border-color: var(--rv-pink);
  transform: scale(1.03);
}

/* --- Messengers --- */
.rv-card__messengers {
  display: flex;
  gap: 5px;
}

.rv-card__messenger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 600;
  cursor: default;
  transition: transform 0.15s;
}

.rv-card__messenger:hover { transform: scale(1.1); }

.rv-card__messenger--tg { background: #e3f2fd; color: #0088cc; }
.rv-card__messenger--wa { background: #e8f5e9; color: #25d366; }
.rv-card__messenger--vb { background: #f3e5f5; color: #7360f2; }

/* --- Contacts row in card-item --- */
.rv-card__contacts {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
}
.rv-card__contacts .rv-card__messengers {
  display: flex;
  gap: 5px;
  margin: 0;
  padding: 0;
}

/* ============================================
   Pagination
   ============================================ */
.rv-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 36px;
  flex-wrap: wrap;
}

.rv-pagination__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--rv-body);
  background: var(--rv-surface);
  border: 1.5px solid var(--rv-border);
  border-radius: var(--rv-radius-pill);
  transition: all 0.2s var(--rv-ease);
  text-decoration: none;
}

.rv-pagination__item:hover {
  background: var(--rv-soft-purple);
  color: var(--rv-purple);
  border-color: var(--rv-soft-purple);
}

.rv-pagination__item--active {
  background: var(--rv-gradient);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 3px 12px rgba(100,181,246,0.3);
  pointer-events: none;
}

.rv-pagination__item--prev svg,
.rv-pagination__item--next svg {
  width: 18px;
  height: 18px;
}

.rv-pagination__dots {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 42px;
  font-size: 0.875rem;
  color: var(--rv-muted);
  user-select: none;
}

@media (min-width: 768px) {
  .rv-pagination { margin-top: 44px; gap: 10px; }
  .rv-pagination__item { min-width: 46px; height: 46px; }
}
