/* THEFLOW studios block: cards + map; a studio opens over the map with its Google reviews. */

.tf-studios {
	--tf-s-ink: #1f1f1f;
	--tf-s-muted: #6b6b6b;
	--tf-s-line: #e6dfd5;
	--tf-s-bg: #f7f4ef;
	--tf-s-accent: var(--tf-accent, #bc9764);
	--tf-s-stage-h: 520px;
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
	grid-template-areas:
		"intro stage"
		"grid  stage"
		"all   stage";
	grid-template-rows: auto 1fr auto;
	gap: 0 48px;
	margin: clamp(48px, 6vw, 88px) 0;
	font-family: var(--wd-text-font, "Lora"), Georgia, serif;
	color: var(--tf-s-ink);
	text-align: left;
}

/* Intro */
.tf-studios__intro {
	grid-area: intro;
	margin-bottom: 26px;
}
.tf-studios .tf-studios__eyebrow {
	display: flex;
	align-items: center;
	gap: 16px;
	margin: 0 0 14px;
	font-family: var(--tf-label-font, "TF Tenor Sans"), Georgia, serif;
	font-size: 12px;
	letter-spacing: .18em;
	line-height: 1.4;
	text-transform: uppercase;
	color: var(--tf-s-accent);
}
.tf-studios .tf-studios__eyebrow::after {
	content: "";
	width: 80px;
	height: 1px;
	background: currentColor;
}
.tf-studios .tf-studios__title {
	margin: 0 0 12px;
	font-family: var(--tf-head-font, "Marcellus SC"), Georgia, serif;
	font-size: clamp(20px, 1.9vw, 27px);
	font-weight: 400;
	line-height: 1.2;
	letter-spacing: var(--tf-head-ls, .04em);
	text-transform: uppercase;
	color: var(--tf-s-ink);
}
.tf-studios .tf-studios__lead {
	margin: 0;
	font-size: 14px;
	line-height: 1.6;
	color: var(--tf-s-muted);
}

/* Studio cards, 2 × 2 with hairlines */
.tf-studios__grid {
	grid-area: grid;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	border-top: 1px solid var(--tf-s-line);
}
.tf-studio {
	position: relative;
	padding: 24px 56px 24px 0;
	border-bottom: 1px solid var(--tf-s-line);
	cursor: pointer;
	transition: background-color .2s ease;
}
.tf-studio:nth-child(odd) {
	padding-right: 74px;
	border-right: 1px solid var(--tf-s-line);
}
.tf-studio:nth-child(even) {
	padding-left: 24px;
}
.tf-studio.is-active .tf-studio__name,
.tf-studio:hover .tf-studio__name {
	color: #8f6f43;
}
.tf-studios .tf-studio__name {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 10px;
	font-family: var(--tf-head-font, "Marcellus SC"), Georgia, serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.25;
	letter-spacing: var(--tf-head-ls, .04em);
	text-transform: uppercase;
	color: var(--tf-s-ink);
	transition: color .15s ease;
}
.tf-studios .tf-studio__address,
.tf-studios .tf-panel__address {
	margin: 0 0 10px;
	font-size: 13px;
	line-height: 1.5;
	color: var(--tf-s-muted);
}
.tf-studios .tf-studio__row {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 6px;
	font-size: 13px;
	line-height: 1.5;
	color: var(--tf-s-ink);
}
.tf-studio__row svg {
	flex: none;
	width: 16px;
	height: 16px;
	fill: none;
	stroke: var(--tf-s-ink);
	stroke-width: 1.3;
	stroke-linejoin: round;
}
.tf-studios .tf-studio__row a {
	color: inherit;
	text-decoration: none;
	transition: color .15s ease;
}
.tf-studios .tf-studio__row a:hover {
	color: #8f6f43;
}
.tf-studios .tf-studio__open {
	position: absolute;
	top: 20px;
	right: 12px;
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	min-height: 0;
	padding: 0;
	border: 1px solid var(--tf-s-accent);
	border-radius: 50%;
	background: transparent;
	color: var(--tf-s-accent);
	box-shadow: none;
	transition: background-color .2s ease, color .2s ease;
}
.tf-studio:nth-child(odd) .tf-studio__open {
	right: 20px;
}
.tf-studio__open svg {
	width: 16px;
	height: 16px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.4;
}
.tf-studio:hover .tf-studio__open,
.tf-studio.is-active .tf-studio__open {
	background: var(--tf-s-accent);
	color: #fff;
}

.tf-studios .tf-studios__all {
	grid-area: all;
	justify-self: start;
	display: inline-flex;
	align-items: center;
	height: 44px;
	margin-top: 28px;
	padding: 0 28px;
	border-radius: 4px;
	background: var(--btn-accented-bgcolor, #bc9764);
	color: #fff;
	font-family: var(--tf-head-font, "Marcellus SC"), Georgia, serif;
	font-size: 13px;
	-webkit-text-stroke: .4px currentColor;
	letter-spacing: var(--tf-head-ls, .04em);
	text-transform: uppercase;
	transition: background-color .2s ease;
}
.tf-studios .tf-studios__all:hover {
	background: var(--btn-accented-bgcolor-hover, #a9875b);
	color: #fff;
}

/* Map stage; a studio panel covers it when open */
.tf-studios__stage {
	grid-area: stage;
	position: relative;
	z-index: 0; /* keeps the panel (and map controls) below the sticky header */
	isolation: isolate;
	align-self: stretch;
	min-height: var(--tf-s-stage-h);
	overflow: hidden;
	border-radius: 6px;
	background: #ece6dc;
}
.tf-studios__map {
	position: absolute;
	inset: 0;
	z-index: 1;
	width: 100%;
	height: 100%;
	border: 0;
}
.tf-panel {
	position: absolute;
	inset: 0;
	z-index: 500;
	overflow-y: auto;
	padding: 24px 30px 20px;
	background: var(--tf-s-bg);
}
.tf-panel > * {
	animation: tf-panel-in .2s ease-out; /* only the content fades; the background is solid at once */
}
.tf-panel[hidden] {
	display: none;
}
/* While a studio is open the map stays hidden behind a plain panel background,
   so switching studios never flashes the map. */
.tf-studios__stage.is-open {
	background: var(--tf-s-bg);
}
.tf-studios__stage.is-open .tf-studios__map {
	visibility: hidden;
}
/* Phones and tablets: the open studio replaces the map in the flow (see the media query below). */
@keyframes tf-panel-in {
	from { opacity: 0; }
	to { opacity: 1; }
}
.tf-studios .tf-panel__close {
	position: absolute;
	top: 14px;
	right: 14px;
	z-index: 2;
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	min-height: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .85);
	color: var(--tf-s-ink);
	box-shadow: none;
}
.tf-panel__close svg {
	width: 20px;
	height: 20px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.4;
}
.tf-panel__head {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 30%;
	gap: 22px;
	padding-bottom: 16px;
	border-bottom: 1px solid var(--tf-s-line);
}
.tf-studios .tf-panel__name {
	margin: 0 0 12px;
	font-family: var(--tf-head-font, "Marcellus SC"), Georgia, serif;
	font-size: clamp(18px, 1.6vw, 23px);
	line-height: 1.2;
	letter-spacing: var(--tf-head-ls, .04em);
	text-transform: uppercase;
	color: var(--tf-s-ink);
}
/* Delivery facts: time and free radius, side by side with a hairline between */
.tf-studios .tf-panel__facts {
	display: flex;
	margin: 18px 0 0;
	padding: 0;
	list-style: none;
}
.tf-studios .tf-panel__facts li {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	flex: 1 1 0;
	min-width: 0;
	margin: 0;
	padding: 2px 18px 2px 0;
}
.tf-studios .tf-panel__facts li + li {
	padding: 2px 0 2px 18px;
	border-left: 1px solid var(--tf-s-line);
}
.tf-panel__facts svg {
	flex: none;
	width: 22px;
	height: 22px;
	margin-top: 1px;
	fill: none;
	stroke: var(--tf-s-ink);
	stroke-width: 1.3;
	stroke-linejoin: round;
	stroke-linecap: round;
}
.tf-studios .tf-panel__facts span {
	display: block;
	font-size: 12px;
	line-height: 1.4;
	text-wrap: balance;
	color: var(--tf-s-muted);
}
.tf-studios .tf-panel__facts strong {
	display: block;
	margin-bottom: 2px;
	font-family: var(--wd-text-font, "Lora"), Georgia, serif;
	font-size: 17px;
	font-weight: 500;
	line-height: 1.2;
	color: var(--tf-s-ink);
}
.tf-panel__photo {
	overflow: hidden;
	border-radius: 4px;
	aspect-ratio: 1 / 1;
	background: #ebe4da;
}
.tf-panel__photo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
/* Tall photos: keep the bouquet in the crop. */
[data-tf-panel="weho"] .tf-panel__photo img { object-position: 50% 42%; }
[data-tf-panel="marvista"] .tf-panel__photo img { object-position: 50% 88%; }
[data-tf-panel="bh"] .tf-panel__photo img { object-position: 50% 64%; }

/* Google rating and reviews */
.tf-panel__reviews {
	padding-top: 18px;
}
.tf-rv-g__loading {
	margin: 0;
	font-size: 13px;
	color: var(--tf-s-muted);
}
.tf-rv-g__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}
.tf-rv-g__score {
	display: flex;
	align-items: center;
	gap: 12px;
}
.tf-rv-g__num {
	font-family: var(--tf-head-font, "Marcellus SC"), Georgia, serif;
	font-size: 24px;
	line-height: 1;
}
.tf-g {
	flex: none;
	width: 20px;
	height: 20px;
}
.tf-gstars {
	--tf-star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.6l2.9 6 6.6.8-4.9 4.6 1.3 6.5L12 17.3l-5.9 3.2 1.3-6.5-4.9-4.6 6.6-.8z'/%3E%3C/svg%3E");
	display: inline-block;
	width: 90px;
	height: 18px;
	background: linear-gradient(90deg, var(--tf-s-accent) var(--p, 100%), #ddd5c9 var(--p, 100%));
	-webkit-mask: var(--tf-star) left center / 18px 18px repeat-x;
	mask: var(--tf-star) left center / 18px 18px repeat-x;
}
.tf-rv-g__card .tf-gstars {
	width: 70px;
	height: 14px;
	-webkit-mask-size: 14px 14px;
	mask-size: 14px 14px;
}
.tf-studios .tf-rv-g__all {
	font-size: 13px;
	color: var(--tf-s-ink);
	white-space: nowrap;
}
.tf-studios .tf-rv-g__all:hover {
	color: #8f6f43;
}
.tf-studios .tf-rv-g__count {
	margin: 4px 0 14px;
	font-size: 13px;
	color: var(--tf-s-muted);
}
/* Reviews scroll sideways: about two and a half cards in view */
.tf-rv-g__cards {
	display: flex;
	gap: 12px;
	margin-right: -32px;
	padding: 0 32px 6px 0;
	overflow-x: auto;
	scroll-snap-type: x proximity;
	scrollbar-width: none;
	cursor: grab;
	-webkit-overflow-scrolling: touch;
}
.tf-rv-g__cards::-webkit-scrollbar {
	display: none;
}
.tf-rv-g__cards.is-dragging {
	cursor: grabbing;
	scroll-snap-type: none;
	user-select: none;
}
.tf-rv-g__cards > .tf-rv-g__card {
	flex: 0 0 calc((100% - 24px) / 2.5);
	scroll-snap-align: start;
}
.tf-rv-g__card {
	padding: 14px 14px 16px;
	border: 1px solid var(--tf-s-line);
	border-radius: 4px;
	background: rgba(255, 255, 255, .55);
}
.tf-rv-g__who {
	display: flex;
	gap: 10px;
	margin-bottom: 10px;
}
.tf-rv-g__avatar {
	flex: none;
	display: grid;
	place-items: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: #e9dfd1;
	font-family: var(--tf-head-font, "Marcellus SC"), Georgia, serif;
	font-size: 15px;
	color: #8f6f43;
}
.tf-rv-g__meta {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}
.tf-rv-g__author {
	overflow: hidden;
	font-size: 13px;
	line-height: 1.3;
	white-space: nowrap; /* one line: "Clement S." */
	text-overflow: ellipsis;
}
.tf-rv-g__when {
	font-size: 11.5px;
	color: var(--tf-s-muted);
}
.tf-studios .tf-rv-g__text {
	display: -webkit-box;
	margin: 0;
	overflow: hidden;
	-webkit-line-clamp: 5;
	-webkit-box-orient: vertical;
	font-size: 10.5px;
	line-height: 1.55;
	color: #3b3b3b;
}
.tf-studios .tf-rv-g__btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	height: 46px;
	margin-top: 14px;
	border-radius: 4px;
	background: var(--btn-accented-bgcolor, #bc9764);
	color: #fff;
	font-family: var(--tf-head-font, "Marcellus SC"), Georgia, serif;
	font-size: 13px;
	-webkit-text-stroke: .4px currentColor;
	letter-spacing: var(--tf-head-ls, .04em);
	text-transform: uppercase;
	transition: background-color .2s ease;
}
.tf-studios .tf-rv-g__btn:hover {
	background: var(--btn-accented-bgcolor-hover, #a9875b);
	color: #fff;
}
.tf-rv-g__btn .tf-g {
	padding: 2px;
	border-radius: 50%;
	background: #fff;
	width: 22px;
	height: 22px;
}

/* Tablets and phones: one column, the map (or the open studio) under the cards */
@media (max-width: 1024px) {
	.tf-studios {
		grid-template-columns: minmax(0, 1fr);
		grid-template-areas: "intro" "grid" "all" "stage";
		grid-template-rows: none;
	}
	.tf-studios__stage {
		min-height: 420px;
		margin-top: 28px;
	}
	.tf-studios__stage.is-open {
		min-height: 0;
	}
	.tf-studios__stage.is-open .tf-studios__map {
		display: none;
	}
	.tf-studios__stage.is-open .tf-panel {
		position: relative;
		inset: auto;
	}
}
@media (max-width: 767px) {
	.tf-studios__grid {
		grid-template-columns: minmax(0, 1fr);
	}
	.tf-studio,
	.tf-studio:nth-child(odd),
	.tf-studio:nth-child(even) {
		padding: 20px 56px 20px 0;
		border-right: 0;
	}
	.tf-studio:nth-child(odd) .tf-studio__open,
	.tf-studios .tf-studio__open {
		right: 0;
	}
	.tf-panel {
		padding: 26px 18px 22px;
	}
	.tf-panel__head {
		grid-template-columns: minmax(0, 1fr);
	}
	.tf-panel__photo {
		aspect-ratio: 16 / 10;
		order: -1;
	}
	.tf-rv-g__cards {
		margin-right: -18px;
		padding-right: 18px;
	}
	.tf-rv-g__cards > .tf-rv-g__card {
		flex-basis: 74%; /* phones: one card and a peek of the next */
	}
	.tf-rv-g__head {
		flex-wrap: wrap;
	}
}

@media (prefers-reduced-motion: reduce) {
	.tf-panel > * {
		animation: none;
	}
}

/* The panel's "Florist in …" line stays on one line: no decorative rule after it. */
.tf-studios .tf-panel__eyebrow::after {
	display: none;
}
