/* ============================================
   RV — Card Grid & Cards
   Light Engagement: airy, photo-focused
   ============================================ */

.rv-cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

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

@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-soft);
  transition: transform 0.3s var(--rv-ease), box-shadow 0.3s var(--rv-ease);
  position: relative;
}

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

/* --- 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, #EBF4FF 0%, #F7FAFF 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(94,196,184,0.9); }
.rv-card__badge--online { background: rgba(100,181,246,0.9); }
.rv-card__badge svg { width: 11px; height: 11px; }

/* --- Heart button (centered bottom of photo) --- */
.rv-card__heart {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  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 2px 12px rgba(255,138,155,0.2);
}

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

.rv-card__heart:hover {
  background: #fff;
  transform: translateX(-50%) scale(1.1);
  box-shadow: 0 4px 20px rgba(255,138,155,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: 8px;
  padding: 16px;
  flex: 1;
}

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

/* --- 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: 1rem;
  font-weight: 700;
  color: var(--rv-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

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

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

.rv-card__location-link {
  color: var(--rv-primary-deep);
  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: 10px 12px;
  background: var(--rv-primary);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: var(--rv-radius-pill);
  text-decoration: none;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 3px 12px rgba(100,181,246,0.25);
}

.rv-card__phone-btn:hover {
  background: var(--rv-primary-hover);
  transform: scale(1.02);
  box-shadow: 0 4px 16px rgba(100,181,246,0.35);
}

.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-primary-deep);
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: var(--rv-radius-pill);
  text-decoration: none;
  border: 1.5px solid var(--rv-primary);
  transition: background 0.2s, transform 0.15s;
}

.rv-card__detail-btn:hover {
  background: var(--rv-primary-light);
  transform: scale(1.02);
}

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

.rv-card__messenger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  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-primary-light);
  color: var(--rv-primary-deep);
  border-color: var(--rv-primary);
}

.rv-pagination__item--active {
  background: var(--rv-primary);
  color: #fff;
  border-color: var(--rv-primary);
  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; }
}
