/*
 * Pearloc Reviews — v2.1.0
 * Two-theme token system: light (clean Shopify) + dark (black & gold luxury).
 * A `.pearloc-theme-light` / `.pearloc-theme-dark` class on any ancestor (body
 * or the component root) swaps the whole palette. All components read tokens
 * only — no hard-coded palette colours — so both themes share one layout.
 */

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root,
.pearloc-theme-dark {
  --pr-serif: 'Cormorant Garamond','Playfair Display',Georgia,serif;
  --pr-sans:  -apple-system,BlinkMacSystemFont,'Helvetica Neue',Helvetica,Arial,sans-serif;
  --pr-head:  var(--pr-serif);

  --pr-bg:        #0a0a0a;
  --pr-surface:   #111111;
  --pr-line:      rgba(201,168,118,.16);
  --pr-line-mid:  rgba(201,168,118,.32);
  --pr-text:      #f2efe8;
  --pr-sub:       rgba(242,239,232,.55);
  --pr-muted:     #6b6560;
  --pr-gold:      #c9a876;
  --pr-gold2:     #a8885a;

  --pr-star:       #c9a876;
  --pr-star-empty: rgba(201,168,118,.18);

  --pr-radius:      2px;
  --pr-card-radius: 2px;

  --pr-btn-bg:   transparent;
  --pr-btn-fg:   var(--pr-gold);
  --pr-btn-bd:   var(--pr-gold);
  --pr-btn-bg-h: var(--pr-gold);
  --pr-btn-fg-h: #0a0a0a;

  --pr-dist-track: rgba(201,168,118,.10);
  --pr-row-hover:  rgba(201,168,118,.04);
  --pr-review-text: rgba(242,239,232,.78);
  --pr-shadow:     0 20px 44px -26px rgba(0,0,0,.92);
  --pr-verified-bg: rgba(201,168,118,.08);
  --pr-verified-bd: rgba(201,168,118,.22);
  --pr-sk1: #161616;
  --pr-sk2: #202020;
}

.pearloc-theme-light {
  --pr-head: var(--pr-sans);

  --pr-bg:        #ffffff;
  --pr-surface:   #f7f7f5;
  --pr-line:      rgba(20,20,20,.10);
  --pr-line-mid:  rgba(20,20,20,.20);
  --pr-text:      #1a1a1a;
  --pr-sub:       rgba(26,26,26,.60);
  --pr-muted:     #8f8f8f;
  --pr-gold:      #b8905a;
  --pr-gold2:     #caa15a;

  --pr-star:       #f3a838;
  --pr-star-empty: rgba(20,20,20,.14);

  --pr-radius:      8px;
  --pr-card-radius: 12px;

  --pr-btn-bg:   #171717;
  --pr-btn-fg:   #ffffff;
  --pr-btn-bd:   #171717;
  --pr-btn-bg-h: #000000;
  --pr-btn-fg-h: #ffffff;

  --pr-dist-track: rgba(20,20,20,.08);
  --pr-row-hover:  rgba(20,20,20,.022);
  --pr-review-text: rgba(26,26,26,.82);
  --pr-shadow:     0 14px 40px -22px rgba(20,20,20,.26);
  --pr-verified-bg: rgba(46,125,50,.08);
  --pr-verified-bd: rgba(46,125,50,.28);
  --pr-sk1: #ededed;
  --pr-sk2: #f6f6f6;
}
/* Verified check reads green in light (Shopify), gold in dark. */
.pearloc-theme-light .pearloc-verified { color: #2e7d32; }

/* ============================================================
   WC NATIVE REVIEWS TAB  (#reviews on PDP)
   ============================================================ */
#reviews, #reviews .woocommerce-Reviews { font-family: var(--pr-sans); }

#reviews #comments > h2,
#reviews .woocommerce-Reviews-title {
  font-family: var(--pr-head); font-weight:400;
  font-size: clamp(1.6rem,4vw,2.4rem); letter-spacing:.01em;
  margin: 0 0 1.5rem; color:inherit;
}

#reviews ol.commentlist { list-style:none; margin:0; padding:0; }
#reviews ol.commentlist li.review,
#reviews ol.commentlist li.comment {
  background:transparent; border:none;
  border-bottom: 1px solid var(--pr-line);
  padding: 1.5rem 0; margin:0; list-style:none;
}
#reviews ol.commentlist li .comment_container { display:flex; flex-direction:column; gap:.5rem; padding:0; border:none; background:transparent; }
#reviews ol.commentlist li .comment-text { padding:0; border:none; margin:0; }
#reviews ol.commentlist .meta { font-size:.8rem; letter-spacing:.04em; margin:0 0 .4rem; color:var(--pr-muted); }
#reviews ol.commentlist .meta strong { font-family:var(--pr-head); font-weight:500; font-size:1.1rem; letter-spacing:0; color:inherit; margin-right:.5rem; }
#reviews ol.commentlist .description { line-height:1.7; color:inherit; }
#reviews .star-rating { position:relative; height:.95em; width:5.5em; font-size:.85em; line-height:1; overflow:hidden; letter-spacing:.1em; color:var(--pr-star-empty); margin-bottom:.4rem; }
#reviews .star-rating::before, #reviews .star-rating span::before { content:"★★★★★"; position:absolute; top:0; left:0; white-space:nowrap; }
#reviews .star-rating span { position:absolute; overflow:hidden; top:0; left:0; height:100%; color:var(--pr-star); }

/* media inside WC native tab */
.pearloc-review-media {
  display:flex; flex-wrap:nowrap; gap:.375rem;
  margin:.875rem 0 .25rem;
  overflow-x:auto; -webkit-overflow-scrolling:touch;
  scrollbar-width:none;
}
.pearloc-review-media::-webkit-scrollbar { display:none; }

.pearloc-media-item {
  flex-shrink:0;
  display:block; width:96px; height:96px;
  border-radius:var(--pr-radius);
  overflow:hidden; background:var(--pr-surface);
  position:relative; cursor:zoom-in;
  border: 1px solid var(--pr-line);
  transition: border-color .25s;
}
.pearloc-media-item:hover { border-color: var(--pr-line-mid); }
.pearloc-media-item img, .pearloc-media-item video { width:100%; height:100%; object-fit:cover; display:block; }
.pearloc-media-video .pearloc-play {
  position:absolute; inset:0; display:flex; align-items:center; justify-content:center;
  color:#fff; font-size:1.3rem;
  background:linear-gradient(to top,rgba(0,0,0,.5),transparent);
  pointer-events:none;
}

/* ============================================================
   REVIEW SUBMISSION FORM
   ============================================================ */
.pearloc-review-form, #review_form_wrapper {
  margin-top:2.5rem; padding-top:2rem;
  border-top: 1px solid var(--pr-line);
}
#review_form #reply-title {
  font-family:var(--pr-head); font-weight:400;
  font-size:clamp(1.5rem,3vw,2rem); letter-spacing:.01em;
  margin:0 0 1.5rem; color:inherit;
}
.pearloc-review-form p { margin:0 0 1.25rem; }
.pearloc-review-form label {
  display:block; font-size:.68rem; text-transform:uppercase;
  letter-spacing:.16em; margin-bottom:.6rem; color:var(--pr-muted); font-weight:600;
}
.pearloc-review-form input[type="text"],
.pearloc-review-form input[type="email"],
.pearloc-review-form input[type="url"],
.pearloc-review-form textarea {
  width:100%; max-width:100%; background:transparent; border:none;
  border-bottom: 1px solid var(--pr-line-mid); padding:.625rem 0;
  color:inherit; font-family:var(--pr-sans); font-size:1rem; line-height:1.6;
  border-radius:0; outline:none; transition:border-color .25s; box-shadow:none;
}
.pearloc-review-form textarea { min-height:140px; resize:vertical; padding:.75rem 0; }
.pearloc-review-form input:focus,
.pearloc-review-form textarea:focus { border-bottom-color:var(--pr-gold); }
.pearloc-review-form input::placeholder,
.pearloc-review-form textarea::placeholder { color:var(--pr-muted); font-style:italic; }
.pearloc-review-form .required { color:var(--pr-gold); margin-left:2px; }

/* star rating input */
.pearloc-rating-field { margin-bottom:1.5rem; }
.pearloc-rating-label { display:block; font-size:.68rem; text-transform:uppercase; letter-spacing:.16em; margin-bottom:.5rem; color:var(--pr-muted); font-weight:600; }
.pearloc-stars-input { display:inline-flex; flex-direction:row-reverse; gap:.15rem; }
.pearloc-stars-input input[type="radio"] { position:absolute; opacity:0; pointer-events:none; }
.pearloc-stars-input label { cursor:pointer; color:var(--pr-star-empty); transition:color .18s; display:inline-block; margin:0; padding:0; text-transform:none; letter-spacing:0; }
.pearloc-stars-input label svg { width:30px; height:30px; fill:currentColor; display:block; }
.pearloc-stars-input label:hover,
.pearloc-stars-input label:hover ~ label,
.pearloc-stars-input input:checked ~ label { color:var(--pr-star); }

/* upload */
.pearloc-upload-field { margin-bottom:1.5rem; }
.pearloc-upload-field input[type="file"] { display:block; width:100%; padding:.75rem 0; color:var(--pr-muted); font-size:.875rem; }
.pearloc-upload-field input[type="file"]::file-selector-button {
  background:transparent; border:1px solid var(--pr-gold); color:var(--pr-gold);
  padding:.45rem 1.1rem; font-size:.68rem; text-transform:uppercase; letter-spacing:.16em;
  cursor:pointer; transition:background .25s, color .25s; margin-right:1rem; border-radius:var(--pr-radius);
}
.pearloc-upload-field input[type="file"]::file-selector-button:hover { background:var(--pr-gold); color:var(--pr-bg); }
.pearloc-upload-hint { display:block; font-size:.72rem; color:var(--pr-muted); margin-top:.4rem; }
.pearloc-upload-preview { display:flex; flex-wrap:wrap; gap:.5rem; margin-top:.75rem; }
.pearloc-upload-preview .pearloc-preview-thumb { position:relative; width:68px; height:68px; border-radius:var(--pr-radius); overflow:hidden; border:1px solid var(--pr-line); }
.pearloc-upload-preview .pearloc-preview-thumb img { width:100%; height:100%; object-fit:cover; }
.pearloc-upload-preview .pearloc-preview-remove { position:absolute; top:2px; right:2px; background:rgba(0,0,0,.8); color:#fff; border:none; width:18px; height:18px; border-radius:50%; cursor:pointer; font-size:13px; display:flex; align-items:center; justify-content:center; }

/* consent control */
.pearloc-consent-field { margin: -.25rem 0 1.5rem; }
.pearloc-consent-field .pearloc-consent {
  display: flex; align-items: flex-start; gap: .6rem; cursor: pointer;
  margin: 0; padding: 0; font-family: var(--pr-sans);
  text-transform: none; letter-spacing: 0; font-weight: 400;
  font-size: .8rem; line-height: 1.55; color: var(--pr-sub);
}
.pearloc-consent-field .pearloc-consent input {
  appearance: none; -webkit-appearance: none;
  width: 16px; height: 16px; flex: 0 0 16px; margin: .15rem 0 0;
  border: 1px solid var(--pr-line-mid); border-radius: 3px; background: transparent;
  cursor: pointer; position: relative; transition: border-color .2s, background .2s;
}
.pearloc-consent-field .pearloc-consent input:checked { background: var(--pr-gold); border-color: var(--pr-gold); }
.pearloc-consent-field .pearloc-consent input:checked::after {
  content: ""; position: absolute; left: 5px; top: 2px;
  width: 4px; height: 8px; border: solid var(--pr-bg); border-width: 0 2px 2px 0; transform: rotate(45deg);
}

/* submit button */
.pearloc-review-form .submit, .pearloc-btn-gold {
  background:var(--pr-btn-bg); color:var(--pr-btn-fg); border:1px solid var(--pr-btn-bd);
  padding:.9rem 2.25rem; font-family:var(--pr-sans); font-size:.72rem;
  text-transform:uppercase; letter-spacing:.22em; cursor:pointer;
  transition:background .3s, color .3s, box-shadow .3s;
  border-radius:var(--pr-radius); font-weight:600; margin-top:.5rem;
}
.pearloc-review-form .submit:hover, .pearloc-btn-gold:hover { background:var(--pr-btn-bg-h); color:var(--pr-btn-fg-h); box-shadow:var(--pr-shadow); }
.pearloc-review-form .comment-form-cookies-consent { display:none; }

/* ============================================================
   SHORTCODE SECTION — .pearloc-reviews-wrap
   ============================================================ */
.pearloc-reviews-wrap {
  font-family: var(--pr-sans);
  color: var(--pr-text);
  background: var(--pr-bg);
  padding: 3rem 1.5rem;
  box-sizing: border-box;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
}

/* ── SUMMARY ─────────────────────────────────────────────── */
.pearloc-summary {
  text-align: center;
  padding-bottom: 2rem;
  margin-bottom: 0;
  border-bottom: 1px solid var(--pr-line);
}
.pearloc-avg-row { display: flex; align-items: baseline; justify-content: center; gap: .625rem; margin-bottom: .25rem; }
.pearloc-avg-number {
  font-family: var(--pr-head);
  font-size: clamp(3.5rem, 10vw, 5rem);
  line-height: 1; font-weight: 400;
  letter-spacing: -.02em;
  background: linear-gradient(180deg, #ecd5a8 0%, var(--pr-gold) 52%, var(--pr-gold2) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: var(--pr-gold);
}
/* light theme: solid dark numeral, no gilding */
.pearloc-theme-light .pearloc-avg-number {
  background: none; -webkit-text-fill-color: var(--pr-text); color: var(--pr-text); font-weight: 600;
}
.pearloc-avg-label { font-size: .65rem; letter-spacing: .2em; text-transform: uppercase; color: var(--pr-muted); align-self: flex-end; padding-bottom: .5rem; }
.pearloc-summary .pearloc-stars { font-size: 1.35rem; margin-bottom: .375rem; }
.pearloc-avg-count { font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--pr-muted); margin-bottom: 1.5rem; position: relative; padding-top: 1rem; }
.pearloc-avg-count::before { content:""; position:absolute; top:0; left:50%; transform:translateX(-50%); width:34px; height:1px; background:linear-gradient(90deg,transparent,var(--pr-gold),transparent); opacity:.75; }

.pearloc-dist { display: flex; flex-direction: column; gap: .35rem; margin-bottom: 1.75rem; max-width: 380px; margin-left: auto; margin-right: auto; }
.pearloc-dist-row { display: grid; grid-template-columns: 28px 1fr 28px; align-items: center; gap: .625rem; font-size: .78rem; }
.pearloc-dist-label { color: var(--pr-muted); text-align: right; font-variant-numeric: tabular-nums; }
.pearloc-dist-bar { height: 3px; background: var(--pr-dist-track); border-radius: 2px; overflow: hidden; }
.pearloc-dist-fill { display: block; height: 100%; background: linear-gradient(90deg, var(--pr-gold2), var(--pr-gold)); border-radius: 2px; transition: width .9s cubic-bezier(.22,1,.36,1); }
.pearloc-dist-num { color: var(--pr-muted); font-variant-numeric: tabular-nums; }

/* Write-a-review CTA */
.pearloc-write-btn {
  display: inline-block;
  border: 1px solid var(--pr-btn-bd); color: var(--pr-btn-fg); background: var(--pr-btn-bg);
  padding: .875rem 3rem;
  font-size: .68rem; text-transform: uppercase; letter-spacing: .22em;
  text-decoration: none; cursor: pointer;
  font-family: var(--pr-sans); font-weight: 600;
  border-radius: var(--pr-radius);
  transition: background .3s, color .3s, box-shadow .3s;
}
.pearloc-write-btn:hover { background: var(--pr-btn-bg-h); color: var(--pr-btn-fg-h); box-shadow: var(--pr-shadow); }
.pearloc-write-btn:visited { color: var(--pr-btn-fg); }

/* ── EMPTY HERO (no reviews yet) ─────────────────────────── */
.pearloc-empty-hero { text-align: center; padding: 2.5rem 1rem 0; }
.pearloc-empty-hero .pearloc-stars { font-size: 1.5rem; margin-bottom: 1rem; opacity: .9; }
.pearloc-empty-hero .pearloc-empty-title { font-family: var(--pr-head); font-size: clamp(1.4rem,3vw,1.9rem); font-weight: 500; color: var(--pr-text); margin: 0 0 .5rem; }
.pearloc-theme-light .pearloc-empty-hero .pearloc-empty-title { font-weight: 600; }
.pearloc-empty-hero .pearloc-empty-sub { font-size: .9rem; color: var(--pr-sub); margin: 0 auto 1.75rem; max-width: 340px; line-height: 1.6; }

/* ── REVIEW LIST ─────────────────────────────────────────── */
.pearloc-reviews-list { list-style: none; margin: 0; padding: 0; }

.pearloc-review {
  padding: 1.625rem 0;
  border-bottom: 1px solid var(--pr-line);
  opacity: 0; transform: translateY(10px);
  transition: background-color .35s ease;
}
.pearloc-review.pearloc-visible { animation: prFadeUp .4s ease forwards; }
.pearloc-review:hover { background: linear-gradient(90deg, var(--pr-row-hover), transparent 62%); }
@keyframes prFadeUp { to { opacity:1; transform:translateY(0); } }

.pearloc-review-toprow { display: flex; align-items: center; justify-content: space-between; margin-bottom: .5rem; gap: .5rem; }
.pearloc-review-toprow .pearloc-stars { font-size: .95rem; }
.pearloc-review-date { font-size: .7rem; letter-spacing: .06em; color: var(--pr-muted); white-space: nowrap; flex-shrink: 0; }

.pearloc-review-author { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin-bottom: .875rem; }
.pearloc-review-name { font-family: var(--pr-head); font-size: 1.05rem; font-weight: 500; color: var(--pr-text); letter-spacing: .01em; text-transform: none; }
.pearloc-theme-light .pearloc-review-name { font-weight: 600; }

.pearloc-verified {
  display: inline-flex; align-items: center; gap: 3px;
  font-family: var(--pr-sans); font-size: .58rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--pr-gold);
  background: var(--pr-verified-bg);
  padding: 2px 7px; border-radius: 20px;
  border: 1px solid var(--pr-verified-bd);
}
.pearloc-verified svg { fill: currentColor; }

.pearloc-review-title { font-family: var(--pr-head); font-size: 1.05rem; font-weight: 600; color: var(--pr-text); margin: 0 0 .5rem; font-style: normal; }

.pearloc-review-text { color: var(--pr-review-text); line-height: 1.75; font-size: .9rem; margin-bottom: .5rem; }
.pearloc-review-text p { margin: 0 0 .5rem; }
.pearloc-review-text p:last-child { margin: 0; }

/* photo strip inside review */
.pearloc-review .pearloc-review-media { margin: .875rem 0 0; }
.pearloc-review .pearloc-media-item { width: 80px; height: 80px; overflow: hidden; }
.pearloc-review .pearloc-media-item:first-child { width: 120px; height: 120px; }
.pearloc-review .pearloc-media-item img { transition: transform .55s cubic-bezier(.22,1,.36,1); }
.pearloc-review .pearloc-media-item:hover img { transform: scale(1.07); }

/* ── EMPTY STATE (fallback) ──────────────────────────────── */
.pearloc-empty-state { text-align: center; padding: 3.5rem 1rem; border-top: 1px solid var(--pr-line); }
.pearloc-empty-icon { font-size: 1.75rem; color: var(--pr-gold); margin-bottom: .875rem; display: block; animation: prPulse 3s ease-in-out infinite; }
@keyframes prPulse { 0%,100%{opacity:.5;transform:scale(1);} 50%{opacity:1;transform:scale(1.12);} }
.pearloc-empty-text { font-family: var(--pr-head); font-size: 1.1rem; color: var(--pr-muted); margin: 0 0 1.5rem; }

/* ── INLINE STARS (shared) ───────────────────────────────── */
.pearloc-stars { position: relative; display: inline-block; line-height: 1; letter-spacing: .1em; font-family: Arial, sans-serif; }
.pearloc-stars-base { color: var(--pr-star-empty); }
.pearloc-stars-fill { position:absolute; top:0; left:0; overflow:hidden; white-space:nowrap; color:var(--pr-star); }

/* ── SKELETON LOADER ─────────────────────────────────────── */
.pearloc-reviews-root.pearloc-loading { background: var(--pr-bg); padding: 3rem 1.5rem; max-width: 760px; margin: 0 auto; }
@keyframes prShimmer { 0% { background-position: -600px 0; } 100% { background-position: 600px 0; } }
.pr-sk { background: linear-gradient(90deg,var(--pr-sk1) 25%,var(--pr-sk2) 50%,var(--pr-sk1) 75%); background-size: 600px 100%; animation: prShimmer 1.6s infinite linear; border-radius: var(--pr-radius); }
.pearloc-sk-summary { text-align: center; padding-bottom: 2rem; border-bottom: 1px solid var(--pr-line); margin-bottom: 0; }
.pearloc-sk-num   { height:72px; width:100px; margin:0 auto .75rem; }
.pearloc-sk-stars { height:18px; width:120px; margin:0 auto .5rem; }
.pearloc-sk-sub   { height:11px; width:140px; margin:0 auto 1.5rem; }
.pearloc-sk-bar   { height:10px; max-width:380px; margin:0 auto .4rem; }
.pearloc-sk-btn   { height:44px; width:180px; margin:1.5rem auto 0; }
.pearloc-sk-review { padding: 1.625rem 0; border-bottom: 1px solid var(--pr-line); }
.pearloc-sk-top  { height:14px; width:120px; margin-bottom:.75rem; }
.pearloc-sk-name { height:16px; width:140px; margin-bottom:1rem; }
.pearloc-sk-line1 { height:11px; width:95%; margin-bottom:.4rem; }
.pearloc-sk-line2 { height:11px; width:80%; }

/* ── LIGHTBOX ────────────────────────────────────────────── */
.pearloc-lightbox { position:fixed; inset:0; z-index:99999; background:rgba(0,0,0,.93); display:flex; align-items:center; justify-content:center; cursor:zoom-out; animation:prFadeIn .18s ease; }
@keyframes prFadeIn { from{opacity:0;} to{opacity:1;} }
.pearloc-lightbox img, .pearloc-lightbox video { max-width:92vw; max-height:92vh; object-fit:contain; }
.pearloc-lightbox-close { position:fixed; top:1.25rem; right:1.5rem; background:transparent; border:none; color:#fff; font-size:2rem; cursor:pointer; opacity:.7; transition:opacity .2s; line-height:1; }
.pearloc-lightbox-close:hover { opacity:1; }

/* ============================================================
   "LOVED BY PEARLOC" WALL
   ============================================================ */
.pearloc-wall {
  --pr-wall-cols: 4;
  font-family: var(--pr-sans); color: var(--pr-text); background: var(--pr-bg);
  max-width: 1200px; margin: 0 auto; padding: 3.5rem 1.5rem; box-sizing: border-box;
}
.pearloc-wall-head { text-align: center; margin-bottom: 2.25rem; }
.pearloc-wall-eyebrow { display: inline-block; font-size: .62rem; letter-spacing: .28em; text-transform: uppercase; color: var(--pr-gold); margin-bottom: .7rem; }
.pearloc-wall-eyebrow .pr-diamond { opacity: .8; margin-right: .15rem; }
.pearloc-wall-title { font-family: var(--pr-head); font-weight: 400; font-size: clamp(1.6rem, 3.6vw, 2.5rem); letter-spacing: .01em; margin: 0; color: var(--pr-text); }
.pearloc-theme-light .pearloc-wall-title { font-weight: 600; }

.pearloc-wall-track.pearloc-wall-grid { display: grid; grid-template-columns: repeat(var(--pr-wall-cols), 1fr); gap: 1rem; }

.pearloc-wall-track.pearloc-wall-marquee {
  display: flex; gap: 1rem; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.pearloc-wall-track.pearloc-wall-marquee .pearloc-wall-card { flex: 0 0 clamp(200px, 22vw, 258px); }
.pearloc-wall-track.pearloc-wall-marquee.is-animating { width: max-content; animation: prWallScroll 52s linear infinite; }
.pearloc-wall-track.pearloc-wall-marquee.is-animating:hover { animation-play-state: paused; }
@keyframes prWallScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.pearloc-wall-card {
  display: flex; flex-direction: column; text-decoration: none; color: inherit;
  background: var(--pr-surface); border: 1px solid var(--pr-line);
  border-radius: var(--pr-card-radius); overflow: hidden;
  transition: transform .45s cubic-bezier(.22,1,.36,1), border-color .35s, box-shadow .45s;
}
.pearloc-wall-card:hover { transform: translateY(-4px); border-color: var(--pr-line-mid); box-shadow: var(--pr-shadow); }
.pearloc-wall-media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--pr-surface); }
.pearloc-wall-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s cubic-bezier(.22,1,.36,1); }
.pearloc-wall-card:hover .pearloc-wall-media img { transform: scale(1.05); }
.pearloc-wall-shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to top, rgba(0,0,0,.28), transparent 42%); }
.pearloc-theme-light .pearloc-wall-shade { background: linear-gradient(to top, rgba(0,0,0,.12), transparent 46%); }
.pearloc-wall-body { padding: .95rem 1rem 1.05rem; display: flex; flex-direction: column; gap: .5rem; }
.pearloc-wall-body .pearloc-stars { font-size: .85rem; }
.pearloc-wall-quote { font-family: var(--pr-head); font-size: 1rem; line-height: 1.45; color: var(--pr-text); margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pearloc-theme-dark .pearloc-wall-quote { font-style: italic; }
.pearloc-wall-meta { display: flex; flex-direction: column; gap: 1px; margin-top: .15rem; }
.pearloc-wall-name { font-size: .72rem; letter-spacing: .02em; color: var(--pr-text); font-weight: 600; }
.pearloc-wall-prod { font-size: .64rem; letter-spacing: .07em; text-transform: uppercase; color: var(--pr-muted); }

/* ============================================================
   RATING BADGE
   ============================================================ */
.pearloc-rating-badge { display: inline-flex; align-items: center; gap: .5rem; text-decoration: none; color: var(--pr-text); font-family: var(--pr-sans); line-height: 1; }
.pearloc-rating-badge .pearloc-badge-avg { font-family: var(--pr-head); font-size: 1.05rem; font-weight: 600; color: var(--pr-text); }
.pearloc-rating-badge .pearloc-stars { font-size: .95rem; }
.pearloc-rating-badge .pearloc-badge-count { font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--pr-muted); border-bottom: 1px solid transparent; transition: color .2s, border-color .2s; }
a.pearloc-rating-badge:hover .pearloc-badge-count { color: var(--pr-gold); border-color: var(--pr-line-mid); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .pearloc-wall-track.pearloc-wall-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 760px) {
  .pearloc-wall { padding: 2.5rem 1rem; }
  .pearloc-wall-track.pearloc-wall-grid { grid-template-columns: repeat(2, 1fr); gap: .75rem; }
  .pearloc-wall-quote { font-size: .92rem; -webkit-line-clamp: 4; }
}
@media (max-width: 640px) {
  .pearloc-reviews-wrap, .pearloc-reviews-root.pearloc-loading { padding:2.5rem 1rem; }
  .pearloc-avg-number { font-size: 3.5rem; }
  .pearloc-review-form .submit { width:100%; text-align:center; }
  .pearloc-stars-input label svg { width:34px; height:34px; }
  .pearloc-write-btn { width:100%; text-align:center; box-sizing:border-box; padding:.875rem 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  .pearloc-wall-track.pearloc-wall-marquee { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .pearloc-wall-track.pearloc-wall-marquee.is-animating { animation: none; width: auto; }
}

/* ============================================================
   THEME 3 — BLACK & WHITE (minimal monochrome, no gold)
   ============================================================ */
.pearloc-theme-bw {
  --pr-head: var(--pr-sans);
  --pr-bg:        #ffffff;
  --pr-surface:   #f4f4f4;
  --pr-line:      rgba(0,0,0,.12);
  --pr-line-mid:  rgba(0,0,0,.26);
  --pr-text:      #0f0f0f;
  --pr-sub:       rgba(15,15,15,.60);
  --pr-muted:     #7a7a7a;
  --pr-gold:      #0f0f0f;
  --pr-gold2:     #333333;
  --pr-star:       #0f0f0f;
  --pr-star-empty: rgba(0,0,0,.16);
  --pr-radius:      6px;
  --pr-card-radius: 8px;
  --pr-btn-bg:   #0f0f0f;
  --pr-btn-fg:   #ffffff;
  --pr-btn-bd:   #0f0f0f;
  --pr-btn-bg-h: #000000;
  --pr-btn-fg-h: #ffffff;
  --pr-dist-track: rgba(0,0,0,.08);
  --pr-row-hover:  rgba(0,0,0,.022);
  --pr-review-text: rgba(15,15,15,.82);
  --pr-shadow:     0 14px 40px -22px rgba(0,0,0,.30);
  --pr-verified-bg: rgba(0,0,0,.06);
  --pr-verified-bd: rgba(0,0,0,.22);
  --pr-sk1: #ededed;
  --pr-sk2: #f6f6f6;
}
.pearloc-theme-bw .pearloc-verified { color: #0f0f0f; }
.pearloc-theme-bw .pearloc-avg-number { background: none; -webkit-text-fill-color: var(--pr-text); color: var(--pr-text); font-weight: 700; }
.pearloc-theme-bw .pearloc-dist-fill { background: #0f0f0f; }
.pearloc-theme-bw .pearloc-empty-title,
.pearloc-theme-bw .pearloc-wall-title,
.pearloc-theme-bw .pearloc-review-name { font-weight: 600; }
.pearloc-theme-bw .pearloc-wall-quote { font-style: normal; }

/* ============================================================
   LOAD MORE
   ============================================================ */
.pearloc-hidden { display: none !important; }
.pearloc-loadmore-wrap { text-align: center; padding: 1.75rem 0 0; }
.pearloc-loadmore {
  background: transparent; border: 1px solid var(--pr-line-mid); color: var(--pr-text);
  padding: .75rem 2.25rem; font-family: var(--pr-sans); font-size: .7rem;
  text-transform: uppercase; letter-spacing: .16em; font-weight: 600; cursor: pointer;
  border-radius: var(--pr-radius); transition: background .25s, color .25s, border-color .25s;
}
.pearloc-loadmore:hover { border-color: var(--pr-text); }

/* ============================================================
   REVIEW MODAL (self-contained write-a-review — works anywhere)
   ============================================================ */
.pearloc-modal { position: fixed; inset: 0; z-index: 100000; display: none; }
.pearloc-modal.is-open { display: flex; padding: 1.5rem; box-sizing: border-box; }
.pearloc-modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.62); }
.pearloc-theme-light .pearloc-modal-overlay,
.pearloc-theme-bw .pearloc-modal-overlay { background: rgba(20,20,20,.5); }
.pearloc-modal-dialog {
  position: relative; margin: auto; z-index: 1;
  background: var(--pr-bg); color: var(--pr-text); font-family: var(--pr-sans);
  width: 100%; max-width: 520px; max-height: calc(100vh - 3rem); overflow-y: auto;
  padding: 2rem 1.75rem; border: 1px solid var(--pr-line);
  border-radius: var(--pr-card-radius); box-shadow: 0 30px 80px -30px rgba(0,0,0,.6);
}
.pearloc-modal-close { position: absolute; top: .6rem; right: .8rem; background: transparent; border: none; font-size: 1.7rem; line-height: 1; color: var(--pr-muted); cursor: pointer; padding: .2rem .4rem; }
.pearloc-modal-close:hover { color: var(--pr-text); }
.pearloc-modal-title { font-family: var(--pr-head); font-weight: 600; font-size: 1.5rem; margin: 0 0 1.25rem; color: var(--pr-text); }
.pearloc-modal-form p { margin: 0 0 1rem; }
.pearloc-modal-form label { display: block; font-size: .66rem; text-transform: uppercase; letter-spacing: .14em; margin-bottom: .4rem; color: var(--pr-muted); font-weight: 600; }
.pearloc-modal-form input[type="text"],
.pearloc-modal-form input[type="email"],
.pearloc-modal-form textarea {
  width: 100%; box-sizing: border-box; background: var(--pr-surface);
  border: 1px solid var(--pr-line); border-radius: var(--pr-radius);
  padding: .7rem .8rem; color: var(--pr-text); font-family: var(--pr-sans);
  font-size: .95rem; line-height: 1.5; outline: none; transition: border-color .2s;
}
.pearloc-theme-dark .pearloc-modal-form input[type="text"],
.pearloc-theme-dark .pearloc-modal-form input[type="email"],
.pearloc-theme-dark .pearloc-modal-form textarea { background: #161616; }
.pearloc-modal-form input:focus, .pearloc-modal-form textarea:focus { border-color: var(--pr-gold); }
.pearloc-modal-form textarea { resize: vertical; min-height: 120px; }
.pearloc-modal-form .pearloc-rating-field { margin-bottom: 1.1rem; }
.pearloc-modal-form .pearloc-consent-field { margin: 0 0 1rem; }
.pearloc-modal-form .pearloc-consent-field label { text-transform: none; letter-spacing: 0; font-weight: 400; }
.pearloc-modal-submit { width: 100%; margin-top: .25rem; box-sizing: border-box; }
.pearloc-modal-msg { display: none; padding: .7rem .9rem; border-radius: var(--pr-radius); margin-bottom: 1rem; font-size: .9rem; line-height: 1.5; }
.pearloc-modal-msg.is-error   { display: block; background: rgba(200,60,60,.12); border: 1px solid rgba(200,60,60,.4); color: #c0392b; }
.pearloc-modal-msg.is-success { display: block; background: rgba(46,125,50,.12); border: 1px solid rgba(46,125,50,.4); color: #2e7d32; }
.pearloc-modal-msg.is-info    { display: block; background: var(--pr-surface); border: 1px solid var(--pr-line-mid); color: var(--pr-text); }
body.pearloc-modal-open { overflow: hidden; }

/* ============================================================
   THEME-PROOFING
   Themes and page builders style every <button>, heading and <img>
   globally — often from a selector stronger than a single class
   (".elementor-kit-N button", ".elementor img"). Re-assert the few
   controls and images those rules would otherwise reshape.
   ============================================================ */
.pearloc-modal .pearloc-modal-close,
.pearloc-modal .pearloc-modal-close:hover,
.pearloc-modal .pearloc-modal-close:focus,
.pearloc-lightbox .pearloc-lightbox-close,
.pearloc-lightbox .pearloc-lightbox-close:hover,
.pearloc-lightbox .pearloc-lightbox-close:focus {
  width: auto; min-width: 0; min-height: 0; margin: 0;
  background: transparent; border: 0; border-radius: 0; box-shadow: none;
  font-weight: 400; line-height: 1; letter-spacing: 0; text-transform: none;
}
.pearloc-modal .pearloc-modal-close { padding: .2rem .4rem; font-size: 1.7rem; color: var(--pr-muted); }
.pearloc-modal .pearloc-modal-close:hover,
.pearloc-modal .pearloc-modal-close:focus { color: var(--pr-text); }
.pearloc-lightbox .pearloc-lightbox-close,
.pearloc-lightbox .pearloc-lightbox-close:hover,
.pearloc-lightbox .pearloc-lightbox-close:focus { padding: .25rem .5rem; font-size: 2rem; color: #fff; }
.pearloc-modal .pearloc-modal-title { padding-right: 2.25rem; font-size: 1.5rem; line-height: 1.25; color: var(--pr-text); }
.pearloc-upload-preview .pearloc-preview-remove { min-width: 0; min-height: 0; padding: 0; line-height: 1; box-shadow: none; }
.pearloc-review-media .pearloc-media-item img,
.pearloc-review-media .pearloc-media-item video,
.pearloc-wall .pearloc-wall-media img { width: 100%; height: 100%; max-width: none; object-fit: cover; }
