/* The « Avis Google » module (reviews spec §7), shared by the themes: each sets the --th-reviews-* variables. */
.th-reviews { --th-reviews-gap: 24px; margin-top: 48px; color: var(--th-reviews-ink, inherit); }
.th-reviews__title { margin: 0 0 12px; }
.th-reviews__average, .th-reviews__count { display: inline-flex; align-items: center; gap: 8px; margin: 0 16px 12px 0; vertical-align: middle; }
.th-reviews__score { font-size: 1.4rem; font-weight: 700; }
.th-reviews__count { color: var(--th-reviews-muted, #666); }
.th-reviews__write { margin: 0 0 24px; }
.th-reviews__write-link { background: var(--th-reviews-accent, currentColor); }
.th-reviews__attribution { margin: 16px 0 0; font-size: 0.85rem; color: var(--th-reviews-muted, #666); }
.th-reviews__attribution a { color: inherit; }
.th-reviews :is(.th-reviews__grid, .th-reviews__list, .th-reviews__carousel) { margin-bottom: 24px; }
.th-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.th-stars { display: inline-flex; gap: 2px; color: var(--th-reviews-star, #e8a23f); white-space: nowrap; }
.th-star { width: 1em; height: 1em; }
.th-star:not(.is-on) { color: var(--th-reviews-line, #ddd); }
.th-star.is-on path { fill: currentColor; }

.th-review { min-width: 0; padding: 20px; border: 1px solid var(--th-reviews-line, #e5e5e5); border-radius: 8px; background: var(--th-reviews-card, #fff); }
.th-review__head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.th-review__avatar { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.th-review__avatar--initial { display: inline-flex; align-items: center; justify-content: center; background: var(--th-reviews-accent, #555); color: #fff; font-weight: 700; }
.th-review__meta { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; font-size: 0.9rem; }
.th-review__author { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.th-review__date { color: var(--th-reviews-muted, #666); font-size: 0.8rem; }
.th-review__text { margin: 0; font-size: 0.95rem; line-height: 1.6; }
.th-review__text.is-clamped { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 6; line-clamp: 6; overflow: hidden; }
.th-review__more { margin-top: 4px; padding: 0; border: 0; background: none; font: inherit; font-size: 0.85rem; font-weight: 600; color: var(--th-reviews-muted, #666); text-decoration: underline; cursor: pointer; }

.th-reviews__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: var(--th-reviews-gap); align-items: start; }
.th-reviews__list { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }

.th-reviews__carousel { position: relative; }
.th-reviews__track { display: flex; gap: var(--th-reviews-gap); overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; padding-bottom: 4px; }
.th-reviews__track::-webkit-scrollbar { display: none; }
.th-reviews__slide { flex: 0 0 calc((100% - 2 * var(--th-reviews-gap)) / 3); min-width: 0; scroll-snap-align: start; align-self: flex-start; }
.th-reviews__nav { position: absolute; top: 50%; z-index: 1; display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border: 0; border-radius: 50%; background: #fff; color: #222; box-shadow: 0 2px 8px rgb(0 0 0 / 20%); transform: translateY(-50%); cursor: pointer; transition: opacity 0.2s; }
.th-reviews__nav:disabled { opacity: 0; pointer-events: none; }
.th-reviews__nav--prev { left: -18px; }
.th-reviews__nav--next { right: -18px; }
.th-reviews__dots { display: flex; justify-content: center; gap: 8px; margin-top: 20px; }
.th-reviews__dot { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 50%; background: var(--th-reviews-line, #ccc); cursor: pointer; }
.th-reviews__dot.is-active { background: var(--th-reviews-ink, #333); }
@media (max-width: 991px) { .th-reviews__slide { flex-basis: calc((100% - var(--th-reviews-gap)) / 2); } }
@media (max-width: 575px) { .th-reviews__slide { flex-basis: 100%; } .th-reviews__nav--prev { left: -8px; } .th-reviews__nav--next { right: -8px; } }
@media (prefers-reduced-motion: reduce) { .th-reviews__track { scroll-behavior: auto; } }
