/* Recenzije kupaca — Bricks element "mt-reviews-v2" (elements/reviews-v2.php). Cards/rows come from Bricks templates; this file styles the section shell. Palette vars come from the Bricks color palette. */

/* Root element sits directly in the Bricks template (flex column): without an explicit width it shrinks to its content. */
.mt-rz { width: 100%; padding: 48px 24px 64px; }
.mt-rz__inner { max-width: 1200px; margin: 0 auto; }

/* Head */
.mt-rz__head { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-end; justify-content: space-between; margin-bottom: 24px; }
.mt-rz__head-text { display: flex; flex-direction: column; gap: 10px; max-width: 620px; }
.mt-rz__eyebrow { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.14em; color: var(--brand); opacity: 0.7; }
.mt-rz__title { margin: 0; }
.mt-rz__avg { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 15px; }
.mt-rz__avg strong { font-size: 16px; }
.mt-rz__avg-count { opacity: 0.7; }

/* Stars: empty star + filled overlay clipped to the fraction (inline style from PHP) */
.mt-rz__stars { display: inline-flex; gap: 2px; vertical-align: middle; }
.mt-rz__star { width: 15px; height: 15px; flex: none; fill: #d9d3c6; }
.mt-rz__star .is-on { fill: var(--accent); }

/* Arrows (desktop only) */
.mt-rz__arrows { display: flex; gap: 8px; }
.mt-rz__arrows[hidden] { display: none; }
.mt-rz__arrow { width: 44px; height: 44px; padding: 0; border-radius: 12px; border: 2px solid var(--brand); background: transparent; color: var(--brand); cursor: pointer; display: grid; place-items: center; transition: background 0.2s, color 0.2s; }
.mt-rz__arrow svg { width: 18px; height: 18px; stroke: currentColor; }
.mt-rz__arrow:hover { background: var(--brand); color: var(--white); }

/* Carousel rail; each slide is the loop wrapper around the card template */
.mt-rz__rail { display: flex; gap: 20px; align-items: stretch; overflow-x: auto; padding: 4px; margin: 0 -4px; scroll-snap-type: x proximity; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.mt-rz__rail::-webkit-scrollbar { display: none; }
.mt-rz__rail.has-open { align-items: flex-start; }
.mt-rz__slide { flex: 0 0 300px; scroll-snap-align: start; display: flex; }
.mt-rz__slide > * { width: 100%; }

/* Review text (class set on the templates' text element) + "Pročitaj celu" */
.mt-rz__text { margin: 0; font-size: 15px; line-height: 1.5; text-wrap: pretty; }
.mt-rz__text[data-clamp] { display: -webkit-box; -webkit-line-clamp: var(--rz-lines, 4); -webkit-box-orient: vertical; overflow: hidden; }
.mt-rz__text.is-open { display: block; -webkit-line-clamp: unset; overflow: visible; }
.mt-rz__more { align-self: flex-start; font: inherit; font-size: 13px; font-weight: 800; color: var(--link); background: none; border: 0; padding: 0; cursor: pointer; }
.mt-rz__more[hidden] { display: none; }

/* Bar with the list toggle */
.mt-rz__bar { display: flex; justify-content: center; margin-top: 24px; }

/* List; each item is the loop wrapper around the row template */
.mt-rz__list { display: flex; flex-direction: column; gap: 14px; margin-top: 24px; }
.mt-rz__list[hidden] { display: none; }
.mt-rz__item[hidden] { display: none; }
.mt-rz__load { align-self: center; margin-top: 6px; }
.mt-rz__load[hidden] { display: none; }

/* Mobile */
@media (max-width: 767px) {
	.mt-rz { padding: 40px 16px 48px; }
	.mt-rz__arrows { display: none; }
	.mt-rz__rail { gap: 12px; scroll-snap-type: x mandatory; }
	.mt-rz__slide { flex-basis: 280px; scroll-snap-align: center; }
	.mt-rz__text { font-size: 14px; }
	.mt-rz__toggle, .mt-rz__load { width: 100%; }
}
