/* =========================================================
 * Hotel Booking Reviews — public styles
 * Palette: white / black / #EFAB03 (accent only, never bg).
 * ========================================================= */

.hbr-frontend {
	--hbr-yellow: #EFAB03;
	--hbr-black: #000000;
	--hbr-white: #ffffff;
	--hbr-soft: #f7f7f7;
	--hbr-line: #000000;
	color: var(--hbr-black);
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
	box-sizing: border-box;
}
.hbr-frontend *,
.hbr-frontend *::before,
.hbr-frontend *::after {
	box-sizing: border-box;
}

/* =========================================================
 * Stars (shared between admin + form + slider)
 * ========================================================= */
.hbr-stars {
	display: inline-flex;
	gap: 2px;
	font-size: 18px;
	line-height: 1;
}
.hbr-star {
	color: rgba(0, 0, 0, 0.18);
	transition: color 200ms ease;
}
.hbr-star.is-filled {
	color: var(--hbr-yellow);
	text-shadow: 0 0 1px var(--hbr-yellow);
}

/* =========================================================
 * Submission form
 * ========================================================= */
.hbr-form-wrap {
	background: var(--hbr-white);
	padding: clamp(24px, 5vw, 48px) clamp(12px, 4vw, 16px);
}
.hbr-form-card {
	max-width: 640px;
	margin: 0 auto;
	background: var(--hbr-white);
	border: 2px solid var(--hbr-black);
	border-radius: 18px;
	padding: clamp(24px, 4vw, 36px) clamp(16px, 4vw, 32px) clamp(20px, 3vw, 32px);
	position: relative;
	overflow: hidden;
}
.hbr-form-card::before {
	content: "";
	position: absolute;
	inset: -2px -2px auto auto;
	width: 120px;
	height: 120px;
	background: var(--hbr-yellow);
	transform: rotate(45deg) translate(50%, -50%);
	transform-origin: top right;
	z-index: 0;
}
.hbr-form-header { position: relative; z-index: 1; }
.hbr-form-eyebrow {
	font-size: 11px;
	letter-spacing: 3px;
	font-weight: 800;
	color: var(--hbr-yellow);
	text-transform: uppercase;
}
.hbr-form-title {
	font-size: clamp(22px, 3vw, 30px);
	margin: 8px 0 6px;
	line-height: 1.2;
	color: var(--hbr-black);
	font-weight: 800;
}
.hbr-form-sub {
	margin: 0 0 24px;
	color: var(--hbr-black);
	opacity: 0.7;
}
.hbr-form-error {
	background: var(--hbr-black);
	color: var(--hbr-yellow);
	border-radius: 10px;
	padding: 10px 14px;
	margin: 0 0 20px;
	font-weight: 600;
	font-size: 14px;
}

/* =========================================================
 * Star rating — Google-style row (outline → solid accent fill)
 * ========================================================= */
.hbr-rate-widget--google {
	flex-direction: column;
	align-items: flex-start;
	gap: 12px;
	margin: 4px 0 24px;
	padding: 0;
	background: none;
	border-radius: 0;
}
.hbr-rate-widget--google .hbr-rate-stars {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	flex-wrap: nowrap;
}
.hbr-rate-widget--google .hbr-rate-star {
	padding: 4px;
	margin: 0 -4px 0 0; /* tighten optical spacing like Google */
	border-radius: 50%;
	cursor: pointer;
	background: transparent;
	border: 0;
	line-height: 0;
	position: relative;
	transition: background-color 0.15s ease;
}
.hbr-rate-widget--google .hbr-rate-star:hover {
	background-color: rgba(0, 0, 0, 0.04);
}
.hbr-rate-widget--google .hbr-rate-star:focus-visible {
	outline: 2px solid var(--hbr-yellow);
	outline-offset: 2px;
	background-color: rgba(239, 171, 3, 0.08);
}
.hbr-rate-widget--google .hbr-rate-svg {
	width: 40px;
	height: 40px;
	display: block;
	transition: transform 0.12s ease;
}
@media (max-width: 480px) {
	.hbr-rate-widget--google .hbr-rate-svg {
		width: 36px;
		height: 36px;
	}
}
/* Outline star (empty) — light gray border, no fill */
.hbr-rate-widget--google .hbr-rate-svg__path {
	fill: var(--hbr-white);
	stroke: #dadce0;
	stroke-width: 1.15;
	stroke-linejoin: round;
	vector-effect: non-scaling-stroke;
	transition: fill 0.15s ease, stroke 0.15s ease;
}
/* Filled stars (selected / hover preview) */
.hbr-rate-widget--google .hbr-rate-star.is-on .hbr-rate-svg__path {
	fill: var(--hbr-yellow);
	stroke: #d4a003;
	stroke-width: 0.85;
}
.hbr-rate-label {
	font-size: 15px;
	font-weight: 400;
	letter-spacing: 0;
	text-transform: none;
	color: #5f6368; /* Google secondary text */
	min-height: 22px;
	line-height: 1.4;
	transition: color 0.15s ease;
}
.hbr-rate-widget--google[data-rating="0"] .hbr-rate-label {
	color: #5f6368;
}
.hbr-rate-widget--google[data-rating="1"] .hbr-rate-label,
.hbr-rate-widget--google[data-rating="2"] .hbr-rate-label {
	color: #5f6368;
}
.hbr-rate-widget--google[data-rating="3"] .hbr-rate-label,
.hbr-rate-widget--google[data-rating="4"] .hbr-rate-label,
.hbr-rate-widget--google[data-rating="5"] .hbr-rate-label {
	color: #202124;
	font-weight: 500;
}
.hbr-rate-widget--google.is-hovering .hbr-rate-label {
	color: #202124;
}
.hbr-rate-widget.is-shake .hbr-rate-stars {
	animation: hbr-shake-soft 0.28s ease;
}
@keyframes hbr-shake-soft {
	0%, 100% { transform: translateX(0); }
	33%      { transform: translateX(-3px); }
	66%      { transform: translateX(3px); }
}
.hbr-rate-config { display: none; }

.hbr-field { margin: 0 0 16px; }
.hbr-field label {
	display: block;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	margin: 0 0 6px;
	color: var(--hbr-black);
}
.hbr-field input[type="text"],
.hbr-field input[type="email"],
.hbr-field textarea {
	width: 100%;
	border: 1.5px solid var(--hbr-black);
	background: var(--hbr-white);
	color: var(--hbr-black);
	font-size: 16px;
	padding: 12px 14px;
	border-radius: 10px;
	font: inherit;
	transition: border-color 150ms ease, box-shadow 150ms ease;
}
.hbr-field input:focus,
.hbr-field textarea:focus {
	outline: none;
	border-color: var(--hbr-yellow);
	box-shadow: 0 0 0 3px rgba(239, 171, 3, 0.25);
}
.hbr-field textarea { resize: vertical; min-height: 120px; }
.hbr-field-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
}
@media (max-width: 540px) {
	.hbr-field-row { grid-template-columns: 1fr; }
}

.hbr-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--hbr-black);
	color: var(--hbr-yellow);
	border: 2px solid var(--hbr-yellow);
	font: inherit;
	font-weight: 800;
	letter-spacing: 1px;
	padding: 14px 30px;
	border-radius: 999px;
	cursor: pointer;
	transition: transform 150ms ease, background 150ms ease, color 150ms ease;
	margin-top: 8px;
}
.hbr-submit:hover {
	background: var(--hbr-yellow);
	color: var(--hbr-black);
	transform: translateY(-2px);
}

/* =========================================================
 * Thank-you / error / empty cards
 * ========================================================= */
.hbr-thankyou,
.hbr-error,
.hbr-empty {
	background: var(--hbr-white);
	padding: clamp(24px, 5vw, 48px) clamp(12px, 4vw, 16px);
}
.hbr-thankyou-card,
.hbr-empty-card {
	max-width: 560px;
	margin: 0 auto;
	background: var(--hbr-white);
	border: 2px solid var(--hbr-black);
	border-radius: 18px;
	padding: clamp(20px, 4vw, 36px);
	text-align: center;
}
.hbr-thankyou-stars,
.hbr-empty-stars {
	font-size: 36px;
	letter-spacing: 6px;
	color: var(--hbr-yellow);
	margin-bottom: 12px;
	animation: hbr-pop 600ms ease-out;
}
@keyframes hbr-pop {
	from { transform: scale(0.6); opacity: 0; }
	to   { transform: scale(1); opacity: 1; }
}
.hbr-thankyou-card h2,
.hbr-empty-card p { margin: 0 0 8px; }

/* =========================================================
 * Slider
 * ========================================================= */
.hbr-slider-section {
	background: var(--hbr-white);
	padding: clamp(32px, 5vw, 64px) clamp(12px, 4vw, 16px);
	color: var(--hbr-black);
}
.hbr-slider-header {
	max-width: 720px;
	margin: 0 auto clamp(20px, 3vw, 36px);
	text-align: center;
}
.hbr-slider-eyebrow {
	font-size: 12px;
	letter-spacing: 4px;
	color: var(--hbr-yellow);
	font-weight: 800;
}
.hbr-slider-title {
	font-size: clamp(26px, 4vw, 42px);
	margin: 8px 0 16px;
	font-weight: 800;
	line-height: 1.15;
	color: var(--hbr-black);
}
.hbr-slider-stat {
	display: inline-flex;
	align-items: baseline;
	gap: 6px;
	border: 2px solid var(--hbr-black);
	padding: 8px 18px;
	border-radius: 999px;
	font-weight: 600;
}
.hbr-slider-avg {
	font-size: 28px;
	font-weight: 800;
	color: var(--hbr-yellow);
}
.hbr-slider-out { opacity: 0.7; }
.hbr-slider-count {
	font-size: 13px;
	opacity: 0.7;
	margin-left: 8px;
}

.hbr-slider {
	position: relative;
	max-width: 880px;
	margin: 0 auto;
	padding: 0 clamp(36px, 6vw, 56px);
}

/* The track is a relatively-positioned area inside which slides are
 * absolutely stacked. We toggle .is-active to fade/zoom one in. */
.hbr-slider-track {
	position: relative;
	min-height: 420px;
}
@media (max-width: 768px) {
	.hbr-slider-track { min-height: 480px; }
}
@media (max-width: 600px) {
	.hbr-slider-track { min-height: 560px; }
	.hbr-slider { padding: 0 32px; }
}
@media (max-width: 400px) {
	.hbr-slider-track { min-height: 620px; }
	.hbr-slider { padding: 0 28px; }
}

.hbr-slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	transform: translateX(40px) scale(0.97);
	transition: opacity 500ms ease, transform 500ms ease;
	pointer-events: none;
}
.hbr-slide.is-active {
	opacity: 1;
	transform: translateX(0) scale(1);
	pointer-events: auto;
	position: relative;
}
.hbr-slide-inner {
	background: var(--hbr-white);
	border: 2px solid var(--hbr-black);
	border-radius: 22px;
	padding: clamp(24px, 4vw, 40px) clamp(18px, 4vw, 36px) clamp(20px, 3vw, 32px);
	position: relative;
	overflow: hidden;
	box-shadow: 12px 12px 0 0 var(--hbr-yellow);
}
@media (max-width: 600px) {
	.hbr-slide-inner { box-shadow: 6px 6px 0 0 var(--hbr-yellow); }
}
@media (max-width: 400px) {
	.hbr-slide-inner { border-radius: 16px; box-shadow: 5px 5px 0 0 var(--hbr-yellow); }
}

.hbr-quote-mark {
	position: absolute;
	top: -28px;
	left: 18px;
	font-family: Georgia, serif;
	font-size: 160px;
	line-height: 1;
	color: var(--hbr-yellow);
	opacity: 0.85;
	pointer-events: none;
	font-weight: 700;
}
.hbr-slide .hbr-stars {
	font-size: 22px;
	margin: 8px 0 14px;
	display: inline-flex;
}
.hbr-slide-title {
	font-size: clamp(20px, 2.5vw, 26px);
	font-weight: 800;
	margin: 0 0 10px;
	color: var(--hbr-black);
}
.hbr-slide-text {
	font-size: clamp(15px, 1.4vw, 17px);
	line-height: 1.65;
	margin: 0 0 22px;
	color: var(--hbr-black);
	font-style: italic;
	border: 0;
	padding: 0;
	quotes: none;
}
.hbr-slide-text::before,
.hbr-slide-text::after { content: ""; }

.hbr-slide-foot {
	display: flex;
	align-items: center;
	gap: 12px;
	border-top: 1px dashed rgba(0, 0, 0, 0.25);
	padding-top: 14px;
}
.hbr-avatar {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--hbr-black);
	color: var(--hbr-yellow);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-weight: 800;
	font-size: 16px;
	border: 2px solid var(--hbr-yellow);
}
.hbr-byline {
	display: flex;
	flex-direction: column;
	line-height: 1.2;
}
.hbr-name { font-size: 15px; }
.hbr-date { font-size: 12px; opacity: 0.6; }

/* Nav arrows */
.hbr-slider-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: clamp(34px, 5vw, 44px);
	height: clamp(34px, 5vw, 44px);
	border-radius: 50%;
	background: var(--hbr-white);
	color: var(--hbr-black);
	border: 2px solid var(--hbr-black);
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: clamp(14px, 2vw, 18px);
	z-index: 3;
	transition: background 150ms ease, color 150ms ease, transform 150ms ease;
}
.hbr-slider-nav:hover {
	background: var(--hbr-yellow);
	color: var(--hbr-black);
	transform: translateY(-50%) scale(1.06);
}
.hbr-slider-prev { left: 0; }
.hbr-slider-next { right: 0; }

/* Dots */
.hbr-slider-dots {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 24px;
}
.hbr-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.25);
	border: 0;
	padding: 0;
	cursor: pointer;
	transition: background 150ms ease, transform 150ms ease;
}
.hbr-dot:hover { transform: scale(1.2); }
.hbr-dot.is-active {
	background: var(--hbr-yellow);
	box-shadow: 0 0 0 3px var(--hbr-black);
}


/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
	.hbr-slide,
	.hbr-slider-nav,
	.hbr-rate-widget--google .hbr-rate-star,
	.hbr-rate-widget--google .hbr-rate-svg,
	.hbr-rate-widget--google .hbr-rate-svg__path,
	.hbr-submit,
	.hbr-thankyou-stars,
	.hbr-rate-widget.is-shake .hbr-rate-stars { transition: none; animation: none; }
}
