/* ====================================================================
   Rentz Reviews — public CSS
   Scoped under .rr-* and section IDs so Porto's global rules don't bleed in.
   Brand orange:  #EE6B2D
   Body text:     #1d2327
   Muted:         #65676b
   Hairline:      #e6e6e6
   ==================================================================== */

.rr-account-wrap, .rr-property-section, .rr-account-wrap * {
  font-family: 'DM Sans', system-ui, sans-serif;
  box-sizing: border-box;
}

/* Stars ----------------------------------------------------------- */
.rr-stars { letter-spacing: 1px; font-size: 16px; line-height: 1; color: #d4d4d4; }
.rr-stars-orange { color: #EE6B2D; }

/* Buttons --------------------------------------------------------- */
.rr-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 16px; border-radius: 10px;
  font-weight: 700; font-size: 14px;
  text-decoration: none !important;
  border: 1px solid transparent; cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.rr-btn-primary   { background: #EE6B2D; color: #fff !important; }
.rr-btn-primary:hover { background: #D85C20; }
.rr-btn-secondary { background: #fff; color: #1d2327 !important; border-color: #d1d5db; }
.rr-btn-secondary:hover { background: #f7f7f7; }
.rr-btn-danger    { background: #fff; color: #b91c1c !important; border-color: #fecaca; }
.rr-btn-danger:hover { background: #fef2f2; }
.rr-btn-link      { background: transparent; color: #65676b !important; }
.rr-btn-link:hover { color: #1d2327 !important; }
.rr-btn-sm        { padding: 8px 14px; font-size: 13px; }

/* ============ My Account: My Reviews ============================== */
.rr-account-wrap { color: #1d2327; }
.rr-page-title { font-size: 24px; font-weight: 700; margin: 0 0 8px; }
.rr-intro { color: #65676b; font-size: 14px; margin: 0 0 24px; max-width: 640px; }

.rr-back {
  display: inline-flex; align-items: center; gap: 4px;
  color: #65676b !important; font-size: 13px;
  text-decoration: none !important; margin-bottom: 14px;
}
.rr-back:hover { color: #EE6B2D !important; }

.rr-empty {
  text-align: center; padding: 48px 24px;
  background: #fafafa; border: 1px dashed #e6e6e6; border-radius: 14px;
}
.rr-empty-icon { font-size: 36px; margin-bottom: 12px; }
.rr-empty h3 { margin: 0 0 6px; font-size: 17px; font-weight: 700; color: #1d2327; }
.rr-empty p { margin: 0 0 18px; color: #65676b; font-size: 14px; }
.rr-empty-section { padding: 28px 18px; }

/* Stays list */
.rr-stays { display: flex; flex-direction: column; gap: 14px; }
.rr-stay {
  display: grid; grid-template-columns: 140px 1fr; gap: 16px;
  background: #fff; border: 1px solid #ececec; border-radius: 14px;
  overflow: hidden;
}
.rr-stay-thumb {
  display: block; background: #eee center/cover no-repeat;
  min-height: 140px;
}
.rr-stay-body { padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; }
.rr-stay-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.rr-stay-name { font-weight: 700; font-size: 16px; color: #1d2327 !important; text-decoration: none !important; }
.rr-stay-name:hover { color: #EE6B2D !important; }
.rr-order-id { font-size: 12px; color: #9ca3af; }
.rr-stay-dates { font-size: 13px; color: #65676b; }
.rr-stay-myrev { display: flex; align-items: center; gap: 8px; margin-top: 4px; flex-wrap: wrap; }
.rr-rev-title { font-size: 13px; color: #1d2327; font-weight: 600; }
.rr-status-pill {
  display: inline-block;
  padding: 2px 9px; border-radius: 999px;
  font-size: 11px; font-weight: 600;
  border: 1px solid transparent;
}
.rr-status-approved { background: #f0fdf4; color: #166534; border-color: #bbf7d0; }
.rr-status-pending  { background: #fef9c3; color: #854d0e; border-color: #fde68a; }
.rr-status-rejected { background: #fee2e2; color: #991b1b; border-color: #fecaca; }
.rr-stay-actions { margin-top: 8px; display: flex; gap: 8px; }

@media (max-width: 640px) {
  .rr-stay { grid-template-columns: 1fr; }
  .rr-stay-thumb { min-height: 160px; }
}

/* ============ Review form ========================================= */
.rr-form-wrap { max-width: 720px; }
.rr-form-prop {
  display: grid; grid-template-columns: 72px 1fr; gap: 14px; align-items: center;
  background: #fafafa; border: 1px solid #ececec; border-radius: 12px;
  padding: 12px; margin: 8px 0 22px;
}
.rr-form-prop-thumb { width: 72px; height: 56px; background: #eee center/cover no-repeat; border-radius: 8px; }
.rr-form-prop-name { font-weight: 700; font-size: 15px; color: #1d2327; }
.rr-form-prop-meta { font-size: 12px; color: #65676b; margin-top: 2px; }

.rr-form { display: flex; flex-direction: column; gap: 22px; }
.rr-field { display: flex; flex-direction: column; gap: 6px; }
.rr-label { font-size: 13px; font-weight: 600; color: #1d2327; }
.rr-required { color: #EE6B2D; }
.rr-hint { font-size: 12px; color: #9ca3af; }

.rr-form input[type=text], .rr-form textarea {
  width: 100%;
  padding: 11px 13px; border: 1px solid #d1d5db; border-radius: 10px;
  font-size: 14px; color: #1d2327; background: #fff;
  font-family: inherit;
}
.rr-form input[type=text]:focus, .rr-form textarea:focus {
  outline: none; border-color: #EE6B2D; box-shadow: 0 0 0 3px rgba(238,107,45,.16);
}
.rr-form textarea { resize: vertical; min-height: 120px; }

/* Star input */
.rr-star-input { display: inline-flex; gap: 4px; }
.rr-star-btn {
  background: transparent; border: none; cursor: pointer;
  font-size: 32px; line-height: 1; color: #d4d4d4;
  padding: 2px 4px; transition: color .12s, transform .12s;
}
.rr-star-btn:hover, .rr-star-btn:focus { color: #EE6B2D; transform: scale(1.07); outline: none; }
.rr-star-btn.is-on { color: #EE6B2D; }

/* Image dropzone */
.rr-dropzone {
  border: 2px dashed #d1d5db; border-radius: 12px;
  padding: 22px; text-align: center;
  background: #fafafa; cursor: pointer;
  transition: border-color .15s, background .15s;
}
.rr-dropzone:hover, .rr-dropzone.is-drag { border-color: #EE6B2D; background: #fff7f2; }
.rr-dropzone-empty { color: #65676b; font-size: 13px; }
.rr-dropzone-icon { font-size: 26px; margin-bottom: 6px; }
.rr-dropzone-hint { font-size: 11.5px; color: #9ca3af; margin-top: 4px; }

.rr-image-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px; margin-top: 10px;
}
.rr-image-tile {
  position: relative; aspect-ratio: 1 / 1; border-radius: 10px; overflow: hidden;
  background: #eee; border: 1px solid #ececec;
}
.rr-image-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rr-image-tile.is-uploading::after {
  content: ''; position: absolute; inset: 0;
  background: rgba(255,255,255,.55) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 50 50"><circle cx="25" cy="25" r="20" fill="none" stroke="%23EE6B2D" stroke-width="4" stroke-dasharray="80,200" stroke-linecap="round"><animateTransform attributeName="transform" type="rotate" from="0 25 25" to="360 25 25" dur="0.9s" repeatCount="indefinite"/></circle></svg>') center/32px no-repeat;
}
.rr-image-rm {
  position: absolute; top: 4px; right: 4px; width: 24px; height: 24px;
  border-radius: 50%; border: none; cursor: pointer;
  background: rgba(0,0,0,.65); color: #fff; font-size: 16px; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
}
.rr-image-rm:hover { background: #b91c1c; }

.rr-form-actions { display: flex; gap: 10px; flex-wrap: wrap; padding-top: 4px; }
.rr-form-msg { padding: 10px 14px; border-radius: 10px; font-size: 13.5px; }
.rr-form-msg.is-error   { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.rr-form-msg.is-success { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }

/* ============ Property page: reviews section ===================== */
.rr-property-section {
  max-width: 920px; margin: 32px auto;
  padding: 0 16px;
  color: #1d2327;
}
.rr-section-head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin-bottom: 16px; flex-wrap: wrap;
}
.rr-section-title {
  font-size: 22px; font-weight: 700; margin: 0;
  display: inline-flex; align-items: baseline; gap: 8px;
}
.rr-avg { font-weight: 700; }
.rr-count { color: #65676b; font-weight: 500; font-size: 14px; }

.rr-breakdown { display: grid; gap: 6px; margin-bottom: 22px; max-width: 380px; }
.rr-bd-row { display: grid; grid-template-columns: 32px 1fr 32px; align-items: center; gap: 8px; font-size: 12.5px; color: #65676b; }
.rr-bd-star { color: #1d2327; font-weight: 600; }
.rr-bd-track { height: 8px; background: #f3f3f3; border-radius: 4px; overflow: hidden; }
.rr-bd-fill { display: block; height: 100%; background: #EE6B2D; border-radius: 4px; }
.rr-bd-n { text-align: right; }

.rr-review-list { display: flex; flex-direction: column; gap: 22px; }
.rr-review {
  padding: 18px 0;
  border-bottom: 1px solid #f0f0f0;
}
.rr-review:last-child { border-bottom: none; }
.rr-review-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.rr-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.rr-review-name { font-weight: 700; font-size: 14px; color: #1d2327; display: inline-flex; align-items: center; gap: 6px; }
.rr-verified {
  font-size: 11px; color: #166534; background: #f0fdf4;
  border: 1px solid #bbf7d0; border-radius: 999px;
  padding: 2px 7px; font-weight: 600;
}
.rr-review-meta { font-size: 12.5px; color: #65676b; margin-top: 2px; display: flex; align-items: center; gap: 6px; }
.rr-review-date { color: #9ca3af; }

.rr-review-title { font-size: 15px; font-weight: 700; margin: 6px 0; color: #1d2327; }
.rr-review-body { font-size: 14px; color: #1d2327; line-height: 1.55; }
.rr-review-body p { margin: 0 0 8px; }
.rr-review-body p:last-child { margin-bottom: 0; }

.rr-review-images { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; margin-top: 12px; }
.rr-review-image { display: block; border-radius: 10px; overflow: hidden; background: #eee; aspect-ratio: 1 / 1; }
.rr-review-image img { width: 100%; height: 100%; object-fit: cover; display: block; }

.rr-load-more-wrap { text-align: center; margin-top: 18px; }
