/* Villa Reviews integration (1.35.0) - front-end styles, ported from the
   old standalone Villa Reviews plugin with its .vr- classes renamed to
   .vb-review- to match this plugin's own naming (see class-vb-reviews-shortcodes.php). */

.vb-review-notice {
	padding: 12px 16px;
	border-radius: 4px;
	margin-bottom: 16px;
	font-size: 0.95em;
}
.vb-review-notice-success {
	background: #eaf7ee;
	border: 1px solid #b7e4c7;
	color: #1e5631;
}
.vb-review-notice-error {
	background: #fdeceb;
	border: 1px solid #f3b3ae;
	color: #7a1f1a;
}

/* ---- Form ---- */

.vb-review-form-wrap {
	max-width: 640px;
	margin: 0 auto;
}

.vb-review-form-title {
	margin-bottom: 1em;
}

.vb-review-gateway-intro {
	color: #555;
	margin-bottom: 1.2em;
}

/* "Thank You for Staying With Us" title/intro + language switcher (1.38.14),
   shown above the access-code form only on [villa_review_gateway] (the
   generic landing page reached from a review-request email), not on
   [villa_review_form] embedded directly on a villa's own page. */
.vb-review-lang-switch {
	text-align: right;
	font-size: 0.85em;
	margin-bottom: 1em;
	color: #888;
}
.vb-review-lang-switch a {
	color: #555;
	text-decoration: none;
}
.vb-review-lang-switch a:hover {
	text-decoration: underline;
}
.vb-review-lang-switch strong {
	color: #2c3e50;
}
.vb-review-intro {
	margin-bottom: 1.8em;
}
.vb-review-intro-title {
	margin-bottom: 0.6em;
}
.vb-review-intro p {
	color: #444;
	line-height: 1.5;
}

.vb-review-code-form .vb-review-field {
	margin-bottom: 1.1em;
}

/* Admin list-table status badges (Access Codes screen) */
.vb-review-badge {
	display: inline-block;
	padding: 2px 10px;
	border-radius: 10px;
	font-size: 0.85em;
	font-weight: 600;
}
.vb-review-badge-active {
	background: #eaf7ee;
	color: #1e5631;
}
.vb-review-badge-used {
	background: #f1f1f1;
	color: #666;
}

.vb-review-submit-form .vb-review-field {
	margin-bottom: 1.1em;
}

.vb-review-submit-form label {
	display: block;
	font-weight: 600;
	margin-bottom: 0.35em;
}

.vb-review-required {
	color: #c0392b;
	font-weight: 400;
}

.vb-review-submit-form input[type="text"],
.vb-review-submit-form input[type="email"],
.vb-review-submit-form textarea {
	width: 100%;
	box-sizing: border-box;
	padding: 0.6em 0.75em;
	border: 1px solid #d3d3d3;
	border-radius: 4px;
	font-size: 1em;
	background: #fff;
}

.vb-review-submit-form input:focus,
.vb-review-submit-form textarea:focus {
	outline: none;
	border-color: #9aa5ff;
	box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
}

.vb-review-field-hint {
	display: block;
	font-weight: 400;
	font-size: 0.85em;
	color: #767676;
	margin-top: 0.3em;
}

.vb-review-field-row {
	display: flex;
	gap: 16px;
	flex-wrap: wrap;
}
.vb-review-field-half {
	flex: 1 1 200px;
}

.vb-review-rating-field {
	border: none;
	padding: 0;
	margin: 0 0 1.1em 0;
}
.vb-review-rating-field legend {
	font-weight: 600;
	margin-bottom: 0.4em;
	padding: 0;
}

/* CSS-only 5-star rating input */
.vb-review-star-input {
	display: flex;
	flex-direction: row-reverse;
	justify-content: flex-end;
	gap: 4px;
}
.vb-review-star-input input {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}
.vb-review-star-input label {
	font-size: 30px;
	line-height: 1;
	color: #d8d8d8;
	cursor: pointer;
	margin: 0;
	transition: color 0.15s ease;
}
.vb-review-star-input input:checked ~ label,
.vb-review-star-input label:hover,
.vb-review-star-input label:hover ~ label {
	color: #f5a623;
}
.vb-review-star-input input:focus-visible + label {
	outline: 2px solid #667eea;
	outline-offset: 2px;
	border-radius: 2px;
}

.vb-review-submit-btn {
	background: #2c3e50;
	color: #fff;
	border: none;
	border-radius: 4px;
	padding: 0.75em 1.6em;
	font-size: 1em;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.15s ease;
}
.vb-review-submit-btn:hover {
	background: #1a252f;
}

.vb-review-moderation-note {
	font-size: 0.82em;
	color: #888;
	margin-top: 0.75em;
}

/* Honeypot field - hidden from real visitors, left for bots */
.vb-review-hp-wrap {
	position: absolute;
	left: -9999px;
	top: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* ---- Platform scores (Booking.com / Airbnb / VRBO) ---- */

.vb-review-platform-scores {
	max-width: 700px;
	margin: 0 auto 24px auto;
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.vb-review-platform-score-item {
	display: flex;
	align-items: center;
	gap: 8px;
	background: #f7f7f7;
	border: 1px solid #ececec;
	border-radius: 6px;
	padding: 8px 14px;
	font-size: 0.9em;
}

.vb-review-platform-name {
	font-weight: 600;
	color: #2c3e50;
}

.vb-review-platform-stars {
	position: relative;
	display: inline-block;
	font-size: 15px;
	letter-spacing: 1px;
	color: #dcdcdc;
	line-height: 1;
}
.vb-review-platform-stars::before {
	content: '★★★★★';
	position: absolute;
	top: 0;
	left: 0;
	width: var(--vb-review-pct, 0%);
	overflow: hidden;
	white-space: nowrap;
	color: #f5a623;
}

.vb-review-platform-score-value {
	color: #555;
	font-weight: 600;
}

.vb-review-platform-link {
	color: #2c6ecb;
	font-weight: 600;
	font-size: 0.9em;
	text-decoration: underline;
}
.vb-review-platform-link:hover {
	color: #1a4c96;
}

/* ---- Review list ---- */

.vb-review-list {
	max-width: 700px;
	margin: 0 auto;
}

.vb-review-item {
	padding: 20px 0;
	border-bottom: 1px solid #e8e8e8; /* subtle divider between reviews */
}
.vb-review-item:last-child {
	border-bottom: none;
}
.vb-review-item:first-child {
	padding-top: 0;
}

.vb-review-item-title {
	margin: 0 0 0.4em 0;
	font-size: 1.05em;
	font-weight: 700;
	color: #222;
}

.vb-review-stars {
	font-size: 18px;
	letter-spacing: 2px;
	margin-bottom: 0.5em;
}
.vb-review-star-filled {
	color: #f5a623;
}
.vb-review-star-empty {
	color: #dcdcdc;
}

.vb-review-comment {
	margin: 0 0 0.7em 0;
	line-height: 1.6;
	color: #333;
}

.vb-review-author {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	font-size: 0.9em;
	color: #666;
}

.vb-review-initials {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: #2c3e50;
	color: #fff;
	font-weight: 600;
	font-size: 0.85em;
	flex-shrink: 0;
}

.vb-review-location {
	font-style: italic;
}

.vb-review-none,
.vb-review-error {
	color: #767676;
	font-style: italic;
}

/* ---- Pagination ---- */

.vb-review-pagination {
	width: 100%;
	max-width: 700px;
	box-sizing: border-box;
	margin: 20px auto 0 auto;
	display: flex;
	align-items: center;
	gap: 12px;
}

.vb-review-pagination-prev {
	margin-right: auto;
}

.vb-review-pagination-next {
	margin-left: auto;
}

.vb-review-pagination-btn {
	display: inline-block;
	padding: 0.55em 1.3em;
	border-radius: 4px;
	border: 1px solid #2c3e50;
	color: #2c3e50;
	background: #fff;
	text-decoration: none;
	font-weight: 600;
	font-size: 0.9em;
	transition: background 0.15s ease, color 0.15s ease;
}
.vb-review-pagination-btn:hover {
	background: #2c3e50;
	color: #fff;
}
.vb-review-pagination-disabled {
	border-color: #e0e0e0;
	color: #bbb;
	cursor: default;
}
.vb-review-pagination-disabled:hover {
	background: none;
	color: #bbb;
}
