/* ==========================================================================
   Moha Luxor — guest reviews page (/reviews/) and its private moderation
   pages. Loaded AFTER the site's style.css and built only from its tokens
   (navy, gold, Montserrat/Lato/Tajawal, radii, shadows). It adds rv-* classes
   and changes nothing outside them. Logical properties throughout, so the
   Arabic (rtl) layout mirrors correctly.
   ========================================================================== */

/* ------------------------------------------------------------- hero/summary */
.rv-hero {
  background:
    radial-gradient(110% 80% at 50% 0%, rgba(212, 175, 55, .12) 0%, transparent 60%),
    var(--navy-850);
  padding-block: clamp(2rem, 5vw, 3.5rem) clamp(2.75rem, 7vw, 5rem);
}

.rv-crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin: 0 0 clamp(1.5rem, 4vw, 2.5rem);
  padding: 0;
  list-style: none;
  font-size: .8125rem;
  color: var(--on-dark-soft);
}
.rv-crumbs li + li::before { content: "/"; margin-inline-end: .35rem; color: var(--gold-line); }
.rv-crumbs a { color: var(--on-dark-soft); }
.rv-crumbs a:hover { color: var(--gold); }
.rv-crumbs [aria-current] { color: var(--gold); }

.rv-hero-grid { display: grid; gap: clamp(2rem, 5vw, 3.5rem); align-items: center; }
.rv-hero-copy .lede { margin-block-end: 1.75rem; }
.rv-hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; }
.rv-noscript { margin-block-start: 1rem; font-size: .875rem; color: #F3A69F; }

.rv-summary {
  display: grid;
  gap: 1.5rem;
  padding: clamp(1.5rem, 4vw, 2.25rem);
  background: var(--navy-900);
  border: 1px solid var(--gold-dim);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
}
.rv-summary-score { text-align: center; }
.rv-avg { margin: 0; display: flex; align-items: baseline; justify-content: center; gap: .4rem; }
.rv-avg-num {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(3rem, 2.2rem + 3vw, 4.25rem);
  line-height: 1;
  color: var(--gold);
}
.rv-avg-of { font-size: .9375rem; color: var(--on-dark-soft); }
.rv-avg-stars { margin: .4rem 0 .2rem; color: var(--gold); font-size: 1.35rem; letter-spacing: .14em; }
.rv-avg-label {
  margin: 0;
  font-family: var(--font-eyebrow);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--on-dark-soft);
}
html[lang="ar"] .rv-avg-label { letter-spacing: normal; text-transform: none; font-size: .875rem; }
.rv-count { margin: .6rem 0 0; font-size: .9375rem; color: var(--on-dark-soft); }
.rv-count strong { color: var(--on-dark); font-size: 1.0625rem; }

.rv-dist { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.rv-dist li {
  display: grid;
  grid-template-columns: 2.4rem 1fr 2rem;
  align-items: center;
  gap: .65rem;
  font-size: .8125rem;
  color: var(--on-dark-soft);
}
.rv-dist-n { color: var(--gold); white-space: nowrap; }
.rv-dist-c { text-align: end; font-variant-numeric: tabular-nums; }
.rv-dist-bar {
  position: relative;
  height: 8px;
  border-radius: var(--r-pill);
  background: var(--on-dark-faint);
  overflow: hidden;
}
.rv-dist-bar > span {
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold));
}
[dir="rtl"] .rv-dist-bar > span { background: linear-gradient(270deg, var(--gold-deep), var(--gold)); }

@media (min-width: 900px) {
  .rv-hero-grid { grid-template-columns: 1.15fr 1fr; }
  .rv-summary { grid-template-columns: auto 1fr; align-items: center; gap: 2rem; }
  .rv-summary-score { padding-inline-end: 2rem; border-inline-end: 1px solid var(--on-dark-faint); }
}

/* ------------------------------------------------- reviews grid additions */
/* The grid and cards are the site's own .review-grid / .review (style.css),
   exactly as on the old home-page section. New reviews only add photos and
   a "read more" for long texts. */
.rv-new .review-title { overflow-wrap: anywhere; }
.rv-new .review-body {
  position: relative;
  overflow-wrap: anywhere;
}
.rv-new .review-body.is-clamped {
  max-height: 9.6em;
  overflow: hidden;
}
.rv-new .review-body.is-clamped::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  inset-block-end: 0;
  height: 2.5em;
  background: linear-gradient(to bottom, rgba(16, 23, 28, 0), var(--navy-850));
}
.rv-more {
  margin-block: -.35rem .5rem;
  padding: 0;
  font: inherit;
  font-size: .8125rem;
  font-weight: 600;
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.rv-more:hover { color: var(--gold-soft); }

.rv-photos {
  list-style: none;
  margin: .25rem 0 0;
  padding: 0;
  display: grid;
  gap: .5rem;
  grid-template-columns: repeat(4, 1fr);
}
.rv-photos-1 { grid-template-columns: minmax(0, 1fr); }
.rv-photos-1 .rv-photo { aspect-ratio: 16 / 10; }
.rv-photos-2 { grid-template-columns: repeat(2, 1fr); }
.rv-photos-3 { grid-template-columns: repeat(3, 1fr); }
.rv-photo {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  padding: 0;
  overflow: hidden;
  border-radius: var(--r-sm);
  border: 1px solid var(--on-dark-faint);
  background: var(--navy-800);
  cursor: zoom-in;
}
.rv-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s var(--ease);
}
.rv-photo:hover img { transform: scale(1.05); }

.rv-moderation {
  margin: clamp(1.75rem, 4vw, 2.5rem) auto 0;
  max-width: 60ch;
  text-align: center;
  font-size: .8125rem;
  color: var(--on-dark-soft);
}

/* ---------------------------------------------------------------- CTA band */
.rv-cta-band {
  background:
    radial-gradient(90% 120% at 50% 100%, rgba(212, 175, 55, .10) 0%, transparent 65%),
    var(--navy-800);
  padding-block: clamp(2.5rem, 6vw, 4rem);
  border-block-start: 1px solid var(--on-dark-faint);
}
.rv-cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 2rem;
}
.rv-cta-title { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.85rem); margin-block-end: .35rem; }
.rv-cta-inner p { margin: 0; color: var(--on-dark-soft); }
@media (max-width: 640px) {
  .rv-cta-inner { text-align: center; justify-content: center; }
  .rv-cta-inner .btn { width: 100%; }
}

/* -------------------------------------------------------------- form modal */
.rv-modal { width: min(36rem, calc(100vw - 2rem)); max-height: min(92svh, 52rem); }
.rv-form .field { margin-block-end: 1.15rem; }

.rv-hp {
  position: absolute !important;
  inset-inline-start: -10000px;
  width: 1px; height: 1px;
  overflow: hidden;
}

.rv-rating-field { border: 0; margin: 0 0 1.15rem; padding: 0; min-width: 0; }
.rv-rating-field legend,
.rv-label {
  display: block;
  margin-block-end: .45rem;
  padding: 0;
  font-size: .8125rem;
  font-weight: 600;
  color: var(--on-dark);
}
.rv-optional { font-weight: 400; color: var(--on-dark-soft); }

.rv-stars-input { display: flex; gap: .3rem; align-items: center; }
.rv-star-radio {
  position: absolute;
  opacity: 0;
  width: 1px; height: 1px;
  pointer-events: none;
}
.rv-star {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border-radius: var(--r-sm);
  color: rgba(255, 255, 255, .22);
  cursor: pointer;
  transition: color .15s var(--ease), transform .15s var(--ease);
}
.rv-star svg { width: 34px; height: 34px; fill: currentColor; }
.rv-star:hover { transform: scale(1.08); }
.rv-star.is-on { color: var(--gold); }
.rv-star-radio:focus-visible + .rv-star { outline: 3px solid var(--gold); outline-offset: 2px; }
.rv-rating-field.is-invalid .rv-star { color: rgba(228, 115, 107, .45); }
.rv-star-caption { margin: .35rem 0 0; min-height: 1.3em; font-size: .8125rem; color: var(--gold); }

/* "12 / 2000" must read left-to-right in both languages */
.rv-count-line { margin: .3rem 0 0; font-size: .75rem; color: var(--on-dark-soft); direction: ltr; text-align: right; }
[dir="rtl"] .rv-count-line { text-align: left; }
.rv-count-line.is-near { color: var(--gold); }

.rv-drop {
  display: grid;
  justify-items: center;
  gap: .55rem;
  padding: 1.15rem 1rem;
  border: 1.5px dashed var(--gold-line);
  border-radius: var(--r-md);
  background: rgba(212, 175, 55, .04);
  text-align: center;
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.rv-drop.is-over { border-color: var(--gold); background: rgba(212, 175, 55, .1); }
.rv-file {
  position: absolute;
  width: 1px; height: 1px;
  opacity: 0;
  overflow: hidden;
}
.rv-file:focus-visible + .rv-add-photos { outline: 3px solid var(--gold); outline-offset: 3px; }
.rv-add-photos { cursor: pointer; }
.rv-add-photos .ico { fill: none; }   /* outline icon; style.css fills .btn .ico */
.rv-hint { margin: 0; font-size: .75rem; color: var(--on-dark-soft); }

.rv-previews {
  list-style: none;
  margin: .75rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .5rem;
}
.rv-previews:empty { display: none; }
.rv-preview {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--r-sm);
  overflow: hidden;
  border: 1px solid var(--gold-dim);
  background: var(--navy-800);
}
.rv-preview img { display: block; width: 100%; height: 100%; object-fit: cover; }
.rv-preview-remove {
  position: absolute;
  inset-block-start: 4px;
  inset-inline-end: 4px;
  display: grid;
  place-items: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(7, 11, 14, .82);
  color: var(--on-dark);
  border: 1px solid var(--gold-line);
  cursor: pointer;
}
.rv-preview-remove:hover { background: var(--gold); color: var(--navy-900); }
.rv-preview-remove::before,
.rv-preview-remove::after { content: ""; position: absolute; width: 11px; height: 2px; background: currentColor; }
.rv-preview-remove::before { transform: rotate(45deg); }
.rv-preview-remove::after  { transform: rotate(-45deg); }

.rv-consent {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .7rem;
  align-items: start;
  font-size: .8125rem;
  line-height: 1.55;
  color: var(--on-dark-soft);
  cursor: pointer;
}
.rv-consent input {
  width: 20px; height: 20px;
  margin: .1rem 0 0;
  accent-color: var(--gold);
  cursor: pointer;
}
.rv-consent a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.rv-consent-field.is-invalid .rv-consent { color: #F3A69F; }

.rv-form button[type="submit"][aria-busy="true"] { opacity: .75; cursor: progress; }

.rv-success { text-align: center; padding-block: 1rem .5rem; }
.rv-success:focus { outline: none; }
.rv-success-ico {
  display: inline-grid;
  place-items: center;
  width: 68px; height: 68px;
  margin-block-end: 1rem;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy-900);
}
.rv-success-ico svg { width: 34px; height: 34px; }

@media (max-width: 460px) {
  .rv-star { width: 42px; height: 42px; }
  .rv-star svg { width: 30px; height: 30px; }
}

/* ---------------------------------------------------------------- lightbox */
.rv-lb {
  position: fixed;
  inset: 0;
  z-index: 330;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: .75rem;
  padding: clamp(.75rem, 3vw, 2rem);
  background: rgba(5, 8, 10, .94);
}
.rv-lb[hidden] { display: none; }
.rv-lb-figure { margin: 0; display: grid; justify-items: center; gap: .6rem; min-width: 0; }
.rv-lb-figure img {
  max-width: 100%;
  max-height: 82svh;
  border-radius: var(--r-md);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .55);
}
.rv-lb-figure figcaption { font-size: .8125rem; color: var(--on-dark-soft); }
.rv-lb-close { position: fixed; inset-block-start: 1rem; inset-inline-end: 1rem; z-index: 2; }
.rv-lb-nav {
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  border: 1px solid var(--gold-line);
  border-radius: 50%;
  color: var(--gold);
  background: rgba(13, 18, 21, .7);
  cursor: pointer;
}
.rv-lb-nav:hover { background: var(--gold); color: var(--navy-900); }
.rv-lb-nav[hidden] { visibility: hidden; display: grid; }
.rv-lb-nav span {
  width: 12px; height: 12px;
  border-block-start: 2px solid currentColor;
  border-inline-start: 2px solid currentColor;
}
.rv-lb-prev span { transform: translateX(2px) rotate(-45deg); }
.rv-lb-next span { transform: translateX(-2px) rotate(135deg); }
[dir="rtl"] .rv-lb-prev span { transform: translateX(-2px) rotate(45deg); }
[dir="rtl"] .rv-lb-next span { transform: translateX(2px) rotate(-135deg); }
@media (max-width: 560px) {
  .rv-lb { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr auto; }
  .rv-lb-figure { grid-column: 1 / -1; grid-row: 1; }
  .rv-lb-prev { grid-column: 1; grid-row: 2; justify-self: start; }
  .rv-lb-next { grid-column: 2; grid-row: 2; justify-self: end; }
  .rv-lb-figure img { max-height: 68svh; }
}

@media (prefers-reduced-motion: reduce) {
  .rv-photo img, .rv-star { transition: none; }
  .rv-photo:hover img, .rv-star:hover { transform: none; }
}

/* ============================================ private moderation pages */
.rv-private { background: var(--navy-900); min-height: 100vh; }
.rv-private-head {
  padding-block: .9rem;
  background: var(--navy-950);
  border-block-end: 1px solid var(--gold-dim);
}
.rv-private-head .brand { display: inline-flex; align-items: center; gap: .7rem; }
.rv-private-head .brand-text { display: grid; }
.rv-private-head .brand-text strong { font-family: var(--font-head); font-size: 1.05rem; }
.rv-private-head .brand-text small {
  display: block;
  font-size: .75rem;
  color: var(--on-dark-soft);
  letter-spacing: .04em;
}
.rv-private-main { padding-block: clamp(1.75rem, 5vw, 3rem) 4rem; }
.rv-private-shell { max-width: 46rem; }
.rv-private-title { font-size: clamp(1.35rem, 1.1rem + 1.2vw, 1.9rem); margin-block-end: 1.5rem; line-height: 1.35; }
.rv-private-title span { display: inline-block; margin-block-start: .25rem; font-size: .85em; color: var(--on-dark-soft); }

.rv-private-card {
  background: var(--navy-850);
  border: 1px solid var(--gold-dim);
  border-radius: var(--r-lg);
  padding: clamp(1.25rem, 4vw, 2rem);
  box-shadow: var(--shadow-md);
}
.rv-private-top { display: flex; gap: .9rem; align-items: center; margin-block-end: 1.1rem; }
.rv-private-name { font-size: 1.2rem; margin: 0 0 .2rem; overflow-wrap: anywhere; }
.rv-stars-line { margin: 0; }
.rv-stars { color: var(--gold); letter-spacing: .12em; font-size: 1.15rem; }
.rv-private-score { color: var(--on-dark-soft); font-size: .875rem; }
.rv-private-meta {
  display: grid;
  gap: .6rem;
  margin: 0 0 1.25rem;
  padding: 1rem 0;
  border-block: 1px solid var(--on-dark-faint);
}
.rv-private-meta div { display: grid; grid-template-columns: minmax(8rem, 12rem) 1fr; gap: .75rem; font-size: .875rem; }
.rv-private-meta dt { color: var(--on-dark-soft); }
.rv-private-meta dd { margin: 0; }
.rv-status-pending { color: var(--gold); }
.rv-status-approved { color: #8FD19E; }
.rv-status-rejected { color: #F3A69F; }
.rv-private-text { font-size: 1rem; line-height: 1.7; overflow-wrap: anywhere; white-space: normal; }
.rv-private-photos {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: .6rem;
}
.rv-private-photos a { display: block; border-radius: var(--r-sm); overflow: hidden; border: 1px solid var(--gold-dim); }
.rv-private-photos img { display: block; width: 100%; aspect-ratio: 1 / 1; height: auto; object-fit: cover; }
.rv-private-hint { margin: .75rem 0 0; font-size: .8125rem; color: var(--on-dark-soft); line-height: 1.6; }
.rv-private-note { margin-block-start: 1.5rem; font-size: .9375rem; color: var(--on-dark-soft); line-height: 1.7; }

.rv-confirm { margin-block-start: 1.75rem; }
.rv-confirm .btn { width: 100%; }
.rv-btn-danger { --btn-bg: #B3261E; --btn-bd: #B3261E; --btn-fg: #fff; }
.rv-btn-danger:hover { --btn-bg: #C9372E; --btn-bd: #C9372E; }

.rv-private-msg {
  margin-block-end: 1.75rem;
  padding: clamp(1.25rem, 4vw, 1.75rem);
  border-radius: var(--r-lg);
  border: 1px solid var(--gold-dim);
  background: var(--navy-850);
}
.rv-private-msg p { margin: 0 0 .6rem; color: var(--on-dark-soft); }
.rv-private-msg .btn { margin-block-start: .6rem; }
.rv-private-msg .rv-private-title { margin-block-end: .9rem; }
.rv-tone-ok { border-color: rgba(143, 209, 158, .55); }
.rv-tone-warn { border-color: rgba(243, 166, 159, .55); }

@media (max-width: 520px) {
  .rv-private-meta div { grid-template-columns: 1fr; gap: .15rem; }
}

/* ---------------------------------------------------------- card layout */
/* Name (with country) at the top, then stars + date, a prominent title and
   the review text — same card, border, radius and colours as before. */
.rv-item .review-top { align-items: center; margin-block-end: .9rem; }
.rv-who { min-width: 0; }
.rv-name {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .15rem .5rem;
  margin: 0 0 .2rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .9375rem;
  color: var(--on-dark);
  overflow-wrap: anywhere;
}
.rv-country {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: .75rem;
  color: var(--on-dark-soft);
}
.rv-country::before {
  content: "";
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--gold);
}
.rv-item .review-title.rv-title {
  margin: 0 0 .55rem;
  font-size: 1.0625rem;
  line-height: 1.35;
  color: var(--gold-soft);
  overflow-wrap: anywhere;
}
.rv-item .review-body { line-height: 1.7; }
.rv-item[hidden] { display: none; }

/* ------------------------------------------------------------ filter bar */
/* Two equal controls (country, order) and the reset link on one row;
   stacked on phones. */
.rv-filters {
  display: grid;
  gap: .9rem 1rem;
  grid-template-columns: 1fr;
  align-items: end;
  margin: 0 0 1rem;
  padding: clamp(1rem, 3vw, 1.35rem);
  background: var(--navy-850);
  border: 1px solid var(--gold-dim);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}
.rv-filters[hidden] { display: none; }
.rv-filters .field { margin: 0; }
.rv-filters .field select { min-height: 48px; width: 100%; }
.rv-f-reset { justify-self: center; min-height: 44px; padding-inline: .5rem; }

@media (min-width: 640px) {
  .rv-filters { grid-template-columns: 1fr 1fr auto; }
  .rv-f-reset { justify-self: end; }
}

.rv-f-count { margin: 0 0 1.25rem; font-size: .8125rem; color: var(--on-dark-soft); }
.rv-f-count[hidden] { display: none; }
.rv-f-empty {
  margin: 1rem 0 0;
  padding: 2rem 1rem;
  text-align: center;
  color: var(--on-dark-soft);
  border: 1px dashed var(--gold-dim);
  border-radius: var(--r-md);
}
.rv-more-wrap { display: flex; justify-content: center; margin-block-start: 1.75rem; }
.rv-more-wrap .btn[hidden] { display: none; }


/* ------------------------------------------------- names + country picker */
/* Site name format: first name in bold, then ".L" (family-name initial). */
.rv-person { font-weight: 400; }
.rv-person strong { font-weight: 700; }
.rv-initial { font-weight: 400; color: var(--on-dark-soft); }
.t-name .rv-person strong { color: var(--on-dark); }
.rv-country-find { margin-block-end: .5rem; }
.rv-country-hint { margin-block-start: .4rem; text-align: start; }
.rv-country-hint[hidden] { display: none; }

/* ---------------------------------------- name: "First .L", all in bold */
.rv-person strong { font-weight: 700; }
.rv-person .rv-initial { font-weight: 700; color: inherit; }

/* ------------------------------------------- one photo: small square frame */
/* The card shows a uniform square thumbnail; the lightbox opens the full
   image at its natural proportions (never stretched). */
.rv-item > .rv-photo {
  width: 112px;
  height: 112px;
  aspect-ratio: 1 / 1;
  margin-block-start: .4rem;
}
.rv-item > .rv-photo img { width: 100%; height: 100%; object-fit: cover; }
.rv-lb-figure img { width: auto; height: auto; object-fit: contain; }
.rv-previews { grid-template-columns: 112px; }
@media (max-width: 460px) {
  .rv-item > .rv-photo { width: 96px; height: 96px; }
}

/* ------------------------------------------- profile picture (no letters) */
/* Neutral default avatar in the card's circle, cropped round, next to the
   name. Replace the SVG with a real <img> if a guest's own photo is ever
   available. */
.rv-avatar {
  overflow: hidden;
  padding: 0;
  background: linear-gradient(160deg, var(--navy-700), var(--navy-800));
  border: 1px solid var(--gold-dim);
  color: rgba(212, 175, 55, .55);
}
.rv-avatar svg { width: 100%; height: 100%; display: block; fill: currentColor; transform: translateY(2px); }
.rv-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.rv-item .review-top { gap: .75rem; }
.rv-filters .rv-country-find { min-height: 44px; }
