/* ==========================================================================
   Reviews & Ratings Slider — front-end styles
   ========================================================================== */

.rrs-reviews-section {
	max-width: 1200px;
	margin: 0 auto;
	padding: 48px 20px;
	text-align: center;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.rrs-section-title {
	font-size: 32px;
	font-weight: 800;
	color: #1f2329;
	margin: 0 0 32px;
}

/* ---- Track: grid on desktop ---- */
.rrs-track {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
	text-align: left;
}

/* ---- Card ---- */
.rrs-card {
	background: #fff;
	border: 1px solid #ebebeb;
	border-radius: 16px;
	padding: 20px;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
	display: flex;
	flex-direction: column;
	min-height: 100%;
}

.rrs-card-header {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin-bottom: 6px;
}

.rrs-avatar {
	flex-shrink: 0;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	overflow: hidden;
	border: 2px solid #f5a623;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #fde9c8;
}

.rrs-avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.rrs-avatar-initials {
	font-weight: 700;
	font-size: 14px;
	color: #b5651d;
}

.rrs-header-text {
	display: flex;
	flex-direction: column;
	flex: 1;
	min-width: 0;
}

.rrs-reviewer-name {
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.2px;
	color: #b3261e;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.rrs-views {
	font-size: 12px;
	color: #8a8f98;
	margin-top: 2px;
}

.rrs-rating-block {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	flex-shrink: 0;
	gap: 2px;
}

.rrs-stars {
	display: inline-flex;
	gap: 1px;
	font-size: 14px;
	line-height: 1;
}

.rrs-star-filled { color: #f5a623; }
.rrs-star-empty { color: #e4e4e4; }

.rrs-rating-number {
	font-size: 12px;
	font-weight: 700;
	color: #b3261e;
}

.rrs-card-body {
	flex: 1;
	margin: 10px 0 16px;
}

.rrs-review-text {
	font-size: 14px;
	line-height: 1.6;
	color: #5b5f66;
	margin: 0;
}

.rrs-card-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	border-top: 1px dotted #d8d8d8;
	padding-top: 14px;
	margin-top: auto;
}

.rrs-review-date {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	color: #3a3d42;
	font-weight: 500;
}

.rrs-calendar-icon {
	width: 16px;
	height: 16px;
	color: #b3261e;
	flex-shrink: 0;
}

.rrs-google-logo {
	width: 20px;
	height: auto;
	flex-shrink: 0;
}

.rrs-source-label {
	font-size: 13px;
	font-weight: 600;
	color: #5b5f66;
}

/* ---- View More button ---- */
.rrs-view-more-wrap {
	margin-top: 32px;
	text-align: center;
}

.rrs-view-more-btn {
	display: inline-block;
	padding: 12px 32px;
	border: 1.5px solid #8a1f17;
	color: #8a1f17;
	font-weight: 700;
	font-size: 14px;
	border-radius: 999px;
	text-decoration: none;
	background: transparent;
	transition: background 0.2s ease, color 0.2s ease;
}

.rrs-view-more-btn:hover {
	background: #8a1f17;
	color: #fff;
}

/* ---- Dots (mobile slider pagination) ---- */
.rrs-dots {
	display: none;
	justify-content: center;
	gap: 8px;
	margin-top: 16px;
}

.rrs-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #d8d8d8;
	cursor: pointer;
	transition: background 0.2s ease, transform 0.2s ease;
}

.rrs-dot.is-active {
	background: #8a1f17;
	transform: scale(1.2);
}

.rrs-no-reviews {
	text-align: center;
	color: #8a8f98;
	padding: 40px 0;
}

/* ==========================================================================
   Tablet
   ========================================================================== */
@media (max-width: 900px) {
	.rrs-track {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* ==========================================================================
   Mobile: switch grid to horizontal swipeable slider
   ========================================================================== */
@media (max-width: 600px) {

	.rrs-section-title {
		font-size: 24px;
	}

	.rrs-track {
		display: flex;
		grid-template-columns: none;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		-webkit-overflow-scrolling: touch;
		gap: 14px;
		padding-bottom: 8px;
		/* Hide scrollbar visually while keeping it swipeable */
		scrollbar-width: none;
	}

	.rrs-track::-webkit-scrollbar {
		display: none;
	}

	.rrs-card {
		flex: 0 0 88%;
		scroll-snap-align: center;
	}

	.rrs-dots {
		display: flex;
	}
}
