/* IB Reviews — frontend (shortcode and Elementor widget). Logical properties: works in RTL and LTR.
 * Colours are tokens (--ibrv-*); the widget's Style tab overrides them per widget. */
.ibrv {
	--ibrv-star: #f5a623;
	--ibrv-star-empty: #d5d9df;
	--ibrv-card-bg: #fff;
	--ibrv-card-border: #e4e7ec;
	--ibrv-muted: #6b7280;
	--ibrv-initial-bg: #5b5bd6;
	box-sizing: border-box;
}
.ibrv *, .ibrv *::before, .ibrv *::after { box-sizing: inherit; }

.ibrv-grid {
	display: grid;
	gap: 24px;
	grid-template-columns: repeat(var(--ibrv-columns, 3), minmax(0, 1fr));
}
@media (max-width: 1024px) {
	.ibrv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ibrv-grid[style*="--ibrv-columns:1"] { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 767px) {
	.ibrv-grid { grid-template-columns: minmax(0, 1fr); }
}

.ibrv-card {
	display: flex;
	flex-direction: column;
	gap: 10px;
	height: 100%;
	padding: 20px;
	background: var(--ibrv-card-bg);
	border: 1px solid var(--ibrv-card-border);
	border-radius: 12px;
	text-align: start;
}
.ibrv-card__head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.ibrv-card__photo {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
}
.ibrv-card__initial {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--ibrv-initial-bg);
	color: #fff;
	font-weight: 600;
	font-size: 18px;
	text-transform: uppercase;
}
.ibrv-card__who { display: flex; flex-direction: column; flex: 1 1 7em; min-width: 0; } /* too narrow next to the photo: wraps below it, never letter by letter */
.ibrv-card__name { margin: 0; padding: 0; font-weight: 600; line-height: 1.3; overflow-wrap: break-word; } /* any tag (0.2.0): no theme margins */
.ibrv-card__name a { color: inherit; text-decoration: none; }
.ibrv-card__name a:hover, .ibrv-card__name a:focus-visible { text-decoration: underline; }
.ibrv-card__date { font-size: 0.8em; color: var(--ibrv-muted); }
.ibrv-card__text { line-height: 1.6; overflow-wrap: break-word; }
/* "Show more" (0.2.0): the clamp class is added by ibrv-more.js only, so without JS the whole text shows. */
.ibrv-card__text.is-clamped {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: var(--ibrv-lines, 4);
	line-clamp: var(--ibrv-lines, 4);
	overflow: hidden;
}
.ibrv-more {
	align-self: flex-start;
	margin: -4px 0 0;
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	font: inherit;
	font-size: 0.9em;
	font-weight: 600;
	text-decoration: underline;
	cursor: pointer;
}
.ibrv-more[hidden] { display: none; }
.ibrv-more:focus-visible { outline: 2px solid #5b5bd6; outline-offset: 2px; border-radius: 2px; }
.ibrv-card__original { font-size: 0.85em; color: var(--ibrv-muted); }
.ibrv-card__original summary { cursor: pointer; }
.ibrv-card__links { margin-top: auto; font-size: 0.85em; color: var(--ibrv-muted); }
.ibrv-card__links a { color: inherit; }

.ibrv-stars { display: inline-flex; gap: 2px; font-size: 18px; line-height: 1; }
.ibrv-star--full { color: var(--ibrv-star); }
.ibrv-star--empty { color: var(--ibrv-star-empty); }
.ibrv-star--half {
	background: linear-gradient(90deg, var(--ibrv-star) 50%, var(--ibrv-star-empty) 50%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
[dir="rtl"] .ibrv-star--half,
.rtl .ibrv-star--half {
	background: linear-gradient(270deg, var(--ibrv-star) 50%, var(--ibrv-star-empty) 50%);
	-webkit-background-clip: text;
	background-clip: text;
}

.ibrv-place { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-block-end: 16px; }
.ibrv-place__name { font-weight: 700; margin-inline-end: 4px; }
.ibrv-place__score { font-weight: 600; }
.ibrv-place__count { color: var(--ibrv-muted); }

.ibrv-notice, .ibrv-links { margin-block: 12px 0; font-size: 0.85em; color: var(--ibrv-muted); }
.ibrv-links a { margin-inline-end: 12px; }

/* Google Maps attribution, as Google's attribution guidelines require: the exact text, untranslated,
 * Roboto 400 at 12–16px, #5E5E5E. No style control can change it. */
.ibrv-attribution { margin-block: 8px 0; }
.ibrv-attribution__text {
	font-family: Roboto, Arial, sans-serif;
	font-weight: 400;
	font-size: 12px;
	line-height: 1.4;
	color: #5e5e5e;
	white-space: nowrap;
	text-transform: none;
	letter-spacing: normal;
}

.ibrv-empty { padding: 16px; border: 1px dashed #e4e7ec; color: #6b7280; text-align: center; }

/* Carousel (Swiper from Elementor). */
/* Room for the arrows only when there are arrows (a carousel without them keeps its full width). */
.ibrv-carousel-outer { position: relative; }
.ibrv-carousel-outer--arrows { padding-inline: 32px; }
@media (max-width: 767px) {
	.ibrv-carousel-outer--arrows { padding-inline: 26px; }
	.ibrv-arrow { width: 26px; height: 26px; }
}
.ibrv-carousel .swiper-slide { height: auto; }
.ibrv-carousel .swiper-pagination { position: static; margin-top: 16px; }
.ibrv-arrow {
	position: absolute;
	top: 50%;
	z-index: 2;
	transform: translateY(-50%);
	width: 32px;
	height: 32px;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.92);
	box-shadow: 0 2px 8px rgba(16, 24, 40, 0.15);
	color: #111827;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
}
.ibrv-arrow:focus-visible { outline: 2px solid #5b5bd6; outline-offset: 2px; }
.ibrv-arrow--prev { inset-inline-start: 0; }
.ibrv-arrow--next { inset-inline-end: 0; }
.ibrv-arrow { display: inline-flex; align-items: center; justify-content: center; padding: 0; }
.ibrv-arrow__icon { display: block; }
[dir="rtl"] .ibrv-arrow__icon,
.rtl .ibrv-arrow__icon { transform: scaleX(-1); }
.ibrv-carousel:not(.swiper-initialized) .swiper-wrapper { display: flex; gap: 24px; overflow-x: auto; }
.ibrv-carousel:not(.swiper-initialized) .swiper-slide { flex: 0 0 min(320px, 85%); }
