/**
 * Testimonials & Trekker Stories Stylesheet
 *
 * @package Brandalay
 * @subpackage Blocks/Testimonials
 */

.testimonials-section {
	width: 100%;
	background-color: #FFFFFF;
	padding: clamp(3.75rem, 5.5vw, 5.5rem) 0;
	box-sizing: border-box;
}

.testimonials-section *,
.testimonials-section *::before,
.testimonials-section *::after {
	box-sizing: border-box;
}

.testimonials-container {
	width: 100%;
	max-width: 1280px;
	margin-left: auto;
	margin-right: auto;
	padding-left: clamp(1rem, 3vw, 2rem);
	padding-right: clamp(1rem, 3vw, 2rem);
	box-sizing: border-box;
}

/* Header Row */
.testimonials-header-row {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: 2rem;
	margin-bottom: clamp(1.75rem, 3vw, 2.35rem);
	flex-wrap: wrap;
}

.testimonials-header-copy {
	max-width: 680px;
}

.testimonials-title {
	font-family: inherit;
	font-size: clamp(2rem, 3.2vw, 2.75rem);
	font-weight: 800;
	color: #0E464E;
	line-height: 1.18;
	letter-spacing: -0.02em;
	margin: 0 0 0.65rem 0;
}

.testimonials-subtitle {
	font-family: inherit;
	font-size: clamp(0.95rem, 1.2vw, 1.05rem);
	color: #64748B;
	line-height: 1.6;
	margin: 0;
}

.testimonials-header-actions {
	display: flex;
	align-items: center;
	gap: 0.85rem;
	flex-shrink: 0;
}

.btn-share-review {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	background-color: #0E464E;
	color: #FFFFFF;
	font-weight: 700;
	font-size: 0.88rem;
	padding: 0.72rem 1.35rem;
	border-radius: 0.55rem;
	text-decoration: none;
	transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.btn-share-review:hover {
	background-color: #09222E;
	color: #FFFFFF;
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(14, 70, 78, 0.25);
}

.testimonials-nav-arrows {
	display: flex;
	gap: 0.45rem;
	align-items: center;
}

.t-nav-btn {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: 1.5px solid #E2E8F0;
	background-color: #FFFFFF;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	color: #64748B;
	transition: all 0.2s ease;
	padding: 0;
}

.t-nav-btn:hover {
	border-color: #0E464E;
	color: #0E464E;
	background-color: #F8FAFC;
}

/* Aggregated Rating Bar */
.testimonials-rating-bar {
	background-color: #ECFDF5;
	border: 1px solid #D1FAE5;
	border-radius: 1rem;
	padding: 0.85rem 1.35rem;
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 1rem;
	margin-bottom: 2.25rem;
}

.rating-bar-left {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.6rem;
}

.rating-stars {
	display: inline-flex;
	gap: 2px;
	color: #F59E0B;
	font-size: 1.15rem;
	line-height: 1;
}

.rating-score-val {
	font-weight: 800;
	font-size: 1.05rem;
	color: #0F172A;
}

.rating-bar-sep {
	color: #94A3B8;
	font-size: 0.9rem;
}

.rating-stories-count {
	font-weight: 500;
	font-size: 0.94rem;
	color: #334155;
}

.rating-bar-right {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	flex-wrap: wrap;
}

.verified-label {
	font-size: 0.85rem;
	font-weight: 600;
	color: #64748B;
}

.verified-source-pill {
	background-color: #FFFFFF;
	border: 1px solid #E2E8F0;
	border-radius: 9999px;
	padding: 0.35rem 0.85rem;
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	font-size: 0.85rem;
	font-weight: 700;
	color: #0F172A;
	text-decoration: none;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
	transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.verified-source-pill:hover {
	transform: translateY(-1px);
	border-color: #CBD5E1;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
	color: #0F172A;
}

.source-pill-icon {
	width: 16px;
	height: 16px;
	object-fit: contain;
	flex-shrink: 0;
}

.source-pill-score {
	font-weight: 700;
	color: #0F172A;
}

.source-pill-count {
	font-weight: 500;
	color: #64748B;
	font-size: 0.82rem;
}

/* Cards Wrapper & Track */
.testimonials-cards-wrapper {
	width: 100%;
	position: relative;
}

.testimonials-cards-track {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1.75rem;
	align-items: stretch;
	overflow-x: auto;
	scroll-behavior: smooth;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
}

.testimonials-cards-track::-webkit-scrollbar {
	display: none;
}

/* Individual Testimonial Card */
.testimonial-card {
	background-color: #FFFFFF;
	border: 1px solid #E2E8F0;
	border-radius: 1.25rem;
	padding: 1.75rem;
	display: flex;
	flex-direction: column;
	box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.04);
	transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
	scroll-snap-align: start;
	min-width: 0;
}

.testimonial-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 12px 30px -4px rgba(15, 23, 42, 0.08);
	border-color: #CBD5E1;
}

/* Card Top Row */
.card-author-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 0.75rem;
	gap: 0.75rem;
}

.author-meta-left {
	display: flex;
	align-items: center;
	gap: 0.85rem;
	min-width: 0;
}

.author-avatar-img {
	width: 46px;
	height: 46px;
	border-radius: 50%;
	object-fit: cover;
	border: 1.5px solid #F1F5F9;
	flex-shrink: 0;
}

.author-avatar-placeholder {
	width: 46px;
	height: 46px;
	border-radius: 50%;
	background: linear-gradient(135deg, #0E464E, #059669);
	color: #FFFFFF;
	font-weight: 800;
	font-size: 1.1rem;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.author-info-text {
	min-width: 0;
}

.author-name {
	font-family: inherit;
	font-size: 1.05rem;
	font-weight: 800;
	color: #0F172A;
	margin: 0 0 0.15rem 0;
	line-height: 1.25;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.author-location-source {
	display: flex;
	align-items: center;
	gap: 0.35rem;
	font-size: 0.82rem;
	color: #64748B;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.location-pin-icon {
	color: #94A3B8;
	flex-shrink: 0;
}

.card-source-logo,
.card-source-svg {
	width: 15px;
	height: 15px;
	object-fit: contain;
	flex-shrink: 0;
	margin-left: 0.2rem;
}

.card-stars-right {
	color: #F59E0B;
	font-size: 0.98rem;
	letter-spacing: 0.08em;
	flex-shrink: 0;
	line-height: 1;
}

/* Guide Metadata */
.card-guide-meta {
	font-size: 0.84rem;
	color: #64748B;
	margin-top: 0.75rem;
	margin-bottom: 0.75rem;
	display: flex;
	align-items: center;
	gap: 0.45rem;
	flex-wrap: wrap;
}

.meta-guided-by strong {
	color: #0F172A;
	font-weight: 700;
}

.meta-sep {
	color: #CBD5E1;
}

/* Review Heading */
.card-review-heading {
	font-family: inherit;
	font-size: 1.15rem;
	font-weight: 800;
	color: #0F172A;
	line-height: 1.35;
	margin: 0 0 0.75rem 0;
	letter-spacing: -0.015em;
}

/* Review Body */
.card-review-body {
	font-size: 0.92rem;
	color: #475569;
	line-height: 1.62;
	margin-bottom: 1.25rem;
	flex-grow: 1;
}

.card-review-body p {
	margin: 0;
}

/* Trail Photos */
.card-trail-photos-wrap {
	margin-top: auto;
	padding-top: 0.85rem;
	border-top: 1px solid #F1F5F9;
}

.photos-heading {
	display: flex;
	align-items: center;
	gap: 0.35rem;
	font-size: 0.78rem;
	font-weight: 700;
	color: #64748B;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	margin-bottom: 0.6rem;
}

.trail-photos-grid {
	display: flex;
	gap: 0.55rem;
	flex-wrap: wrap;
}

.trail-thumb-img {
	width: 60px;
	height: 60px;
	border-radius: 8px;
	object-fit: cover;
	cursor: pointer;
	border: 1px solid #E2E8F0;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.trail-thumb-img:hover {
	transform: scale(1.06);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Photo Lightbox Modal */
.t-photo-modal {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.25s ease, visibility 0.25s ease;
}

.t-photo-modal.is-open {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

.t-photo-modal-backdrop {
	position: absolute;
	inset: 0;
	background-color: rgba(6, 17, 24, 0.88);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
}

.t-photo-modal-dialog {
	position: relative;
	z-index: 10;
	max-width: 90vw;
	max-height: 85vh;
}

.t-photo-modal-close {
	position: absolute;
	top: -44px;
	right: 0;
	background: none;
	border: none;
	color: #FFFFFF;
	cursor: pointer;
	padding: 6px;
	line-height: 1;
	transition: transform 0.2s ease;
}

.t-photo-modal-close:hover {
	transform: scale(1.15);
}

.t-photo-modal-img {
	max-width: 90vw;
	max-height: 85vh;
	border-radius: 0.75rem;
	object-fit: contain;
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* Responsive Rules */
@media (max-width: 860px) {
	.testimonials-section {
		padding: 2.75rem 0;
	}

	.testimonials-container {
		padding-left: 1rem;
		padding-right: 1rem;
	}

	.testimonials-header-row {
		flex-direction: column;
		align-items: flex-start;
		gap: 1.25rem;
		margin-bottom: 1.75rem;
	}

	.testimonials-title {
		font-size: 1.65rem;
		line-height: 1.25;
	}

	.testimonials-subtitle {
		font-size: 0.95rem;
		line-height: 1.6;
	}

	.testimonials-header-actions {
		width: 100%;
		display: flex;
		justify-content: space-between;
		align-items: center;
	}

	.testimonials-cards-track {
		grid-template-columns: 1fr;
		gap: 1.25rem;
	}

	.testimonials-rating-bar {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.75rem;
		padding: 1rem 1.15rem;
		border-radius: 1rem;
	}

	.testimonial-card {
		padding: 1.5rem 1.25rem;
		border-radius: 1.25rem;
	}

	.author-name {
		font-size: 0.98rem;
	}

	.card-review-heading {
		font-size: 1.05rem;
	}
}
