/* ── HSB Google Reviews — Frontend Styles ── */

.hsb-gr-wrapper {
	position: relative;
	font-family: inherit;
}

/* ── Header ─────────────────────────────────────────────────────────────── */

.hsb-gr-header {
	text-align: center;
	margin-bottom: 44px;
}

.hsb-gr-header-title {
	font-size: 2rem;
	font-weight: 700;
	margin: 0 0 16px;
	color: #1a1a1a;
	line-height: 1.2;
}

.hsb-gr-overall {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	background: #f8f8f8;
	padding: 10px 20px;
	border-radius: 50px;
}

.hsb-gr-overall-stars {
	display: flex;
	gap: 3px;
}

.hsb-gr-overall-stars .star {
	font-size: 22px;
	color: #F5A623;
	line-height: 1;
}

.hsb-gr-overall-score {
	font-size: 22px;
	font-weight: 700;
	color: #1a1a1a;
	line-height: 1;
}

.hsb-gr-overall-count {
	font-size: 13px;
	color: #777;
}

.hsb-gr-google-wordmark {
	font-size: 14px;
	font-weight: 600;
	background: linear-gradient(90deg, #4285F4 25%, #EA4335 50%, #FBBC05 75%, #34A853 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	letter-spacing: -0.3px;
}

/* ── Card ───────────────────────────────────────────────────────────────── */

.hsb-gr-card {
	background: #ffffff;
	border-radius: 16px;
	padding: 28px;
	box-shadow: 0 6px 28px rgba(0, 0, 0, 0.07);
	display: flex;
	flex-direction: column;
	gap: 18px;
	box-sizing: border-box;
	transition: transform 0.22s ease, box-shadow 0.22s ease;
	height: 100%;
}

.hsb-gr-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 14px 40px rgba(0, 0, 0, 0.11);
}

/* ── Card Top ───────────────────────────────────────────────────────────── */

.hsb-gr-card-top {
	display: flex;
	align-items: center;
	gap: 14px;
}

.hsb-gr-avatar {
	width: 50px;
	height: 50px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
}

.hsb-gr-avatar-initial {
	width: 50px;
	height: 50px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 20px;
	font-weight: 700;
	color: #fff;
	flex-shrink: 0;
	letter-spacing: 0;
}

.hsb-gr-author-info {
	flex: 1;
	min-width: 0;
}

.hsb-gr-author-name {
	display: block;
	font-weight: 600;
	font-size: 15px;
	color: #1a1a1a;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	line-height: 1.3;
}

.hsb-gr-stars {
	display: flex;
	gap: 2px;
	margin-top: 4px;
}

.hsb-gr-star {
	font-size: 15px;
	color: #F5A623;
	line-height: 1;
}

/* Google G badge */
.hsb-gr-g-badge {
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: #fff;
	border: 2px solid #e8e8e8;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	margin-left: auto;
}

.hsb-gr-g-badge span {
	font-size: 16px;
	font-weight: 700;
	background: linear-gradient(135deg, #4285F4, #EA4335, #FBBC05, #34A853);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	line-height: 1;
}

/* ── Review Text ────────────────────────────────────────────────────────── */

.hsb-gr-review-text {
	flex: 1;
}

.hsb-gr-text-short,
.hsb-gr-text-full {
	font-size: 14px;
	line-height: 1.75;
	color: #4a4a4a;
	margin: 0;
}

.hsb-gr-text-full {
	margin-top: 4px;
}

.hsb-gr-no-text {
	color: #bbb;
	font-style: italic;
}

/* Read more / less — native <details>/<summary>, no JS required so it can't
   be broken by scripts being delayed or blocked by performance plugins. */
.hsb-gr-details summary {
	cursor: pointer;
	list-style: none;
}

.hsb-gr-details summary::-webkit-details-marker {
	display: none;
}

.hsb-gr-details summary::marker {
	content: '';
}

.hsb-gr-details[open] .hsb-gr-text-short {
	display: none;
}

.hsb-gr-read-more {
	font-size: 13px;
	color: #4285F4;
	display: inline-block;
	transition: color 0.15s;
}

.hsb-gr-summary:hover .hsb-gr-read-more {
	color: #1a5cc8;
	text-decoration: underline;
}

.hsb-gr-label-less {
	display: none;
}

.hsb-gr-details[open] .hsb-gr-label-more {
	display: none;
}

.hsb-gr-details[open] .hsb-gr-label-less {
	display: inline-block;
}

/* ── Card Footer ────────────────────────────────────────────────────────── */

.hsb-gr-card-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-top: auto;
	padding-top: 14px;
	border-top: 1px solid #f0f0f0;
}

.hsb-gr-date {
	font-size: 12px;
	color: #aaa;
}

.hsb-gr-google-link {
	font-size: 12px;
	color: #4285F4;
	text-decoration: none;
	transition: color 0.15s;
	white-space: nowrap;
}

.hsb-gr-google-link:hover {
	color: #1a5cc8;
	text-decoration: underline;
}

/* ── Grid Layout ────────────────────────────────────────────────────────── */

.hsb-gr-grid {
	display: grid;
	gap: 24px;
}

.hsb-gr-grid-2 { grid-template-columns: repeat(2, 1fr); }
.hsb-gr-grid-3 { grid-template-columns: repeat(3, 1fr); }
.hsb-gr-grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ── List Layout ────────────────────────────────────────────────────────── */

.hsb-gr-list {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.hsb-gr-list .hsb-gr-card {
	flex-direction: row;
	flex-wrap: wrap;
	align-items: flex-start;
}

.hsb-gr-list .hsb-gr-card-top {
	flex: 0 0 220px;
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;
}

.hsb-gr-list .hsb-gr-card-top .hsb-gr-g-badge {
	margin-left: 0;
}

.hsb-gr-list .hsb-gr-review-text {
	flex: 1;
	min-width: 240px;
}

.hsb-gr-list .hsb-gr-card-footer {
	flex: 0 0 100%;
}

/* ── Carousel Layout ────────────────────────────────────────────────────── */

.hsb-gr-carousel-wrap {
	position: relative;
	padding: 0 0 52px;
}

.hsb-gr-swiper {
	overflow: hidden;
}

.hsb-gr-swiper .swiper-wrapper {
	align-items: stretch;
}

.hsb-gr-swiper .swiper-slide {
	height: auto;
	box-sizing: border-box;
}

.hsb-gr-swiper .swiper-slide .hsb-gr-card {
	height: 100%;
}

.hsb-gr-featured-swiper {
	overflow: hidden;
}

.hsb-gr-featured-swiper .swiper-wrapper {
	align-items: stretch;
}

.hsb-gr-featured-swiper .swiper-slide {
	height: auto;
	box-sizing: border-box;
}

.hsb-gr-featured-swiper .swiper-slide .hsb-gr-featured-card {
	height: 100%;
}

/* Navigation Arrows */
.hsb-gr-nav-btn {
	position: absolute;
	top: 50%;
	transform: translateY(calc(-50% - 26px));
	width: 46px;
	height: 46px;
	border-radius: 50%;
	border: 2px solid #1a1a1a;
	background: #ffffff;
	color: #1a1a1a;
	font-size: 20px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 10;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
	line-height: 1;
}

.hsb-gr-nav-btn:hover {
	background: #1a1a1a;
	color: #ffffff;
}

.hsb-gr-prev, .hsb-gr-featured-prev { left: -23px; }
.hsb-gr-next, .hsb-gr-featured-next { right: -23px; }

/* Pagination Dots */
.hsb-gr-pagination,
.hsb-gr-featured-pagination {
	position: absolute;
	bottom: 16px !important;
	left: 0;
	right: 0;
	text-align: center;
}

.hsb-gr-pagination.swiper-pagination-bullets,
.hsb-gr-featured-pagination.swiper-pagination-bullets {
	display: flex;
	justify-content: center;
	gap: 6px;
}

.hsb-gr-pagination .swiper-pagination-bullet,
.hsb-gr-featured-pagination .swiper-pagination-bullet {
	width: 8px;
	height: 8px;
	background: #d0d0d0;
	opacity: 1;
	transition: background-color 0.2s, transform 0.2s;
}

.hsb-gr-pagination .swiper-pagination-bullet-active,
.hsb-gr-featured-pagination .swiper-pagination-bullet-active {
	background: #4285F4;
	transform: scale(1.3);
}

/* ── Empty State ────────────────────────────────────────────────────────── */

.hsb-gr-empty-state {
	padding: 48px 32px;
	text-align: center;
	border: 2px dashed #ddd;
	border-radius: 12px;
	color: #777;
	font-size: 15px;
}

/* ── Responsive ─────────────────────────────────────────────────────────── */

@media (max-width: 1100px) {
	.hsb-gr-grid-4 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
	.hsb-gr-grid-3,
	.hsb-gr-grid-4 { grid-template-columns: repeat(2, 1fr); }

	.hsb-gr-list .hsb-gr-card {
		flex-direction: column;
	}

	.hsb-gr-list .hsb-gr-card-top {
		flex-direction: row;
		flex: auto;
	}
}

@media (max-width: 640px) {
	.hsb-gr-grid-2,
	.hsb-gr-grid-3,
	.hsb-gr-grid-4 { grid-template-columns: 1fr; }

	.hsb-gr-header-title { font-size: 1.5rem; }

	.hsb-gr-prev, .hsb-gr-featured-prev { left: -12px; }
	.hsb-gr-next, .hsb-gr-featured-next { right: -12px; }

	.hsb-gr-nav-btn {
		width: 38px;
		height: 38px;
		font-size: 16px;
	}

	.hsb-gr-overall {
		flex-wrap: wrap;
		justify-content: center;
		gap: 8px;
		padding: 10px 16px;
	}
}

/* ── Featured Reviews Section ───────────────────────────────────────────── */

.hsb-gr-featured-section {
	background: #f8f7f4;
	border-radius: 20px;
	padding: 48px 40px;
	margin-bottom: 56px;
}

.hsb-gr-featured-heading {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 36px;
}

.hsb-gr-featured-title {
	font-size: 1.6rem;
	font-weight: 700;
	color: #1a1a1a;
	margin: 0;
	line-height: 1.2;
}

.hsb-gr-featured-badge {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	background: #1a1a1a;
	color: #ffffff;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	padding: 5px 12px;
	border-radius: 20px;
	white-space: nowrap;
	flex-shrink: 0;
}

.hsb-gr-featured-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}

/* ── Featured Card ──────────────────────────────────────────────────────── */

.hsb-gr-featured-card {
	border: 1px solid #e8e4dc;
	display: flex;
	flex-direction: column;
	gap: 20px;
	padding: 32px;
}

.hsb-gr-featured-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 16px 48px rgba(0, 0, 0, 0.11);
}

.hsb-gr-featured-quote {
	font-size: 52px;
	line-height: 1;
	color: #ddd8d0;
	font-family: Georgia, 'Times New Roman', serif;
	display: block;
	margin-bottom: -12px;
}

.hsb-gr-featured-card .hsb-gr-review-text {
	flex: 1;
}

.hsb-gr-featured-card .hsb-gr-review-text p {
	font-size: 15px;
	line-height: 1.8;
	color: #3a3a3a;
}

.hsb-gr-featured-card-footer {
	margin-top: auto;
	padding-top: 20px;
	border-top: 1px solid #f0ece4;
}

/* ── Featured Responsive ────────────────────────────────────────────────── */

@media (max-width: 960px) {
	.hsb-gr-featured-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.hsb-gr-featured-section {
		padding: 36px 28px;
	}
}

@media (max-width: 640px) {
	.hsb-gr-featured-grid {
		grid-template-columns: 1fr;
	}

	.hsb-gr-featured-section {
		padding: 28px 20px;
		border-radius: 12px;
		margin-bottom: 36px;
	}

	.hsb-gr-featured-title {
		font-size: 1.3rem;
	}
}
