/**
 * BBA Custom Blocks — shared stylesheet
 * Brand: navy #133144, green #3B6D11
 * Headings: 'Bona Nova', serif | Body: 'Figtree', sans-serif
 *
 * This assumes Bona Nova and Figtree are already enqueued by the
 * theme (they are, since they're the site's existing brand fonts).
 * If a block ever renders with a fallback font instead, load the
 * two Google Fonts families site-wide and these rules will pick
 * them up automatically — nothing here needs to change.
 */

:root {
	--bba-navy: #133144;
	--bba-green: #3B6D11;
	--bba-border: #e2e6e9;
	--bba-bg-soft: #f6f8f7;
	--bba-heading-font: 'Bona Nova', Georgia, serif;
	--bba-body-font: 'Figtree', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ---------- 1. Stat Strip ---------- */
.bba-stat-strip {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	margin: 32px 0;
	padding: 28px 16px;
	background: var(--bba-navy);
	border-radius: 8px;
	text-align: center;
}
.bba-stat {
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.bba-stat-value {
	font-family: var(--bba-heading-font);
	font-size: clamp(1.6rem, 4vw, 2.25rem);
	color: #ffffff;
	font-weight: 700;
	line-height: 1.1;
}
.bba-stat-label {
	font-family: var(--bba-body-font);
	font-size: 0.875rem;
	color: #cfd9de;
	line-height: 1.35;
}
@media (max-width: 600px) {
	.bba-stat-strip { grid-template-columns: 1fr; gap: 18px; }
}

/* ---------- 2. Seasonal Timeline ---------- */
.bba-timeline {
	margin: 32px 0;
}
.bba-timeline-row {
	display: grid;
	grid-template-columns: repeat(12, 1fr);
	gap: 4px;
}
.bba-timeline-month {
	font-family: var(--bba-body-font);
	text-align: center;
	padding: 10px 2px;
	border-radius: 4px;
	font-size: 0.75rem;
	font-weight: 600;
	color: var(--bba-navy);
	background: var(--bba-bg-soft);
	border: 1px solid var(--bba-border);
}
.bba-timeline-month.is-peak {
	background: var(--bba-green);
	color: #ffffff;
	border-color: var(--bba-green);
}
.bba-timeline-month.is-acceptable {
	background: #e7f0e0;
	border-color: var(--bba-green);
	color: var(--bba-navy);
}
.bba-timeline-month.is-avoid {
	opacity: 0.45;
}
.bba-timeline-legend {
	font-family: var(--bba-body-font);
	font-size: 0.8rem;
	color: #57666d;
	margin-top: 10px;
	text-align: center;
}
@media (max-width: 600px) {
	.bba-timeline-row { grid-template-columns: repeat(6, 1fr); grid-auto-rows: auto; }
}

/* ---------- 3. Neighborhood Cards ---------- */
.bba-cards-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 18px;
	margin: 28px 0;
}
.bba-card {
	background: #ffffff;
	border: 1px solid var(--bba-border);
	border-radius: 8px;
	padding: 18px 20px;
}
.bba-card-title {
	font-family: var(--bba-heading-font);
	font-size: 1.1rem;
	color: var(--bba-navy);
	margin: 0 0 6px 0;
}
.bba-card-body {
	font-family: var(--bba-body-font);
	font-size: 0.9rem;
	color: #4a5a61;
	line-height: 1.5;
	margin: 0;
}
.bba-card-pin { color: var(--bba-green); margin-right: 6px; }

/* ---------- 4. Grass Type Cards (reuses card styles) ---------- */
.bba-grass-cards .bba-card-title::before {
	content: "";
}

/* ---------- 5. FAQ Accordion ---------- */
.bba-faq {
	margin: 28px 0;
	border-top: 1px solid var(--bba-border);
}
.bba-faq-item {
	border-bottom: 1px solid var(--bba-border);
	padding: 4px 0;
}
.bba-faq-item summary {
	font-family: var(--bba-heading-font);
	font-size: 1rem;
	color: var(--bba-navy);
	cursor: pointer;
	padding: 14px 4px;
	list-style: none;
	position: relative;
	padding-right: 28px;
}
.bba-faq-item summary::-webkit-details-marker { display: none; }
.bba-faq-item summary::after {
	content: "+";
	position: absolute;
	right: 4px;
	top: 12px;
	font-size: 1.25rem;
	color: var(--bba-green);
	transition: transform 0.15s ease;
}
.bba-faq-item[open] summary::after {
	content: "\2212";
}
.bba-faq-answer {
	font-family: var(--bba-body-font);
	font-size: 0.9rem;
	color: #4a5a61;
	line-height: 1.6;
	padding: 0 4px 16px 4px;
	margin: 0;
}

/* ---------- 6. Breadcrumbs ---------- */
.bba-breadcrumbs {
	font-family: var(--bba-body-font);
	font-size: 0.85rem;
	color: #67767d;
	margin: 12px 0 20px 0;
}
.bba-breadcrumbs a {
	color: var(--bba-navy);
	text-decoration: none;
}
.bba-breadcrumbs a:hover {
	color: var(--bba-green);
	text-decoration: underline;
}
.bba-breadcrumbs .sep {
	margin: 0 6px;
	color: #b7c0c4;
}
.bba-breadcrumbs .current {
	color: #67767d;
}

/* ---------- 7. CTA Band ---------- */
.bba-cta-band {
	margin: 40px 0;
	padding: 36px 24px;
	border-radius: 10px;
	text-align: center;
	background: linear-gradient(135deg, var(--bba-navy) 0%, #1d4a63 100%);
}
.bba-cta-heading {
	font-family: var(--bba-heading-font);
	color: #ffffff;
	font-size: clamp(1.3rem, 3vw, 1.75rem);
	margin: 0 0 8px 0;
}
.bba-cta-subtext {
	font-family: var(--bba-body-font);
	color: #cfd9de;
	font-size: 0.95rem;
	margin: 0 0 20px 0;
}
.bba-cta-button {
	display: inline-block;
	font-family: var(--bba-body-font);
	font-weight: 600;
	background: var(--bba-green);
	color: #ffffff;
	padding: 12px 28px;
	border-radius: 6px;
	text-decoration: none;
	font-size: 0.95rem;
}
.bba-cta-button:hover {
	background: #2f5a0e;
	color: #ffffff;
}

/* ---------- Editor-only niceties ---------- */
.bba-editor-json-hint {
	font-family: var(--bba-body-font);
	font-size: 0.75rem;
	color: #798a91;
	margin-top: 4px;
}

/* ---------- 8. Google Reviews Widget ---------- */
.bba-google-reviews {
	margin: 32px 0;
	font-family: var(--bba-body-font);
}
.bba-gr-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
	background: #f4f4f5;
	border-radius: 8px;
	padding: 16px 20px;
}
.bba-gr-header-left {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
}
.bba-gr-google-logo {
	font-size: 1.1rem;
	font-weight: 700;
	letter-spacing: 0.2px;
}
.bba-gr-google-logo .g-blue { color: #4285F4; }
.bba-gr-google-logo .g-red { color: #EA4335; }
.bba-gr-google-logo .g-yellow { color: #FBBC05; }
.bba-gr-google-logo .g-green { color: #34A853; }
.bba-gr-rating-label {
	font-weight: 700;
	color: #1f1f1f;
	font-size: 0.95rem;
}
.bba-gr-rating-summary {
	font-size: 0.9rem;
	color: #3c4043;
}
.bba-gr-write-btn {
	border: 1px solid #c9ccce;
	border-radius: 6px;
	padding: 9px 18px;
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--bba-navy);
	background: #ffffff;
	text-decoration: none;
	white-space: nowrap;
}
.bba-gr-write-btn:hover {
	border-color: var(--bba-navy);
	color: var(--bba-navy);
}
.bba-gr-write-btn-disabled {
	opacity: 0.5;
	cursor: not-allowed;
	pointer-events: none;
}

/* Stars: gray background layer + gold overlay clipped by width */
.bba-stars {
	position: relative;
	display: inline-block;
	font-size: 0.95rem;
	line-height: 1;
	white-space: nowrap;
}
.bba-stars-bg { color: #d5d8db; letter-spacing: 1px; }
.bba-stars-fg {
	position: absolute;
	top: 0;
	left: 0;
	overflow: hidden;
	color: #f5b400;
	letter-spacing: 1px;
	white-space: nowrap;
}

.bba-gr-carousel {
	position: relative;
	margin-top: 18px;
	display: flex;
	align-items: center;
	gap: 8px;
}
.bba-gr-track {
	display: flex;
	gap: 18px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	padding-bottom: 2px;
}
.bba-gr-track::-webkit-scrollbar { display: none; }
.bba-gr-card {
	flex: 0 0 calc(33.333% - 12px);
	scroll-snap-align: start;
	background: #f4f4f5;
	border-radius: 8px;
	padding: 18px 18px 16px 18px;
	min-width: 220px;
}
.bba-gr-card-top {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 8px;
}
.bba-gr-avatar {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
}
.bba-gr-avatar-fallback {
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--bba-navy);
}
.bba-avatar-initials {
	color: #ffffff;
	font-size: 0.8rem;
	font-weight: 700;
}
.bba-gr-card-id {
	display: flex;
	flex-direction: column;
	line-height: 1.25;
}
.bba-gr-card-name {
	font-weight: 700;
	color: #1f1f1f;
	font-size: 0.92rem;
}
.bba-gr-card-date {
	color: #70757a;
	font-size: 0.78rem;
}
.bba-gr-card-rating {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 8px;
}
.bba-gr-verified {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 15px;
	height: 15px;
	border-radius: 50%;
	background: #4285F4;
	color: #ffffff;
	font-size: 0.6rem;
}
.bba-gr-card-text {
	font-size: 0.88rem;
	color: #3c4043;
	line-height: 1.5;
	margin: 0 0 6px 0;
	display: -webkit-box;
	-webkit-line-clamp: 4;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.bba-gr-card-text.is-expanded {
	-webkit-line-clamp: unset;
	overflow: visible;
}
.bba-gr-readmore {
	background: none;
	border: none;
	padding: 0;
	color: #70757a;
	font-size: 0.82rem;
	cursor: pointer;
	font-family: var(--bba-body-font);
}
.bba-gr-readmore:hover { color: var(--bba-navy); }

.bba-gr-arrow {
	flex-shrink: 0;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	border: 1px solid #d5d8db;
	background: #ffffff;
	color: #3c4043;
	font-size: 1.2rem;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}
.bba-gr-arrow:hover { border-color: var(--bba-navy); color: var(--bba-navy); }

@media (max-width: 780px) {
	.bba-gr-card { flex: 0 0 calc(85% - 12px); }
}

