/* =============================================================================
 * VE REVIEWS BOX (REV-1) — live Google reviews on the villa page.
 * Replaces the old "N Reviews" section inside .property_page_container.for_reviews.
 * Every rule is scoped under .ve-rv so nothing leaks into the theme.
 * Fonts come from the theme (ve-chrome.css): Jost 300/400/500, Cormorant Garamond 400/500.
 * ========================================================================== */

.ve-rv {
	--rv-navy: #1A2142;
	--rv-ink: #33384F;
	--rv-mute: #6B7080;
	--rv-terra: #CFA190;
	--rv-terra-deep: #A87D6A;
	--rv-terra-text: #7a5b4d;
	--rv-blush: #FBE6DD;
	--rv-line: #E9E0D8;
	--rv-cream: #FDF8F5;
	--rv-sans: 'Jost', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--rv-serif: 'Cormorant Garamond', Georgia, serif;
	--rv-gap: 16px;

	container-type: inline-size;
	container-name: verv;
	color: var(--rv-navy);
	font-family: var(--rv-sans);
	font-weight: 300;
	-webkit-font-smoothing: antialiased;
}
.ve-rv *, .ve-rv *::before, .ve-rv *::after { box-sizing: border-box; }
.ve-rv [hidden] { display: none !important; }
.ve-rv a { color: inherit; }
.ve-rv :focus-visible { outline: 2px solid var(--rv-terra-deep); outline-offset: 2px; border-radius: 3px; }
.ve-rv .ve-rv__sr {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---- section title: same convention as the page's other panel titles ----
 * The theme floats .panel-title (left, 100%); a float beside the grid summary
 * squeezes it to zero width, so the title is unfloated and the body clears. */
.ve-rv { display: flow-root; }
.ve-rv .ve-rv__title { float: none; width: auto; }
.ve-rv .ve-rv__body { clear: both; }
.ve-rv .ve-rv__kicker {
	display: block; margin: 0 0 6px;
	font: 500 11px/1.2 var(--rv-sans); letter-spacing: .16em; text-transform: uppercase;
	color: var(--rv-terra-text);
}

/* ---- tabs (exclusive villas only) ---- */
.ve-rv .ve-rv__tabs {
	display: flex; gap: 0; margin: 0 0 4px;
	border-bottom: 1px solid var(--rv-line);
}
.ve-rv .ve-rv__tab {
	flex: 1 1 0; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
	gap: 4px 10px; padding: 13px 10px 12px; margin: 0 0 -1px;
	background: none; border: 0; border-bottom: 2px solid transparent; border-radius: 0;
	font: 400 14px/1.25 var(--rv-sans); color: var(--rv-mute); cursor: pointer; text-align: center;
	transition: color .2s, border-color .2s;
}
.ve-rv .ve-rv__tab:hover { color: var(--rv-navy); }
.ve-rv .ve-rv__tab[aria-selected="true"] { color: var(--rv-navy); border-bottom-color: var(--rv-terra-deep); }
.ve-rv .ve-rv__tab-name { font-weight: 500; color: inherit; }
.ve-rv .ve-rv__tab-meta { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--rv-mute); }
.ve-rv .ve-rv__tab-meta .ve-rv__stars { --s: 12px; }

/* ---- summary ---- */
.ve-rv .ve-rv__summary {
	display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center;
	gap: 14px 26px; padding: 22px 0 20px;
}
.ve-rv .ve-rv__score { display: flex; align-items: center; gap: 14px; }
.ve-rv .ve-rv__big {
	font: 500 56px/.9 var(--rv-serif); color: var(--rv-navy);
	font-variant-numeric: lining-nums; font-feature-settings: 'lnum' 1; letter-spacing: -.01em;
}
.ve-rv .ve-rv__score .ve-rv__stars { --s: 19px; }
.ve-rv .ve-rv__count {
	display: inline-block; margin-top: 7px; font: 400 14px/1.35 var(--rv-sans); color: var(--rv-navy);
	text-decoration: underline; text-decoration-color: rgba(26, 33, 66, .3); text-underline-offset: 3px;
}
.ve-rv .ve-rv__count:hover { text-decoration-color: var(--rv-terra-deep); }
.ve-rv .ve-rv__lead { margin: 0; max-width: 34ch; font: 300 14.5px/1.55 var(--rv-sans); color: var(--rv-ink); }
.ve-rv .ve-rv__attr { align-self: start; padding: 10px 10px 5px; line-height: 0; }
.ve-rv .ve-rv__gmaps { display: block; height: 18px; width: auto; max-width: none; }

/* ---- stars (partial fill via a clipped overlay) ---- */
.ve-rv .ve-rv__stars { --s: 15px; position: relative; display: inline-block; height: var(--s); width: calc(var(--s) * 5); line-height: 0; vertical-align: middle; flex: none; }
.ve-rv .ve-rv__stars-row { position: absolute; top: 0; left: 0; height: 100%; display: flex; overflow: hidden; white-space: nowrap; }
.ve-rv .ve-rv__stars-row svg { display: block; width: var(--s); height: var(--s); flex: none; }
.ve-rv .ve-rv__stars-base { width: 100%; fill: #DDD2C8; }
.ve-rv .ve-rv__stars-fill { fill: var(--rv-terra); }

/* ---- carousel ---- */
.ve-rv .ve-rv__carousel { position: relative; }
.ve-rv .ve-rv__track {
	display: flex; gap: var(--rv-gap); margin: 0; padding: 2px 2px 6px; list-style: none;
	overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-behavior: smooth;
	scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.ve-rv .ve-rv__track::-webkit-scrollbar { display: none; }
.ve-rv .ve-rv__card {
	/* phones: one card plus a sliver (about 0.15) of the next */
	position: relative; flex: 0 0 calc((100% - var(--rv-gap)) / 1.15);
	min-width: 0; display: flex; flex-direction: column; scroll-snap-align: start;
	padding: 20px 20px 16px; background: var(--rv-cream);
	border: 1px solid var(--rv-line); border-radius: 8px;
}
.ve-rv .ve-rv__quote {
	position: absolute; top: 6px; right: 16px; pointer-events: none;
	font: 500 64px/1 var(--rv-serif); color: var(--rv-terra); opacity: .42;
}
.ve-rv .ve-rv__who { display: flex; align-items: center; gap: 12px; padding-right: 30px; min-width: 0; }
.ve-rv .ve-rv__avatar {
	position: relative; flex: none; width: 44px; height: 44px; border-radius: 50%; overflow: hidden;
	box-shadow: 0 0 0 2px #fff, 0 0 0 3px rgba(207, 161, 144, .55);
	background: var(--rv-blush); display: block;
}
.ve-rv .ve-rv__avatar img { display: block; width: 44px; height: 44px; object-fit: cover; border: 0; }
.ve-rv .ve-rv__letter {
	display: flex; width: 100%; height: 100%; align-items: center; justify-content: center;
	font: 500 18px/1 'Roboto', 'Helvetica Neue', Arial, sans-serif; color: #fff;
}
.ve-rv .ve-rv__name {
	display: inline; font: 500 14.5px/1.3 var(--rv-sans); color: var(--rv-navy); text-decoration: none;
	border-bottom: 1px solid rgba(26, 33, 66, .22); overflow-wrap: anywhere;
}
.ve-rv .ve-rv__name:hover { border-bottom-color: var(--rv-terra-deep); }
.ve-rv .ve-rv__when { display: block; margin-top: 3px; font: 300 12.5px/1.3 var(--rv-sans); color: var(--rv-mute); }
.ve-rv .ve-rv__card-stars { display: flex; align-items: center; gap: 8px; margin: 14px 0 9px; }
.ve-rv .ve-rv__card-stars .ve-rv__stars { --s: 14px; }
.ve-rv .ve-rv__text {
	margin: 0; font: 300 14.5px/1.6 var(--rv-sans); color: var(--rv-navy); white-space: pre-line;
	display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 6; overflow: hidden;
}
.ve-rv .ve-rv__card.is-open .ve-rv__text { display: block; -webkit-line-clamp: unset; overflow: visible; }
.ve-rv .ve-rv__more {
	align-self: flex-start; margin: 8px 0 0; padding: 2px 0; background: none; border: 0; cursor: pointer;
	font: 500 12.5px/1.2 var(--rv-sans); letter-spacing: .02em; color: var(--rv-terra-deep);
	text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px;
}
.ve-rv .ve-rv__more:hover { text-decoration-color: currentColor; }
.ve-rv .ve-rv__translated { margin: 8px 0 0; font: 300 11.5px/1.35 var(--rv-sans); color: var(--rv-mute); }
.ve-rv .ve-rv__links {
	margin-top: auto; padding-top: 14px; display: flex; flex-wrap: wrap; gap: 6px 16px;
	font: 400 11.5px/1.3 var(--rv-sans);
}
.ve-rv .ve-rv__links a { color: #7C8190; text-decoration: underline; text-underline-offset: 2px; text-decoration-color: rgba(124, 129, 144, .45); }
.ve-rv .ve-rv__links a:hover { color: var(--rv-navy); }

.ve-rv .ve-rv__nav { display: none; justify-content: space-between; align-items: center; margin-top: 14px; }
.ve-rv .ve-rv__dots { display: flex; gap: 7px; align-items: center; }
.ve-rv .ve-rv__dots i { width: 20px; height: 2px; background: rgba(26, 33, 66, .16); transition: background .2s; }
.ve-rv .ve-rv__dots i.is-on { background: var(--rv-terra-deep); }
.ve-rv .ve-rv__arrows { display: flex; gap: 8px; }
.ve-rv .ve-rv__arrow {
	width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; padding: 0;
	background: #fff; color: var(--rv-navy); border: 1px solid rgba(26, 33, 66, .16); border-radius: 50%; cursor: pointer;
	transition: border-color .2s, opacity .2s;
}
.ve-rv .ve-rv__arrow:hover:not(:disabled) { border-color: var(--rv-terra-deep); }
.ve-rv .ve-rv__arrow:disabled { opacity: .35; cursor: default; }
.ve-rv .ve-rv__arrow svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.6; }

/* ---- footer row ---- */
.ve-rv .ve-rv__foot {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px;
	margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--rv-line);
}
.ve-rv .ve-rv__all {
	display: inline-block; padding: 13px 18px; border: 1px solid var(--rv-navy); border-radius: 2px;
	font: 500 12px/1 var(--rv-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--rv-navy);
	text-decoration: none; transition: background .2s, color .2s;
}
.ve-rv .ve-rv__all:hover { background: var(--rv-navy); color: #fff; }
.ve-rv .ve-rv__yelp {
	font: 400 13px/1.3 var(--rv-sans); color: var(--rv-ink);
	text-decoration: underline; text-decoration-color: rgba(51, 56, 79, .35); text-underline-offset: 3px;
}
.ve-rv .ve-rv__yelp:hover { text-decoration-color: currentColor; }
.ve-rv .ve-rv__notice { flex: 1 0 100%; margin: 0; font: 300 11.5px/1.5 var(--rv-sans); color: var(--rv-mute); }
.ve-rv .ve-rv__notice a { color: var(--rv-mute); text-underline-offset: 2px; }

/* ---- failure: cards hidden, only the Google link (plus the every-page Yelp link) ---- */
.ve-rv .ve-rv__panel.is-failed .ve-rv__summary,
.ve-rv .ve-rv__panel.is-failed .ve-rv__carousel { display: none; }
.ve-rv.is-failed .ve-rv__foot { margin-top: 4px; border-top: 0; padding-top: 4px; }
.ve-rv.is-failed .ve-rv__notice { display: none; }

/* ---- skeleton ---- */
.ve-rv .ve-rv__sk { display: block; border-radius: 4px; background: linear-gradient(90deg, #F3EDE7 0%, #FBF7F3 50%, #F3EDE7 100%); background-size: 200% 100%; animation: ve-rv-shimmer 1.4s ease-in-out infinite; }
.ve-rv .ve-rv__card.is-skeleton { gap: 0; background: #fff; }
.ve-rv .ve-rv__card.is-skeleton .ve-rv__who .ve-rv__sk:first-child { width: 44px; height: 44px; border-radius: 50%; flex: none; }
@keyframes ve-rv-shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }

/* ---- responsive: cards per view ---- */
@media (min-width: 600px) {
	.ve-rv .ve-rv__card { flex-basis: calc((100% - var(--rv-gap)) / 2); }
	.ve-rv .ve-rv__nav { display: flex; }
}
@media (min-width: 992px) {
	.ve-rv .ve-rv__card { flex-basis: calc((100% - 2 * var(--rv-gap)) / 3); }
}
/* a narrow column on a wide screen still gets 2 cards */
@container verv (max-width: 599px) {
	.ve-rv .ve-rv__track .ve-rv__card { flex-basis: calc((100% - var(--rv-gap)) / 2); }
}
@container verv (max-width: 459px) {
	.ve-rv .ve-rv__track .ve-rv__card { flex-basis: calc((100% - var(--rv-gap)) / 1.15); }
	.ve-rv .ve-rv__nav { display: none; }
}
@media (max-width: 599px) {
	.ve-rv .ve-rv__summary { grid-template-columns: minmax(0, 1fr) auto; gap: 12px 16px; padding: 18px 0 16px; }
	.ve-rv .ve-rv__lead { grid-column: 1 / -1; grid-row: 2; max-width: none; font-size: 14px; }
	.ve-rv .ve-rv__attr { grid-column: 2; grid-row: 1; align-self: center; padding: 10px 10px 5px; }
	.ve-rv .ve-rv__big { font-size: 48px; }
	.ve-rv .ve-rv__score { gap: 12px; }
	.ve-rv .ve-rv__score .ve-rv__stars { --s: 16px; }
	.ve-rv .ve-rv__count { font-size: 13.5px; }
	.ve-rv .ve-rv__tab { flex-direction: column; gap: 3px; padding: 11px 6px 10px; font-size: 13px; }
	.ve-rv .ve-rv__tab-meta { font-size: 12px; }
	.ve-rv .ve-rv__card { padding: 18px 16px 14px; }
	.ve-rv .ve-rv__track { scroll-padding-left: 2px; }
	.ve-rv .ve-rv__foot { flex-direction: column; align-items: flex-start; }
	.ve-rv .ve-rv__all { width: 100%; text-align: center; }
	.ve-rv .ve-rv__nav { display: none; }
}

@media (prefers-reduced-motion: reduce) {
	.ve-rv .ve-rv__track { scroll-behavior: auto; }
	.ve-rv .ve-rv__sk { animation: none; }
	.ve-rv .ve-rv__tab, .ve-rv .ve-rv__all, .ve-rv .ve-rv__arrow, .ve-rv .ve-rv__dots i { transition: none; }
}
