/*
 * DESCRIPTION: Front end styles for gym, trainer and fitness service profiles
 * DESCRIPTION: and their archives. Plain CSS with custom properties, no build step.
 */

.bbbd-profile,
.bbbd-archive,
.bbbd-grid,
.bbbd-location-links {
	/*
	 * Prothom Alo's stack. Shurjo is theirs and not licensable, so it only shows
	 * where a reader has it installed; the BodyBuildingBD theme self-hosts Hind
	 * Siliguri as the stand-in. Under any other theme the system fonts take over.
	 */
	--bbbd-font: "Shurjo", "Siyam Rupali", "Hind Siliguri", Roboto, Arial, Helvetica, sans-serif;
	/*
	 * Palette follows prothomalo.com: #121212 ink, #d60000 red, neutral greys.
	 * Every value below was checked against WCAG AA for the way it is actually
	 * used, and the ratio is noted so a future tweak has to beat a number rather
	 * than a hunch.
	 */
	--bbbd-ink: #121212;             /* 18.73:1 on white */
	--bbbd-muted: #595959;           /* 7.00:1 on white */
	--bbbd-line: #d0d0d5;            /* decorative hairlines only; matches the theme's accent-6/7 mix */
	--bbbd-line-strong: #8e8884;     /* 3.50:1 — form controls, per WCAG 1.4.11 */
	--bbbd-accent: #d60000;          /* 5.44:1 on white, and white on it */
	--bbbd-accent-hover: #a80000;    /* 7.88:1 */
	--bbbd-accent-wash: #fdf0ef;
	--bbbd-success: #157a42;         /* 5.39:1 for white text */
	--bbbd-success-hover: #11633a;   /* 7.32:1 */
	--bbbd-surface: #f7f7f7;
	--bbbd-radius: 0;

	font-family: var(--bbbd-font);
	color: var(--bbbd-ink);
	max-width: 860px;
	margin: 0 auto;
	padding: 24px 16px 48px;
	line-height: 1.6;
}

/*
 * Same width and side gutter as the theme header and footer, read from the
 * theme's own variables so the page edges line up by construction.
 */
.bbbd-archive {
	max-width: var(--wp--style--global--wide-size, 1100px);
	padding-left: var(--wp--style--root--padding-left, 16px);
	padding-right: var(--wp--style--root--padding-right, 16px);
}

/* The archive already provides the gutter; the grid's own would inset the cards. */
.bbbd-archive .bbbd-grid {
	max-width: none;
	padding: 0;
}

/* Header ------------------------------------------------------------------ */

.bbbd-profile__header h1,
.bbbd-archive__header h1 {
	margin: 0 0 8px;
	line-height: 1.2;
}

.bbbd-location-line {
	color: var(--bbbd-muted);
	margin: 0 0 16px;
}

.bbbd-profile__summary {
	font-size: 1.1em;
	margin: 0 0 24px;
}

.bbbd-profile__hero img {
	width: 100%;
	height: auto;
	border-radius: var(--bbbd-radius);
}

/* Badges ------------------------------------------------------------------ */

.bbbd-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	list-style: none;
	margin: 0 0 12px;
	padding: 0;
}

.bbbd-badge {
	font-size: 0.78em;
	font-weight: 600;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	padding: 3px 9px;
	border-radius: var(--bbbd-radius);
	border: 1px solid var(--bbbd-line);
	background: var(--bbbd-surface);
	color: var(--bbbd-muted);
}

.bbbd-badge--verified {
	border-color: #007017;
	color: #007017;
	background: #edfaef;
}

.bbbd-badge--sponsored {
	border-color: #8a6d00;
	color: #8a6d00;
	background: #fcf6e5;
}

/* Actions ----------------------------------------------------------------- */

.bbbd-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 16px 0 24px;
}

.bbbd-action {
	display: inline-block;
	padding: 11px 22px;
	border-radius: var(--bbbd-radius);
	background: var(--bbbd-accent);
	color: #fff;
	font-weight: 600;
	text-decoration: none;
	border: 1px solid transparent;
}

.bbbd-action:hover,
.bbbd-action:focus {
	background: var(--bbbd-accent-hover);
	color: #fff;
}

.bbbd-action--whatsapp {
	background: var(--bbbd-success);
}

.bbbd-action--whatsapp:hover,
.bbbd-action--whatsapp:focus {
	background: var(--bbbd-success-hover);
}

.bbbd-action--map {
	background: transparent;
	color: var(--bbbd-ink);
	border-color: var(--bbbd-line);
}

.bbbd-action--map:hover,
.bbbd-action--map:focus {
	background: var(--bbbd-surface);
	color: var(--bbbd-ink);
}

/* Sections ---------------------------------------------------------------- */

.bbbd-section {
	border-top: 1px solid var(--bbbd-line);
	padding-top: 20px;
	margin-top: 28px;
}

.bbbd-section h2 {
	margin: 0 0 12px;
	font-size: 1.25em;
}

.bbbd-hours-table,
.bbbd-pricing-table,
.bbbd-detail-table {
	width: 100%;
	border-collapse: collapse;
}

.bbbd-hours-table th,
.bbbd-pricing-table th,
.bbbd-detail-table th {
	text-align: left;
	font-weight: 500;
	color: var(--bbbd-muted);
	padding: 8px 16px 8px 0;
	vertical-align: top;
	width: 40%;
}

.bbbd-hours-table td,
.bbbd-pricing-table td,
.bbbd-detail-table td {
	padding: 8px 0;
	vertical-align: top;
}

.bbbd-hours-table tr + tr th,
.bbbd-hours-table tr + tr td,
.bbbd-pricing-table tr + tr th,
.bbbd-pricing-table tr + tr td,
.bbbd-detail-table tr + tr th,
.bbbd-detail-table tr + tr td {
	border-top: 1px solid var(--bbbd-line);
}

/* Term lists -------------------------------------------------------------- */

.bbbd-terms {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	list-style: none;
	margin: 0 0 12px;
	padding: 0;
}

.bbbd-terms li {
	padding: 5px 12px;
	border: 1px solid var(--bbbd-line);
	border-radius: var(--bbbd-radius);
	background: var(--bbbd-surface);
	font-size: 0.92em;
}

.bbbd-terms li a {
	text-decoration: none;
	color: inherit;
}

.bbbd-terms--amenity li::before {
	content: "\2713\00a0";
	color: #007017;
}

/* Notes ------------------------------------------------------------------- */

.bbbd-verified-note,
.bbbd-disclaimer {
	font-size: 0.9em;
	color: var(--bbbd-muted);
	margin: 12px 0 0;
}

.bbbd-verified-note--unknown {
	padding: 10px 12px;
	background: var(--bbbd-surface);
	border-left: 3px solid var(--bbbd-line);
	border-radius: 0 var(--bbbd-radius) var(--bbbd-radius) 0;
}

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

.bbbd-gallery-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	gap: 10px;
}

.bbbd-gallery-grid img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: var(--bbbd-radius);
}

/* Cards ------------------------------------------------------------------- */

/*
 * auto-fit, not auto-fill: with two gyms in a wide row auto-fill keeps the two
 * empty tracks and the row reads as broken rather than short. A lone card would
 * then stretch the full width, so it is capped instead.
 */
.bbbd-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 20px;
	margin-top: 24px;
}

.bbbd-grid > :only-child {
	max-width: 420px;
}

.bbbd-card {
	position: relative;
	border: 1px solid var(--bbbd-line);
	border-radius: var(--bbbd-radius);
	padding: 16px;
	display: flex;
	flex-direction: column;
	transition: border-color 0.15s ease;
}

.bbbd-card:hover {
	border-color: var(--bbbd-line-strong);
}

/* The stretched title link below carries focus; show it on the whole card. */
.bbbd-card:focus-within {
	outline: 2px solid var(--bbbd-accent);
	outline-offset: 2px;
}

.bbbd-card__title a:focus {
	outline: none;
}

.bbbd-card__image img {
	width: 100%;
	height: 160px;
	object-fit: cover;
	border-radius: var(--bbbd-radius);
	margin-bottom: 12px;
}

.bbbd-card__head {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 8px;
}

/*
 * Stands in for a profile with no photo: the initial on the brand gradient,
 * small enough that the card leads with its facts rather than a coloured block.
 */
.bbbd-card__avatar {
	flex: none;
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	border-radius: var(--bbbd-radius);
	background: linear-gradient(160deg, #6f1524 0%, #2d0911 100%);
	color: #fff;
	font-size: 1.3rem;
	font-weight: 800;
	line-height: 1;
}

.bbbd-card__title {
	margin: 0 0 8px;
	font-size: 1.1em;
	line-height: 1.3;
}

.bbbd-card__head .bbbd-card__title {
	margin: 0;
}

.bbbd-card__title a {
	text-decoration: none;
	color: inherit;
}

/* Stretched link: the whole card is the title link's click target. */
.bbbd-card__title a::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: var(--bbbd-radius);
}

.bbbd-card__area,
.bbbd-card__price {
	margin: 0 0 4px;
	color: var(--bbbd-muted);
	font-size: 0.92em;
}

.bbbd-card__area {
	display: flex;
	align-items: center;
	gap: 4px;
}

.bbbd-card__area::before {
	content: "";
	flex: none;
	width: 14px;
	height: 14px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a7 7 0 0 0-7 7c0 5.25 7 13 7 13s7-7.75 7-13a7 7 0 0 0-7-7zm0 9.5a2.5 2.5 0 1 1 0-5 2.5 2.5 0 0 1 0 5z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a7 7 0 0 0-7 7c0 5.25 7 13 7 13s7-7.75 7-13a7 7 0 0 0-7-7zm0 9.5a2.5 2.5 0 1 1 0-5 2.5 2.5 0 0 1 0 5z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.bbbd-card__price {
	font-weight: 600;
	color: var(--bbbd-ink);
}

.bbbd-card__excerpt {
	margin: 8px 0 12px;
	font-size: 0.94em;
}

.bbbd-card__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	list-style: none;
	margin: 0 0 16px;
	padding: 0;
}

.bbbd-card__tags li {
	padding: 2px 10px;
	border-radius: var(--bbbd-radius);
	background: var(--bbbd-surface);
	color: var(--bbbd-muted);
	font-size: 0.85em;
}

.bbbd-card__link {
	margin-top: auto;
	align-self: flex-start;
	font-weight: 600;
	text-decoration: none;
	color: var(--bbbd-accent);
}

/* Once, under the grid: what the badges on the cards mean. */
.bbbd-badge-legend {
	margin: 16px 0 0;
	color: var(--bbbd-muted);
	font-size: 0.88em;
}

/* Similar and CTA --------------------------------------------------------- */

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

.bbbd-similar li + li {
	margin-top: 8px;
}

.bbbd-cta {
	margin-top: 36px;
	padding: 20px;
	background: var(--bbbd-surface);
	border-radius: var(--bbbd-radius);
	text-align: center;
}

.bbbd-cta p {
	margin: 0 0 12px;
	font-weight: 600;
}

.bbbd-contact-details {
	list-style: none;
	margin: 0;
	padding: 0;
}

.bbbd-contact-details li + li {
	margin-top: 6px;
}

.bbbd-empty {
	padding: 24px;
	background: var(--bbbd-surface);
	border-radius: var(--bbbd-radius);
}

@media (max-width: 480px) {
	.bbbd-actions .bbbd-action {
		flex: 1 1 100%;
		text-align: center;
	}

	.bbbd-hours-table th,
	.bbbd-pricing-table th,
	.bbbd-detail-table th {
		width: 50%;
	}
}

/* Lead form -------------------------------------------------------------- */

.bbbd-lead-form .bbbd-field {
	margin: 0 0 14px;
}

.bbbd-lead-form label {
	display: block;
	font-weight: 600;
	margin-bottom: 4px;
	font-size: 0.94em;
}

.bbbd-lead-form input[type="text"],
.bbbd-lead-form input[type="tel"],
.bbbd-lead-form input[type="email"],
.bbbd-lead-form select,
.bbbd-lead-form textarea {
	/* Padding inside the width, so a full-width field never overflows its box. */
	box-sizing: border-box;
	width: 100%;
	max-width: 420px;
	padding: 10px 12px;
	border: 1px solid var(--bbbd-line-strong);
	border-radius: var(--bbbd-radius);
	font: inherit;
	background: #fff;
	color: var(--bbbd-ink);
}

.bbbd-lead-form textarea {
	resize: vertical;
}

.bbbd-lead-form button {
	cursor: pointer;
	font: inherit;
}

/* Honeypot. Hidden from people, left in the DOM for bots to fill in. */
.bbbd-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.bbbd-form-note {
	font-size: 0.86em;
	color: var(--bbbd-muted);
}

.bbbd-notice {
	padding: 12px 14px;
	border-radius: var(--bbbd-radius);
	border-left: 4px solid;
	margin: 0 0 16px;
}

.bbbd-notice--success {
	background: #edfaef;
	border-color: #007017;
}

.bbbd-notice--error {
	background: var(--bbbd-accent-wash);
	border-color: var(--bbbd-accent);
}

/* Shortcode blocks -------------------------------------------------------- */

/*
 * A shortcode grid sits inside the page's own layout, so it drops the reading
 * width and padding the token block gives archive pages. Left with them it is
 * centred at 860px under a left-aligned 1200px heading, with 48px of dead space
 * below it.
 */
.bbbd-grid--shortcode {
	margin-top: 0;
	max-width: none;
	padding: 0;
}

.bbbd-location-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.bbbd-location-links li {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 8px 14px;
	border: 1px solid var(--bbbd-line);
	border-radius: var(--bbbd-radius);
	background: var(--bbbd-surface);
}

.bbbd-location-links a {
	text-decoration: none;
	color: inherit;
	font-weight: 500;
}

.bbbd-location-links__count {
	font-size: 0.82em;
	color: var(--bbbd-muted);
	background: #fff;
	border-radius: var(--bbbd-radius);
	padding: 1px 8px;
}

/* Category tiles ---------------------------------------------------------- */

/*
 * Used by [bbbd_categories] in the homepage hero. Deliberately outside the
 * token block at the top of this file: that block also sets a max width and
 * page padding, which a tile grid sitting inside a hero column must not carry.
 *
 * The tile art is optional. With no featured image anywhere in a post type the
 * tile still reads as a tile, because the background colour, not the image,
 * carries it.
 */
.bbbd-cats {
	--bbbd-cat-accent: #d60000;

	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 14px;
}

.bbbd-cat {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-height: 132px;
	padding: 16px;
	border-radius: var(--bbbd-radius);
	overflow: hidden;
	background-color: rgba(255, 255, 255, 0.08);
	background-size: cover;
	background-position: center;
	color: #fff;
	text-decoration: none;
	transition: transform 0.15s ease;
}

/*
 * Sits above the art and under the text. The gradient is what keeps the label
 * readable over a photo nobody has cropped for this box.
 */
.bbbd-cat::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0.7) 100%);
}

.bbbd-cat > * {
	position: relative;
}

.bbbd-cat:hover,
.bbbd-cat:focus-visible {
	transform: translateY(-2px);
}

.bbbd-cat:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

.bbbd-cat__label {
	display: flex;
	align-items: center;
	gap: 8px;
	font-weight: 700;
	font-size: 1.05rem;
	line-height: 1.3;
}

.bbbd-cat__pin {
	flex: none;
	box-sizing: content-box;
	padding: 5px;
	border-radius: var(--bbbd-radius);
	background: var(--bbbd-cat-accent);
	color: #fff;
}

.bbbd-cat__count {
	margin-top: auto;
	font-size: 0.9rem;
	opacity: 0.85;
}

@media (prefers-reduced-motion: reduce) {
	.bbbd-cat {
		transition: none;
	}

	.bbbd-cat:hover,
	.bbbd-cat:focus-visible {
		transform: none;
	}
}

/* Search results ---------------------------------------------------------- */

.bbbd-results + .bbbd-results {
	margin-top: 36px;
}

.bbbd-results__heading {
	margin: 0 0 14px;
	padding-bottom: 8px;
	border-bottom: 1px solid var(--bbbd-line);
}

.bbbd-results__more {
	margin-top: 14px;
	font-size: 0.94em;
}

/* Facets ------------------------------------------------------------------ */

/*
 * Sidebar and results in one grid. The sidebar is fixed because a filter list
 * that changes width as the result count changes is unreadable; the results
 * take whatever is left.
 */
.bbbd-archive__layout {
	display: grid;
	grid-template-columns: 240px minmax(0, 1fr);
	gap: 32px;
	align-items: start;
	margin-top: 24px;
}

.bbbd-facets {
	border: 1px solid var(--bbbd-line);
	border-radius: var(--bbbd-radius);
	padding: 16px;
	font-size: 0.94em;
}

.bbbd-facets__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 8px;
	margin-bottom: 12px;
}

.bbbd-facets__title {
	margin: 0;
	font-size: 1em;
}

.bbbd-facets__reset {
	font-size: 0.9em;
}

.bbbd-facets__label,
.bbbd-facets__legend {
	display: block;
	font-weight: 600;
	margin-bottom: 6px;
}

.bbbd-facets__search input {
	width: 100%;
	padding: 8px 10px;
	border: 1px solid var(--bbbd-line-strong);
	border-radius: var(--bbbd-radius);
	font: inherit;
}

.bbbd-facets__group {
	border: 0;
	border-top: 1px solid var(--bbbd-line);
	margin: 16px 0 0;
	padding: 16px 0 0;
}

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

.bbbd-facets__item {
	display: flex;
	align-items: baseline;
	gap: 8px;
	margin-bottom: 6px;
}

.bbbd-facets__item label {
	display: flex;
	gap: 6px;
	justify-content: space-between;
	flex: 1;
}

.bbbd-facets__count {
	color: var(--bbbd-muted);
	font-variant-numeric: tabular-nums;
}

.bbbd-facets__note {
	margin: 10px 0 0;
	color: var(--bbbd-muted);
	font-size: 0.88em;
}

.bbbd-facets__apply {
	position: sticky;
	bottom: 12px;
	margin-top: 16px;
	width: 100%;
	border: 0;
	font: inherit;
	cursor: pointer;
}

/* Only a phone folds the panel away, so only a phone needs its handle. */
.bbbd-facets__toggle {
	display: none;
}

.bbbd-facets__more summary {
	cursor: pointer;
	margin: 0 0 6px;
	color: var(--bbbd-accent);
	font-weight: 600;
	font-size: 0.92em;
}

/* Results header ---------------------------------------------------------- */

.bbbd-results__head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--bbbd-line);
}

.bbbd-results__count {
	margin: 0;
	font-weight: 600;
}

.bbbd-sort__list {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	list-style: none;
	margin: 0;
	padding: 0;
	font-size: 0.92em;
}

.bbbd-sort__link {
	display: inline-block;
	padding: 4px 10px;
	border-radius: var(--bbbd-radius);
	text-decoration: none;
	color: var(--bbbd-muted);
}

.bbbd-sort__link:hover,
.bbbd-sort__link:focus {
	background: var(--bbbd-surface);
	color: var(--bbbd-ink);
}

.bbbd-sort__link.is-current {
	background: var(--bbbd-ink);
	color: #fff;
}

/* Active filter chips ----------------------------------------------------- */

.bbbd-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	list-style: none;
	margin: 12px 0 0;
	padding: 0;
}

.bbbd-chip a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 4px 12px;
	border: 1px solid var(--bbbd-line-strong);
	border-radius: var(--bbbd-radius);
	text-decoration: none;
	color: var(--bbbd-ink);
	font-size: 0.9em;
}

.bbbd-chip a:hover,
.bbbd-chip a:focus {
	border-color: var(--bbbd-accent);
	color: var(--bbbd-accent);
}

.bbbd-chip__remove {
	font-size: 1.1em;
	line-height: 1;
}

/* Nearby areas and the area write-up -------------------------------------- */

.bbbd-nearby {
	margin-top: 40px;
	padding-top: 24px;
	border-top: 1px solid var(--bbbd-line);
}

.bbbd-nearby__title {
	margin: 0 0 12px;
	font-size: 1.1em;
}

.bbbd-nearby__list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 16px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.bbbd-archive__editorial {
	margin-top: 40px;
	padding: 24px;
	background: var(--bbbd-surface);
	border-radius: var(--bbbd-radius);
	max-width: 760px;
}

.bbbd-archive__editorial h2 {
	margin-top: 0;
}

/*
 * Below the sidebar's own width there is nothing to sit beside, so the filters
 * stack above the listings, folded into a disclosure so the listings stay near
 * the top of the screen. The sort pills scroll sideways instead of wrapping.
 */
@media (max-width: 860px) {
	.bbbd-archive__layout {
		grid-template-columns: minmax(0, 1fr);
		gap: 24px;
	}

	.bbbd-facets__toggle {
		display: list-item;
		cursor: pointer;
		font-weight: 600;
	}

	.bbbd-facets__panel[open] .bbbd-facets__toggle {
		margin-bottom: 12px;
	}

	/* The toggle already says "filters". */
	.bbbd-facets__title {
		display: none;
	}

	.bbbd-facets__list {
		columns: 2;
	}

	.bbbd-facets__item {
		break-inside: avoid;
	}

	.bbbd-sort {
		width: 100%;
		overflow-x: auto;
	}

	.bbbd-sort__list {
		flex-wrap: nowrap;
	}

	.bbbd-sort__link {
		white-space: nowrap;
	}
}

/* Membership plans -------------------------------------------------------- */

/*
 * A comparison table, so unlike the label/value tables above every column
 * carries data and the numbers line up for reading down.
 */
.bbbd-plans-table {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 16px;
}

.bbbd-plans-table th,
.bbbd-plans-table td {
	text-align: left;
	padding: 10px 12px 10px 0;
	vertical-align: top;
	border-bottom: 1px solid var(--bbbd-line);
}

.bbbd-plans-table thead th {
	font-size: 0.88em;
	font-weight: 600;
	color: var(--bbbd-muted);
	border-bottom-color: var(--bbbd-line-strong);
}

.bbbd-plans-table tbody th {
	font-weight: 600;
	width: 34%;
}

.bbbd-plans-table td {
	font-variant-numeric: tabular-nums;
}

/* The figure the table exists to show. */
.bbbd-plans-table td:nth-child(3) {
	font-weight: 700;
}

.bbbd-plans-table__note {
	display: block;
	font-weight: 400;
	font-size: 0.88em;
	color: var(--bbbd-muted);
	margin-top: 2px;
}

@media (max-width: 480px) {
	.bbbd-plans-table th,
	.bbbd-plans-table td {
		padding-right: 8px;
		font-size: 0.94em;
	}

	.bbbd-plans-table tbody th {
		width: auto;
	}
}

/* Coaching packages, credentials, specializations -------------------------- */

.bbbd-packages {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 16px;
	margin-bottom: 16px;
}

.bbbd-packages > :only-child {
	max-width: 420px;
}

.bbbd-package-card {
	border: 1px solid var(--bbbd-line);
	border-radius: var(--bbbd-radius);
	padding: 16px;
}

.bbbd-package-card__title {
	margin: 0 0 4px;
	font-size: 1em;
}

.bbbd-package-card__price {
	margin: 0;
	font-size: 1.25em;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

.bbbd-package-card__includes {
	margin: 12px 0 0;
	padding-left: 18px;
	font-size: 0.94em;
}

.bbbd-package-card__includes li + li {
	margin-top: 4px;
}

.bbbd-credentials {
	list-style: none;
	margin: 0 0 12px;
	padding: 0;
}

.bbbd-credentials li {
	padding: 10px 0 10px 26px;
	border-bottom: 1px solid var(--bbbd-line);
	position: relative;
}

/* A marker, not a claim: the claim is the sentence under the list. */
.bbbd-credentials li::before {
	content: "";
	position: absolute;
	left: 4px;
	top: 1.15em;
	width: 8px;
	height: 8px;
	border-radius: var(--bbbd-radius);
	background: var(--bbbd-accent);
}

.bbbd-specializations {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 12px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.bbbd-specializations li {
	padding: 12px 14px;
	background: var(--bbbd-surface);
	border-radius: var(--bbbd-radius);
	font-weight: 500;
}

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

.bbbd-gallery-count {
	margin: 0 0 8px;
	color: var(--bbbd-muted);
	font-size: 0.9em;
}

.bbbd-gallery-more {
	margin-top: 12px;
}

.bbbd-gallery-more summary {
	cursor: pointer;
	font-weight: 600;
	padding: 8px 0;
}

.bbbd-gallery-more summary:focus-visible {
	outline: 2px solid var(--bbbd-accent);
	outline-offset: 2px;
}

.bbbd-gallery-more .bbbd-gallery-grid {
	margin-top: 8px;
}

/* Page layouts from the 2026-10 design ------------------------------------- */

/*
 * Structure from the claude.ai/design wireframes (breadcrumbs, a header band,
 * a stat strip, a profile with a sidebar). Colours and corners stay on the
 * tokens above, which the BodyBuildingBD theme re-points at its own palette.
 */

/* Directory profiles spend the full page width, like the archives. */
:is(.bbbd-profile--gym, .bbbd-profile--trainer, .bbbd-profile--service) {
	max-width: var(--wp--style--global--wide-size, 1100px);
	padding-left: var(--wp--style--root--padding-left, 16px);
	padding-right: var(--wp--style--root--padding-right, 16px);
}

.bbbd-breadcrumbs ol {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	list-style: none;
	margin: 0 0 12px;
	padding: 0;
	color: var(--bbbd-muted);
	font-size: 0.88em;
}

.bbbd-breadcrumbs li + li::before {
	content: "›";
	margin-inline-end: 6px;
}

.bbbd-breadcrumbs a {
	color: var(--bbbd-ink);
}

/* Archive header: crumbs, title, one line of intro, then the search. */
.bbbd-archive__header {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.bbbd-archive__header > *,
.bbbd-archive__header h1 {
	margin: 0;
}

/* The main archive's header sits on a full-bleed band without a sideways scroll. */
.bbbd-archive:has(> .bbbd-archive__header--band) {
	padding-top: 0;
}

.bbbd-archive__header--band {
	padding-block: 32px;
	background: var(--bbbd-surface);
	box-shadow: 0 0 0 100vmax var(--bbbd-surface);
	clip-path: inset(0 -100vmax);
}

.bbbd-archive__intro {
	max-width: 680px;
	color: var(--bbbd-muted);
	font-size: 1.06em;
}

.bbbd-archive__disclosure {
	max-width: 680px;
	color: var(--bbbd-muted);
	font-size: 0.85em;
}

.bbbd-archive__disclosure a {
	color: var(--bbbd-ink);
}

.bbbd-archive-search {
	display: flex;
	gap: 8px;
	max-width: 760px;
}

.bbbd-archive-search input[type="search"] {
	flex: 1;
	min-width: 0;
	height: 52px;
	padding: 0 16px;
	border: 2px solid var(--bbbd-line-strong);
	border-radius: var(--bbbd-radius);
	background: #fff;
	color: var(--bbbd-ink);
	font: inherit;
}

.bbbd-archive-search .bbbd-action {
	padding: 0 24px;
	border: 0;
	cursor: pointer;
	font: inherit;
	font-weight: 600;
}

/* Location stat boxes. */
.bbbd-stats-boxes {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 12px;
	margin-top: 8px;
}

.bbbd-stats-boxes > div {
	padding: 16px;
	border: 1px solid var(--bbbd-line);
	border-radius: var(--bbbd-radius);
}

.bbbd-stats-boxes dt {
	color: var(--bbbd-muted);
	font-size: 0.88em;
}

.bbbd-stats-boxes dd {
	margin: 4px 0 0;
	font-size: 1.4em;
	font-weight: 700;
}

.bbbd-stats-boxes .bbbd-card__tags {
	margin: 4px 0 0;
	font-size: 0.6em;
	font-weight: 400;
}

/* Section titles below the listings share the heavy ink rule. */
.bbbd-nearby,
.bbbd-related,
.bbbd-archive__more .bbbd-archive__editorial,
:is(.bbbd-profile--gym, .bbbd-profile--trainer, .bbbd-profile--service) .bbbd-section {
	padding-top: 12px;
	border-top: 2px solid var(--bbbd-line);
}

.bbbd-nearby__title,
.bbbd-related__title,
.bbbd-archive__editorial h2,
:is(.bbbd-profile--gym, .bbbd-profile--trainer, .bbbd-profile--service) .bbbd-section h2 {
	margin: 0 0 16px;
	font-size: 1.4em;
}

.bbbd-nearby__list {
	gap: 10px;
}

.bbbd-nearby__list a {
	display: inline-block;
	padding: 10px 18px;
	border: 1px solid var(--bbbd-line-strong);
	border-radius: var(--bbbd-radius);
	color: var(--bbbd-ink);
	text-decoration: none;
}

.bbbd-nearby__list a:hover,
.bbbd-nearby__list a:focus {
	border-color: var(--bbbd-accent);
	color: var(--bbbd-accent);
}

/* Area write-up beside its related guides. */
.bbbd-archive__more {
	display: flex;
	flex-wrap: wrap;
	gap: 40px;
	align-items: flex-start;
	margin-top: 40px;
}

.bbbd-archive__more:empty {
	display: none;
}

.bbbd-archive__more .bbbd-archive__editorial {
	flex: 999 1 520px;
	margin: 0;
	padding-inline: 0;
	padding-bottom: 0;
	background: none;
}

.bbbd-related {
	flex: 1 1 280px;
}

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

.bbbd-related__list a {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 0;
	border-bottom: 1px solid var(--bbbd-line);
	color: var(--bbbd-ink);
	font-weight: 600;
	text-decoration: none;
}

.bbbd-related__list a::after {
	content: "→";
}

/* Call-to-action panels: pitch on the left, one button on the right. */
.bbbd-cta--listing,
.bbbd-cta--dark {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	align-items: center;
	justify-content: space-between;
	margin-top: 56px;
	padding: clamp(24px, 4vw, 48px);
	text-align: start;
}

.bbbd-cta--listing {
	border: 1px solid var(--bbbd-line);
}

.bbbd-cta--dark {
	background: var(--bbbd-ink);
	color: #fff;
}

.bbbd-cta__text {
	flex: 1 1 320px;
}

.bbbd-cta .bbbd-cta__text h2 {
	margin: 0;
	font-size: 1.6em;
	line-height: 1.4;
}

.bbbd-cta .bbbd-cta__text p {
	margin: 6px 0 0;
	color: var(--bbbd-muted);
	font-weight: 400;
}

.bbbd-cta--dark .bbbd-cta__text h2 {
	color: #fff;
}

.bbbd-cta--dark .bbbd-cta__text p {
	color: rgba(255, 255, 255, 0.8);
}

/* Profile: photo mosaic beside the header. */
.bbbd-profile__top {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr));
	gap: 32px;
	align-items: start;
	margin-top: 8px;
}

.bbbd-profile__top .bbbd-profile__header {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.bbbd-profile__top .bbbd-profile__header > * {
	margin: 0;
}

.bbbd-profile__top .bbbd-profile__header h1 {
	font-size: clamp(1.75rem, 3vw, 2.5rem);
	line-height: 1.35;
}

.bbbd-profile__top .bbbd-actions {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
	margin-top: 4px;
}

.bbbd-profile__top .bbbd-action {
	text-align: center;
}

.bbbd-action--website {
	background: transparent;
	color: var(--bbbd-ink);
	border-color: var(--bbbd-line);
}

.bbbd-action--website:hover,
.bbbd-action--website:focus {
	background: var(--bbbd-surface);
	color: var(--bbbd-ink);
}

.bbbd-media {
	position: relative;
	display: grid;
	grid-template-columns: 2fr 1fr;
	grid-template-rows: 160px 160px;
	gap: 8px;
}

.bbbd-media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: var(--bbbd-radius);
}

.bbbd-media img:first-child {
	grid-row: span 2;
}

.bbbd-media--1,
.bbbd-media--2 {
	grid-template-rows: 328px;
}

.bbbd-media--1 {
	grid-template-columns: 1fr;
}

.bbbd-media--1 img:first-child,
.bbbd-media--2 img:first-child {
	grid-row: auto;
}

.bbbd-media__more {
	position: absolute;
	right: 8px;
	bottom: 8px;
	padding: 2px 8px;
	border: 1px solid var(--bbbd-line);
	background: #fff;
	color: var(--bbbd-ink);
	font-size: 0.85em;
	text-decoration: none;
}

/* Key facts: one ruled strip of label and value cells. */
.bbbd-facts {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
	gap: 1px;
	margin: 32px 0 0;
	border: 1px solid var(--bbbd-line);
	background: var(--bbbd-line);
}

.bbbd-facts > div {
	padding: 14px 16px;
	background: #fff;
}

.bbbd-facts dt {
	color: var(--bbbd-muted);
	font-size: 0.82em;
}

.bbbd-facts dd {
	margin: 0;
	font-weight: 700;
}

/* Profile body: sections on the left, contact and verification on the right. */
.bbbd-profile__body {
	display: flex;
	flex-wrap: wrap;
	gap: 40px;
	align-items: flex-start;
}

.bbbd-profile__main {
	flex: 999 1 560px;
	min-width: 0;
}

.bbbd-profile__aside {
	position: sticky;
	top: 12px;
	flex: 1 1 300px;
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding-top: 40px;
}

:is(.bbbd-profile--gym, .bbbd-profile--trainer, .bbbd-profile--service) .bbbd-section {
	margin-top: 40px;
}

.bbbd-card-box {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 20px;
	border: 1px solid var(--bbbd-line);
	border-radius: var(--bbbd-radius);
}

.bbbd-card-box--strong {
	border: 2px solid var(--bbbd-ink);
}

.bbbd-card-box__title {
	margin: 0;
	font-size: 1.25em;
}

.bbbd-card-box .bbbd-contact-details {
	font-size: 0.94em;
}

.bbbd-card-box__link {
	font-size: 0.88em;
}

.bbbd-action--block {
	display: block;
	text-align: center;
}

.bbbd-checklist {
	margin: 0;
	font-size: 0.94em;
}

.bbbd-checklist > div {
	display: flex;
	justify-content: space-between;
	gap: 12px;
}

.bbbd-checklist dd {
	margin: 0;
	font-weight: 700;
}

/* Facilities as tiles, audiences as ink-outlined pills, prices in a framed table. */
:is(.bbbd-profile--gym, .bbbd-profile--trainer, .bbbd-profile--service) .bbbd-terms--amenity {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	gap: 10px;
}

:is(.bbbd-profile--gym, .bbbd-profile--trainer, .bbbd-profile--service) .bbbd-terms--amenity li {
	padding: 12px;
	background: #fff;
}

:is(.bbbd-profile--gym, .bbbd-profile--trainer, .bbbd-profile--service) .bbbd-terms--audience li {
	border-color: var(--bbbd-ink);
	background: #fff;
}

:is(.bbbd-profile--gym, .bbbd-profile--trainer, .bbbd-profile--service) .bbbd-pricing-table {
	border: 1px solid var(--bbbd-line);
}

:is(.bbbd-profile--gym, .bbbd-profile--trainer, .bbbd-profile--service) .bbbd-pricing-table th,
:is(.bbbd-profile--gym, .bbbd-profile--trainer, .bbbd-profile--service) .bbbd-pricing-table td {
	padding: 12px 16px;
}

:is(.bbbd-profile--gym, .bbbd-profile--trainer, .bbbd-profile--service) .bbbd-pricing-table td {
	font-weight: 700;
	text-align: end;
}

.bbbd-address-row {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 12px;
}

.bbbd-address-row .bbbd-address {
	margin: 0;
}

.bbbd-section__more {
	margin: 16px 0 0;
	font-weight: 600;
}

/* A phone keeps call and WhatsApp in reach while the profile scrolls. */
.bbbd-sticky-actions {
	display: none;
}

@media (max-width: 781px) {
	.bbbd-sticky-actions {
		position: sticky;
		bottom: 0;
		z-index: 5;
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 8px;
		margin: 24px calc(-1 * var(--wp--style--root--padding-left, 16px)) 0;
		padding: 10px 16px;
		border-top: 1px solid var(--bbbd-line);
		background: #fff;
	}

	.bbbd-sticky-actions .bbbd-action {
		text-align: center;
	}

	.bbbd-profile__aside {
		position: static;
	}
}

/* Trainer profile: portrait beside the name, over a hairline. */
.bbbd-profile__intro {
	display: flex;
	flex-wrap: wrap;
	gap: 28px;
	align-items: center;
	margin-top: 8px;
	padding-bottom: 28px;
	border-bottom: 1px solid var(--bbbd-line);
}

.bbbd-profile__portrait {
	flex: 0 0 160px;
}

.bbbd-profile__portrait img {
	display: block;
	width: 160px;
	height: 160px;
	object-fit: cover;
	border-radius: var(--bbbd-radius);
}

.bbbd-profile__intro .bbbd-profile__header {
	flex: 1 1 320px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.bbbd-profile__intro .bbbd-profile__header > * {
	margin: 0;
}

.bbbd-profile__intro .bbbd-profile__header h1 {
	font-size: clamp(1.75rem, 3vw, 2.5rem);
	line-height: 1.35;
}

/* The contact card's buttons stack full width. */
.bbbd-card-box .bbbd-actions {
	display: flex;
	flex-direction: column;
	margin: 0;
}

.bbbd-card-box .bbbd-action {
	text-align: center;
}

/* Specialization tiles framed like the facility tiles. */
.bbbd-profile--trainer .bbbd-specializations li {
	border: 1px solid var(--bbbd-line);
	background: #fff;
	font-weight: 600;
}

/* Trainer cards: a square portrait beside the name, then the experience line. */
.bbbd-card__avatar--photo {
	width: 72px;
	height: 72px;
	overflow: hidden;
	background: none;
}

.bbbd-card__avatar--photo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.bbbd-card__meta {
	margin: 0 0 8px;
	color: var(--bbbd-muted);
	font-size: 0.9em;
}

/* Service profile: name and kind on the left, call and WhatsApp on the right. */
.bbbd-profile__headline {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: flex-end;
	gap: 20px;
	margin: 8px 0 20px;
}

.bbbd-profile__headline .bbbd-profile__header {
	flex: 1 1 360px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.bbbd-profile__headline .bbbd-profile__header > *,
.bbbd-profile__headline .bbbd-actions {
	margin: 0;
}

.bbbd-profile__headline h1 {
	font-size: clamp(1.75rem, 3vw, 2.5rem);
	line-height: 1.35;
}

.bbbd-profile__kicker,
.bbbd-card__kicker {
	color: var(--bbbd-muted);
	font-size: 0.88em;
	font-weight: 700;
}

/* A service shows its photos as an even strip, not the gym's mosaic. */
.bbbd-profile--service .bbbd-media {
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	grid-template-rows: 220px;
}

.bbbd-profile--service .bbbd-media img:first-child {
	grid-row: auto;
}

.bbbd-card-box .bbbd-hours-table {
	font-size: 0.94em;
}

/* A service card leads with its kind above the name. */
.bbbd-card--fitness_service .bbbd-card__head {
	flex-direction: column;
	align-items: flex-start;
	gap: 2px;
}

/* Fitness type chips under the archive search. */
.bbbd-type-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.bbbd-type-chips a {
	display: inline-block;
	padding: 6px 14px;
	border: 1px solid var(--bbbd-line-strong);
	border-radius: var(--bbbd-radius);
	background: #fff;
	color: var(--bbbd-ink);
	font-size: 0.9em;
	text-decoration: none;
}

.bbbd-type-chips a.is-current {
	border-color: var(--bbbd-ink);
	background: var(--bbbd-ink);
	color: #fff;
}

/* Pagination: numbered boxes framed like the type chips; ink marks the page
 * you are on, and the ellipsis is punctuation, so it carries no frame. */
.bbbd-archive .pagination {
	margin: 36px 0 0;
}

.bbbd-archive .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.bbbd-archive .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	padding: 6px 10px;
	border: 1px solid var(--bbbd-line-strong);
	border-radius: var(--bbbd-radius);
	background: #fff;
	color: var(--bbbd-ink);
	font-size: 0.9em;
	font-weight: 600;
	text-decoration: none;
}

.bbbd-archive a.page-numbers:hover,
.bbbd-archive a.page-numbers:focus {
	border-color: var(--bbbd-ink);
	background: var(--bbbd-surface);
}

.bbbd-archive a.page-numbers:focus-visible {
	outline: 2px solid var(--bbbd-ink);
	outline-offset: 2px;
}

.bbbd-archive .page-numbers.current {
	border-color: var(--bbbd-ink);
	background: var(--bbbd-ink);
	color: #fff;
}

.bbbd-archive .page-numbers.dots {
	border-color: transparent;
	background: none;
	color: var(--bbbd-muted);
	font-weight: 400;
}

.bbbd-archive .prev.page-numbers,
.bbbd-archive .next.page-numbers {
	padding-inline: 16px;
}

/* Search results: tabs per type, then compact rows grouped under heavy rules. */
.bbbd-search-page__count {
	color: var(--bbbd-muted);
	font-size: 1em;
	font-weight: 400;
}

.bbbd-search-tabs ul {
	display: flex;
	gap: 2px;
	margin: 0;
	padding: 0;
	overflow-x: auto;
	list-style: none;
	white-space: nowrap;
}

.bbbd-search-tabs a {
	display: block;
	padding: 10px 14px;
	border-bottom: 3px solid transparent;
	color: var(--bbbd-muted);
	text-decoration: none;
}

.bbbd-search-tabs a.is-current {
	border-bottom-color: var(--bbbd-ink);
	color: var(--bbbd-ink);
	font-weight: 700;
}

.bbbd-search-page .bbbd-results {
	max-width: 860px;
	margin-top: 36px;
}

.bbbd-search-page .bbbd-results__head {
	padding: 10px 0 6px;
	border-top: 2px solid var(--bbbd-line);
	border-bottom: 0;
}

.bbbd-search-page .bbbd-results__heading {
	margin: 0;
	font-size: 1.35em;
}

.bbbd-result-rows {
	margin: 0;
	padding: 0;
	list-style: none;
}

.bbbd-result-row a {
	display: flex;
	gap: 14px;
	align-items: center;
	padding: 14px 0;
	border-bottom: 1px solid var(--bbbd-line);
	color: var(--bbbd-ink);
	text-decoration: none;
}

.bbbd-result-row a:hover .bbbd-result-row__title,
.bbbd-result-row a:focus .bbbd-result-row__title {
	color: var(--bbbd-accent);
}

.bbbd-result-row__image {
	flex: 0 0 88px;
	width: 88px;
	height: 64px;
	overflow: hidden;
}

.bbbd-result-row__image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.bbbd-result-row--trainer .bbbd-result-row__image {
	flex-basis: 56px;
	width: 56px;
	height: 56px;
}

.bbbd-result-row__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 3px;
	min-width: 0;
}

.bbbd-result-row__title {
	font-size: 1.1em;
	font-weight: 700;
}

.bbbd-result-row__title .bbbd-badge {
	margin-inline-start: 6px;
	vertical-align: middle;
}

.bbbd-result-row__meta {
	color: var(--bbbd-muted);
	font-size: 0.9em;
}

.bbbd-empty--search {
	max-width: 860px;
	margin-top: 32px;
	border: 1px dashed var(--bbbd-line-strong);
	background: none;
}
