/* PPCR Testimonials — form + carousel */

.ppcr-testimonial-form {
	max-width: 36rem;
	margin: 0;
}

.ppcr-testimonial-form__notice {
	margin: 0 0 1rem;
	padding: 0.75rem 1rem;
}

.ppcr-testimonial-form__notice--error {
	border-left: 3px solid currentColor;
}

.ppcr-testimonial-form__field {
	margin: 0 0 1rem;
	border: 0;
	padding: 0;
	min-width: 0;
}

.ppcr-testimonial-form__sublabel {
	display: block;
	margin-bottom: 0.25rem;
	font-weight: 500;
}

.ppcr-testimonial-form__stay-date {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.75rem;
}

.ppcr-testimonial-form__input {
	display: block;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	padding: 0.5rem 0.65rem;
	font: inherit;
}

.ppcr-testimonial-form__input[readonly] {
	opacity: 0.85;
	cursor: default;
	background-color: rgba(0, 0, 0, 0.04);
}

.ppcr-testimonial-form__input--textarea {
	resize: vertical;
	min-height: 8rem;
}

.ppcr-testimonial-form__error {
	margin: 0.35rem 0 0;
	font-size: 0.9em;
	color: #b32d2e;
}

.ppcr-testimonial-form__stars {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.ppcr-testimonial-form__star {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	cursor: pointer;
}

.ppcr-testimonial-form__star input {
	margin: 0;
}

.ppcr-testimonial-form__actions {
	margin-top: 1.25rem;
}

.ppcr-testimonial-form__submit {
	font: inherit;
	cursor: pointer;
	padding: 0.55rem 1.1rem;
}

/* Honeypot: hide from humans, leave in DOM for bots */
.ppcr-testimonial-form__honeypot {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.ppcr-testimonial-form--success {
	max-width: 36rem;
}

/* Collapsible form reveal */

.ppcr-testimonial-form-reveal__button {
	font: inherit;
	cursor: pointer;
	padding: 0.55rem 1.1rem;
	margin-bottom: 0.75rem;
}

.ppcr-testimonial-form-reveal__panel {
	max-height: 0;
	opacity: 0;
	overflow: hidden;
	transition: max-height 0.35s ease, opacity 0.35s ease;
}

.ppcr-testimonial-form-reveal__panel.is-open {
	max-height: 80rem;
	opacity: 1;
}

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

/* Carousel — minimal BEM; inherits theme fonts/colors */

.ppcr-carousel {
	position: relative;
	max-width: 72rem;
	margin: 0;
	padding: 0 2.75rem;
	box-sizing: border-box;
	background: transparent;
	border: 0;
}

.ppcr-carousel__viewport {
	overflow: hidden;
	width: 100%;
}

.ppcr-carousel__track {
	display: flex;
	align-items: stretch;
	gap: var(--ppcr-carousel-card-gap, 0px);
	transition: transform 0.35s ease;
	will-change: transform;
}

.ppcr-carousel__slide {
	/* Account for flex gap so N cards fit exactly in the viewport width. */
	flex: 0 0 calc(
		(100% - (var(--ppcr-carousel-per-view, 1) - 1) * var(--ppcr-carousel-card-gap, 0px))
		/ var(--ppcr-carousel-per-view, 1)
	);
	width: calc(
		(100% - (var(--ppcr-carousel-per-view, 1) - 1) * var(--ppcr-carousel-card-gap, 0px))
		/ var(--ppcr-carousel-per-view, 1)
	);
	max-width: calc(
		(100% - (var(--ppcr-carousel-per-view, 1) - 1) * var(--ppcr-carousel-card-gap, 0px))
		/ var(--ppcr-carousel-per-view, 1)
	);
	min-width: 0;
	box-sizing: border-box;
	padding: 0.25rem 0.35rem;
}

.ppcr-carousel__item {
	margin: 0;
	height: 100%;
	min-width: 0;
	max-width: 100%;
	box-sizing: border-box;
	padding: var(--ppcr-carousel-card-padding, 1rem 1.1rem);
	background: var(--ppcr-carousel-bg, transparent);
	border-color: var(--ppcr-carousel-border-color, transparent);
	border-style: solid;
	border-width: var(--ppcr-carousel-border-width, 0);
	border-radius: var(--ppcr-carousel-border-radius, 0);
	overflow-wrap: anywhere;
	word-break: break-word;
}

.ppcr-carousel__rating {
	margin: 0 0 0.75rem;
	letter-spacing: 0.05em;
	line-height: 1.2;
}

.ppcr-carousel__star {
	opacity: 0.45;
}

.ppcr-carousel__star--filled {
	opacity: 1;
}

.ppcr-carousel__excerpt {
	margin: 0 0 1rem;
	font-family: var(--ppcr-carousel-quote-font-family, inherit);
	font-size: var(--ppcr-carousel-quote-font-size, inherit);
	font-style: var(--ppcr-carousel-quote-font-style, inherit);
	font-weight: var(--ppcr-carousel-quote-font-weight, inherit);
	text-decoration: var(--ppcr-carousel-quote-text-decoration, none);
	overflow-wrap: anywhere;
	word-break: break-word;
}

.ppcr-carousel__excerpt p {
	margin: 0;
	font: inherit;
	text-decoration: inherit;
	overflow-wrap: anywhere;
	word-break: break-word;
}

.ppcr-carousel__author {
	margin: 0 0 0.25rem;
	font-family: var(--ppcr-carousel-author-font-family, inherit);
	font-size: var(--ppcr-carousel-author-font-size, inherit);
	font-style: var(--ppcr-carousel-author-font-style, normal);
	font-weight: var(--ppcr-carousel-author-font-weight, 600);
	text-decoration: var(--ppcr-carousel-author-text-decoration, none);
}

.ppcr-carousel__stay-date {
	margin: 0 0 0.25rem;
	font-size: 0.9em;
	opacity: 0.75;
}

.ppcr-carousel__property {
	margin: 0;
	font-size: 0.95em;
	opacity: 0.85;
}

/*
 * Theme/Elementor button styles often paint large opaque backgrounds on <button>.
 * Keep carets as simple chevrons in the side gutters (outside the cards).
 */
.ppcr-carousel__arrow,
.ppcr-carousel button.ppcr-carousel__arrow,
.ppcr-carousel .ppcr-carousel__arrow.ppcr-carousel__prev,
.ppcr-carousel .ppcr-carousel__arrow.ppcr-carousel__next {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 5;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	margin: 0 !important;
	padding: 0 !important;
	width: 1.75rem !important;
	height: 1.75rem !important;
	min-width: 0 !important;
	min-height: 0 !important;
	max-width: 1.75rem !important;
	max-height: 1.75rem !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	background-color: transparent !important;
	background-image: none !important;
	box-shadow: none !important;
	text-shadow: none !important;
	appearance: none !important;
	-webkit-appearance: none !important;
	font: inherit !important;
	font-size: 1.75rem !important;
	font-weight: 400 !important;
	line-height: 1 !important;
	letter-spacing: 0 !important;
	text-transform: none !important;
	text-decoration: none !important;
	color: #c4a35a !important;
	cursor: pointer;
	opacity: 0.9;
	visibility: visible;
	pointer-events: auto;
}

.ppcr-carousel__arrow:hover,
.ppcr-carousel__arrow:focus,
.ppcr-carousel button.ppcr-carousel__arrow:hover,
.ppcr-carousel button.ppcr-carousel__arrow:focus {
	opacity: 1;
	color: #a8873d !important;
	background: transparent !important;
	background-color: transparent !important;
	box-shadow: none !important;
}

.ppcr-carousel__arrow:focus-visible {
	outline: 2px solid #c4a35a;
	outline-offset: 2px;
}

.ppcr-carousel__arrow span {
	display: block;
	line-height: 1;
	pointer-events: none;
}

.ppcr-carousel__arrow--prev,
.ppcr-carousel__prev.ppcr-carousel__arrow {
	left: 0.15rem;
	right: auto;
}

.ppcr-carousel__arrow--next,
.ppcr-carousel__next.ppcr-carousel__arrow {
	right: 0.15rem;
	left: auto;
}

.ppcr-carousel__arrow:disabled {
	opacity: 0.3;
	cursor: default;
}

.ppcr-carousel--single .ppcr-carousel__arrow,
.ppcr-carousel--single button.ppcr-carousel__arrow,
.ppcr-carousel--single .ppcr-carousel__arrow.ppcr-carousel__prev,
.ppcr-carousel--single .ppcr-carousel__arrow.ppcr-carousel__next {
	display: none !important;
	visibility: hidden !important;
	pointer-events: none !important;
}

.ppcr-carousel-admin-preview .ppcr-carousel {
	max-width: 100%;
}

@media (max-width: 1023px) {
	.ppcr-carousel {
		padding: 0 2.25rem;
	}
}

@media (max-width: 767px) {
	.ppcr-carousel {
		padding: 0 1.75rem;
		max-width: 40rem;
	}
}

/* Reviews list + average — minimal BEM; inherits theme fonts/colors */

.ppcr-reviews {
	margin: 0;
}

.ppcr-reviews__grid {
	display: grid;
	gap: 1.5rem;
	grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr));
}

.ppcr-reviews__card {
	margin: 0;
}

.ppcr-reviews__rating {
	margin: 0 0 0.75rem;
	letter-spacing: 0.05em;
	line-height: 1.2;
}

.ppcr-reviews__star {
	opacity: 0.45;
}

.ppcr-reviews__star--filled {
	opacity: 1;
}

.ppcr-reviews__content {
	margin: 0 0 1rem;
}

.ppcr-reviews__content p {
	margin: 0 0 0.75rem;
}

.ppcr-reviews__content p:last-child {
	margin-bottom: 0;
}

.ppcr-reviews__author {
	margin: 0 0 0.25rem;
	font-weight: 600;
}

.ppcr-reviews__stay-date {
	margin: 0 0 0.25rem;
	font-size: 0.9em;
	opacity: 0.75;
}

.ppcr-reviews__property {
	margin: 0;
	font-size: 0.95em;
	opacity: 0.85;
}

.ppcr-reviews__pagination {
	margin-top: 1.5rem;
}

.ppcr-reviews__pagination .page-numbers {
	display: inline-block;
	margin: 0 0.25rem 0.25rem 0;
}

.ppcr-reviews__average {
	margin: 0;
}

.ppcr-reviews__average-text {
	margin: 0;
	font-weight: 600;
}
