/* ==========================================================================
   [asyana_reviews] cards (include/reviews.php). Font matches the rest of
   the site ('NexaLight', sans-serif).
   ========================================================================== */

/* The site sets `.container p { font-family: 'NexaBold' !important }` (no
   such font is loaded, so it falls back to a serif); keep review text on the
   site's sans-serif stack. */
html body .ag-reviews p { /* beats .container p !important regardless of load order */
	font-family: 'NexaLight', sans-serif !important;
}

.ag-reviews {
	margin: 40px 0;
	font-family: 'NexaLight', sans-serif;
	font-weight: 400;
	color: #404040;
}

.ag-reviews .ag-reviews__title {
	margin: 0 0 28px;
	font-family: 'NexaLight', sans-serif;
	font-size: 28px;
	font-weight: 700;
	font-style: normal;
	line-height: 1.3;
	letter-spacing: 0;
	text-align: center;
	text-transform: none;
	color: #000;
}

.ag-reviews__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
}

.ag-review {
	display: flex;
	flex-direction: column;
	margin: 0;
	padding: 28px;
	background: #f5f5f5;
	border-radius: 4px;
}

.ag-review__stars {
	display: flex;
	gap: 2px;
	margin-bottom: 16px;
}
.ag-review__stars svg {
	fill: #f4b400; /* star gold */
}
.ag-review__stars svg.is-empty {
	fill: #d9d9d9;
}

.ag-review__text {
	flex: 1;
	margin: 0 0 20px;
	padding: 0;
	border: 0;
	background: none;
	quotes: none;
}
.ag-reviews .ag-review__text p {
	margin: 0;
	font-family: 'NexaLight', sans-serif;
	font-size: 15px;
	font-style: normal;
	font-weight: 400;
	line-height: 1.7;
	color: #404040;
}

.ag-review__meta {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 14px;
	line-height: 1.5;
}
.ag-review__who {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

/* Reviewer avatar: photo, or the default letter on a brand logo colour */
.ag-review__avatar {
	position: relative;
	flex: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	overflow: hidden;
	border-radius: 50%;
	color: #fff;
	font-family: 'NexaLight', sans-serif;
	font-size: 18px;
	font-weight: 700;
	line-height: 1;
}
.ag-review__avatar img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
}
/* Darker shades of the brand logo dot colours so white letters stay readable (~4.5:1) */
.ag-review__avatar--blue   { background: #1b7fae; }
.ag-review__avatar--orange { background: #c8461a; }
.ag-review__avatar--maroon { background: #7a0026; }
.ag-review__avatar--green  { background: #158a56; }
.ag-review__name {
	font-weight: 700;
	color: #000;
}
.ag-review__source {
	color: #6b6b6b;
}

/* "Read more reviews on Google": outlined black button (own class, not
   Bridge .qbutton, which is styled white-on-dark site-wide). */
.ag-reviews__more {
	margin-top: 32px;
	padding-bottom: 60px; /* space before the CTA banner / footer */
	text-align: center;
}
.ag-reviews .ag-reviews__btn,
.ag-reviews a.ag-reviews__btn:visited {
	display: inline-block;
	padding: 14px 32px;
	border: 1px solid #000;
	border-radius: 0;
	background: transparent;
	color: #000;
	font-family: 'NexaLight', sans-serif;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: 1px;
	text-transform: uppercase;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease;
}
.ag-reviews .ag-reviews__btn:hover,
.ag-reviews .ag-reviews__btn:focus-visible {
	background: #000;
	color: #fff;
}
.ag-reviews .ag-reviews__btn:focus-visible {
	outline: 2px solid #000;
	outline-offset: 3px;
}

/* Carousel: [asyana_reviews layout="carousel"] (blog, blog posts, contact) */
/* 3 cards in view (2 on tablet, 1 + a peek of the next on mobile); swipe or
   scroll, arrows below, auto scroll handled in include/reviews.php. */
.ag-reviews__track {
	--ag-per-view: 3;
	--ag-gap: 24px;
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: calc((100% - (var(--ag-per-view) - 1) * var(--ag-gap)) / var(--ag-per-view));
	gap: var(--ag-gap);
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scrollbar-width: none; /* Firefox */
	-webkit-overflow-scrolling: touch;
}
.ag-reviews__track::-webkit-scrollbar {
	display: none;
}
.ag-reviews__track:focus-visible {
	outline: 2px solid #000;
	outline-offset: 4px;
}
.ag-reviews__track > .ag-review {
	scroll-snap-align: start;
}

.ag-reviews__nav {
	display: flex;
	justify-content: center;
	gap: 12px;
	margin-top: 24px;
}
.ag-reviews .ag-reviews__arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid #000;
	border-radius: 50%;
	background: transparent;
	color: #000;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease;
}
.ag-reviews .ag-reviews__arrow:hover,
.ag-reviews .ag-reviews__arrow:focus-visible {
	background: #000;
	color: #fff;
}
.ag-reviews .ag-reviews__arrow:focus-visible {
	outline: 2px solid #000;
	outline-offset: 3px;
}
.ag-reviews__arrow--next svg {
	transform: scaleX(-1);
}
/* All cards already fit: no arrows. */
.ag-reviews--carousel.is-static .ag-reviews__nav {
	display: none;
}

/* "Show more reviews" (layout="list" with show="10") */
.ag-reviews__showmore {
	margin-top: 8px;
	text-align: center;
}
.ag-reviews [hidden] {
	display: none !important;
}

/* [asyana_review_links]: Booking.com / Google / Tripadvisor buttons ------- */
.ag-reviews.ag-review-links {
	box-sizing: border-box;
	max-width: 1140px;
	margin: 0 auto;
	padding: 56px 20px 0;
	text-align: center;
}
.ag-reviews .ag-review-links__text {
	margin: 0 0 20px;
	font-size: 17px;
	color: #404040;
}
.ag-review-links__buttons {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 14px;
}
.ag-reviews .ag-review-links__btn {
	min-width: 190px;
	text-align: center;
}
/* Buttons sit above the list: less space before the first card. (WordPress
   may add a <br> between the two shortcodes in the editor.) */
.ag-review-links ~ .ag-reviews--list {
	padding-top: 40px;
}
.ag-review-links + br {
	display: none;
}

/* Testimonials: [asyana_reviews layout="list"] (Reviews page) ------------- */
/* Default-template pages are full width on this site: keep the list readable. */
.ag-reviews--list {
	box-sizing: border-box;
	max-width: 1140px;
	margin: 0 auto;
	padding: 56px 20px 0;
}
.ag-testimonials {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 28px;
	margin-bottom: 36px;
}
/* Accent per card, cycling through the logo dot colours. */
.ag-testimonial {
	--ag-accent: #29aae1; /* blue */
	position: relative;
	display: flex;
	flex-direction: column;
	margin: 0;
	padding: 36px 36px 30px;
	background: #f7f7f7;
	border-top: 4px solid var(--ag-accent);
	border-radius: 0 0 6px 6px;
}
.ag-testimonial:nth-child(4n + 2) { --ag-accent: #f05a24; } /* orange */
.ag-testimonial:nth-child(4n + 3) { --ag-accent: #7a0026; } /* maroon */
.ag-testimonial:nth-child(4n + 4) { --ag-accent: #22b473; } /* green */

/* Quote icon, top right, in the card's accent colour */
.ag-testimonial__quote {
	position: absolute;
	top: 26px;
	right: 30px;
	fill: var(--ag-accent);
	opacity: 0.9;
}
.ag-testimonial .ag-review__stars {
	margin-bottom: 18px;
}
.ag-testimonial__text {
	flex: 1;
	margin: 0 0 24px;
	padding: 0;
	border: 0;
	background: none;
	quotes: none;
}
.ag-reviews .ag-testimonial__text p {
	margin: 0;
	font-size: 16px;
	font-style: normal;
	font-weight: 400;
	line-height: 1.75;
	color: #333;
}
.ag-testimonial__meta {
	display: flex;
	align-items: center;
	gap: 12px;
	padding-top: 20px;
	border-top: 1px solid #e3e3e3;
	font-size: 14px;
	line-height: 1.5;
}
.ag-testimonial__name {
	font-weight: 700;
	color: #000;
}

@media (max-width: 1000px) {
	.ag-reviews__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.ag-reviews__track {
		--ag-per-view: 2;
	}
}
@media (max-width: 600px) {
	.ag-reviews__grid {
		grid-template-columns: minmax(0, 1fr);
	}
	.ag-review {
		padding: 22px;
	}
	.ag-reviews__track {
		--ag-gap: 16px;
		grid-auto-columns: 86%; /* a peek of the next card hints "swipe" */
	}
	.ag-reviews__more {
		padding-bottom: 44px;
	}
	.ag-testimonials {
		grid-template-columns: minmax(0, 1fr);
		gap: 20px;
	}
	.ag-reviews .ag-review-links__btn {
		flex: 1 1 100%;
	}
	.ag-testimonial {
		padding: 28px 22px 24px;
	}
	.ag-testimonial__quote {
		top: 22px;
		right: 20px;
		width: 32px;
		height: 32px;
	}
	.ag-reviews .ag-testimonial__text p {
		font-size: 15px;
		line-height: 1.7;
	}
}
