/* Reviews tab: average rating, distribution bars, review cards, pagination. Design px on the 480 px column. */

/* ===== Shared page chrome (u03 pattern) — the SAME block is repeated in every inner-page css
   (confirm, destinations, destination, rides, bookings, profile, prices, notifications, support).
   Edit all copies together, or move it into app.css. ===== */
.topbar { justify-content: space-between; gap: 12px; }
.tb-brand { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 0; text-align: center; color: #D9AD5C; }
.tb-brand-main { margin-top: 4px; font-family: "Libre Caslon Display", var(--serif); font-size: 22.5px; line-height: 1; font-weight: 400; letter-spacing: .25em; padding-left: .25em; color: #D9AD5C; text-transform: uppercase; white-space: nowrap; }
.tb-brand-sub { margin-top: 6px; font-size: 10px; line-height: 1; font-weight: 500; letter-spacing: .27em; padding-left: .27em; color: #D9AD5C; text-transform: uppercase; white-space: nowrap; }
.tb-crown { width: 26px; height: 17px; flex: none; }
.page-head { padding-top: 26px; }
.page-head .kicker { font-size: 15px; line-height: 20px; letter-spacing: .14em; font-weight: 500; }
.page-head .page-title { margin-top: 4px; font-size: 48px; line-height: 1.04; font-weight: 500; text-transform: uppercase; letter-spacing: .01em; overflow-wrap: break-word; }
.page-head .page-lead { margin-top: 14px; font-size: 16px; line-height: 23px; color: var(--muted); }
.ornament { display: block; position: relative; width: 172px; height: 10px; margin-top: 12px; opacity: .9;
  background:
    radial-gradient(circle, var(--gold) 1.3px, transparent 1.7px) 72px 50% / 10px 10px no-repeat,
    radial-gradient(circle, var(--gold) 1.3px, transparent 1.7px) 90px 50% / 10px 10px no-repeat,
    linear-gradient(90deg, var(--gold), var(--gold)) 0 50% / 72px 1px no-repeat,
    linear-gradient(90deg, var(--gold), rgba(216,161,81,.2)) 100px 50% / 72px 1px no-repeat; }
.ornament::after { content: ""; position: absolute; left: 86px; top: 50%; width: 6px; height: 6px; border: 1px solid var(--gold); transform: translate(-50%, -50%) rotate(45deg); }
.section-head { align-items: center; }
.sec-h { display: inline-flex; align-items: center; gap: 9px; font-size: 14px; letter-spacing: .16em; }
.sec-h svg { width: 18px; height: 18px; flex: none; color: var(--gold); }
.link-more { font-size: 13px; padding: 14px 0; margin: -14px 0; }
.link-more[hidden] { display: none; }
.btn { border-radius: 12px; }
.btn-secondary, .btn-quiet, .btn-danger { font-weight: 600; letter-spacing: .12em; text-transform: uppercase; font-size: 15px; }
.btn-primary { font-size: 15px; }
.btn-sm { border-radius: 10px; font-size: 12.5px; }

/* ---------- Stars ---------- */
.rv-stars { display: inline-flex; gap: 2px; color: var(--gold); vertical-align: middle; }
.rv-stars svg { width: 16px; height: 16px; }
.rv-stars svg.off { color: rgba(216,161,81,.25); }
.rv-stars svg.on path { fill: currentColor; }

/* ---------- Summary card ---------- */
.rv-summary { margin: 24px var(--gutter) 0; padding: 22px 20px 20px; border-radius: var(--radius-card); background: radial-gradient(120% 90% at 0% 0%, rgba(216,161,81,.12), rgba(216,161,81,0) 60%), var(--surface); box-shadow: inset 0 0 0 1px var(--gold-line), 0 0 30px rgba(216,161,81,.07); }
.rv-top { display: flex; align-items: center; gap: 18px; }
.rv-avg { font-family: var(--serif); font-size: 64px; line-height: 1; font-weight: 500; }
.rv-top .rv-stars svg { width: 24px; height: 24px; }
.rv-count { margin-top: 6px; font-size: 15px; color: var(--muted); }
.rv-dist { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.rv-bar { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
.rv-bar + .rv-bar { margin-top: 8px; }
.rv-bar .s { flex: none; width: 34px; display: inline-flex; align-items: center; gap: 4px; color: var(--ink); }
.rv-bar .s svg { width: 13px; height: 13px; color: var(--gold); }
.rv-bar .s svg path { fill: currentColor; }
.rv-bar .t { flex: 1; height: 8px; border-radius: 99px; background: rgba(255,255,255,.07); overflow: hidden; }
.rv-bar .t b { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #B88233, #F1CF86); }
.rv-bar .n { flex: none; width: 28px; text-align: right; }

/* ---------- Note ---------- */
.rv-note { display: flex; gap: 12px; align-items: flex-start; margin: 16px var(--gutter) 0; font-size: 14px; line-height: 20px; color: var(--muted); }
.rv-note svg { flex: none; width: 20px; height: 20px; color: var(--gold); margin-top: 1px; }

/* ---------- Review cards ---------- */
.rv-list > li + li { margin-top: 14px; }
.rv-card { padding: 18px; }
.rv-head { display: flex; align-items: center; gap: 13px; }
.rv-ava { flex: none; width: 46px; height: 46px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 21px; color: var(--gold); background: radial-gradient(circle at 35% 30%, #221D15, #0E0D0B 70%); box-shadow: inset 0 0 0 1.5px var(--gold-line); }
.rv-who { flex: 1; min-width: 0; }
.rv-name { font-size: 17px; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rv-meta { margin-top: 3px; display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted-2); }
.rv-badge { flex: none; display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; border-radius: 99px; font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); background: var(--gold-soft); }
.rv-badge svg { width: 13px; height: 13px; }
.rv-body { margin-top: 13px; font-size: 15.5px; line-height: 23px; color: var(--ink); overflow-wrap: anywhere; }
.rv-trip { margin-top: 12px; display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted); }
.rv-trip svg { flex: none; width: 16px; height: 16px; color: var(--gold); }

/* ---------- Pagination ---------- */
.rv-pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 20px; }
.rv-pager .btn { height: 46px; padding: 0 16px; font-size: 13px; }
.rv-pager .btn svg { width: 16px; height: 16px; }
.rv-pager .btn.is-off { opacity: .35; pointer-events: none; }
.rv-page { font-size: 14px; color: var(--muted); }

/* ---------- Empty state ---------- */
.rv-empty { margin: 24px var(--gutter) 0; padding: 34px 24px; text-align: center; border-radius: var(--radius-card); background: var(--surface); box-shadow: inset 0 0 0 1px var(--gold-line); }
.rv-empty .rv-stars svg { width: 28px; height: 28px; }
.rv-empty .empty-title { margin-top: 14px; font-family: var(--serif); font-size: 26px; font-weight: 500; color: var(--gold); }
.rv-empty .empty-text { margin-top: 8px; }

/* ---------- Book CTA ---------- */
.rv-book { padding: 30px var(--gutter) 6px; }
.rv-book .btn { width: 100%; height: 62px; }

/* ===== Desktop (≥1024 px): full-width website layout — sticky summary column left, review cards right ===== */
@media (min-width: 1024px) {
  .page-head { width: min(1200px, calc(100% - 64px)); margin: 0 auto; padding: 64px 0 0; }
  .page-head .kicker { font-size: 15px; letter-spacing: .24em; }
  .page-head .page-title { margin-top: 8px; font-size: 72px; line-height: 1; }
  .page-head .ornament { margin-top: 18px; }

  .rv-dk { width: min(1200px, calc(100% - 64px)); margin: 48px auto 0; display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 56px; align-items: start; }
  .rv-side { position: sticky; top: 112px; }
  .rv-summary { margin: 0; padding: 30px 28px 26px; }
  .rv-avg { font-size: 84px; }
  .rv-top { gap: 22px; }
  .rv-dist { margin-top: 22px; padding-top: 18px; }
  .rv-bar + .rv-bar { margin-top: 10px; }
  .rv-note { margin: 20px 0 0; padding: 16px 18px; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line); font-size: 14.5px; line-height: 21px; }
  .rv-side-book[hidden] { display: block; }
  .rv-side .rv-book { padding: 22px 0 0; }
  .rv-side .rv-book .btn { height: 58px; letter-spacing: .14em; }
  .rv-side .rv-book .btn:hover { filter: brightness(1.06); }

  .rv-main .section { padding: 0; }
  .rv-main .section-head { margin-bottom: 22px; }
  .rv-main .sec-h { font-size: 15px; letter-spacing: .2em; }
  .rv-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
  .rv-list > li + li { margin-top: 0; }
  .rv-card { padding: 24px; transition: box-shadow .2s, transform .2s; }
  .rv-card:hover { box-shadow: inset 0 0 0 1px var(--gold-line), 0 0 26px rgba(216,161,81,.12); transform: translateY(-2px); }
  .rv-body { margin-top: 16px; font-size: 16px; line-height: 25px; }
  .rv-pager { margin-top: 32px; justify-content: center; gap: 28px; }
  .rv-pager .btn { padding: 0 22px; }
  .rv-pager .btn:hover { box-shadow: inset 0 0 0 1px var(--gold); color: var(--gold-2); }
  .rv-empty { margin: 0; padding: 72px 40px; }
  .rv-empty .empty-title { font-size: 34px; }
  .rv-empty .empty-text { max-width: 460px; margin-left: auto; margin-right: auto; }
}
