/* ============================================
   HBE REVIEWS v3 — Matches site design system
   Palette: #ff4f87 pink, #0f172a text, #64748b muted,
            #e5e7eb borders, #f8fafc bg, Inter font
   ============================================ */

@keyframes hbeShake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}
.hbe-shake { animation: hbeShake 0.5s ease; border-color: #ef4444 !important; }

@keyframes hbeModalIn {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}


/* ============================================
   REVIEWS SECTION v2 — COMPACT CONTAINER
   ============================================ */
.hbe-reviews-section-v2 {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 40px;
  font-family: Inter, system-ui, sans-serif;
}

.hbe-rv2-container {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  padding: 36px 0 0;
  overflow: hidden;
}

/* ── Header ── */
.hbe-rv2-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 0 32px 24px;
}

.hbe-rv2-header-text h3 {
  font-family: Montserrat, Inter, system-ui, sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 2px;
  letter-spacing: -0.01em;
}

.hbe-rv2-header-text p {
  font-size: 13px;
  color: #64748b;
  margin: 0;
}

.hbe-rv2-stats-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 100px;
  padding: 8px 16px;
  flex-shrink: 0;
}

.hbe-rv2-stats-avg {
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1;
}

.hbe-rv2-stats-stars {
  display: flex;
  gap: 2px;
}

.hbe-rv2-stats-stars svg {
  width: 14px;
  height: 14px;
  fill: #e5e7eb;
  stroke: none;
}

.hbe-rv2-stats-stars svg.filled {
  fill: #facc15;
}

.hbe-rv2-stats-count {
  font-size: 12px;
  color: #64748b;
  font-weight: 500;
  white-space: nowrap;
}

/* ── Tracks ── */
.hbe-rv2-track-wrap {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 3%, #000 97%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 3%, #000 97%, transparent 100%);
  margin-bottom: 12px;
}

.hbe-rv2-track {
  display: flex;
  gap: 14px;
  will-change: transform;
  padding: 0 4px;
}

/* ── Review Card ── */
.hbe-rv2-card {
  flex: 0 0 300px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 20px 18px 16px;
  position: relative;
  transition: box-shadow 0.2s ease;
}

.hbe-rv2-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.hbe-rv2-card-quote {
  font-family: Georgia, serif;
  font-size: 36px;
  line-height: 1;
  color: #ff4f87;
  opacity: 0.18;
  position: absolute;
  top: 10px;
  right: 16px;
  pointer-events: none;
  user-select: none;
}

.hbe-rv2-card-text {
  font-size: 13px;
  line-height: 1.65;
  color: #334155;
  margin: 0 0 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.hbe-rv2-card-bottom {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hbe-rv2-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hbe-rv2-card-info {
  flex: 1;
  min-width: 0;
}

.hbe-rv2-card-info strong {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

.hbe-rv2-card-info span {
  font-size: 11px;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  line-height: 1.3;
}

.hbe-rv2-card-right {
  flex-shrink: 0;
  text-align: right;
}

.hbe-rv2-card-stars {
  display: flex;
  gap: 1px;
  justify-content: flex-end;
  margin-bottom: 1px;
}

.hbe-rv2-card-stars svg {
  width: 12px;
  height: 12px;
  fill: #e5e7eb;
  stroke: none;
}

.hbe-rv2-card-stars svg.filled {
  fill: #facc15;
}

.hbe-rv2-card-date {
  font-size: 10px;
  color: #94a3b8;
}

/* ── CTA Footer (inside container) ── */
.hbe-rv2-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 32px;
  background: #fff;
  border-top: 1px solid #e5e7eb;
  margin-top: 8px;
}

.hbe-rv2-cta-text {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hbe-rv2-cta-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #fff1f6;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hbe-rv2-cta-icon svg {
  width: 18px;
  height: 18px;
}

.hbe-rv2-cta-text strong {
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
  display: block;
  line-height: 1.3;
}

.hbe-rv2-cta-text span {
  font-size: 12px;
  color: #64748b;
  display: block;
}

.hbe-rv2-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 22px;
  border: none !important;
  border-radius: 12px;
  background: #ff4f87 !important;
  color: #fff !important;
  font-family: Inter, system-ui, sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
  -webkit-appearance: none;
  appearance: none;
}

.hbe-rv2-cta-btn svg {
  width: 14px;
  height: 14px;
  transition: transform 0.2s ease;
}

.hbe-rv2-cta-btn:hover {
  background: #e63a73;
  box-shadow: 0 4px 14px rgba(255,79,135,0.3);
}

.hbe-rv2-cta-btn:hover svg {
  transform: translateX(2px);
}


/* ============================================
   MODAL OVERLAY + FORM
   ============================================ */
.hbe-review-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(4px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.hbe-review-modal {
  background: #fff;
  border-radius: 20px;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 28px;
  position: relative;
  animation: hbeModalIn 0.25s ease;
  box-shadow: 0 20px 50px rgba(0,0,0,0.2);
  font-family: Inter, system-ui, sans-serif;
}

/* Reset ALL buttons inside modal to kill theme overrides */
.hbe-review-modal button,
.hbe-review-modal button:focus,
.hbe-review-modal button:active {
  border: none !important;
  outline: none !important;
  box-shadow: none;
  -webkit-appearance: none;
  appearance: none;
}

.hbe-rm-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border: none !important;
  background: #f3f4f6 !important;
  border-radius: 50% !important;
  font-size: 20px;
  line-height: 1;
  color: #6b7280;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  padding: 0;
}

.hbe-rm-close:hover {
  background: #e5e7eb !important;
  color: #0f172a;
}

.hbe-review-modal h3 {
  font-family: Montserrat, Inter, system-ui, sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 4px;
}

.hbe-rm-subtitle {
  font-size: 13px;
  color: #64748b;
  margin: 0 0 22px;
}

/* ── Form Fields ── */
.hbe-rf-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.hbe-rf-field {
  margin-bottom: 16px;
}

.hbe-rf-field label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hbe-rf-field input[type="text"],
.hbe-rf-field textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid #e5e7eb !important;
  border-radius: 12px;
  font-size: 14px;
  color: #0f172a;
  background: #f9fafb;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  font-family: Inter, system-ui, sans-serif;
  box-sizing: border-box;
}

.hbe-rf-field input[type="text"]:focus,
.hbe-rf-field textarea:focus {
  outline: none !important;
  border-color: #ff4f87 !important;
  box-shadow: 0 0 0 3px rgba(255,79,135,0.08);
  background: #fff;
}

.hbe-rf-field input[type="text"]::placeholder,
.hbe-rf-field textarea::placeholder {
  color: #94a3b8;
}

.hbe-rf-field textarea {
  resize: vertical;
  min-height: 80px;
}

.hbe-rf-charcount {
  text-align: right;
  font-size: 11px;
  color: #94a3b8;
  margin-top: 4px;
}

/* ── Hotel Dropdown ── */
.hbe-rf-select-wrap {
  position: relative;
}

.hbe-rf-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1.5px solid #e5e7eb;
  border-radius: 12px;
  max-height: 170px;
  overflow-y: auto;
  z-index: 1000;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.hbe-rf-dropdown.open { display: block; }

.hbe-rf-option {
  padding: 10px 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.15s;
}

.hbe-rf-option:hover { background: #fff1f6; }

.hbe-rf-opt-name { font-size: 13px; font-weight: 500; color: #0f172a; }
.hbe-rf-opt-city { font-size: 11px; color: #94a3b8; }

/* ── Stay Type Toggle ── */
.hbe-rf-toggle {
  display: flex;
  gap: 0;
  border: 1.5px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  background: #f9fafb;
}

.hbe-rf-tog-btn {
  flex: 1;
  padding: 11px 12px;
  border: none !important;
  background: transparent !important;
  font-size: 13px;
  font-weight: 500;
  color: #64748b;
  cursor: pointer;
  transition: all 0.2s;
  font-family: Inter, system-ui, sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.hbe-rf-tog-btn:first-child { border-right: 1.5px solid #e5e7eb !important; }

.hbe-rf-tog-btn.active {
  background: #fff1f6 !important;
  color: #ff4f87;
  font-weight: 600;
}

.hbe-rf-tog-btn:hover:not(.active) {
  background: #f1f5f9 !important;
}

/* ── Star Rating ── */
.hbe-rf-stars {
  display: flex;
  gap: 6px;
  align-items: center;
  padding: 4px 0;
}

.hbe-rf-star {
  background: none !important;
  border: none !important;
  padding: 0 !important;
  margin: 0;
  cursor: pointer;
  transition: transform 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.hbe-rf-star:hover {
  transform: scale(1.15);
}

.hbe-rf-star svg {
  width: 28px;
  height: 28px;
  stroke: #cbd5e1;
  fill: none;
  transition: fill 0.15s, stroke 0.15s;
}

.hbe-rf-star.active svg,
.hbe-rf-star.hover svg {
  fill: #facc15;
  stroke: #eab308;
}

/* ── Submit Button ── */
.hbe-rf-submit {
  width: 100%;
  padding: 13px 20px;
  border: none !important;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 600;
  color: #fff !important;
  background: #ff4f87 !important;
  cursor: pointer;
  transition: all 0.2s;
  font-family: Inter, system-ui, sans-serif;
  margin-top: 4px;
}

.hbe-rf-submit:hover {
  background: #e63a73 !important;
  box-shadow: 0 4px 16px rgba(255,79,135,0.3);
  transform: translateY(-1px);
}

.hbe-rf-submit.loading {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

/* ── Success ── */
.hbe-rf-success { text-align: center; padding: 28px 10px; }

.hbe-rf-success-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #dcfce7;
  color: #16a34a;
  font-size: 22px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}

.hbe-rf-success h4 { font-size: 17px; font-weight: 700; color: #0f172a; margin: 0 0 4px; }
.hbe-rf-success p   { font-size: 13px; color: #64748b; margin: 0 0 16px; }

.hbe-rf-another {
  padding: 9px 20px;
  border: 1.5px solid #e5e7eb !important;
  border-radius: 10px;
  background: #fff !important;
  color: #374151 !important;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  font-family: Inter, system-ui, sans-serif;
}

.hbe-rf-another:hover { border-color: #ff4f87 !important; color: #ff4f87 !important; }


/* ============================================
   HOTEL PAGE — REVIEWS SECTION
   ============================================ */
.hbe-hotel-reviews-section h3 {
  font-family: Montserrat, Inter, system-ui, sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 18px;
}

.hbe-hr-stats {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 24px;
  padding: 18px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
}

.hbe-hr-avg { text-align: center; min-width: 80px; }

.hbe-hr-avg-num {
  display: block;
  font-size: 36px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1;
}

.hbe-hr-avg-stars {
  display: flex;
  justify-content: center;
  gap: 2px;
  margin: 5px 0 3px;
}

.hbe-hr-avg-stars svg,
.hbe-hr-card-stars svg {
  width: 15px;
  height: 15px;
  fill: #e5e7eb;
  stroke: none;
}

.hbe-hr-avg-stars svg.filled,
.hbe-hr-card-stars svg.filled {
  fill: #facc15;
}

.hbe-hr-avg-count { font-size: 12px; color: #64748b; }

.hbe-hr-bars { flex: 1; }

.hbe-hr-bar-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 5px;
}

.hbe-hr-bar-label { font-size: 12px; font-weight: 500; color: #374151; width: 24px; text-align: right; }

.hbe-hr-bar-track {
  flex: 1;
  height: 6px;
  background: #e5e7eb;
  border-radius: 3px;
  overflow: hidden;
}

.hbe-hr-bar-fill {
  height: 100%;
  background: #facc15;
  border-radius: 3px;
  transition: width 0.3s ease;
}

.hbe-hr-bar-count { font-size: 11px; color: #94a3b8; width: 20px; text-align: left; }

.hbe-hr-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hbe-hr-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 18px;
}

.hbe-hr-card-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.hbe-hr-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #ff4f87;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hbe-hr-card-meta { flex: 1; }
.hbe-hr-card-meta strong { display: block; font-size: 14px; color: #0f172a; }
.hbe-hr-card-meta span   { font-size: 12px; color: #94a3b8; }

.hbe-hr-card-stars { display: flex; gap: 2px; flex-shrink: 0; }

.hbe-hr-card-text {
  font-size: 14px;
  line-height: 1.6;
  color: #334155;
  margin: 0;
}


/* ============================================
   MOBILE
   ============================================ */
@media (max-width: 768px) {
  .hbe-reviews-section-v2 { padding: 0 14px 28px; margin-top: 20px; }

  .hbe-rv2-container { padding: 28px 0 0; border-radius: 16px; }

  .hbe-rv2-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 0 20px 18px;
  }

  .hbe-rv2-header-text h3 { font-size: 18px; }
  .hbe-rv2-header-text p  { font-size: 12px; }

  .hbe-rv2-stats-pill { padding: 6px 12px; }
  .hbe-rv2-stats-avg { font-size: 15px; }

  .hbe-rv2-track-wrap { margin-bottom: 8px; }
  .hbe-rv2-track { gap: 10px; }

  .hbe-rv2-card {
    flex: 0 0 250px;
    padding: 16px 14px 14px;
    border-radius: 12px;
  }

  .hbe-rv2-card-quote { font-size: 28px; }
  .hbe-rv2-card-text  { font-size: 12px; margin-bottom: 10px; }
  .hbe-rv2-avatar     { width: 28px; height: 28px; font-size: 11px; }

  /* CTA */
  .hbe-rv2-cta {
    flex-direction: column;
    text-align: center;
    padding: 14px 20px;
    gap: 12px;
  }

  .hbe-rv2-cta-text { flex-direction: column; gap: 6px; text-align: center; }

  .hbe-rv2-cta-btn {
    width: 100%;
    justify-content: center;
    padding: 12px 20px;
  }

  /* Modal */
  .hbe-review-modal {
    padding: 22px 16px;
    max-width: 100%;
    border-radius: 16px 16px 0 0;
    max-height: 85vh;
  }
  .hbe-review-modal-overlay { align-items: flex-end; padding: 0; }
  .hbe-rf-row { grid-template-columns: 1fr; gap: 0; }
  .hbe-rf-star svg { width: 24px !important; height: 24px !important; }
  .hbe-rf-star { width: 32px; height: 32px; }

  /* Hotel page reviews */
  .hbe-hr-stats {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }
  .hbe-hr-avg {
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: left;
  }
  .hbe-hr-avg-num { font-size: 28px; }
}

@media (max-width: 480px) {
  .hbe-rv2-card { flex: 0 0 230px; }
}
