/*
 * Thematic palette. Override these variables to restyle every component.
 * Current values mirror the original ink / parchment / gold palette.
 * Example override in the theme:
 *   .wpgr-wrap, .wpgr-summary { --wpgr-bg: #fff; --wpgr-surface: #f7f7f7; }
 */
:root {
  /* Surfaces & borders */
  --wpgr-bg:            transparent;  /* page/wrap background            (was `--ink` area) */
  --wpgr-bg-alt:        #0a0d16;  /* deepest background              (was `--ink`)      */
  --wpgr-bg-soft:       #131829;  /* subtle raised background        (was `--ink-soft`) */
  --wpgr-surface:       #1c1c1c;  /* card surface                    (was placeholder)  */
  --wpgr-border:        #444;     /* card border                     (was hardcoded)     */

  /* Typography */
  --wpgr-text:          #ffffff;  /* primary text                    (was hardcoded)     */
  --wpgr-text-muted:    #777;     /* muted / secondary text          (was hardcoded)     */
  --wpgr-text-soft:     #e0e0e0;  /* faint text                      (was hardcoded)     */

  /* Accent / highlight */
  --wpgr-accent:        #b08d46;  /* primary accent                  (was `--gold`)      */
  --wpgr-accent-bright: #d9b872;  /* bright accent                   (was `--gold-bright`) */
  --wpgr-accent-soft:   #e0c592;  /* accent-tinted inactive state    (was hardcoded)     */
  --wpgr-accent-rule:   rgba(176, 141, 70, 0.35); /* hairline rule    (was `--rule`)     */

  /* Secondary hue (was `--teal` family) */
  --wpgr-secondary:        #3e6e82;
  --wpgr-secondary-bright: #6fa8bf;

  /* Stars */
  --wpgr-star:         #ffc107;   /* filled star / active            (was hardcoded)     */
  --wpgr-star-empty:   #d3d3d3;   /* empty star                      (was hardcoded)     */

  /* Navigation dots */
  --wpgr-dots:         #d3d3d3;   /* inactive dot                    (was hardcoded)     */
  --wpgr-dots-active:  #e0c592;   /* active dot                      (was hardcoded)     */

  /* Layout */
  --wpgr-max-w:        720px;     /* content max-width               (was `--maxw`)      */
}

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

.wpgr-no-reviews {
  text-align: center;
  padding: 20px;
  font-style: italic;
  color: var(--wpgr-text-muted);
}

/* ── 2-column layout ── */
.wpgr-wrap {
  display: flex;
  align-items: center;
  gap: 40px;
  background: var(--wpgr-bg);
  padding: 1rem;
}

/* ── Left column: summary ── */
.wpgr-summary {
  flex: 0 0 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  background: var(--wpgr-bg);
}

.wpgr-summary > div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.wpgr-avg {
  display: block;
  font-size: 1.68rem;
  font-weight: 700;
  line-height: 1;
  color: var(--wpgr-text);
}

.wpgr-rating-stars {
  position: relative;
  display: inline-block;
  font-size: 24px;
  line-height: 1;
  color: var(--wpgr-text-soft);
}

.wpgr-rating-stars span:last-child {
  position: absolute;
  top: 0;
  left: 0;
  overflow: hidden;
  white-space: nowrap;
  color: var(--wpgr-star);
}

.wpgr-count {
  font-size: 1.1rem;
  color: var(--wpgr-text-muted);
}

/* ── Right column: slider ── */
.wpgr-slider {
  flex: 1;
  min-width: 0;
}

/* equal-height slides */
.wpgr-slider .slick-track {
  display: flex;
}

.wpgr-slider .slick-slide {
  height: auto;
}

.wpgr-slider .slick-slide > div {
  height: 100%;
}

/* ── Review card ── */
.wpgr-item {
  flex-shrink: 0;
  box-sizing: border-box;
  padding: 0 8px 8px 8px;
  height: 100%;
}

.wpgr-card {
  border: 1px solid var(--wpgr-border);
  padding: 16px;
  height: 100%;
  box-sizing: border-box;
}

.wpgr-card > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.wpgr-item-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.wpgr-item-header img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.wpgr-item-header strong {
  display: block;
  font-size: 0.9rem;
}

.wpgr-item-header time {
  display: block;
  font-size: 0.75rem;
  color: var(--wpgr-text-muted);
}

.wpgr-item-stars {
  flex-shrink: 0;
}

.wpgr-card p {
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 480px) {
  .wpgr-card p {
    font-size: 1rem;
  }
}
/* ── Star sprites ── */
.wpgr-star {
  display: inline-block;
  width: 13px;
  height: 13px;
  background-repeat: no-repeat;
  background-size: contain;
  vertical-align: middle;
}

.wpgr-star-full {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23FFC107"><path d="M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z"/></svg>');
}

.wpgr-star-empty {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23D3D3D3"><path d="M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z"/></svg>');
}

/* ── Star usage override ──
 * The sprites above are fixed-color SVGs. To recolor stars with variables,
 * comment them out and use the text-based stars already present in the markup:
 *   .wpgr-star-full  { color: var(--wpgr-star); }
 *   .wpgr-star-empty { color: var(--wpgr-star-empty); }
 */

/* ── Slick dots ── */
.wpgr-slider .slick-dots {
  list-style: none;
  display: flex !important;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin: 12px 0 0;
  padding: 0;
}

.wpgr-slider .slick-dots li {
  width: auto;
  height: auto;
  margin: 0;
}

.wpgr-slider .slick-dots li button {
  display: block;
  width: 10px;
  height: 10px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--wpgr-dots);
  cursor: pointer;
  font-size: 0;
  line-height: 0;
  transition: background 0.2s ease;
}

.wpgr-slider .slick-dots li button:before {
  display: none;
}

.wpgr-slider .slick-dots li.slick-active button {
  background: var(--wpgr-dots-active);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .wpgr-wrap {
    flex-direction: column;
    align-items: stretch;
    padding: 2rem 1rem;
    gap: 25px;
  }

  .wpgr-summary {
    flex: none;
    flex-direction: row;
    justify-content: center;
    text-align: left;
    gap: 24px;
  }
}

@media (max-width: 480px) {
  .wpgr-summary {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
  }
}

.wpgr-summary-tripadvisor {
  width: 100%;
}

.wpgr-summary-tripadvisor span.wpgr-count {
  color: var(--wpgr-text);
  font-size: 16px;
  opacity: 0.7;
}

.wpgr-summary-tripadvisor .wpgr-rating-stars {
  font-size: 20px;
  color: var(--wpgr-text);
}

.wpgr-summary-tripadvisor .wpgr-rating-stars span:last-child {
  color: var(--wpgr-text);
}

.wpgr-summary-tripadvisor .wpgr-avg {
  font-size: 1.38rem;
  color: var(--wpgr-text);
}

.wpgr-summary-tripadvisor img {
  width: 65px;
}
