.property-ratings {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  margin: 24px 0 4px;
}
.property-rating-card {
  min-width: 0;
  min-height: 106px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid #dce5e1;
  border-radius: 13px;
  background: #fbfdfc;
  color: #263c48;
  text-align: left;
}
button.property-rating-card { cursor: pointer; transition: border-color .18s, background .18s, transform .18s, box-shadow .18s; }
button.property-rating-card:hover { border-color: #8fc4b8; background: #f3faf7; transform: translateY(-1px); box-shadow: 0 6px 16px #183e3510; }
.property-rating-copy { min-width: 0; }
.property-rating-copy small { display: block; margin-bottom: 3px; color: var(--accent); font-size: 9px; font-weight: 800; letter-spacing: 1.2px; }
.property-rating-copy strong { display: block; overflow: hidden; color: #243944; font-size: 12px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.property-rating-score { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 8px; color: #687984; font-size: 10px; }
.property-rating-score b { color: #3f4d55; }
.contact-rating { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; width: 100%; margin: 0 0 14px; padding: 10px 12px; border: 1px solid #e2eae6; border-radius: 10px; background: #fbfdfc; color: #687984; text-align: left; font-size: 12px; }
button.contact-rating { cursor: pointer; }
button.contact-rating:hover { border-color: #8fc4b8; background: #f3faf7; }
.contact-rating b { color: #3f4d55; }
.contact-rating-action { color: var(--accent2); font-weight: 650; }
.contact-rating-unavailable { color: #7a8983; font-size: 11px; }
.public-profile-info { flex: 1; min-width: 0; }
.public-profile .public-profile-person { margin: 0 0 4px; color: #60786c; font-size: 13px; }
.contact .contact-person { margin-top: -8px; color: #687984; font-size: 12px; }
.public-profile-rating { width: fit-content; max-width: 100%; min-height: 44px; margin: 12px 0 0; }
.rating-stars { --rating-width: 0%; position: relative; display: inline-block; flex: 0 0 auto; color: #d9dfdc; font-size: 16px; line-height: 1; letter-spacing: 1px; white-space: nowrap; }
.rating-stars-fill { position: absolute; inset: 0 auto 0 0; width: var(--rating-width); overflow: hidden; color: #d99a22; }
.rating-stars-large { font-size: 23px; }

.review-dialog { width: min(720px, calc(100% - 28px)); max-height: min(86vh, 820px); padding: 0; border: 0; border-radius: 20px; background: #fff; color: #192c38; box-shadow: 0 24px 70px #152b2740; overflow: hidden; }
.review-dialog:not([open]) { display: none; }
.review-dialog::backdrop { background: #10282299; backdrop-filter: blur(4px); }
.review-dialog-panel { max-height: min(86vh, 820px); overflow-y: auto; overscroll-behavior: contain; }
.review-dialog-header { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; gap: 20px; padding: 23px 25px 19px; border-bottom: 1px solid #e6ece9; background: #fffffff5; backdrop-filter: blur(10px); }
.review-dialog-header span { color: var(--accent); font-size: 9px; font-weight: 800; letter-spacing: 1.5px; }
.review-dialog-header h2 { margin: 5px 0 2px; font-size: 22px; letter-spacing: -.5px; }
.review-dialog-header p { margin: 0; color: #6c7a83; font-size: 11px; }
.review-dialog-close { width: 36px; height: 36px; flex: 0 0 36px; padding: 0; border: 1px solid #dce5e1; border-radius: 50%; background: #f8faf9; color: #52646c; font-size: 24px; line-height: 1; cursor: pointer; }
.review-dialog-close:hover { background: var(--soft); color: var(--accent2); }
.review-dialog-summary { display: flex; align-items: center; gap: 17px; margin: 24px 25px 0; padding: 18px 20px; border: 1px solid #e2eae6; border-radius: 14px; background: linear-gradient(135deg, #fbfdfc, #f0f8f5); }
.review-dialog-summary>strong { color: #203b33; font-size: 37px; line-height: 1; }
.review-dialog-summary p { margin: 5px 0 0; color: #687984; font-size: 11px; }
.review-feedback { margin: 14px 25px 0; padding: 11px 13px; border-radius: 9px; background: #eaf7f0; color: #256244; font-size: 12px; }
.review-feedback.is-error { background: #fff0f1; color: #9b3441; }
.review-comments, .review-compose { padding: 24px 25px; }
.review-comments h3, .review-compose h3 { margin: 0 0 16px; font-size: 16px; }
.review-comments-list { display: grid; gap: 11px; }
.review-comment { padding: 15px 16px; border: 1px solid #e4ebe8; border-radius: 12px; background: #fff; }
.review-comment header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.review-comment header strong { display: block; color: #2a4149; font-size: 12px; }
.review-comment time { display: block; margin-top: 2px; color: #86928d; font-size: 9px; }
.review-comment p { margin: 10px 0 0; color: #5f7078; font-size: 12px; line-height: 1.65; overflow-wrap: anywhere; }
.review-empty { margin: 0; padding: 20px; border: 1px dashed #cedbd5; border-radius: 11px; color: #72827a; font-size: 12px; text-align: center; }
.review-compose { border-top: 1px solid #e6ece9; background: #fafcfb; }
.review-score-field { margin: 0 0 17px; padding: 0; border: 0; }
.review-score-field legend, .review-compose form>label { display: block; margin-bottom: 7px; color: #3b554b; font-size: 11px; font-weight: 700; }
.review-stars-input { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; }
.review-stars-input input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.review-stars-input label { color: #d8dfdc; font-size: 31px; line-height: 1; cursor: pointer; transition: color .12s, transform .12s; }
.review-stars-input input:checked ~ label, .review-stars-input label:hover, .review-stars-input label:hover ~ label { color: #d99a22; }
.review-stars-input input:focus-visible + label { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.review-stars-input label:hover { transform: scale(1.08); }
.review-compose textarea { display: block; width: 100%; min-height: 105px; resize: vertical; padding: 12px 13px; border: 1px solid #dce5e1; border-radius: 10px; background: #fff; color: #263c48; font: inherit; font-size: 13px; line-height: 1.55; }
.review-compose textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--soft); }
.review-compose-footer { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: 12px; }
.review-compose-footer small { color: #7a8982; font-size: 10px; }
.review-compose-footer button, .review-login { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 9px 15px; border: 0; border-radius: 9px; background: var(--accent); color: #fff; font-weight: 700; font-size: 12px; cursor: pointer; }
.review-compose-footer button:hover, .review-login:hover { background: var(--accent2); }
.review-compose-notice { margin: 0 0 13px; color: #687984; font-size: 12px; }
body:has(.review-dialog[open]) { overflow: hidden; }

.theme-car .property-rating-card, .theme-car .contact-rating { border-color: #dce3f0; background: #f9fbff; }
.theme-car button.property-rating-card:hover, .theme-car button.contact-rating:hover { border-color: #9db1ec; background: var(--soft); }
.theme-car .review-dialog::backdrop { background: #14234299; }
.theme-car .review-dialog-summary { border-color: #dce3f0; background: linear-gradient(135deg, #fbfcff, var(--soft)); }
.theme-car .review-dialog-summary>strong { color: #293d67; }
.theme-car .review-compose { background: #f9fbff; }
.theme-car .review-score-field legend, .theme-car .review-compose form>label { color: #3e5279; }

@media(max-width:540px) {
  .property-ratings { grid-template-columns: 1fr; }
  .property-rating-card { min-height: 96px; }
  .review-dialog { width: calc(100% - 18px); max-height: 92vh; border-radius: 16px; }
  .review-dialog-panel { max-height: 92vh; }
  .review-dialog-header { padding: 19px 18px 16px; }
  .review-dialog-header h2 { font-size: 19px; }
  .review-dialog-summary { margin: 18px 18px 0; padding: 15px; }
  .review-comments, .review-compose { padding: 21px 18px; }
  .review-comment header { display: block; }
  .review-comment .rating-stars { margin-top: 7px; }
  .review-compose-footer { align-items: stretch; flex-direction: column; }
  .review-compose-footer button { width: 100%; }
}
