/* CSS for Testimonials Showcase Widget */

.urlp-testimonials-wrapper {
	width: 100%;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	color: #0f172a;
}

/* Header & Summary styles */
.urlp-testimonials-header {
	margin-bottom: 32px;
}

.urlp-testimonials-title {
	font-size: 32px;
	font-weight: 800;
	color: #0b132b;
	margin: 0 0 10px 0;
	line-height: 1.2;
	letter-spacing: -0.025em;
}

.urlp-rating-summary {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}

.urlp-rating-summary-stars {
	display: flex;
	gap: 4px;
}

.urlp-rating-summary-stars svg {
	width: 20px;
	height: 20px;
}

.urlp-rating-summary-text {
	font-size: 15px;
	font-weight: 600;
	color: #64748b;
	line-height: 1;
}

/* Grid Layout */
.urlp-testimonials-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	grid-gap: 24px;
	width: 100%;
}

/* Testimonial Card */
.urlp-testimonial-card {
	background-color: #ffffff;
	border: 1px solid #ede8df;
	border-radius: 24px;
	padding: 40px;
	display: flex;
	flex-direction: column;
	box-shadow: 0 4px 20px rgba(138, 129, 116, 0.03);
	box-sizing: border-box;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	position: relative;
	overflow: hidden;
}

.urlp-testimonial-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 24px rgba(138, 129, 116, 0.06);
	border-color: #d8d2c4;
}

/* Featured Stay Badge */
.urlp-featured-badge {
	position: absolute;
	top: 16px;
	left: 40px;
	background-color: #201b17;
	color: #f5f0eb;
	font-size: 9px;
	font-weight: 700;
	padding: 6px 14px;
	border-radius: 20px;
	letter-spacing: 0.12em;
	line-height: 1;
	z-index: 5;
}

.urlp-testimonial-card.is-featured {
	padding-top: 52px; /* Extra padding to avoid overlaying badge */
}

/* Split Columns */
.urlp-card-columns-split {
	display: flex;
	gap: 40px;
	width: 100%;
}

.urlp-card-left-col {
	flex: 0 0 240px;
	width: 240px;
}

.urlp-card-right-col {
	flex: 1;
}

/* LEFT COLUMN STYLES */
.urlp-left-rating-summary {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 16px;
}

.urlp-card-stars {
	display: flex;
	gap: 4px;
}

.urlp-card-star-icon {
	width: 16px;
	height: 16px;
	flex-shrink: 0;
}

.urlp-card-star-icon.is-filled {
	color: #d0b06a;
	fill: #d0b06a;
}

.urlp-card-star-icon.is-empty {
	color: #cbd5e1;
	fill: none;
}

.urlp-left-rating-score {
	font-family: 'Lora', Georgia, serif;
	font-size: 14px;
	font-weight: 600;
	color: #0f172a;
}

.urlp-left-author-info {
	margin-bottom: 20px;
}

.urlp-left-author-name {
	font-family: 'Lora', Georgia, serif;
	font-size: 20px;
	font-weight: 500;
	color: #0f172a;
	margin: 0 0 4px 0;
	line-height: 1.2;
}

.urlp-left-author-loc {
	font-size: 11px;
	font-weight: 600;
	color: #948b7d;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.urlp-left-stay-table {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 16px;
}

.urlp-left-stay-table td {
	padding: 8px 0;
	font-size: 13px;
	border-bottom: 1px solid #f5f1ea;
}

.urlp-left-stay-table tr:last-child td {
	border-bottom: none;
}

.urlp-stay-label {
	color: #948b7d;
	font-weight: 500;
	text-align: left;
}

.urlp-stay-val {
	color: #0d172a;
	font-weight: 600;
	text-align: right;
}

.urlp-left-divider {
	border: 0;
	border-top: 1px solid #ede8df;
	margin: 16px 0;
}

.urlp-left-subratings-table {
	width: 100%;
	border-collapse: collapse;
}

.urlp-left-subratings-table td {
	padding: 6px 0;
	font-size: 11px;
	vertical-align: middle;
}

.urlp-subrating-label {
	color: #948b7d;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-align: left;
}

.urlp-subrating-stars {
	text-align: right;
}

.urlp-subrating-stars-row {
	display: inline-flex;
	gap: 3px;
	justify-content: flex-end;
}

.urlp-subrating-star-icon {
	width: 12px;
	height: 12px;
}

.urlp-subrating-star-icon.is-filled {
	color: #d0b06a;
	fill: #d0b06a;
}

.urlp-subrating-star-icon.is-empty {
	color: #cbd5e1;
	fill: none;
}

/* RIGHT COLUMN STYLES */
.urlp-right-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 20px;
}

.urlp-right-pill {
	background-color: #eef1eb;
	color: #435b3e;
	font-size: 9px;
	font-weight: 700;
	padding: 6px 12px;
	border-radius: 12px;
	letter-spacing: 0.08em;
	line-height: 1;
}

.urlp-right-quote-icon {
	width: 28px;
	height: 28px;
	fill: #d0b06a;
	margin-bottom: 16px;
	opacity: 0.85;
	display: block;
}

.urlp-right-review-content {
	margin-bottom: 20px;
}

.urlp-right-review-title {
	font-family: 'Lora', Georgia, serif;
	font-size: 22px;
	font-weight: 500;
	color: #0f172a;
	margin: 0 0 12px 0;
	line-height: 1.3;
}

.urlp-right-review-text {
	font-family: 'Lora', Georgia, serif;
	font-size: 16px;
	line-height: 1.75;
	color: #2b3544;
}

.urlp-right-fav-thing {
	font-size: 13px;
	margin-bottom: 20px;
	display: flex;
	align-items: center;
	gap: 8px;
}

.urlp-fav-label {
	color: #948b7d;
	font-style: italic;
}

.urlp-fav-dash {
	color: #cbd5e1;
}

.urlp-fav-val {
	color: #0f172a;
	font-weight: 600;
}

.urlp-right-intents {
	display: flex;
	gap: 16px;
	margin-bottom: 20px;
	flex-wrap: wrap;
}

.urlp-intent-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 10px;
	font-weight: 700;
	color: #948b7d;
	letter-spacing: 0.1em;
}

.urlp-intent-check {
	width: 14px;
	height: 14px;
	color: #65a30d;
}

/* Host Response Box */
.urlp-right-host-response {
	background-color: #f3f6f1;
	border-left: 3px solid #7d9a74;
	border-radius: 12px;
	padding: 20px;
	margin-top: 24px;
}

.urlp-host-response-header {
	font-size: 10px;
	font-weight: 700;
	color: #7d9a74;
	letter-spacing: 0.12em;
	margin-bottom: 8px;
	text-transform: uppercase;
}

.urlp-host-response-text {
	font-family: 'Lora', Georgia, serif;
	font-size: 14px;
	line-height: 1.6;
	color: #475569;
	font-style: italic;
}

/* Responsive Overrides */
@media (max-width: 900px) {
	.urlp-card-columns-split {
		gap: 24px;
	}
	.urlp-card-left-col {
		flex: 0 0 200px;
		width: 200px;
	}
}

@media (max-width: 768px) {
	.urlp-testimonials-grid:not(.urlp-slider-track) {
		grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
		grid-gap: 16px !important;
	}
	
	.urlp-card-columns-split {
		flex-direction: column;
		gap: 24px;
	}
	
	.urlp-card-left-col {
		flex: 1;
		width: 100%;
	}
	
	.urlp-testimonial-card {
		padding: 32px;
	}
}

/* Slider Viewport and Track Layout */
.urlp-testimonials-wrapper.urlp-is-slider {
	position: relative;
	width: 100%;
}

.urlp-slider-viewport {
	overflow: hidden;
	width: 100%;
	position: relative;
	padding: 8px 0; /* padding so card scale/shadow isn't clipped vertically */
	margin: -8px 0;
}

.urlp-testimonials-wrapper.urlp-is-slider .urlp-testimonials-grid {
	display: flex !important;
	flex-wrap: nowrap !important;
	grid-gap: 0 !important;
	gap: var(--urlp-grid-gap, 24px) !important;
	transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
	width: 100%;
	margin: 0;
}

.urlp-testimonials-wrapper.urlp-is-slider .urlp-testimonial-card {
	flex: 0 0 calc((100% - (var(--urlp-columns, 2) - 1) * var(--urlp-grid-gap, 24px)) / var(--urlp-columns, 2)) !important;
	box-sizing: border-box;
}

/* Slider Arrows styling & Theme Bleed Override */
.urlp-testimonials-wrapper .urlp-slider-arrow {
	position: absolute !important;
	top: calc(50% + 16px) !important;
	transform: translateY(-50%) !important;
	width: 44px !important;
	height: 44px !important;
	min-width: 0 !important;
	min-height: 0 !important;
	max-width: none !important;
	max-height: none !important;
	border-radius: 50% !important;
	background: #ffffff !important;
	border: 1px solid #e2e8f0 !important;
	color: #0f172a !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	cursor: pointer !important;
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.05) !important;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease !important;
	z-index: 10 !important;
	padding: 0 !important;
	margin: 0 !important;
	outline: none !important;
	text-indent: 0 !important;
	text-transform: none !important;
	letter-spacing: normal !important;
	line-height: 1 !important;
	box-sizing: border-box !important;
}

.urlp-testimonials-wrapper .urlp-slider-arrow::before,
.urlp-testimonials-wrapper .urlp-slider-arrow::after {
	content: none !important;
	display: none !important;
}

.urlp-testimonials-wrapper .urlp-slider-arrow:hover {
	background: #f8fafc !important;
	border-color: #cbd5e1 !important;
	color: #0b132b !important;
	box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.06) !important;
}

.urlp-testimonials-wrapper .urlp-slider-arrow:active {
	transform: translateY(-50%) scale(0.95) !important;
}

.urlp-testimonials-wrapper .urlp-arrow-prev {
	left: -22px !important;
	right: auto !important;
}

.urlp-testimonials-wrapper .urlp-arrow-next {
	right: -22px !important;
	left: auto !important;
}

.urlp-testimonials-wrapper .urlp-slider-arrow svg {
	width: 20px !important;
	height: 20px !important;
	min-width: 0 !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	display: block !important;
	fill: none !important;
	color: currentColor !important;
	stroke: currentColor !important;
	stroke-width: 2px !important;
}

/* Adjust layout when viewport is too small to avoid arrow clipping */
@media (max-width: 1200px) {
	.urlp-testimonials-wrapper .urlp-arrow-prev {
		left: -10px !important;
	}
	.urlp-testimonials-wrapper .urlp-arrow-next {
		right: -10px !important;
	}
}

@media (max-width: 768px) {
	.urlp-testimonials-wrapper .urlp-slider-arrow {
		width: 36px !important;
		height: 36px !important;
	}
	.urlp-testimonials-wrapper .urlp-arrow-prev {
		left: 4px !important;
	}
	.urlp-testimonials-wrapper .urlp-arrow-next {
		right: 4px !important;
	}
}

/* Slider Dots styling */
.urlp-slider-dots {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 24px;
	width: 100%;
}

.urlp-slider-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background-color: #cbd5e1;
	cursor: pointer;
	transition: all 0.25s ease;
}

.urlp-slider-dot:hover {
	background-color: #94a3b8;
}

.urlp-slider-dot.is-active {
	background-color: #0b132b;
	transform: scale(1.25);
}
