/* City Nights Discos review widgets (replaces Elfsight, LUK-18). */

.cnd-reviews,
.cnd-badge {
	--cnd-accent: #ffe663;
	--cnd-ink: #111;
	--cnd-read-more: #707070; /* Elfsight used #b7b7b7; darkened to meet WCAG AA contrast */
	--cnd-muted: #707070;
	font-family: Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	-webkit-font-smoothing: antialiased;
	box-sizing: border-box;
}

.cnd-reviews *,
.cnd-reviews *::before,
.cnd-reviews *::after,
.cnd-badge * {
	box-sizing: border-box;
}

.cnd-reviews {
	width: 100%;
	max-width: 1280px;
	margin: 0 auto;
}

/* Elementor flex containers shrink widgets to their content; let the review widget span the row so it centres. */
.elementor-widget-shortcode:has(.cnd-reviews) {
	width: 100%;
}

/* Stars: one element, masked to 5 stars, filled to --cnd-pct */
.cnd-stars {
	--cnd-star: 20px;
	display: inline-block;
	flex: 0 0 auto;
	width: calc(var(--cnd-star) * 5);
	height: var(--cnd-star);
	vertical-align: middle;
	background: linear-gradient(90deg, var(--cnd-accent) var(--cnd-pct, 100%), #e4e4e4 var(--cnd-pct, 100%));
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='1.9 1.7 20.2 20.2'%3E%3Cpath d='M12 2.6l2.9 6.1 6.6.8-4.9 4.6 1.3 6.6L12 17.4l-5.9 3.3 1.3-6.6-4.9-4.6 6.6-.8z'/%3E%3C/svg%3E") 0 0 / var(--cnd-star) var(--cnd-star) repeat-x;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='1.9 1.7 20.2 20.2'%3E%3Cpath d='M12 2.6l2.9 6.1 6.6.8-4.9 4.6 1.3 6.6L12 17.4l-5.9 3.3 1.3-6.6-4.9-4.6 6.6-.8z'/%3E%3C/svg%3E") 0 0 / var(--cnd-star) var(--cnd-star) repeat-x;
}

/* Card */
.cnd-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	padding: 24px;
	background: #fff;
	border: 1px solid rgb(231, 231, 231);
	border-radius: 8px;
	color: rgb(87, 87, 87);
	text-align: left;
}

.cnd-card__head {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 16px;
	min-height: 40px;
}

.cnd-card__meta {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.cnd-card__name {
	display: flex;
	align-items: center;
	gap: 5px;
	font-size: 15px;
	line-height: 18px;
	font-weight: 600;
}

.cnd-card__name a,
.cnd-card__name a:hover,
.cnd-card__name a:focus {
	color: inherit;
	text-decoration: none;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.cnd-card__name a:hover {
	text-decoration: underline;
}

.cnd-verified {
	flex: 0 0 14px;
	width: 14px;
	height: 14px;
	fill: var(--cnd-accent);
}

.cnd-verified__tick {
	stroke: var(--cnd-ink);
}

.cnd-card__date {
	margin-top: 4px;
	font-size: 12px;
	line-height: 16px;
	color: var(--cnd-muted);
}

.cnd-card .cnd-stars {
	display: block;
	margin-bottom: 6px;
}

.cnd-card__text {
	font-size: 16px;
	line-height: 23px;
	overflow-wrap: anywhere;
}

.cnd-card__more {
	align-self: flex-start;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	font: inherit;
	font-size: 16px;
	line-height: 30px;
	color: var(--cnd-read-more);
	cursor: pointer;
}

.cnd-card__more:hover,
.cnd-card__more:focus {
	background: none;
	color: var(--cnd-ink);
}

/* Avatar */
.cnd-avatar {
	position: relative;
	flex: 0 0 40px;
	width: 40px;
	height: 40px;
}

.cnd-avatar__initial,
.cnd-avatar__img {
	position: absolute;
	inset: 0;
	width: 40px;
	height: 40px;
	border-radius: 50%;
}

.cnd-avatar__initial {
	display: flex;
	align-items: center;
	justify-content: center;
	background: hsl(var(--cnd-avatar-hue, 210), 45%, 45%);
	color: #fff;
	font-size: 18px;
	font-weight: 500;
}

.cnd-avatar__img {
	object-fit: cover;
}

.cnd-avatar__source {
	position: absolute;
	right: -6px;
	bottom: -6px;
	width: 22px;
	height: 22px;
}

/* AI summary card */
.cnd-ai-orb {
	display: flex;
	flex: 0 0 40px;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 12px;
	background: radial-gradient(circle at 30% 25%, #c98bff 0%, #8d38ff 45%, #3d48e4 100%);
}

.cnd-ai-orb svg {
	width: 24px;
	height: 24px;
	fill: #fff;
}

.cnd-card__ai-title {
	font-size: 15px;
	line-height: 18px;
	font-weight: 600;
	background: linear-gradient(90deg, #8d38ff 0%, #3d48e4 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.cnd-summary {
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 16px;
	line-height: 23px;
}

.cnd-summary li {
	position: relative;
	margin: 0 0 10px;
	padding-left: 21px;
}

.cnd-summary li:last-child {
	margin-bottom: 0;
}

.cnd-summary li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 5px;
	width: 13px;
	height: 11px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 10'%3E%3Cpath d='M1 5.2 4.2 8.4 11 1.6' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 10'%3E%3Cpath d='M1 5.2 4.2 8.4 11 1.6' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ---------- Carousel (sitewide section) ---------- */
.cnd-reviews--carousel .cnd-card {
	border-color: rgba(17, 17, 17, 0.1);
	border-radius: 24px;
	color: var(--cnd-ink);
}

.cnd-reviews--carousel .cnd-card__name,
.cnd-reviews--carousel .cnd-summary {
	color: var(--cnd-ink);
}

.cnd-reviews--carousel .cnd-card__date {
	color: var(--cnd-muted);
}

.cnd-reviews--carousel .cnd-card__text.is-clamped {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 9;
	line-clamp: 9;
	overflow: hidden;
}

.cnd-reviews--carousel .cnd-card__text.is-expanded {
	display: block;
	-webkit-line-clamp: unset;
	line-clamp: unset;
}

.cnd-reviews__header {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 24px 0 44px;
}

.cnd-reviews__wordmark {
	display: block;
	width: 90px;
	height: 38px;
	margin-right: 2px;
}

.cnd-reviews__rating {
	font-size: 26px;
	line-height: 32px;
	font-weight: 700;
	color: var(--cnd-ink);
}

.cnd-stars--header {
	--cnd-star: 26px;
}

.cnd-reviews__count {
	font-size: 13px;
	line-height: 32px;
	color: var(--cnd-muted);
	margin-right: 10px;
}

.cnd-reviews__write,
.cnd-reviews__write:visited {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 36px;
	padding: 0 20px;
	border-radius: 24px;
	background: var(--cnd-accent);
	color: var(--cnd-ink);
	font-size: 14px;
	font-weight: 700;
	line-height: 1;
	text-decoration: none;
	transition: filter 0.2s ease;
}

.cnd-reviews__write:hover,
.cnd-reviews__write:focus {
	color: var(--cnd-ink);
	filter: brightness(0.95);
}

.cnd-carousel {
	position: relative;
	--cnd-cols: 4;
	--cnd-gap: 20px;
}

.cnd-carousel__track {
	display: flex;
	gap: var(--cnd-gap);
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
	-ms-overflow-style: none;
	padding: 1px 0;
	outline: none;
}

.cnd-carousel__track::-webkit-scrollbar {
	display: none;
}

.cnd-carousel__slide {
	flex: 0 0 calc((100% - (var(--cnd-cols) - 1) * var(--cnd-gap)) / var(--cnd-cols));
	min-width: 0;
	scroll-snap-align: start;
}

.cnd-carousel__arrow {
	position: absolute;
	top: 50%;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	margin-top: -16px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(17, 17, 17, 0.5);
	box-shadow: rgba(0, 0, 0, 0.3) 0 4px 12px 0;
	color: #fff;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.cnd-carousel__arrow:hover,
.cnd-carousel__arrow:focus {
	background: rgba(17, 17, 17, 0.7);
	color: #fff;
}

.cnd-carousel__arrow[hidden] {
	display: none;
}

.cnd-carousel__arrow svg {
	width: 16px;
	height: 16px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.cnd-carousel__arrow--prev {
	left: -16px;
}

.cnd-carousel__arrow--next {
	right: -16px;
}

.cnd-carousel__dots {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
	height: 6px;
	margin-top: 20px;
}

.cnd-carousel__dot {
	width: 4px;
	height: 4px;
	border-radius: 50%;
	background: rgba(17, 17, 17, 0.3);
	transition: all 0.2s ease;
}

.cnd-carousel__dot.is-near {
	width: 3px;
	height: 3px;
	background: rgba(17, 17, 17, 0.2);
}

.cnd-carousel__dot.is-active {
	width: 6px;
	height: 6px;
	background: var(--cnd-ink);
}

@media (max-width: 1199px) {
	.cnd-carousel {
		--cnd-cols: 3;
	}
}

@media (max-width: 899px) {
	.cnd-carousel {
		--cnd-cols: 2;
	}
}

@media (max-width: 599px) {
	.cnd-carousel {
		--cnd-cols: 1;
	}

	.cnd-carousel__arrow--prev {
		left: -12px;
	}

	.cnd-carousel__arrow--next {
		right: -12px;
	}

	.cnd-reviews__count {
		margin-right: 0;
	}
}

/* ---------- Wall (testimonials page) ---------- */
.cnd-reviews--wall {
	padding: 40px;
}

.cnd-wall {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 20px;
	align-items: start;
}

.cnd-wall.is-masonry {
	display: flex;
	align-items: flex-start;
}

.cnd-wall__col {
	display: flex;
	flex: 1 1 0;
	flex-direction: column;
	gap: 20px;
	min-width: 0;
}

.cnd-wall__item[hidden] {
	display: none;
}

.cnd-wall__more {
	display: flex;
	justify-content: center;
	margin-top: 40px;
}

.cnd-wall__load,
.cnd-wall__load:focus {
	height: 34px;
	padding: 0 40px;
	border: 1px solid transparent;
	border-radius: 4px;
	background: rgb(248, 248, 248);
	color: var(--cnd-ink);
	font-family: inherit;
	font-size: 13px;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
}

.cnd-wall__load:hover {
	background: rgb(238, 238, 238);
	color: var(--cnd-ink);
}

@media (max-width: 1099px) {
	.cnd-wall {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 799px) {
	.cnd-reviews--wall {
		padding: 40px 20px;
	}

	.cnd-wall {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 539px) {
	.cnd-wall {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* ---------- Badge (hero) ---------- */
.cnd-badge,
.cnd-badge:visited,
.cnd-badge:hover,
.cnd-badge:focus {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	width: 100%;
	max-width: 188px;
	height: 138px;
	padding: 14px 10px 0;
	border-radius: 8px;
	background: #fff;
	color: var(--cnd-ink);
	text-decoration: none;
}

.cnd-badge__logo {
	display: block;
	width: 28px;
	height: 28px;
	margin-bottom: 4px;
}

.cnd-badge__title {
	font-size: 15px;
	line-height: 20px;
	font-weight: 700;
}

.cnd-badge__score {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-top: 4px;
}

.cnd-badge__rating {
	font-size: 22px;
	line-height: 28px;
	font-weight: 700;
}

.cnd-badge .cnd-stars {
	--cnd-star: 22px;
}

.cnd-badge__count {
	margin-top: 8px;
	font-size: 13px;
	line-height: 16px;
	font-weight: 600;
	color: var(--cnd-muted);
}
