/* =====================================================================
   GEO Best-Of — Public Reviews CSS
   Used by [bestof_entry_reviews] and [bestof_entry_review_summary].
   Tuned to integrate cleanly into Breakdance pages without overriding
   theme typography. All selectors are .bof- scoped.
   ===================================================================== */

.bof-reviews {
	--bof-star: #f5a623;
	--bof-star-off: #d6d6d6;
	--bof-border: rgba(0,0,0,0.08);
	--bof-bg: #ffffff;
	--bof-bg-soft: #f7f7f9;
	--bof-text: inherit;
	--bof-muted: rgba(0,0,0,0.55);
	--bof-radius: 14px;
	--bof-shadow: 0 2px 6px rgba(20,20,40,0.06);

	color: var(--bof-text);
	font-size: 0.95rem;
	line-height: 1.55;
}

.bof-reviews__heading {
	margin: 0 0 .75rem;
	font-size: 1.25rem;
	font-weight: 700;
}

/* ----------------- Summary header / standalone ----------------- */

.bof-reviews-summary {
	display: flex;
	align-items: center;
	gap: 1rem;
	flex-wrap: wrap;
	padding: 1rem 1.25rem;
	margin-bottom: 1.25rem;
	background: var(--bof-bg-soft);
	border-radius: var(--bof-radius);
}

.bof-reviews-summary.is-compact {
	padding: .5rem .75rem;
	gap: .5rem;
}

.bof-reviews-summary__score {
	font-size: 2.25rem;
	font-weight: 800;
	line-height: 1;
	color: var(--bof-text);
}
.bof-reviews-summary.is-compact .bof-reviews-summary__score { font-size: 1.5rem; }

.bof-reviews-summary__score small {
	font-size: .6em;
	font-weight: 500;
	color: var(--bof-muted);
	margin-left: .15em;
}

.bof-reviews-summary__starwrap {
	position: relative;
	display: inline-block;
	font-size: 1.4rem;
	letter-spacing: 2px;
	line-height: 1;
}
.bof-reviews-summary.is-compact .bof-reviews-summary__starwrap { font-size: 1rem; }

.bof-reviews-summary__stars-bg {
	color: var(--bof-star-off);
}
.bof-reviews-summary__stars-fg {
	position: absolute;
	inset: 0;
	overflow: hidden;
	color: var(--bof-star);
	white-space: nowrap;
}

.bof-reviews-summary__count {
	margin-left: auto;
	color: var(--bof-muted);
	font-size: .9rem;
}
.bof-reviews-summary__count span { font-weight: 700; color: var(--bof-text); }

/* ----------------- Layouts ----------------- */

.bof-reviews__list {
	display: grid;
	gap: 1rem;
}
.bof-reviews--cards .bof-reviews__list { grid-template-columns: 1fr; }
.bof-reviews--list  .bof-reviews__list { grid-template-columns: 1fr; gap: .5rem; }

.bof-reviews--grid .bof-reviews__list { grid-template-columns: repeat(3, minmax(0,1fr)); }
.bof-reviews--cols-1 .bof-reviews__list { grid-template-columns: 1fr; }
.bof-reviews--cols-2 .bof-reviews__list { grid-template-columns: repeat(2, minmax(0,1fr)); }
.bof-reviews--cols-3 .bof-reviews__list { grid-template-columns: repeat(3, minmax(0,1fr)); }
.bof-reviews--cols-4 .bof-reviews__list { grid-template-columns: repeat(4, minmax(0,1fr)); }
@media (max-width: 980px) { .bof-reviews--grid .bof-reviews__list { grid-template-columns: repeat(2, minmax(0,1fr)) !important; } }
@media (max-width: 640px) { .bof-reviews--grid .bof-reviews__list { grid-template-columns: 1fr !important; } }

/* ----------------- Masonry (CSS columns — no JS, no jumping) ----------------- */

.bof-reviews--masonry .bof-reviews__list {
	display: block;
	column-count: 3;
	column-gap: 1rem;
}
.bof-reviews--masonry.bof-reviews--cols-1 .bof-reviews__list { column-count: 1; }
.bof-reviews--masonry.bof-reviews--cols-2 .bof-reviews__list { column-count: 2; }
.bof-reviews--masonry.bof-reviews--cols-3 .bof-reviews__list { column-count: 3; }
.bof-reviews--masonry.bof-reviews--cols-4 .bof-reviews__list { column-count: 4; }
@media (max-width: 980px) { .bof-reviews--masonry .bof-reviews__list { column-count: 2 !important; } }
@media (max-width: 640px) { .bof-reviews--masonry .bof-reviews__list { column-count: 1 !important; } }

.bof-reviews--masonry .bof-reviews__item {
	display: inline-block;
	width: 100%;
	margin: 0 0 1rem;
	break-inside: avoid;
	-webkit-column-break-inside: avoid;
	page-break-inside: avoid;
	animation: bofReviewsFadeUp 480ms ease both;
}
.bof-reviews--masonry .bof-reviews__item:nth-child(2)  { animation-delay: 60ms;  }
.bof-reviews--masonry .bof-reviews__item:nth-child(3)  { animation-delay: 120ms; }
.bof-reviews--masonry .bof-reviews__item:nth-child(4)  { animation-delay: 180ms; }
.bof-reviews--masonry .bof-reviews__item:nth-child(5)  { animation-delay: 240ms; }
.bof-reviews--masonry .bof-reviews__item:nth-child(6)  { animation-delay: 300ms; }
.bof-reviews--masonry .bof-reviews__item:nth-child(7)  { animation-delay: 360ms; }
.bof-reviews--masonry .bof-reviews__item:nth-child(8)  { animation-delay: 420ms; }
.bof-reviews--masonry .bof-reviews__item:nth-child(9)  { animation-delay: 480ms; }
.bof-reviews--masonry .bof-reviews__item:nth-child(n+10) { animation-delay: 540ms; }

@keyframes bofReviewsFadeUp {
	from { opacity: 0; transform: translateY(14px); }
	to   { opacity: 1; transform: translateY(0); }
}

/* ----------------- Slider / Carousel ----------------- */

.bof-reviews--slider { position: relative; }
.bof-reviews--slider .bof-reviews__list {
	display: flex;
	gap: 1rem;
	overflow-x: auto;
	overflow-y: hidden;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
	-ms-overflow-style: none;
	padding: 4px 4px 8px;
	margin: 0 -4px;
	scroll-padding: 4px;
}
.bof-reviews--slider .bof-reviews__list::-webkit-scrollbar { display: none; }

.bof-reviews--slider .bof-reviews__item {
	flex: 0 0 calc((100% - 2rem) / 3);
	scroll-snap-align: start;
	min-width: 0;
	transition: transform 280ms ease, box-shadow 280ms ease, opacity 280ms ease;
}
@media (max-width: 980px) {
	.bof-reviews--slider .bof-reviews__item { flex: 0 0 calc((100% - 1rem) / 2); }
}
@media (max-width: 640px) {
	.bof-reviews--slider .bof-reviews__item { flex: 0 0 88%; }
}
.bof-reviews--slider .bof-reviews__item.is-active {
	transform: translateY(-2px);
	box-shadow: 0 8px 24px rgba(20,20,40,0.10);
}

.bof-reviews__sliderNav {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: .75rem;
	margin-top: .85rem;
}
.bof-reviews__sliderBtn {
	width: 38px;
	height: 38px;
	border-radius: 50%;
	border: 1px solid var(--bof-border);
	background: var(--bof-bg);
	color: var(--bof-text);
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 1.1rem;
	line-height: 1;
	transition: background .2s, transform .2s, box-shadow .2s, opacity .2s;
	padding: 0;
}
.bof-reviews__sliderBtn:hover  { background: var(--bof-bg-soft); transform: scale(1.05); box-shadow: var(--bof-shadow); }
.bof-reviews__sliderBtn:active { transform: scale(.97); }
.bof-reviews__sliderBtn[disabled] { opacity: .35; cursor: not-allowed; transform: none; box-shadow: none; }
.bof-reviews__sliderBtn svg { width: 18px; height: 18px; fill: currentColor; }

.bof-reviews__sliderDots {
	display: inline-flex;
	gap: 6px;
	padding: 0 .5rem;
	align-items: center;
}
.bof-reviews__sliderDot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--bof-border);
	border: 0;
	padding: 0;
	cursor: pointer;
	transition: background .25s, transform .25s, width .25s;
}
.bof-reviews__sliderDot:hover { background: var(--bof-muted); }
.bof-reviews__sliderDot.is-active {
	background: var(--bof-star);
	width: 22px;
	border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
	.bof-reviews--masonry .bof-reviews__item,
	.bof-reviews--slider  .bof-reviews__item { animation: none !important; transition: none !important; }
	.bof-reviews--slider .bof-reviews__list   { scroll-behavior: auto; }
}

/* ----------------- Item card ----------------- */

.bof-reviews__item {
	background: var(--bof-bg);
	border: 1px solid var(--bof-border);
	border-radius: var(--bof-radius);
	padding: 1rem 1.1rem;
	box-shadow: var(--bof-shadow);
}
.bof-reviews--list .bof-reviews__item {
	border-radius: 10px;
	padding: .75rem .9rem;
	box-shadow: none;
	background: var(--bof-bg-soft);
}

.bof-reviews__head {
	display: flex;
	gap: .75rem;
	align-items: flex-start;
	margin-bottom: .5rem;
}

.bof-reviews__avatar {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	object-fit: cover;
	flex: none;
	background: #ececec;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	color: rgba(0,0,0,0.6);
	text-transform: uppercase;
	font-size: 1rem;
}
.bof-reviews__avatar--ph { font-size: 1.1rem; }

.bof-reviews__meta { min-width: 0; flex: 1; }

.bof-reviews__author {
	display: block;
	font-weight: 700;
	font-size: .98rem;
	line-height: 1.2;
	color: var(--bof-text);
}

.bof-reviews__sub {
	margin-top: .15rem;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .35rem .5rem;
	font-size: .85rem;
	color: var(--bof-muted);
}

.bof-reviews__stars {
	display: inline-flex;
	gap: 1px;
	font-size: 1.05rem;
	letter-spacing: 1px;
	line-height: 1;
}
.bof-reviews__star { color: var(--bof-star-off); }
.bof-reviews__star.is-on { color: var(--bof-star); }

.bof-reviews__source {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-weight: 600;
	color: rgba(0,0,0,0.65);
	text-decoration: none;
	transition: color .12s, opacity .12s;
}
a.bof-reviews__source { color: rgba(0,0,0,0.75); }
a.bof-reviews__source:hover { color: inherit; opacity: .8; }
.bof-reviews__source::before {
	content: "";
	display: inline-block;
	width: 14px;
	height: 14px;
	flex-shrink: 0;
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
}

/* Google — keeps the recognisable multi-colour "G" mark. */
.bof-reviews__source--google::before {
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'><path fill='%234285F4' d='M45.12 24.5c0-1.56-.14-3.06-.4-4.5H24v8.51h11.84c-.51 2.75-2.05 5.08-4.36 6.64v5.52h7.04c4.13-3.81 6.6-9.43 6.6-16.17z'/><path fill='%2334A853' d='M24 46c5.94 0 10.92-1.97 14.56-5.33l-7.04-5.52c-1.96 1.32-4.46 2.1-7.52 2.1-5.78 0-10.68-3.9-12.43-9.15H4.34v5.73C7.96 41.07 15.4 46 24 46z'/><path fill='%23FBBC05' d='M11.57 28.1c-.45-1.33-.7-2.75-.7-4.1s.25-2.77.7-4.1v-5.73H4.34A21.97 21.97 0 0 0 2 24c0 3.55.84 6.91 2.34 9.83l7.23-5.73z'/><path fill='%23EA4335' d='M24 9.7c3.23 0 6.14 1.11 8.43 3.29l6.31-6.31C34.91 3 29.93 1 24 1 15.4 1 7.96 5.93 4.34 13.07l7.23 5.73C13.32 13.6 18.22 9.7 24 9.7z'/></svg>");
}
/* Other platforms — simple initial-badges in the brand colour, used as
   neutral source-attribution markers rather than full brand reproductions. */
.bof-reviews__source--tripadvisor::before {
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><circle cx='12' cy='12' r='12' fill='%2300AF87'/><text x='12' y='17' text-anchor='middle' font-family='system-ui,sans-serif' font-size='14' font-weight='800' fill='%23fff'>T</text></svg>");
}
.bof-reviews__source--tripcom::before {
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><rect width='24' height='24' rx='5' fill='%23287DFB'/><text x='12' y='17' text-anchor='middle' font-family='system-ui,sans-serif' font-size='13' font-weight='800' fill='%23fff'>T</text><circle cx='17' cy='16' r='2' fill='%23FFA800'/></svg>");
}
.bof-reviews__source--yelp::before {
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><circle cx='12' cy='12' r='12' fill='%23D32323'/><text x='12' y='17' text-anchor='middle' font-family='system-ui,sans-serif' font-size='14' font-weight='800' fill='%23fff'>Y</text></svg>");
}
.bof-reviews__source--booking::before {
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><circle cx='12' cy='12' r='12' fill='%23003580'/><text x='12' y='17' text-anchor='middle' font-family='system-ui,sans-serif' font-size='14' font-weight='800' fill='%23fff'>B</text></svg>");
}
.bof-reviews__source--holidaycheck::before {
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><circle cx='12' cy='12' r='12' fill='%23003D69'/><text x='12' y='17' text-anchor='middle' font-family='system-ui,sans-serif' font-size='14' font-weight='800' fill='%23fff'>H</text></svg>");
}
.bof-reviews__source--hrs::before {
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><circle cx='12' cy='12' r='12' fill='%23FFA801'/><text x='12' y='17' text-anchor='middle' font-family='system-ui,sans-serif' font-size='11' font-weight='800' fill='%23222'>HRS</text></svg>");
}
.bof-reviews__source--expedia::before {
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><circle cx='12' cy='12' r='12' fill='%23FFC72C'/><text x='12' y='17' text-anchor='middle' font-family='system-ui,sans-serif' font-size='14' font-weight='800' fill='%23001E5F'>E</text></svg>");
}
.bof-reviews__source--opentable::before {
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><circle cx='12' cy='12' r='12' fill='%23DA3743'/><text x='12' y='17' text-anchor='middle' font-family='system-ui,sans-serif' font-size='14' font-weight='800' fill='%23fff'>O</text></svg>");
}
.bof-reviews__source--thefork::before {
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><circle cx='12' cy='12' r='12' fill='%2329A083'/><text x='12' y='17' text-anchor='middle' font-family='system-ui,sans-serif' font-size='14' font-weight='800' fill='%23fff'>F</text></svg>");
}
.bof-reviews__source--facebook::before {
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><circle cx='12' cy='12' r='12' fill='%231877F2'/><text x='12' y='17' text-anchor='middle' font-family='system-ui,sans-serif' font-size='14' font-weight='800' fill='%23fff'>f</text></svg>");
}

.bof-reviews__date { color: var(--bof-muted); }

.bof-reviews__body { margin-top: .5rem; }
.bof-reviews__text {
	margin: 0;
	white-space: pre-wrap;
	color: var(--bof-text);
}
.bof-reviews__more {
	text-decoration: none;
	font-weight: 600;
	white-space: nowrap;
}

.bof-reviews__owner {
	margin-top: .65rem;
	padding: .55rem .75rem;
	border-left: 3px solid rgba(0,0,0,0.15);
	background: var(--bof-bg-soft);
	border-radius: 6px;
	font-size: .9rem;
}
.bof-reviews__owner strong { font-weight: 700; }

.bof-reviews__footer {
	margin: 1rem 0 0;
	text-align: center;
	font-size: .95rem;
}
.bof-reviews__all {
	display: inline-flex;
	align-items: center;
	gap: .35em;
	padding: .55rem 1rem;
	border-radius: 999px;
	background: var(--bof-bg-soft);
	text-decoration: none;
	font-weight: 600;
}

/* Dark-mode auto-adapt when a Breakdance section is set dark. */
.bof-on-dark .bof-reviews,
.bof-reviews.is-dark {
	--bof-bg: rgba(255,255,255,0.04);
	--bof-bg-soft: rgba(255,255,255,0.06);
	--bof-border: rgba(255,255,255,0.12);
	--bof-text: #f5f5f7;
	--bof-muted: rgba(255,255,255,0.65);
}
