/* Reviews Accordion Section — Styles */

.rva-wrapper { width: 100%; }

.rva-section {
	background-color: #faf6f0;
	width: 100%;
	box-sizing: border-box;
	padding: 50px 60px;
}

.rva-grid {
	display: grid;
	grid-template-columns: 1.65fr 1fr;
	gap: 40px;
	align-items: start;
}

/* ---------------- Filter bar ---------------- */
.rva-filter-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding-bottom: 16px;
	margin-bottom: 20px;
	border-bottom: 1px solid #eee0d0;
}

.rva-count-label {
	font-size: 13px;
	font-weight: 600;
	color: #3a281d;
}

.rva-sort-row {
	display: flex;
	align-items: center;
	gap: 8px;
}

.rva-sort-label {
	font-size: 12px;
	color: #8a8175;
}

.rva-sort-select {
	border: none;
	background: transparent;
	font-size: 13px;
	font-weight: 600;
	color: #3a281d;
	cursor: pointer;
	outline: none;
	-webkit-appearance: none;
	appearance: none;
	padding-right: 4px;
}

/* ---------------- Review cards ---------------- */
.rva-review-list {
	display: flex;
	flex-direction: column;
	gap: 14px;
	margin-bottom: 40px;
}

.rva-review {
	background-color: #ffffff;
	border: 1px solid #eee0d0;
	border-radius: 8px;
	overflow: hidden;
	transition: box-shadow 0.4s ease, transform 0.3s ease;
}

.rva-review:hover {
	box-shadow: 0 16px 34px -16px rgba(165, 97, 58, 0.14);
	transform: translateY(-2px);
}

.rva-review-header {
	width: 100%;
	display: flex;
	align-items: center;
	gap: 16px;
	background: transparent;
	border: none;
	padding: 20px 22px;
	cursor: pointer;
	text-align: left;
	font-family: inherit;
	-webkit-appearance: none;
	appearance: none;
	outline: none;
}

.rva-avatar {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background-color: #a5613a;
	color: #ffffff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 16px;
	flex-shrink: 0;
	overflow: hidden;
}

.rva-avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.rva-header-text {
	display: flex;
	flex-direction: column;
	flex-shrink: 0;
	width: 150px;
}

.rva-name {
	font-size: 14px;
	font-weight: 700;
	color: #3a281d;
}

.rva-date {
	font-size: 11px;
	color: #8a8175;
	margin: 2px 0 4px 0;
}

.rva-stars {
	font-size: 12px;
	color: #c58860;
	letter-spacing: 1px;
}

.rva-header-title {
	flex: 1;
	font-size: 15px;
	font-weight: 600;
	color: #3a281d;
	text-align: left;
}

.rva-toggle {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background-color: #f0ddc9;
	color: #a5613a;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	transition: background-color 0.3s ease, transform 0.3s ease;
}

.rva-toggle-icon {
	font-size: 16px;
	line-height: 1;
	transition: transform 0.35s ease;
}

.rva-review.rva-open .rva-toggle-icon {
	transform: rotate(45deg);
}

.rva-review:hover .rva-toggle {
	background-color: #a5613a;
	color: #ffffff;
}

/* Expand/collapse body — JS sets the exact max-height (measured from real
   content height) on open/close so the transition is always perfectly
   smooth regardless of how much text or how many photos a review has. */
.rva-review-body {
	max-height: 0;
	overflow: hidden;
	opacity: 0;
	transition: max-height 0.45s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s ease;
}

.rva-review.rva-open .rva-review-body {
	opacity: 1;
}

.rva-review-body-inner {
	padding: 0 22px 24px 82px;
}

.rva-review-text {
	font-size: 14px;
	line-height: 1.7;
	color: #5c4d42;
	margin: 0 0 18px 0;
}

.rva-review-photos {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
}

.rva-review-photo {
	width: 130px;
	height: 90px;
	border-radius: 6px;
	overflow: hidden;
	flex-shrink: 0;
}

.rva-review-photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}

.rva-review-photo:hover img {
	transform: scale(1.08);
}

.rva-review.rva-filtered-out {
	display: none;
}

/* ---------------- Help CTA ---------------- */
.rva-help-cta {
	text-align: center;
	padding: 32px;
	background-color: #ffffff;
	border: 1px solid #eee0d0;
	border-radius: 8px;
}

.rva-help-eyebrow {
	font-size: 11px;
	letter-spacing: 1.5px;
	font-weight: 700;
	color: #a5613a;
	text-transform: uppercase;
	margin-bottom: 10px;
}

.rva-help-title {
	font-family: Georgia, 'Times New Roman', serif;
	font-size: 24px;
	font-weight: 400;
	color: #3a281d;
	margin: 0 0 10px 0;
}

.rva-help-desc {
	font-size: 14px;
	line-height: 1.6;
	color: #5c4d42;
	margin: 0 auto 22px auto;
	max-width: 440px;
}

.rva-help-btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	border: 1px solid #3a281d;
	color: #3a281d;
	text-decoration: none !important;
	padding: 14px 28px;
	font-size: 12px;
	letter-spacing: 1.5px;
	font-weight: 700;
	transition: background-color 0.3s ease, color 0.3s ease;
}

.rva-help-btn:hover {
	background-color: #3a281d;
	color: #ffffff;
}

.rva-help-btn-arrow {
	display: inline-block;
	transition: transform 0.3s ease;
}

.rva-help-btn:hover .rva-help-btn-arrow {
	transform: translateX(4px);
}

/* ---------------- Sidebar ---------------- */
.rva-sidebar {
	background-color: #ffffff;
	border: 1px solid #eee0d0;
	border-radius: 8px;
	padding: 32px;
	text-align: center;
}

/* Sticky sidebar: stays in view while the (usually taller) review list
   scrolls past it, and naturally un-sticks once the grid row — bounded by
   whichever column is taller — reaches its end. Requires `align-items:
   start` on the grid (already set above) so the sidebar isn't stretched
   to match the row height, which would leave it nothing to "stick" within. */
.rva-sidebar.rva-sticky {
	position: sticky;
	top: 20px;
}

.rva-overall-title {
	font-size: 13px;
	font-weight: 700;
	color: #3a281d;
	margin-bottom: 6px;
}

.rva-overall-number {
	font-family: Georgia, 'Times New Roman', serif;
	font-size: 56px;
	color: #3a281d;
	line-height: 1;
}

.rva-overall-stars {
	color: #c58860;
	font-size: 16px;
	letter-spacing: 2px;
	margin: 8px 0;
}

.rva-overall-count {
	font-size: 12px;
	color: #8a8175;
	margin-bottom: 24px;
}

.rva-quote {
	display: flex;
	flex-direction: column;
	font-family: 'Brush Script MT', cursive;
	font-style: italic;
	font-size: 20px;
	color: #a5613a;
	line-height: 1.4;
	margin-bottom: 28px;
	padding-bottom: 24px;
	border-bottom: 1px solid #eee0d0;
}

.rva-stats-list {
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin-bottom: 28px;
	text-align: left;
}

.rva-stat-row {
	display: flex;
	align-items: center;
	gap: 14px;
}

.rva-stat-icon {
	width: 36px;
	height: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #a5613a;
	font-size: 16px;
	flex-shrink: 0;
}

.rva-stat-icon svg {
	width: 1em;
	height: 1em;
	fill: currentColor;
}

.rva-stat-value {
	font-size: 15px;
	font-weight: 700;
	color: #3a281d;
}

.rva-stat-label {
	font-size: 12px;
	color: #8a8175;
}

.rva-sidebar-image-wrap {
	position: relative;
	border-radius: 6px;
	overflow: hidden;
	margin-bottom: 20px;
}

.rva-sidebar-image {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4/5;
	object-fit: cover;
	transition: transform 0.6s ease;
}

.rva-sidebar-image-wrap:hover .rva-sidebar-image {
	transform: scale(1.06);
}

.rva-sidebar-quote {
	position: absolute;
	left: 16px;
	right: 16px;
	bottom: 16px;
	font-family: 'Brush Script MT', cursive;
	font-style: italic;
	font-size: 15px;
	line-height: 1.4;
	color: #ffffff;
	text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.rva-book-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	background-color: #a5613a;
	color: #ffffff;
	text-decoration: none !important;
	padding: 16px 20px;
	font-size: 12px;
	letter-spacing: 1.5px;
	font-weight: 700;
	box-sizing: border-box;
	transition: background-color 0.3s ease;
}

.rva-book-btn:hover {
	background-color: #7c4527;
}

.rva-book-btn-arrow {
	display: inline-block;
	transition: transform 0.3s ease;
}

.rva-book-btn:hover .rva-book-btn-arrow {
	transform: translateX(4px);
}

/* ---------------- Entrance animation ---------------- */
.rva-wrapper[data-entrance="true"] .rva-entrance-item {
	opacity: 0;
	transform: translateY(20px);
}

.rva-wrapper[data-entrance="true"] .rva-entrance-item.rva-in-view {
	animation-name: rvaFadeUp;
	animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
	animation-fill-mode: forwards;
}

@keyframes rvaFadeUp {
	from { opacity: 0; transform: translateY(20px); }
	to   { opacity: 1; transform: translateY(0); }
}

/* ---------------- Responsive ---------------- */
@media (max-width: 991px) {
	.rva-grid { grid-template-columns: 1fr; }
	.rva-section { padding: 40px 32px; }
	.rva-sidebar.rva-sticky { position: static; }
}

@media (max-width: 600px) {
	.rva-section { padding: 32px 20px; }

	/* The flex-wrap approach didn't reliably force the title onto its own
	   line on narrow screens — a small explicit grid is deterministic
	   regardless of content length. */
	.rva-review-header {
		display: grid;
		grid-template-columns: 44px 1fr auto;
		grid-template-areas:
			"avatar text   toggle"
			"title  title  title";
		align-items: center;
		column-gap: 14px;
		row-gap: 12px;
		padding: 16px;
	}

	.rva-avatar { grid-area: avatar; }

	.rva-header-text {
		grid-area: text;
		width: auto;
		min-width: 0;
	}

	.rva-toggle { grid-area: toggle; }

	.rva-header-title {
		grid-area: title;
		width: auto;
		text-align: left;
		margin-top: 0;
	}

	.rva-review-body-inner { padding: 0 16px 20px 16px; }

	.rva-filter-bar { flex-direction: column; align-items: flex-start; gap: 12px; }

	.rva-sort-row { width: 100%; }

	/* Give the native <select> enough room so its selected option text
	   ("Most Recent", "Highest Rated"...) never gets clipped/truncated. */
	.rva-sort-select {
		flex: 1;
		min-width: 150px;
		width: auto;
	}

	.rva-review-photo {
		width: calc(50% - 6px);
		height: 80px;
	}
}
