/**
 * Styles for the My Google Reviews slider and grid.
 *
 * .odeon-* selectors kept for backwards compatibility with the old shortcode.
 */

.my-google-reviews-slider,
.odeon-google-reviews-slider {
	display: flex;
	overflow-x: auto;
	padding: 1.5rem;
	gap: 1.5rem;
	max-width: 100%;
	box-sizing: border-box;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scrollbar-width: thin;
	scrollbar-color: #ccc #f1f1f1;
}

.my-google-reviews-slider::-webkit-scrollbar,
.odeon-google-reviews-slider::-webkit-scrollbar {
	height: 8px;
}

.my-google-reviews-slider::-webkit-scrollbar-track,
.odeon-google-reviews-slider::-webkit-scrollbar-track {
	background: #f1f1f1;
	border-radius: 10px;
}

.my-google-reviews-slider::-webkit-scrollbar-thumb,
.odeon-google-reviews-slider::-webkit-scrollbar-thumb {
	background: #ccc;
	border-radius: 10px;
}

.my-google-reviews-slider::-webkit-scrollbar-thumb:hover,
.odeon-google-reviews-slider::-webkit-scrollbar-thumb:hover {
	background: #aaa;
}

.my-google-review,
.odeon-google-review {
	flex: 0 0 320px;
	scroll-snap-align: start;
	border: 1px solid #e0e0e0;
	box-shadow: 0 2px 4px rgba(0,0,0,0.05);
	padding: 1.5rem;
	border-radius: 8px;
	background-color: #fff;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
	line-height: 1.6;
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.review-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	margin-bottom: 1rem;
}

.review-author-info {
	display: flex;
	align-items: center;
	min-width: 0;
}

.review-author-avatar {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	margin-right: 1rem;
	flex-shrink: 0;
	object-fit: cover;
}

.review-author {
	min-width: 0;
}

.review-author span {
	font-weight: bold;
	font-size: 1rem;
}

.review-author a {
	color: inherit;
	text-decoration: none;
}

.review-author a:hover {
	text-decoration: underline;
}

.review-google-logo {
	flex-shrink: 0;
	display: inline-flex;
}

.review-stars {
	color: #fbbc05;
	margin-bottom: 0.75rem;
	font-size: 1.25rem;
	letter-spacing: 0.1em;
}

.review-text {
	font-size: 0.95rem;
	color: #333;
	margin: 0 0 1rem 0;
	flex-grow: 1;
	overflow-wrap: anywhere;
}

.review-footer {
	font-size: 0.85rem;
	color: #777;
	margin-top: auto;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 0.75rem;
	flex-wrap: wrap;
}

.review-source-link {
	font-size: 0.8rem;
	text-decoration: none;
}

.review-source-link:hover {
	text-decoration: underline;
}

.my-google-review .review-source-link {
	color: #1a73e8;
}

/* Grid layout, activated when rows > 1. Tracks are allowed to shrink so a
   high column count never overflows a narrow container. */
.my-google-reviews-grid {
	display: grid;
	grid-template-columns: repeat(var(--columns, 4), minmax(0, 1fr));
	gap: 1.5rem;
	padding: 1.5rem;
	max-width: 100%;
	box-sizing: border-box;
}

.my-google-reviews-grid .my-google-review {
	flex: none;
	width: auto;
}

@media (max-width: 1100px) {
	.my-google-reviews-grid {
		grid-template-columns: repeat(min(var(--columns, 4), 3), minmax(0, 1fr));
	}
}

@media (max-width: 900px) {
	.my-google-reviews-grid {
		grid-template-columns: repeat(min(var(--columns, 4), 2), minmax(0, 1fr));
	}
}

@media (max-width: 600px) {
	.my-google-reviews-grid {
		grid-template-columns: 1fr;
	}
}

/* Attribution / summary line under a block of reviews. */
.my-google-reviews-attribution {
	font-size: 0.8rem;
	color: #777;
	padding: 0 1.5rem;
	margin: -0.5rem 0 1rem;
}

.my-google-reviews-attribution a {
	color: inherit;
}

/* Fallback message styles */
.my-google-reviews-fallback {
	padding: 2rem;
	text-align: center;
	background-color: #f8f9fa;
	border: 1px solid #dee2e6;
	border-radius: 8px;
	color: #6c757d;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.my-google-reviews-fallback p {
	margin: 0;
	font-size: 1rem;
	line-height: 1.5;
}

.my-google-reviews-fallback--debug {
	background: #fff3cd;
	border-color: #ffeaa7;
	color: #856404;
	text-align: left;
}

/* TripAdvisor additions */
.review-source-badge {
	flex-shrink: 0;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	padding: 0.2rem 0.55rem;
	border-radius: 999px;
	line-height: 1.4;
}

.review-source-badge--tripadvisor {
	background: #00AF87;
	color: #fff;
}

.my-tripadvisor-review .review-stars {
	color: #00AF87;
	font-size: 1rem;
	letter-spacing: 0.15em;
}

.my-tripadvisor-review .review-title {
	margin: 0.5rem 0;
	font-size: 1.05rem;
	font-weight: 600;
	line-height: 1.3;
}

.my-tripadvisor-review .review-author-location {
	display: block;
	color: #6c757d;
	font-size: 0.8rem;
}

.my-tripadvisor-review .review-source-link {
	color: #00AF87;
}
