/**
 * Chef profile page — vendor & listing lead-gen surfaces.
 * Scoped to .hp-vendor--view-page content injected by the child theme.
 */

:root {
	--ec-ink: #1f2d28;
	--ec-ink-soft: #55635d;
	--ec-ink-muted: #7d8a84;
	--ec-line: #e3e8e5;
	--ec-surface: #ffffff;
	--ec-surface-alt: #f7f9f8;
	--ec-dark: #22332c;
	--ec-accent: #c9603a;
	--ec-accent-ink: #ffffff;
	--ec-green: #2f7a5a;
	--ec-radius: 10px;
	--ec-radius-sm: 6px;
	--ec-gap: 24px;
}

/* ---------------------------------------------------------------- Sidebar */

/* Consistent rhythm for the whole sidebar summary column. */
.hp-vendor--view-page .hp-vendor__summary {
	display: flex;
	flex-direction: column;
	text-align: left;
}

.hp-vendor--view-page .hp-vendor__image {
	margin-bottom: 16px;
}

.hp-vendor--view-page .hp-vendor__name {
	font-size: 22px;
	line-height: 1.25;
	margin: 0 0 4px;
	text-align: left;
}

.ec-status-row {
	display: flex;
	align-items: center;
	gap: 8px;
	order: -1;
	margin-bottom: 12px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--ec-green);
}

.ec-status-row--off {
	color: var(--ec-ink-muted);
}

.ec-status-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: currentColor;
	flex: 0 0 auto;
}

.ec-business-name {
	font-size: 14px;
	color: var(--ec-ink-soft);
	margin-bottom: 12px;
}

.ec-pitch {
	font-size: 15px;
	font-weight: 600;
	line-height: 1.45;
	color: var(--ec-ink);
	margin: 0 0 16px;
}

.ec-rating-row {
	display: flex;
	align-items: baseline;
	gap: 8px;
	padding-top: 16px;
	border-top: 1px solid var(--ec-line);
}

.ec-rating-value {
	font-size: 24px;
	font-weight: 700;
	color: var(--ec-ink);
}

.ec-rating-stars {
	color: var(--ec-accent);
	letter-spacing: 1px;
	font-size: 13px;
}

.ec-rating-count {
	font-size: 13px;
	color: var(--ec-ink-muted);
}

.ec-price-row {
	display: flex;
	align-items: baseline;
	gap: 6px;
	padding: 16px 0;
	border-bottom: 1px solid var(--ec-line);
}

.ec-price-label {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--ec-ink-muted);
}

.ec-price-value {
	font-size: 26px;
	font-weight: 700;
	color: var(--ec-ink);
}

.ec-price-unit {
	font-size: 13px;
	color: var(--ec-ink-muted);
}

.ec-verified-block,
.ec-areas-served {
	padding: 16px 0;
	border-bottom: 1px solid var(--ec-line);
}

.ec-verified-label,
.ec-areas-label {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--ec-ink-muted);
	margin-bottom: 10px;
}

.ec-verified-chips,
.ec-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.ec-areas-value {
	font-size: 14px;
	line-height: 1.5;
	color: var(--ec-ink-soft);
}

/* ------------------------------------------------------------------ Chips */

.ec-chip {
	display: inline-block;
	padding: 4px 10px;
	border-radius: 999px;
	font-size: 12px;
	line-height: 1.6;
	white-space: nowrap;
}

.ec-chip--verified {
	background: rgba(47, 122, 90, 0.1);
	color: var(--ec-green);
	font-weight: 600;
}

.ec-chip--solid {
	background: var(--ec-dark);
	color: #fff;
}

.ec-chip--outline {
	border: 1px solid var(--ec-line);
	color: var(--ec-ink-soft);
}

/* ------------------------------------------------------------------- CTAs */

.ec-btn {
	display: inline-block;
	padding: 13px 22px;
	border-radius: var(--ec-radius-sm);
	font-size: 15px;
	font-weight: 600;
	text-align: center;
	text-decoration: none;
	transition: opacity 0.15s ease;
}

.ec-btn:hover {
	opacity: 0.9;
	text-decoration: none;
}

.ec-btn--primary {
	background: var(--ec-accent);
	color: var(--ec-accent-ink);
}

.ec-btn--primary:hover,
.ec-btn--primary:focus {
	color: var(--ec-accent-ink);
}

.ec-btn--block {
	display: block;
	width: 100%;
}

.ec-cta-disclaimer {
	margin: 10px 0 0;
	font-size: 12px;
	line-height: 1.5;
	color: var(--ec-ink-muted);
}

/* ------------------------------------------------------------ Facts card */

.ec-card {
	background: var(--ec-surface);
	border: 1px solid var(--ec-line);
	border-radius: var(--ec-radius);
	padding: 20px;
}

.ec-facts-card {
	margin-top: 16px;
}

.ec-facts-row {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding: 8px 0;
	font-size: 14px;
}

.ec-facts-row + .ec-facts-row {
	border-top: 1px solid var(--ec-line);
}

.ec-facts-label {
	color: var(--ec-ink-muted);
}

.ec-facts-value {
	color: var(--ec-ink);
	font-weight: 600;
	text-align: right;
}

/* ------------------------------------------------------------ Trust strip */

.ec-trust-strip {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 20px;
	background: var(--ec-dark);
	border-radius: var(--ec-radius);
	padding: 20px 24px;
	margin-bottom: 28px;
}

.ec-trust-title {
	font-size: 14px;
	font-weight: 700;
	color: #fff;
	margin-bottom: 3px;
}

.ec-trust-sub {
	font-size: 12px;
	color: rgba(255, 255, 255, 0.62);
}

/* ------------------------------------------------------------------ Tabs */

.ec-tabs__nav {
	display: flex;
	flex-wrap: wrap;
	gap: 28px;
	border-bottom: 1px solid var(--ec-line);
	margin-bottom: 28px;
}

.ec-tabs__btn {
	appearance: none;
	background: none;
	border: 0;
	border-bottom: 2px solid transparent;
	padding: 0 0 12px;
	margin: 0;
	font-size: 15px;
	font-weight: 600;
	color: var(--ec-ink-muted);
	cursor: pointer;
	transition: color 0.15s ease, border-color 0.15s ease;
}

.ec-tabs__btn:hover {
	color: var(--ec-ink);
}

.ec-tabs__btn.is-active {
	color: var(--ec-ink);
	border-bottom-color: var(--ec-accent);
}

.ec-tabs__panel {
	display: none;
}

.ec-tabs__panel.is-active {
	display: block;
}

/* -------------------------------------------------------------- Typography */

.ec-section-title {
	font-size: 26px;
	font-weight: 700;
	color: var(--ec-ink);
	margin: 0 0 18px;
}

.ec-section-subtitle {
	font-size: 17px;
	font-weight: 700;
	color: var(--ec-ink);
	margin: 32px 0 14px;
}

.ec-prose p {
	font-size: 15px;
	line-height: 1.7;
	color: var(--ec-ink-soft);
	margin: 0 0 14px;
}

.ec-prose p:last-child {
	margin-bottom: 0;
}

.ec-note {
	font-size: 13px;
	line-height: 1.6;
	color: var(--ec-ink-muted);
	margin: 12px 0 0;
}

.ec-note--block {
	margin-top: 14px;
}

.ec-meta-label {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--ec-ink-muted);
	margin-bottom: 6px;
}

.ec-meta-value {
	font-size: 15px;
	line-height: 1.6;
	color: var(--ec-ink);
}

.ec-meta-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: var(--ec-gap);
	padding-top: 22px;
	margin-top: 22px;
	border-top: 1px solid var(--ec-line);
}

/* -------------------------------------------------------- What's included */

.ec-included-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: var(--ec-gap);
}

.ec-included-head {
	font-size: 15px;
	font-weight: 700;
	color: var(--ec-ink);
	margin-bottom: 12px;
}

.ec-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.ec-list li {
	position: relative;
	padding-left: 22px;
	margin-bottom: 8px;
	font-size: 14px;
	line-height: 1.55;
	color: var(--ec-ink-soft);
}

.ec-list--check li::before {
	content: "✓";
	position: absolute;
	left: 0;
	color: var(--ec-green);
	font-weight: 700;
}

.ec-list--dot li::before {
	content: "•";
	position: absolute;
	left: 4px;
	color: var(--ec-ink-muted);
}

/* ------------------------------------------------------------ Travel card */

.ec-travel-row {
	display: flex;
	gap: 16px;
	padding: 10px 0;
	font-size: 14px;
	line-height: 1.6;
}

.ec-travel-row + .ec-travel-row {
	border-top: 1px solid var(--ec-line);
}

.ec-travel-label {
	flex: 0 0 90px;
	color: var(--ec-ink-muted);
}

.ec-travel-value {
	color: var(--ec-ink);
}

/* --------------------------------------------------------- Service cards */

.ec-service-card + .ec-service-card {
	margin-top: 20px;
}

.ec-service-head {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 20px;
}

.ec-service-kicker {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--ec-ink-muted);
	margin-bottom: 4px;
}

.ec-service-title {
	font-size: 19px;
	font-weight: 700;
	color: var(--ec-ink);
	margin: 0;
}

.ec-service-price {
	text-align: right;
	white-space: nowrap;
}

.ec-service-price-value {
	display: block;
	font-size: 22px;
	font-weight: 700;
	color: var(--ec-green);
}

.ec-service-price-unit {
	font-size: 12px;
	color: var(--ec-ink-muted);
}

.ec-service-facts {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 14px;
}

.ec-service-fact {
	background: var(--ec-surface-alt);
	border-radius: var(--ec-radius-sm);
	padding: 5px 10px;
	font-size: 12px;
	color: var(--ec-ink-soft);
}

.ec-service-desc {
	margin-top: 14px;
}

.ec-listing-sample-menus {
	margin-top: 32px;
	padding-top: 24px;
	border-top: 1px solid var(--ec-line);
	scroll-margin-top: 90px; /* clears the sticky topbar/tab-bar when jumped to via the anchor link */
}

.ec-listing-sample-menus .ec-menu {
	margin-top: 16px;
}

.ec-listing-price {
	display: flex;
	align-items: baseline;
	gap: 6px;
	margin-bottom: 14px;
}

.ec-listing-price-value {
	font-size: 22px;
	font-weight: 700;
	color: var(--ec-ink);
}

.ec-listing-price-unit {
	font-size: 14px;
	color: var(--ec-ink-soft);
}

/* ------------------------------------------------------------ Sample menu */

.ec-menu {
	background: var(--ec-surface-alt);
	border-radius: var(--ec-radius-sm);
	padding: 18px;
	margin-top: 18px;
}

.ec-menu-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 12px;
}

.ec-menu-label {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--ec-ink-muted);
}

.ec-menu-caveat {
	font-size: 11px;
	font-style: italic;
	color: var(--ec-ink-muted);
}

.ec-menu-title {
	font-size: 15px;
	font-weight: 700;
	color: var(--ec-ink);
	margin-bottom: 12px;
}

.ec-menu-course + .ec-menu-course {
	margin-top: 10px;
}

.ec-menu-course-name {
	font-size: 12px;
	font-weight: 700;
	color: var(--ec-ink);
	margin-bottom: 2px;
}

.ec-menu-dishes {
	font-size: 14px;
	line-height: 1.55;
	color: var(--ec-ink-soft);
}

/* ---------------------------------------------------------------- Add-ons */

.ec-addons {
	margin-top: 18px;
}

.ec-addons-label {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--ec-ink-muted);
	margin-bottom: 8px;
}

.ec-addons-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.ec-addons-list li {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	padding: 7px 0;
	font-size: 14px;
	color: var(--ec-ink-soft);
}

.ec-addons-list li + li {
	border-top: 1px solid var(--ec-line);
}

.ec-addon-price {
	color: var(--ec-ink);
	font-weight: 600;
	white-space: nowrap;
}

.ec-service-cta {
	margin-top: 18px;
}

/* ---------------------------------------------------------- Cuisine tab */

.ec-also-cooks,
.ec-signature {
	margin-top: 20px;
}

.ec-allergy-card {
	margin-top: 22px;
	background: var(--ec-surface-alt);
}

.ec-allergy-head {
	font-size: 15px;
	font-weight: 700;
	color: var(--ec-ink);
	margin-bottom: 10px;
}

/* ---------------------------------------------------------- Reviews tab */

.ec-review-summary {
	display: grid;
	grid-template-columns: minmax(150px, 220px) 1fr;
	gap: var(--ec-gap);
	align-items: start;
	margin-bottom: 20px;
}

.ec-review-score-value {
	font-size: 46px;
	font-weight: 700;
	line-height: 1;
	color: var(--ec-ink);
}

.ec-review-score-stars {
	color: var(--ec-accent);
	letter-spacing: 2px;
	margin: 6px 0 4px;
}

.ec-review-score-count {
	font-size: 12px;
	color: var(--ec-ink-muted);
}

.ec-review-categories {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
	gap: 4px 28px;
}

.ec-review-category {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding: 5px 0;
	font-size: 14px;
}

.ec-review-category-label {
	color: var(--ec-ink-soft);
}

.ec-review-category-score {
	font-weight: 600;
	color: var(--ec-ink);
}

.ec-review + .ec-review {
	margin-top: 16px;
}

.ec-review-head {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 16px;
	margin-bottom: 12px;
}

.ec-review-author {
	font-size: 16px;
	font-weight: 700;
	color: var(--ec-ink);
}

.ec-review-meta {
	font-size: 12px;
	color: var(--ec-ink-muted);
	margin-top: 2px;
}

.ec-review-badges {
	display: flex;
	align-items: center;
	gap: 10px;
	white-space: nowrap;
}

.ec-badge {
	background: var(--ec-surface-alt);
	border-radius: var(--ec-radius-sm);
	padding: 4px 8px;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--ec-ink-soft);
}

.ec-review-stars {
	color: var(--ec-accent);
	font-size: 13px;
	letter-spacing: 1px;
}

.ec-review-reply {
	background: var(--ec-surface-alt);
	border-radius: var(--ec-radius-sm);
	padding: 14px 16px;
	margin-top: 14px;
}

.ec-review-reply-head {
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--ec-ink-muted);
	margin-bottom: 6px;
}

.ec-review-reply .ec-prose p {
	font-size: 14px;
	margin-bottom: 0;
}

/* ---------------------------------------------------------- Gallery tab */

.ec-gallery-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 14px;
}

.ec-gallery-tile {
	position: relative;
	aspect-ratio: 4 / 3;
	border-radius: var(--ec-radius-sm);
	overflow: hidden;
	background: var(--ec-surface-alt);
}

.ec-gallery-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.ec-gallery-tile--video {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
	background: var(--ec-dark);
	color: #fff;
	text-decoration: none;
}

.ec-gallery-tile--video:hover {
	color: #fff;
	text-decoration: none;
}

.ec-gallery-play {
	font-size: 26px;
	line-height: 1;
}

.ec-gallery-video-label {
	font-size: 13px;
	font-weight: 600;
}

/* ------------------------------------------------------------ Responsive */

/*
 * Grid tracks must be allowed to shrink below their ideal minimum on narrow
 * screens. Plain minmax(260px, 1fr) with auto-fit overflows the container
 * once the viewport drops under that floor; min() clamps it to 100%.
 */
.ec-meta-grid {
	grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
}

.ec-included-grid {
	grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
}

.ec-trust-strip {
	grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr));
}

.ec-review-categories {
	grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr));
}

.ec-gallery-grid {
	grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr));
}

@media (max-width: 767px) {

	/*
	 * Wrapper gutters (.container / .hp-page / grid columns) are corrected
	 * globally in assets/css/child.css. Here we only tighten the card
	 * nesting levels inside the profile.
	 */

	:root {
		--ec-gap: 16px;
	}

	.ec-card {
		padding: 16px;
	}

	.ec-trust-strip {
		gap: 14px;
		padding: 16px;
		margin-bottom: 22px;
	}

	.ec-menu {
		padding: 14px;
		margin-top: 14px;
	}

	.ec-review-summary {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.ec-review-categories {
		gap: 2px 18px;
	}

	/* Tab bar scrolls horizontally instead of wrapping to three rows. */
	.ec-tabs__nav {
		gap: 18px;
		margin-bottom: 22px;
		overflow-x: auto;
		flex-wrap: nowrap;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
	}

	.ec-tabs__nav::-webkit-scrollbar {
		display: none;
	}

	.ec-tabs__btn {
		white-space: nowrap;
		font-size: 14px;
	}

	.ec-section-title {
		font-size: 22px;
		margin-bottom: 14px;
	}

	.ec-section-subtitle {
		margin: 24px 0 12px;
	}

	.ec-service-head {
		flex-direction: column;
		gap: 8px;
	}

	.ec-service-price {
		text-align: left;
	}

	.ec-service-price-value {
		display: inline;
	}

	/* Long add-on labels shouldn't collide with their price. */
	.ec-addons-list li {
		flex-wrap: wrap;
		gap: 2px 12px;
	}

	.ec-travel-row {
		flex-direction: column;
		gap: 2px;
	}

	.ec-travel-label {
		flex-basis: auto;
	}

	.ec-review-head {
		flex-direction: column;
		gap: 8px;
	}

	.ec-review-badges {
		flex-wrap: wrap;
		white-space: normal;
	}

	.ec-gallery-tile {
		aspect-ratio: 3 / 2;
	}
}

@media (max-width: 400px) {

	.ec-card {
		padding: 14px;
	}

	.ec-trust-strip {
		padding: 14px;
	}

	.ec-review-score-value {
		font-size: 38px;
	}

	.ec-chip {
		font-size: 11px;
		padding: 4px 8px;
	}
}
