/* Stayly Reviews */

/* Stars */
.stayly-stars { display: inline-flex; gap: 1px; letter-spacing: 0; line-height: 1; }
.stayly-star { color: #fbbf24; font-size: 14px; }
.stayly-star.is-empty { color: #d1d5db; }
.stayly-star.is-half { position: relative; color: #d1d5db; }
.stayly-star.is-half::before {
	content: '★';
	position: absolute; left: 0; top: 0;
	width: 50%; overflow: hidden; color: #fbbf24;
}
.stayly-stars--lg .stayly-star { font-size: 20px; }
.stayly-stars--sm .stayly-star { font-size: 12px; }

/* Card rating badge */
.stayly-card__rating {
	position: absolute; top: 10px; left: 10px;
	background: rgba(255, 255, 255, .95);
	padding: 4px 8px; border-radius: 999px;
	font-size: 12px; font-weight: 700;
	color: #111827;
	display: inline-flex; align-items: center; gap: 4px;
	line-height: 1;
}
.stayly-card__rating-count { color: #6b7280; font-weight: 500; font-size: 11px; }

/* Reviews section */
.stayly-reviews { margin: 32px 0 20px; }
.stayly-reviews__header { margin-bottom: 14px; }
.stayly-reviews__count { color: #6b7280; font-weight: 500; font-size: 16px; }
.stayly-reviews__list { display: grid; gap: 16px; }
.stayly-reviews__empty {
	padding: 20px; text-align: center;
	background: #f9fafb; border-radius: 12px; color: #6b7280;
}
.stayly-reviews__login {
	padding: 16px; margin: 16px 0;
	background: #f9fafb; border: 1px dashed #e5e7eb; border-radius: 10px;
	color: #6b7280; text-align: center; font-size: 14px;
}

/* Review row */
.stayly-review {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	padding: 16px;
}
.stayly-review__head { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; margin-bottom: 10px; }
.stayly-review__avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.stayly-review__author { display: block; font-size: 14px; }
.stayly-review__date { font-size: 12px; color: #6b7280; }
.stayly-review__body { color: #1f2937; font-size: 14px; line-height: 1.55; }
.stayly-review__body p:last-child { margin-bottom: 0; }
.stayly-review__reply {
	margin-top: 12px; padding: 12px 14px;
	background: #f0fdf4; border-left: 3px solid #10b981;
	border-radius: 6px;
	font-size: 13px;
}
.stayly-review__reply strong { display: block; margin-bottom: 4px; color: #065f46; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; }
.stayly-review__reply p { margin: 0; }

/* Submit form */
.stayly-review-form {
	background: #fff; border: 1px solid #e5e7eb; border-radius: 12px;
	padding: 16px; margin-top: 20px;
	display: grid; gap: 12px;
}
.stayly-review-form__title { margin: 0; font-size: 16px; }
.stayly-review-form label { display: grid; gap: 4px; }
.stayly-review-form label > span { font-size: 12px; font-weight: 600; color: #6b7280; }
.stayly-review-form textarea {
	width: 100%; padding: 10px 12px;
	border: 1px solid #e5e7eb; border-radius: 8px;
	font: inherit; background: #fff; color: #111827;
	resize: vertical;
}
.stayly-review-form textarea:focus {
	outline: 2px solid var(--stayly-brand, #0f766e); outline-offset: 1px; border-color: transparent;
}

.stayly-star-picker { display: inline-flex; gap: 4px; }
.stayly-star-picker__btn {
	background: transparent; border: 0; padding: 0;
	font-size: 32px; line-height: 1; cursor: pointer;
	color: #d1d5db;
	transition: color .12s ease, transform .12s ease;
}
.stayly-star-picker__btn:hover,
.stayly-star-picker__btn.is-active { color: #fbbf24; }
.stayly-star-picker__btn:active { transform: scale(1.15); }

.stayly-review-form__message {
	padding: 10px 12px; border-radius: 8px;
	font-size: 13px;
}
.stayly-review-form__message.is-success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.stayly-review-form__message.is-error   { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.stayly-review-form [hidden] { display: none !important; }
