/* ============================================
   RV — Profile Page
   App-like · Gradient · Emotional
   ============================================ */

.rv-profile {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

@media (min-width: 768px) {
  .rv-profile { flex-direction: row; gap: 32px; align-items: flex-start; }
}

/* --- Gallery --- */
.rv-profile__gallery { flex-shrink: 0; }

@media (min-width: 768px) {
  .rv-profile__gallery { width: 45%; position: sticky; top: 84px; }
}
@media (min-width: 1024px) {
  .rv-profile__gallery { width: 45%; }
}

.rv-profile__photo-main {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: var(--rv-radius-xl);
  overflow: hidden;
  background: linear-gradient(135deg, #F5EEFF, #FFF0F5);
  box-shadow: var(--rv-shadow-soft);
}

.rv-profile__photo-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rv-profile__photo-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 4px;
}

.rv-profile__photo-thumbs::-webkit-scrollbar { display: none; }

.rv-profile__thumb {
  flex-shrink: 0;
  width: 60px;
  height: 76px;
  border-radius: var(--rv-radius-md);
  overflow: hidden;
  cursor: pointer;
  border: 2.5px solid transparent;
  transition: border-color 0.2s, transform 0.2s;
  background: var(--rv-bg);
}

.rv-profile__thumb:hover { transform: scale(1.05); }
.rv-profile__thumb.is-active { border-color: var(--rv-purple); }
.rv-profile__thumb img { width: 100%; height: 100%; object-fit: cover; }

/* --- Photo Action Buttons (overlay on photo) --- */
.rv-profile__photo-actions {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent);
  border-radius: 0 0 var(--rv-radius-xl) var(--rv-radius-xl);
  z-index: 2;
}

.rv-profile__action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 44px;
  padding: 0 20px;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  cursor: pointer;
  border-radius: var(--rv-radius-pill);
  transition: background 0.2s, transform 0.15s;
  font-size: 0.875rem;
  font-weight: 600;
}

.rv-profile__action svg { width: 20px; height: 20px; }

.rv-profile__action:hover { background: rgba(255, 255, 255, 0.3); }
.rv-profile__action:active { transform: scale(0.95); }

.rv-profile__action--like.is-active {
  background: rgba(34, 197, 94, 0.8);
  color: #fff;
}

.rv-profile__action--dislike.is-active {
  background: rgba(239, 68, 68, 0.8);
  color: #fff;
}

.rv-profile__action--fav.is-active {
  background: rgba(236, 72, 153, 0.8);
  color: #fff;
}

/* --- Info --- */
.rv-profile__info {
  flex: 1;
  min-width: 0;
  background: var(--rv-surface);
  border-radius: var(--rv-radius-xl);
  padding: 24px;
  box-shadow: var(--rv-shadow-soft);
}

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

/* --- Header (name + stats) --- */
.rv-profile__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.rv-profile__name {
  font-family: var(--rv-font-heading);
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--rv-text);
  line-height: 1.2;
}

.rv-profile__age-inline {
  font-weight: 500;
  color: var(--rv-muted);
  font-size: 1.125rem;
}

@media (min-width: 768px) { .rv-profile__name { font-size: 1.75rem; } }

.rv-profile__header-stats {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.rv-profile__header-stat {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8125rem;
  color: var(--rv-muted);
  font-weight: 500;
}

.rv-profile__header-stat svg { width: 14px; height: 14px; }

/* --- Price --- */
.rv-profile__price {
  display: inline-block;
  padding: 6px 14px;
  background: var(--rv-pink);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--rv-radius-pill);
  margin-bottom: 12px;
}

/* --- Nearby Locations --- */
.rv-profile__locations {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.rv-profile__location-group {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 0.8125rem;
  color: var(--rv-muted);
}

.rv-profile__location-group svg { width: 14px; height: 14px; flex-shrink: 0; }

.rv-profile__location-link {
  color: var(--rv-purple);
  font-weight: 500;
  transition: color 0.15s;
}

.rv-profile__location-link:hover { color: #9333EA; }

.rv-profile__location-sep {
  color: var(--rv-border-hover);
  margin-right: 2px;
}

/* --- Contact --- */
.rv-profile__contact {
  margin-bottom: 20px;
}

/* --- Messengers --- */
.rv-profile__messengers {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.rv-profile__messenger {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 500;
}

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

/* --- Tabs --- */
.rv-profile__tabs {
  margin-top: 4px;
}

.rv-profile__tabs-nav {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--rv-border);
  overflow-x: auto;
  scrollbar-width: none;
}

.rv-profile__tabs-nav::-webkit-scrollbar { display: none; }

.rv-profile__tab {
  flex-shrink: 0;
  padding: 10px 16px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--rv-muted);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
  white-space: nowrap;
}

.rv-profile__tab:hover { color: var(--rv-text); }
.rv-profile__tab.is-active {
  color: var(--rv-primary);
  border-bottom-color: var(--rv-primary);
}

.rv-profile__tab-content {
  display: none;
  padding-top: 20px;
}

.rv-profile__tab-content.is-active {
  display: block;
}

/* --- Params grid (inside About tab) --- */
.rv-profile__params {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 24px;
}

@media (min-width: 480px) { .rv-profile__params { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .rv-profile__params { grid-template-columns: repeat(4, 1fr); } }

.rv-profile__param {
  display: flex;
  flex-direction: column;
  padding: 12px 14px;
  background: var(--rv-bg);
  border-radius: var(--rv-radius-md);
  transition: background 0.15s;
  text-decoration: none;
  color: inherit;
}

.rv-profile__param--link:hover { background: var(--rv-soft-purple); }

.rv-profile__param--accent {
  background: var(--rv-soft-purple);
}

.rv-profile__param-label {
  font-size: 0.6875rem;
  color: var(--rv-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  margin-bottom: 2px;
}

.rv-profile__param-value {
  font-size: 1rem;
  font-weight: 700;
  color: var(--rv-text);
}

.rv-profile__param--link .rv-profile__param-value {
  color: var(--rv-purple);
}

/* --- Description --- */
.rv-profile__desc { margin-bottom: 0; }

.rv-profile__desc-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--rv-text);
  margin-bottom: 8px;
}

.rv-profile__desc-text {
  font-size: 0.9375rem;
  color: var(--rv-body);
  line-height: 1.75;
}

/* --- Services tags (inside Services / Details tabs) --- */
.rv-profile__services-list-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rv-profile__service-tag {
  display: inline-block;
  padding: 6px 14px;
  background: var(--rv-bg);
  border: 1px solid var(--rv-border);
  border-radius: var(--rv-radius-pill);
  font-size: 0.8125rem;
  color: var(--rv-text);
  font-weight: 500;
}

/* --- Detail sections (Place / Extra) --- */
.rv-profile__detail-section {
  margin-bottom: 20px;
}

.rv-profile__detail-section:last-child {
  margin-bottom: 0;
}

.rv-profile__detail-heading {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--rv-text);
  margin-bottom: 12px;
}

/* --- Map (inside Map tab) --- */
#profile-map {
  height: 300px;
  border-radius: var(--rv-radius-md);
  z-index: 0;
}

#profile-map .leaflet-control-attribution svg { display: none; }

/* --- Back link --- */
.rv-profile__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--rv-muted);
  margin-bottom: 16px;
  padding: 6px 14px 6px 10px;
  background: var(--rv-surface);
  border: 1px solid var(--rv-border);
  border-radius: var(--rv-radius-pill);
  transition: color 0.15s, background 0.15s, border-color 0.15s;
}

.rv-profile__back:hover {
  color: var(--rv-primary);
  background: var(--rv-primary-light);
  border-color: var(--rv-primary);
}
.rv-profile__back svg { width: 16px; height: 16px; }

/* --- Similar cards --- */
.rv-similar {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--rv-border);
}

.rv-similar__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--rv-text);
  margin-bottom: 20px;
}
