/* =====================================================
   BEDS24 REVIEWS MODULE — MODERN STYLING
   Uses design system variables from CssBeds24.css
   All classes prefixed with .b24-rev-
   ===================================================== */

/* ── Module Container ─────────────────────────────────── */
.b24-rev-module {
  max-width: 1100px;
  margin: 32px auto;
  padding: 0 16px;
}

/* ── Header ───────────────────────────────────────────── */
.b24-rev-header {
  text-align: center;
  margin-bottom: 28px;
}

.b24-rev-title {
  font-size: 1.6em;
  font-weight: 700;
  color: var(--gray-900, #3d3224);
  margin: 0 0 6px 0;
  letter-spacing: -0.02em;
}

.b24-rev-subtitle {
  font-size: 0.95em;
  color: var(--gray-500, #78716c);
  margin: 0;
}

/* ── Summary Block ────────────────────────────────────── */
.b24-rev-summary {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  background: var(--gray-50, #fafafa);
  border: 1px solid var(--gray-200, #e7e5e4);
  border-radius: var(--radius, 16px);
  padding: 24px 28px;
  margin-bottom: 24px;
}

/* Overall score circle */
.b24-rev-overall {
  text-align: center;
  min-width: 120px;
  flex-shrink: 0;
}

.b24-rev-overall-score {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: var(--radius-sm, 12px);
  font-size: 1.5em;
  font-weight: 800;
  color: #fff;
  margin-bottom: 6px;
}

.b24-rev-overall-label {
  font-size: 0.9em;
  font-weight: 600;
  color: var(--gray-800, #5c4a3a);
  margin-bottom: 2px;
}

.b24-rev-overall-count {
  font-size: 0.78em;
  color: var(--gray-500, #78716c);
}

/* Score color variants */
.b24-rev-score--excellent { background: #003b95; }
.b24-rev-score--very-good { background: #007a3d; }
.b24-rev-score--good { background: #4a8c2a; }
.b24-rev-score--pleasant { background: #d4a017; }
.b24-rev-score--fair { background: #b45309; }

/* Category score bars */
.b24-rev-categories {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.b24-rev-cat-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.b24-rev-cat-label {
  width: 110px;
  font-size: 0.82em;
  color: var(--gray-700, #44403c);
  flex-shrink: 0;
}

.b24-rev-cat-bar {
  flex: 1;
  height: 6px;
  background: var(--gray-200, #e7e5e4);
  border-radius: 3px;
  overflow: hidden;
}

.b24-rev-cat-fill {
  height: 100%;
  background: #003b95;
  border-radius: 3px;
  transition: width 0.5s ease;
}

.b24-rev-cat-score {
  width: 32px;
  text-align: right;
  font-size: 0.82em;
  font-weight: 600;
  color: var(--gray-700, #44403c);
  flex-shrink: 0;
}

/* ── Filters ──────────────────────────────────────────── */
.b24-rev-filters {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.b24-rev-filter {
  padding: 6px 16px;
  border: 1px solid var(--gray-300, #d6d3d1);
  border-radius: 20px;
  background: var(--white, #fff);
  color: var(--gray-700, #44403c);
  font-size: 0.82em;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition, all 0.2s ease);
}

.b24-rev-filter:hover {
  border-color: var(--gray-500, #78716c);
  background: var(--gray-50, #fafafa);
}

.b24-rev-filter--active {
  background: var(--gray-900, #3d3224);
  color: var(--white, #fff);
  border-color: var(--gray-900, #3d3224);
}

.b24-rev-filter--active:hover {
  background: var(--gray-800, #5c4a3a);
  border-color: var(--gray-800, #5c4a3a);
}

/* ── Review Cards ─────────────────────────────────────── */
.b24-rev-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.b24-rev-card {
  background: var(--white, #fff);
  border: 1px solid var(--gray-200, #e7e5e4);
  border-radius: var(--radius-sm, 12px);
  padding: 20px 24px;
  transition: var(--transition, all 0.2s ease);
}

.b24-rev-card:hover {
  box-shadow: var(--shadow-md, 0 4px 12px rgba(0,0,0,0.06));
  border-color: var(--gray-300, #d6d3d1);
}

/* Card header */
.b24-rev-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
  gap: 12px;
}

.b24-rev-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.b24-rev-card-score {
  flex-shrink: 0;
}

/* Source badge */
.b24-rev-source {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  font-size: 0.75em;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}

.b24-rev-source--booking { background: #003b95; }
.b24-rev-source--airbnb { background: #ff385c; }

/* Reviewer info */
.b24-rev-reviewer {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.b24-rev-reviewer-name {
  font-size: 0.9em;
  font-weight: 600;
  color: var(--gray-800, #5c4a3a);
}

.b24-rev-reviewer-country {
  font-size: 0.85em;
  margin-left: 4px;
}

.b24-rev-genius {
  display: inline-block;
  background: #febb02;
  color: #003b95;
  font-size: 0.65em;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-left: 6px;
  vertical-align: middle;
}

.b24-rev-date {
  font-size: 0.78em;
  color: var(--gray-400, #a8a29e);
}

/* Score badge (Booking.com) */
.b24-rev-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 32px;
  padding: 0 8px;
  border-radius: 8px 8px 8px 0;
  font-size: 0.9em;
  font-weight: 700;
  color: #fff;
}

/* Stars (Airbnb) */
.b24-rev-stars {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  color: #ff385c;
}

.b24-rev-star {
  display: inline-block;
  vertical-align: middle;
}

/* Card body */
.b24-rev-card-body {
  font-size: 0.88em;
  color: var(--gray-700, #44403c);
  line-height: 1.55;
}

.b24-rev-headline {
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 1em;
  color: var(--gray-800, #5c4a3a);
}

.b24-rev-comment {
  margin-bottom: 8px;
}

.b24-rev-comment p {
  margin: 4px 0 0 0;
}

.b24-rev-comment-icon {
  font-size: 0.9em;
  margin-right: 4px;
}

.b24-rev-comment-label {
  font-size: 0.78em;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.b24-rev-comment--positive .b24-rev-comment-label { color: #16a34a; }
.b24-rev-comment--negative .b24-rev-comment-label { color: #dc2626; }

/* Reply */
.b24-rev-reply {
  margin-top: 12px;
  padding: 12px 16px;
  background: var(--gray-50, #fafafa);
  border-left: 3px solid var(--gray-300, #d6d3d1);
  border-radius: 0 var(--radius-xs, 8px) var(--radius-xs, 8px) 0;
  font-size: 0.85em;
  color: var(--gray-600, #57534e);
}

.b24-rev-reply-label {
  font-size: 0.78em;
  font-weight: 600;
  color: var(--gray-500, #78716c);
  display: block;
  margin-bottom: 4px;
}

.b24-rev-reply p {
  margin: 0;
  line-height: 1.5;
}

/* ── Footer / Show More ───────────────────────────────── */
.b24-rev-footer {
  text-align: center;
  margin-top: 20px;
}

.b24-rev-show-more {
  padding: 10px 28px;
  border: 1px solid var(--gray-300, #d6d3d1);
  border-radius: var(--radius-xs, 8px);
  background: var(--white, #fff);
  color: var(--gray-800, #5c4a3a);
  font-size: 0.88em;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition, all 0.2s ease);
}

.b24-rev-show-more:hover {
  background: var(--gray-50, #fafafa);
  border-color: var(--gray-500, #78716c);
  box-shadow: var(--shadow, 0 1px 3px rgba(0,0,0,0.06));
}

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 768px) {
  .b24-rev-summary {
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 20px;
  }

  .b24-rev-overall {
    min-width: auto;
  }

  .b24-rev-categories {
    width: 100%;
  }

  .b24-rev-card {
    padding: 16px 18px;
  }

  .b24-rev-cat-label {
    width: 90px;
  }
}

@media (max-width: 480px) {
  .b24-rev-module {
    margin: 20px auto;
    padding: 0 12px;
  }

  .b24-rev-title {
    font-size: 1.3em;
  }

  .b24-rev-summary {
    padding: 16px;
  }

  .b24-rev-overall-score {
    width: 52px;
    height: 52px;
    font-size: 1.2em;
  }

  .b24-rev-card {
    padding: 14px 14px;
  }

  .b24-rev-card-header {
    flex-wrap: wrap;
  }

  .b24-rev-filters {
    gap: 6px;
  }

  .b24-rev-filter {
    padding: 5px 12px;
    font-size: 0.78em;
  }
}
