/* ============================================
   HBE REVIEWS — COMPLETE STYLES
   ============================================ */

@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(24px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}


/* ============================================
   SLIM REVIEW BANNER (homepage CTA)
   ============================================ */
.hbe-review-banner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 20px 44px;
}

.hbe-review-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 40%, #0f172a 100%);
  border-radius: 18px;
  padding: 22px 32px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow:
    0 8px 32px rgba(0,0,0,0.25),
    inset 0 1px 0 rgba(255,255,255,0.08);
}

/* Decorative glow blob */
.hbe-review-banner-inner::before {
  content: '';
  position: absolute;
  top: -40px;
  left: -30px;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(219,39,119,0.2) 0%, transparent 70%);
  pointer-events: none;
}

.hbe-review-banner-inner::after {
  content: '';
  position: absolute;
  bottom: -50px;
  right: -20px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(250,204,21,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hbe-rb-left {
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
  z-index: 1;
}

.hbe-rb-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(145deg, #facc15, #f59e0b);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(250,204,21,0.3);
}

.hbe-rb-left strong {
  display: block;
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.hbe-rb-left span {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  display: block;
  margin-top: 1px;
}

.hbe-rb-btn {
  padding: 13px 32px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
  box-shadow: 0 4px 18px rgba(219,39,119,0.35);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  letter-spacing: 0.01em;
}

.hbe-rb-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(219,39,119,0.5);
}


/* ============================================
   MODAL OVERLAY + FORM
   ============================================ */
.hbe-review-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  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: 560px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 32px;
  position: relative;
  animation: hbeModalIn 0.3s ease;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}

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

.hbe-rm-close:hover {
  background: #e5e7eb;
  color: #1a1a1a;
}

.hbe-review-modal h3 {
  font-size: 22px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 4px;
}

.hbe-rm-subtitle {
  font-size: 14px;
  color: #6b7280;
  margin: 0 0 24px;
}

/* ── Form Fields (inside modal) ── */
.hbe-rf-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

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

.hbe-rf-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 6px;
}

.hbe-rf-field input[type="text"],
.hbe-rf-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  font-size: 14px;
  color: #1a1a1a;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: inherit;
  box-sizing: border-box;
}

.hbe-rf-field input:focus,
.hbe-rf-field textarea:focus {
  outline: none;
  border-color: #db2777;
  box-shadow: 0 0 0 3px rgba(219,39,119,0.1);
}

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

.hbe-rf-charcount {
  text-align: right;
  font-size: 11px;
  color: #9ca3af;
  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: 10px;
  max-height: 180px;
  overflow-y: auto;
  z-index: 1000;
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.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: #fdf2f8; }

.hbe-rf-opt-name { font-size: 14px; font-weight: 500; color: #1a1a1a; }
.hbe-rf-opt-city { font-size: 12px; color: #9ca3af; }

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

.hbe-rf-tog-btn {
  flex: 1;
  padding: 12px 14px;
  border: none;
  background: #fff;
  font-size: 14px;
  font-weight: 500;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

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

.hbe-rf-tog-btn.active {
  background: linear-gradient(135deg, #fdf2f8, #fce7f3);
  color: #db2777;
  font-weight: 600;
}

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

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

.hbe-rf-star {
  background: none;
  border: none;
  padding: 3px;
  cursor: pointer;
  transition: transform 0.15s;
}

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

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

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

/* ── Submit ── */
.hbe-rf-submit {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #ec4899, #db2777);
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 14px rgba(219,39,119,0.3);
}

.hbe-rf-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(219,39,119,0.4);
}

.hbe-rf-submit.loading { opacity: 0.7; cursor: not-allowed; }

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

.hbe-rf-success-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #d1fae5, #a7f3d0);
  color: #059669;
  font-size: 24px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}

.hbe-rf-success h4 { font-size: 18px; font-weight: 700; color: #1a1a1a; margin: 0 0 4px; }
.hbe-rf-success p   { font-size: 14px; color: #6b7280; margin: 0 0 18px; }

.hbe-rf-another {
  padding: 10px 24px;
  border: 1.5px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  color: #374151;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.hbe-rf-another:hover { border-color: #db2777; color: #db2777; }


/* ============================================
   REVIEWS CAROUSEL (HOMEPAGE)
   ============================================ */
.hbe-reviews-carousel-section {
  padding: 40px 20px 12px;
  overflow: hidden;
  max-width: 1200px;
  margin: 0 auto;
}

.hbe-reviews-carousel-header {
  text-align: center;
  margin-bottom: 24px;
}

.hbe-reviews-carousel-header h3 {
  font-size: 24px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 4px;
}

.hbe-reviews-carousel-header p {
  font-size: 13px;
  color: #6b7280;
  margin: 0;
}

.hbe-reviews-track-wrap {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 4%, #000 96%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 4%, #000 96%, transparent 100%);
}

.hbe-reviews-track {
  display: flex;
  gap: 16px;
  will-change: transform;
}

.hbe-review-card {
  flex: 0 0 300px;
  background: #fff;
  border: 1px solid #f0f0f0;
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 1px 8px rgba(0,0,0,0.04);
  transition: box-shadow 0.2s;
}

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

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

.hbe-rc-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ec4899, #db2777);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hbe-rc-meta { flex: 1; min-width: 0; }

.hbe-rc-meta strong {
  display: block;
  font-size: 13px;
  color: #1a1a1a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hbe-rc-hotel { font-size: 11px; color: #9ca3af; }

.hbe-rc-stars { display: flex; gap: 1px; flex-shrink: 0; }

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

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

.hbe-rc-text {
  font-size: 13px;
  line-height: 1.55;
  color: #4b5563;
  margin: 0 0 8px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hbe-rc-date { font-size: 11px; color: #b0b0b0; }


/* ============================================
   HOTEL PAGE — REVIEWS SECTION
   ============================================ */
.hbe-hotel-reviews-section h3 {
  font-size: 20px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 20px;
}

.hbe-hr-stats {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  margin-bottom: 28px;
  padding: 20px;
  background: #f9fafb;
  border-radius: 14px;
}

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

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

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

.hbe-hr-avg-stars svg,
.hbe-hr-card-stars svg {
  width: 16px;
  height: 16px;
  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: #6b7280; }

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

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

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

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

.hbe-hr-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #facc15, #eab308);
  border-radius: 4px;
  transition: width 0.4s ease;
}

.hbe-hr-bar-count { font-size: 12px; color: #9ca3af; width: 22px; text-align: left; }

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

.hbe-hr-card {
  background: #fff;
  border: 1px solid #f0f0f0;
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.03);
}

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

.hbe-hr-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ec4899, #db2777);
  color: #fff;
  font-size: 16px;
  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: #1a1a1a; }
.hbe-hr-card-meta span   { font-size: 12px; color: #9ca3af; }

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

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


/* ============================================
   MOBILE RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .hbe-review-banner { padding: 16px 14px 32px; }
  .hbe-review-banner-inner {
    flex-direction: column;
    text-align: center;
    padding: 22px 20px;
    gap: 16px;
  }
  .hbe-rb-left { flex-direction: column; gap: 10px; }
  .hbe-rb-btn { width: 100%; padding: 14px 24px; font-size: 15px; }

  .hbe-review-modal {
    padding: 24px 18px;
    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: 26px; height: 26px; }

  .hbe-review-card { flex: 0 0 260px; padding: 14px; }
  .hbe-reviews-carousel-header h3 { font-size: 20px; }
  .hbe-reviews-carousel-section { padding: 28px 14px 8px; }

  .hbe-hr-stats {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  .hbe-hr-avg {
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
  }
  .hbe-hr-avg-num { font-size: 32px; }
}
