/* ============================================
   NIROVA — Profile CSS
   Gallery-left with vertical thumbnails
   ============================================ */

/* --- Back Button --- */
.nr-profile__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 0;
  font-size: 14px;
  color: var(--nr-muted);
  margin-bottom: 8px;
}
.nr-profile__back svg { width: 16px; height: 16px; }
.nr-profile__back:hover { color: var(--nr-text); }

/* --- Profile Layout --- */
.nr-profile {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* --- Gallery --- */
.nr-profile__gallery {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.nr-profile__photo-main {
  position: relative;
  border-radius: var(--nr-radius-md);
  overflow: hidden;
  background: var(--nr-bg);
}
.nr-profile__photo-main img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}
.nr-profile__photo-actions {
  position: absolute;
  bottom: 10px;
  right: 10px;
  display: flex;
  gap: 6px;
}
.nr-profile__action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: auto;
  padding: 6px 10px;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: var(--nr-radius-sm);
  font-size: 12px;
  color: var(--nr-body);
  transition: background 0.15s;
}
.nr-profile__action:hover { background: rgba(255,255,255,0.95); }
.nr-profile__action svg { width: 16px; height: 16px; }
.nr-profile__action.is-active { color: var(--nr-primary); }
.nr-profile__action--fav.is-active { color: #E53935; }

/* --- Thumbnails (horizontal on mobile) --- */
.nr-profile__photo-thumbs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 4px;
}
.nr-profile__photo-thumbs::-webkit-scrollbar { display: none; }
.nr-profile__thumb {
  flex-shrink: 0;
  width: 56px;
  cursor: pointer;
  border-radius: var(--nr-radius-sm);
  overflow: hidden;
  opacity: 0.6;
  transition: opacity 0.15s;
  border: 2px solid transparent;
}
.nr-profile__thumb.is-active {
  opacity: 1;
  border-color: var(--nr-primary);
}
.nr-profile__thumb:hover { opacity: 1; }
.nr-profile__thumb img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

/* --- Profile Info --- */
.nr-profile__info {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.nr-profile__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.nr-profile__name {
  font-size: 22px;
  font-weight: 600;
  color: var(--nr-text);
  line-height: 1.3;
}
.nr-profile__age-inline {
  font-weight: 400;
  color: var(--nr-muted);
}
.nr-profile__header-stats {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
.nr-profile__header-stat {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: var(--nr-muted);
}
.nr-profile__header-stat svg { width: 14px; height: 14px; }

/* --- Locations --- */
.nr-profile__locations {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.nr-profile__location-group {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.nr-profile__location-group svg { width: 14px; height: 14px; color: var(--nr-primary); }
.nr-profile__location-link {
  font-size: 13px;
  color: var(--nr-primary);
}
.nr-profile__location-link:hover { text-decoration: underline; }
.nr-profile__location-sep { color: var(--nr-muted); font-size: 13px; }

/* --- Contact --- */
.nr-profile__contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.nr-profile__messengers {
  display: flex;
  gap: 8px;
}
.nr-profile__messenger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--nr-bg);
  border-radius: var(--nr-radius-sm);
  font-size: 13px;
  color: var(--nr-body);
  transition: background 0.15s;
}
.nr-profile__messenger:hover { background: var(--nr-border); }
.nr-profile__messenger--tg:hover { color: #2AABEE; }
.nr-profile__messenger--wa:hover { color: #25D366; }
.nr-profile__messenger--vb:hover { color: #7360F2; }

/* --- Tabs --- */
.nr-profile__tabs { margin-top: 8px; }
.nr-profile__tabs-nav {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--nr-border);
  overflow-x: auto;
  scrollbar-width: none;
}
.nr-profile__tabs-nav::-webkit-scrollbar { display: none; }
.nr-profile__tab {
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--nr-muted);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color 0.15s, border-color 0.15s;
}
.nr-profile__tab:hover { color: var(--nr-text); }
.nr-profile__tab.is-active {
  color: var(--nr-primary);
  border-bottom-color: var(--nr-primary);
}
.nr-profile__tab-content {
  display: none;
  padding: 16px 0;
}
.nr-profile__tab-content.is-active { display: block; }

/* --- Params Grid --- */
.nr-profile__params {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.nr-profile__param {
  display: flex;
  flex-direction: column;
  padding: 10px 12px;
  background: var(--nr-bg);
  border-radius: var(--nr-radius-sm);
}
.nr-profile__param--link {
  cursor: pointer;
  transition: background 0.15s;
}
.nr-profile__param--link:hover { background: var(--nr-primary-light); }
.nr-profile__param-label {
  font-size: 11px;
  color: var(--nr-muted);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.nr-profile__param-value {
  font-size: 15px;
  font-weight: 600;
  color: var(--nr-text);
}
.nr-profile__param--accent .nr-profile__param-value {
  color: var(--nr-primary);
}

/* --- Description --- */
.nr-profile__desc {
  margin-top: 8px;
}
.nr-profile__desc-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--nr-text);
  margin-bottom: 6px;
}
.nr-profile__desc-text {
  font-size: 14px;
  color: var(--nr-body);
  line-height: 1.6;
  white-space: pre-line;
}

/* --- Services / Details --- */
.nr-profile__services-list-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.nr-profile__service-tag {
  display: inline-block;
  padding: 5px 12px;
  background: var(--nr-primary-light);
  color: var(--nr-primary-hover);
  border-radius: var(--nr-radius-sm);
  font-size: 13px;
  font-weight: 600;
}
.nr-profile__detail-section { margin-bottom: 16px; }
.nr-profile__detail-heading {
  font-size: 15px;
  font-weight: 600;
  color: var(--nr-text);
  margin-bottom: 8px;
}

/* --- Map --- */
#profile-map {
  width: 100%;
  height: 300px;
  border-radius: var(--nr-radius-md);
  background: var(--nr-bg);
}

/* --- Similar Cards --- */
.nr-similar {
  margin-top: 24px;
}
.nr-similar__title {
  font-size: 18px;
  font-weight: 600;
  color: var(--nr-text);
  margin-bottom: 12px;
}

/* --- Desktop (768px) --- */
@media (min-width: 768px) {
  .nr-profile__name { font-size: 26px; }
}

/* --- Desktop (900px) --- */
@media (min-width: 900px) {
  .nr-profile {
    flex-direction: row;
    gap: 24px;
  }
  .nr-profile__gallery {
    flex-direction: row-reverse;
    width: 420px;
    flex-shrink: 0;
    position: sticky;
    top: 72px;
    align-self: flex-start;
  }
  .nr-profile__photo-thumbs {
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    max-height: 480px;
    gap: 6px;
    padding-bottom: 0;
  }
  .nr-profile__thumb { width: 60px; }
  .nr-profile__info { flex: 1; }
  .nr-profile__params {
    grid-template-columns: repeat(3, 1fr);
  }
  #profile-map { height: 400px; }
}

/* --- Desktop (1024px) --- */
@media (min-width: 1024px) {
  .nr-profile__gallery { width: 460px; }
  .nr-profile__params { grid-template-columns: repeat(4, 1fr); }
}
