/* BSS Guesty Sync — imported guest reviews ([bssg_reviews], [bssg_review_badge]). */

.bssg-rv,
.bssg-rv-badge,
.bssg-rv-ticker {
	--bssg-rv-ink: var(--bss-prussian, #192f42);
	--bssg-rv-muted: var(--bss-slate, #5a6b78);
	--bssg-rv-link: var(--bss-lapis, #275789);
	--bssg-rv-line: var(--bss-border, #e3e9ea);
	--bssg-rv-card: var(--bss-white, #fff);
	--bssg-rv-surface: var(--bss-surface, #f3f6f7);
	--bssg-rv-star: #a44a3e;
	--bssg-rv-star-off: #d8e0e3;
	--bssg-rv-radius: var(--bss-radius-card, 20px);
	--bssg-rv-focus: var(--bss-focus-ring, 0 0 0 3px rgba(129, 164, 205, 0.42));
	box-sizing: border-box;
	color: var(--bssg-rv-ink);
}

.bssg-rv *,
.bssg-rv-ticker * {
	box-sizing: border-box;
}

/* A property with no reviews yet shows no review section (body class from
   Reviews\ReviewDisplay::body_class()). */
body.bssg-no-reviews .bssg-reviews-section {
	display: none !important;
}

/* Section head ----------------------------------------------------------- */

.bssg-rv {
	scroll-margin-top: 120px;
	width: 100%;
}

.bssg-rv__head {
	align-items: flex-end;
	display: flex;
	flex-wrap: wrap;
	gap: 12px 24px;
	margin: 0 0 20px;
}

.bssg-rv__title {
	color: inherit;
	flex: 1 1 auto;
	font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
	font-weight: 600;
	line-height: 1.15;
	margin: 0;
	width: 100%;
}

.bssg-rv__summary {
	align-items: center;
	color: var(--bssg-rv-muted);
	display: flex;
	flex: 1 1 auto;
	flex-wrap: wrap;
	font-size: 0.9375rem;
	gap: 6px 8px;
	margin: 0;
}

.bssg-rv__summary strong {
	color: var(--bssg-rv-ink);
	font-size: 1.0625rem;
}

.bssg-rv__nav {
	display: flex;
	gap: 8px;
	margin-left: auto;
}

.bssg-rv .bssg-rv__arrow,
.bssg-rv .bssg-rv__arrow:hover,
.bssg-rv .bssg-rv__arrow:focus {
	align-items: center;
	background: var(--bssg-rv-card);
	border: 1px solid var(--bssg-rv-line);
	border-radius: 999px;
	box-shadow: none;
	color: var(--bssg-rv-ink);
	cursor: pointer;
	display: inline-flex;
	height: 44px;
	justify-content: center;
	margin: 0;
	min-height: 44px;
	padding: 0;
	transition: background-color 160ms ease, border-color 160ms ease;
	width: 44px;
}

.bssg-rv .bssg-rv__arrow:hover {
	background: var(--bssg-rv-surface);
	border-color: var(--bssg-rv-link);
}

.bssg-rv .bssg-rv__arrow:focus-visible {
	box-shadow: var(--bssg-rv-focus);
	outline: none;
}

.bssg-rv .bssg-rv__arrow[disabled] {
	cursor: default;
	opacity: 0.4;
}

/* Track ------------------------------------------------------------------ */

.bssg-rv__track {
	display: grid;
	gap: 16px;
}

.bssg-rv--grid .bssg-rv__track {
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.bssg-rv--carousel .bssg-rv__track {
	grid-auto-columns: minmax(280px, calc((100% - 32px) / 3));
	grid-auto-flow: column;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	padding: 4px 2px 12px;
	scroll-padding-inline: 2px;
	scroll-snap-type: x mandatory;
	scrollbar-width: thin;
}

.bssg-rv--carousel .bssg-rv__track:focus-visible {
	border-radius: 12px;
	box-shadow: var(--bssg-rv-focus);
	outline: none;
}

@media (max-width: 1024px) {
	.bssg-rv--carousel .bssg-rv__track {
		grid-auto-columns: minmax(260px, calc((100% - 16px) / 2));
	}
}

@media (max-width: 640px) {
	.bssg-rv--carousel .bssg-rv__track {
		grid-auto-columns: 86%;
	}

	.bssg-rv__nav {
		display: none;
	}
}

/* Card ------------------------------------------------------------------- */

.bssg-rv-card {
	background: var(--bssg-rv-card);
	border: 1px solid var(--bssg-rv-line);
	border-radius: var(--bssg-rv-radius);
	display: flex;
	flex-direction: column;
	gap: 12px;
	min-width: 0;
	padding: 20px;
	scroll-snap-align: start;
}

.bssg-rv-card__top {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 8px 12px;
	justify-content: space-between;
}

.bssg-rv .bssg-rv-card__text {
	border: 0;
	color: var(--bssg-rv-ink);
	font-size: 0.9875rem;
	font-style: normal;
	line-height: 1.55;
	margin: 0;
	padding: 0;
	quotes: none;
}

.bssg-rv .bssg-rv-card__text::before,
.bssg-rv .bssg-rv-card__text::after {
	content: none;
}

.bssg-rv-card__text p {
	margin: 0;
}

.bssg-rv-card__text.is-clamped p {
	-webkit-box-orient: vertical;
	display: -webkit-box;
	-webkit-line-clamp: 6;
	overflow: hidden;
}

.bssg-rv .bssg-rv-card__more,
.bssg-rv .bssg-rv-card__more:hover,
.bssg-rv .bssg-rv-card__more:focus {
	align-self: flex-start;
	background: transparent;
	border: 0;
	box-shadow: none;
	color: var(--bssg-rv-link);
	cursor: pointer;
	font: inherit;
	font-size: 0.875rem;
	font-weight: 600;
	margin: -4px 0 0;
	min-height: 44px;
	padding: 0;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.bssg-rv .bssg-rv-card__more:focus-visible {
	border-radius: 6px;
	box-shadow: var(--bssg-rv-focus);
	outline: none;
}

.bssg-rv-card__foot {
	border-top: 1px solid var(--bssg-rv-line);
	color: var(--bssg-rv-muted);
	display: flex;
	flex-direction: column;
	font-size: 0.875rem;
	gap: 4px;
	margin-top: auto;
	padding-top: 12px;
}

.bssg-rv-card__who strong {
	color: var(--bssg-rv-ink);
	font-weight: 600;
}

.bssg-rv-card__who time::before {
	content: "· ";
}

/* Stars, channel chip, links --------------------------------------------- */

.bssg-rv-stars {
	color: var(--bssg-rv-star-off);
	display: inline-block;
	flex: none;
	line-height: 0;
	position: relative;
	vertical-align: middle;
	white-space: nowrap;
}

.bssg-rv-stars svg {
	display: block;
	flex: none;
}

.bssg-rv-stars__fill {
	color: var(--bssg-rv-star);
	inset: 0 auto 0 0;
	overflow: hidden;
	position: absolute;
}

.bssg-rv-source {
	align-items: center;
	color: var(--bssg-rv-muted);
	display: inline-flex;
	font-size: 0.8125rem;
	font-weight: 500;
	gap: 6px;
	white-space: nowrap;
}

.bssg-rv-logo {
	display: inline-block;
	flex: none;
	vertical-align: middle;
}

.bssg-rv-logo--text {
	font-weight: 700;
}

.bssg-rv-card__stay a,
.bssg-rv-badge__stay a,
.bssg-rv-link {
	color: var(--bssg-rv-link);
	font-weight: 600;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.bssg-rv-link {
	align-items: center;
	display: inline-flex;
	font-size: 0.875rem;
	gap: 4px;
	min-height: 24px;
}

.bssg-rv-card__stay a:focus-visible,
.bssg-rv-badge a:focus-visible,
.bssg-rv-link:focus-visible {
	border-radius: 4px;
	box-shadow: var(--bssg-rv-focus);
	outline: none;
}

/* Loop-item badge ([bssg_review_badge] inside the testimonial loop item) --- */

.bssg-rv-badge {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	font-family: inherit;
	font-size: 0.8125rem;
	gap: 6px 14px;
	line-height: 1.4;
}

.bssg-rv-badge__stay {
	align-items: center;
	color: rgba(25, 47, 66, 0.66);
	display: inline-flex;
	font-size: 0.75rem;
	gap: 6px;
}

.bssg-rv-badge__pin {
	color: var(--bss-vista, #81a4cd);
	flex: none;
}

.bssg-rv-badge__stay a {
	color: var(--bssg-rv-ink);
	font-weight: 600;
}

.bssg-rv-badge__date {
	color: var(--bssg-rv-muted);
	font-size: 0.75rem;
}

.bssg-rv-badge .bssg-rv-link {
	font-size: 0.75rem;
	min-height: 24px;
}

/* Footer strip ----------------------------------------------------------- */

.bssg-rv-ticker {
	align-items: center;
	display: flex;
	gap: 8px;
	overflow: hidden;
	position: relative;
	width: 100%;
}

.bssg-rv-ticker__track {
	display: flex;
	flex: 1 1 auto;
	min-width: 0;
	overflow: hidden;
}

.bssg-rv-ticker__list {
	animation: bssg-rv-scroll var(--bssg-rv-duration, 400s) linear infinite;
	backface-visibility: hidden;
	display: flex;
	will-change: transform;
	flex: none;
	gap: 0;
	list-style: none;
	margin: 0;
	padding: 0;
}

.bssg-rv-ticker:hover .bssg-rv-ticker__list,
.bssg-rv-ticker:focus-within .bssg-rv-ticker__list {
	animation-play-state: paused;
}

.bssg-rv-tick__item {
	flex: none;
	margin: 0;
	padding: 0 28px 0 0;
}

.bssg-rv-tick__item > a,
.bssg-rv-tick__item > span {
	align-items: center;
	color: inherit;
	display: inline-flex;
	font-size: 0.875rem;
	gap: 8px;
	min-height: 44px;
	text-decoration: none;
	white-space: nowrap;
}

.bssg-rv-tick__item > a:hover .bssg-rv-tick__quote {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.bssg-rv-tick__item > a:focus-visible {
	border-radius: 6px;
	box-shadow: var(--bssg-rv-focus);
	outline: none;
}

.bssg-rv-tick__score {
	font-weight: 700;
}

.bssg-rv-tick__quote {
	font-style: italic;
}

.bssg-rv-tick__who {
	opacity: 0.8;
}

.bssg-rv-tick__logo {
	display: inline-flex;
}

@keyframes bssg-rv-scroll {
	from {
		transform: translate3d(0, 0, 0);
	}

	to {
		transform: translate3d(-100%, 0, 0);
	}
}

@media (prefers-reduced-motion: reduce) {
	.bssg-rv-ticker__track {
		overflow-x: auto;
	}

	.bssg-rv-ticker__list {
		animation: none;
	}

	.bssg-rv-ticker__list[aria-hidden="true"] {
		display: none;
	}
}

/* Long testimonials in the site's testimonial loop item (text widget with the
   class `testimonial-readmore`) are capped at five lines with a fade and a
   "Read more" toggle, so one long review never stretches every card. */
.testimonial-readmore.bssg-rm-clamped {
	/* Only the last line fades; the widget's own 30px bottom margin would
	   push Read more away from the text, so it is dropped while clamped. */
	-webkit-mask-image: linear-gradient(180deg, #000 calc(100% - 1.6em), transparent 100%);
	mask-image: linear-gradient(180deg, #000 calc(100% - 1.6em), transparent 100%);
	margin-bottom: 0 !important;
	max-height: calc(1.55em * 5);
	overflow: hidden;
}

.testimonial-readmore.bssg-rm-clamped.is-open {
	-webkit-mask-image: none;
	mask-image: none;
	max-height: none;
}

.bssg-rm-toggle,
.bssg-rm-toggle:hover,
.bssg-rm-toggle:focus {
	align-items: center;
	align-self: flex-start;
	background: transparent;
	border: 0;
	border-radius: 6px;
	box-shadow: none;
	color: var(--bss-lapis, #275789);
	cursor: pointer;
	display: inline-flex;
	font-family: inherit;
	font-size: 0.875rem;
	font-weight: 600;
	gap: 4px;
	line-height: 1.2;
	margin: -12px 0 6px;
	min-height: 44px;
	padding: 0;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.bssg-rm-toggle:focus-visible {
	box-shadow: var(--bss-focus-ring, 0 0 0 3px rgba(129, 164, 205, 0.42));
	outline: none;
}
