/* Bloomington Marketplace. Same warm tokens as the Photos pages. Mobile first; controls at least 44px; nothing wider than the screen. */
.bm {
	--bm-ink: #231f1a;
	--bm-soft: #5c554b;
	--bm-line: #cfc6b8;
	--bm-paper: #fffdf8;
	--bm-tint: #f6f0e4;
	--bm-accent: #8c2a1c;
	--bm-accent-dark: #6f2015;
	--bm-ok: #1f6b3a;
	--bm-bad: #9c2b1c;
	--bm-focus: #0b5cad;
	box-sizing: border-box;
	width: 100%;
	max-width: 72rem;
	margin: 0 auto;
	padding: 1rem 16px 3rem;
	color: var(--bm-ink);
	font-size: 1.0625rem;
	line-height: 1.5;
	overflow-wrap: anywhere;
}
.bm *, .bm *::before, .bm *::after { box-sizing: border-box; }
.bm-narrow { max-width: 44rem; }
.bm-item { max-width: var(--wp--style--global-content-size, 645px); padding-left: 0; padding-right: 0; }
.bm h1 { font-size: 1.9rem; line-height: 1.15; margin: 0 0 .5rem; }
.bm h2 { font-size: 1.25rem; line-height: 1.3; margin: 0 0 .6rem; }
.bm a { color: var(--bm-accent); }
.bm :focus-visible { outline: 3px solid var(--bm-focus); outline-offset: 2px; }
.bm p { margin: 0 0 .8rem; }
.bm-small, .bm-hint { font-size: .9rem; color: var(--bm-soft); }
.bm-hint { display: block; font-weight: 400; margin-top: .25rem; }
.bm-lead { font-size: 1.15rem; color: var(--bm-soft); max-width: 40rem; }
.bm-eyebrow { color: #a31f10; font-size: .85rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 .35rem; }
.bm-hero { margin: 0 0 1.25rem; }
.bm-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.bm-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: .5rem 1.15rem; font: inherit; font-weight: 600; text-decoration: none; color: var(--bm-accent); background: #fff; border: 2px solid var(--bm-accent); border-radius: 999px; cursor: pointer; }
.bm-btn:hover { background: var(--bm-tint); }
.bm-btn-main { color: #fff !important; background: var(--bm-accent); }
.bm-btn-main:hover { background: var(--bm-accent-dark); }
.bm-btn-danger { color: #fff; background: var(--bm-bad); border-color: var(--bm-bad); }
.bm-btn-danger:hover { background: #7a2016; }
.bm-actions { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin: 1rem 0; }

.bm-strip { background: var(--bm-tint); border-left: 5px solid var(--bm-accent); padding: .7rem 1rem; border-radius: 6px; font-size: .98rem; }
.bm-alert { padding: .8rem 1rem; border-radius: 8px; border: 2px solid; margin: 0 0 1rem; }
.bm-alert ul { margin: .4rem 0 0 1.1rem; padding: 0; }
.bm-alert-ok { background: #eef7f0; border-color: var(--bm-ok); }
.bm-alert-warn { background: #fff8e6; border-color: #b7791f; }
.bm-card-img { position: relative; }
.bm-badge { position: absolute; top: 8px; left: 8px; z-index: 1; background: #231f1a; color: #fff; font-size: .8rem; font-weight: 700; padding: .2rem .6rem; border-radius: 999px; }
.bm-card-held .bm-card-img picture { opacity: .75; }
.bm-alert-bad { background: #fdf0ee; border-color: var(--bm-bad); }
.bm-box { background: #fff; border: 1px solid var(--bm-line); border-radius: 12px; padding: 1rem 1.1rem; margin: 0 0 1rem; box-shadow: 0 2px 14px rgba(0, 0, 0, .06); }
.bm-box-safety { background: var(--bm-tint); }
.bm-tips { margin: 0; padding-left: 1.25rem; }
.bm-tips li { margin: 0 0 .5rem; }
.bm-cols { columns: 1; }
details.bm-box > summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; }

/* Filter bar */
.bm-filter { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin: 1rem 0 1.25rem; align-items: end; }
.bm-filter label { display: flex; flex-direction: column; font-size: .9rem; font-weight: 600; gap: .2rem; }
.bm-f-q { grid-column: 1 / -1; }
.bm-filter .bm-btn { grid-column: 1 / -1; }

/* Forms */
.bm-form label { display: block; font-weight: 600; margin: 0 0 .9rem; }
.bm input[type=text], .bm input[type=search], .bm input[type=email], .bm input[type=number], .bm input:not([type]), .bm select, .bm textarea, .bm input[type=file] {
	display: block; width: 100%; min-height: 44px; margin-top: .25rem; padding: .55rem .7rem; font: inherit; font-weight: 400; color: var(--bm-ink); background: #fff; border: 2px solid #8a8173; border-radius: 8px;
}
.bm textarea { min-height: 7rem; }
.bm fieldset { border: 1px solid var(--bm-line); border-radius: 12px; padding: 1rem 1.1rem .4rem; margin: 0 0 1rem; background: #fff; }
.bm legend { font-weight: 700; padding: 0 .4rem; }
.bm .bm-check { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400; }
.bm .bm-check input { width: 1.4rem; height: 1.4rem; min-height: 0; margin-top: .15rem; flex: none; accent-color: var(--bm-accent); }
.bm-radios { display: grid; gap: .5rem; margin-bottom: .9rem; }
.bm-radio { display: flex; gap: .7rem; align-items: flex-start; padding: .7rem .8rem; border: 2px solid var(--bm-line); border-radius: 10px; font-weight: 400 !important; margin: 0 !important; cursor: pointer; background: var(--bm-paper); }
.bm-radio:has(input:checked) { border-color: var(--bm-accent); background: var(--bm-tint); }
.bm-radio input { width: 1.3rem; height: 1.3rem; min-height: 0; margin: .2rem 0 0; accent-color: var(--bm-accent); flex: none; }
.bm-submit { width: 100%; margin-top: .5rem; }
.bm-inline { display: inline-block; margin: 0 .5rem .5rem 0; }
.bm-inline label { margin-bottom: .5rem; }
.bm-preview { display: flex; flex-wrap: wrap; gap: .5rem; margin: .5rem 0 1rem; }
.bm-preview img { width: 5.5rem; height: 5.5rem; object-fit: cover; border-radius: 8px; border: 1px solid var(--bm-line); }
.bm-report { margin: 1.25rem 0; }
.bm-report summary { cursor: pointer; color: var(--bm-soft); min-height: 44px; display: flex; align-items: center; }

/* Grid of listings */
.bm-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; list-style: none; margin: 0 0 1.5rem; padding: 0; }
.bm-card { margin: 0; background: #fff; border: 1px solid var(--bm-line); border-radius: 12px; overflow: hidden; box-shadow: 0 2px 14px rgba(0, 0, 0, .06); }
.bm-card a { display: block; height: 100%; color: inherit; text-decoration: none; }
.bm-card a:hover .bm-card-title { text-decoration: underline; }
.bm-card-img { display: block; aspect-ratio: 1 / 1; background: var(--bm-tint); }
.bm-card-img picture, .bm-card-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.bm-card-body { display: block; padding: .6rem .7rem .8rem; }
.bm-price { display: block; font-size: 1.2rem; font-weight: 800; }
.bm-free { color: var(--bm-ok); }
.bm-card-title { display: block; font-weight: 600; line-height: 1.3; margin: .1rem 0 .25rem; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.bm-meta { display: block; font-size: .85rem; color: var(--bm-soft); }
.bm-empty { padding: 2rem 1rem; text-align: center; background: var(--bm-tint); border-radius: 12px; }
.bm-pager { text-align: center; margin: 1rem 0; }
.bm-pager .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 .7rem; margin: 0 .15rem; border: 2px solid var(--bm-line); border-radius: 999px; text-decoration: none; background: #fff; }
.bm-pager .current { border-color: var(--bm-accent); background: var(--bm-tint); font-weight: 700; }

/* One listing */
.bm-price-big { font-size: 2rem; font-weight: 800; margin: 0 0 .6rem; }
.bm-slides { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 0 1rem; padding-bottom: .4rem; border-radius: 12px; }
.bm-slide { flex: 0 0 min(100%, 40rem); margin: 0; scroll-snap-align: start; background: var(--bm-tint); border-radius: 12px; overflow: hidden; aspect-ratio: 4 / 3; }
.bm-slide a, .bm-slide picture, .bm-slide img { display: block; width: 100%; height: 100%; }
.bm-slide img { object-fit: contain; }
.bm-facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: .5rem 1rem; margin: 0 0 1rem; }
.bm-facts dt { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--bm-soft); }
.bm-facts dd { margin: 0; font-weight: 600; }
.bm-desc { font-size: 1.08rem; margin-bottom: 1.2rem; }
.bm-back { margin-top: 1.5rem; }
.bm-review-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr)); gap: .6rem; }
.bm-review-photos figure { margin: 0; }
.bm-review-photos img { width: 100%; height: auto; border-radius: 8px; }

@media (min-width: 600px) {
	.bm h1 { font-size: 2.3rem; }
	.bm-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
	.bm-filter { grid-template-columns: 2fr 1.2fr 1.2fr .8fr 1fr auto; }
	.bm-f-q { grid-column: auto; }
	.bm-filter .bm-btn { grid-column: auto; }
	.bm-cols { columns: 2; column-gap: 2rem; }
	.bm-facts { grid-template-columns: repeat(5, auto); justify-content: start; }
	.bm-submit { width: auto; min-width: 16rem; }
}
@media (min-width: 900px) { .bm-grid { grid-template-columns: repeat(4, 1fr); } }
@media (prefers-reduced-motion: no-preference) { .bm-card { transition: transform .15s ease; } .bm-card:hover { transform: translateY(-2px); } }

/* The theme prints its own page title and a byline; our pages carry their own heading, and a listing has no public author. */
body:has(.bm:not(.bm-item)) .wp-block-post-title { display: none; }
.single-bm_listing .wp-block-post-author, .single-bm_listing .wp-block-post-author-name, .single-bm_listing .wp-block-post-terms, .single-bm_listing .wp-block-post-date, .single-bm_listing .wp-block-comments, .single-bm_listing .wp-block-post-navigation-link { display: none; }
.single-bm_listing main .wp-block-post-title + .wp-block-group { display: none; }

/* ---- Photo viewer (copied from the business directory stylesheet, unchanged) ---- */

html.bo-lb-open {
	overflow: hidden;
}
.bo-lb {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 3.5rem 1rem 1rem;
	opacity: 0;
	transition: opacity 0.16s ease;
	font-family: inherit;
}
.bo-lb[hidden] {
	display: none;
}
.bo-lb.is-open {
	opacity: 1;
}
.bo-lb__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(22, 15, 13, 0.94);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
}
.bo-lb__figure {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.85rem;
	max-width: min(1200px, 100%);
	max-height: 100%;
	margin: 0;
}
.bo-lb__stage {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 120px;
}
.bo-lb__img {
	display: block;
	max-width: 100%;
	max-height: calc(100vh - 11rem);
	max-height: calc(100dvh - 11rem);
	width: auto;
	height: auto;
	border-radius: 10px;
	background: #2a211e;
	box-shadow: 0 18px 60px rgba(0, 0, 0, 0.55);
	transition: opacity 0.18s ease;
}
.bo-lb.is-loading .bo-lb__img {
	opacity: 0.25;
}
.bo-lb__cap {
	max-width: 46rem;
	padding: 0 3.5rem;
	text-align: center;
	color: #f6f1ea;
}
.bo-lb__text {
	margin: 0;
	font-size: 1.05rem;
	line-height: 1.45;
	font-weight: 500;
}
.bo-lb__credit {
	margin: 0.25rem 0 0;
	font-size: 0.84rem;
	line-height: 1.4;
	color: rgba(246, 241, 234, 0.68);
}
.bo-lb__count {
	position: absolute;
	top: 1.1rem;
	left: 1.25rem;
	margin: 0;
	color: rgba(246, 241, 234, 0.8);
	font-size: 0.9rem;
	letter-spacing: 0.02em;
	font-variant-numeric: tabular-nums;
}
.bo-lb__btn {
	position: absolute;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.28);
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
	cursor: pointer;
	transition: background 0.15s ease, transform 0.15s ease;
}
.bo-lb__btn:hover {
	background: rgba(255, 255, 255, 0.24);
}
.bo-lb__btn:focus-visible {
	outline: 3px solid #fff;
	outline-offset: 3px;
}
.bo-lb__btn[hidden] {
	display: none;
}
.bo-lb__close {
	top: 0.75rem;
	right: 0.9rem;
}
.bo-lb__nav {
	top: 50%;
	margin-top: -24px;
}
.bo-lb__prev {
	left: 0.9rem;
}
.bo-lb__next {
	right: 0.9rem;
}
@media (max-width: 700px) {
	.bo-lb {
		padding: 3.25rem 0.5rem 0.75rem;
	}

	.bo-lb__img {
		max-height: calc(100vh - 12.5rem);
		max-height: calc(100dvh - 12.5rem);
		border-radius: 8px;
	}

	.bo-lb__cap {
		padding: 0 0.75rem;
	}

	.bo-lb__nav {
		top: auto;
		bottom: 0.75rem;
		margin-top: 0;
		width: 44px;
		height: 44px;
	}

	.bo-lb__prev {
		left: 0.9rem;
	}

	.bo-lb__next {
		right: 0.9rem;
	}
}
@media (prefers-reduced-motion: reduce) {
	.bo-lb,
	.bo-lb__img,
	.bo-lb__btn {
		transition: none;
	}
}

/* ---- Gallery arrows and counter ---- */
.bm-gallery { position: relative; margin: 0 0 1rem; }
.bm-gallery .bm-slides { margin-bottom: 0; }
.bm-slide a { display: block; cursor: zoom-in; }
.bm-gal-btn { position: absolute; top: 50%; z-index: 2; width: 44px; height: 44px; margin-top: -30px; display: inline-flex; align-items: center; justify-content: center; padding: 0; border: 2px solid #fff; border-radius: 50%; background: rgba(35, 31, 26, .78); color: #fff; cursor: pointer; box-shadow: 0 2px 10px rgba(0, 0, 0, .35); }
.bm-gal-btn:hover { background: rgba(35, 31, 26, .95); }
.bm-gal-btn[hidden] { display: none; }
.bm-gal-btn:disabled { opacity: .3; cursor: default; }
.bm-gal-prev { left: 10px; } .bm-gal-next { right: 10px; }
.bm-gal-count { margin: .45rem 0 0; text-align: center; font-size: .9rem; color: var(--bm-soft); font-variant-numeric: tabular-nums; }

/* ---- Share ---- */
.bm-share-copy { display: flex; gap: .5rem; flex-wrap: wrap; margin: 0 0 .8rem; }
.bm-share-copy input { flex: 1 1 14rem; min-width: 0; margin: 0 !important; font-size: .95rem; }
.bm-share-icons { display: flex; flex-wrap: wrap; gap: .55rem; list-style: none; margin: 0; padding: 0; }
.bm-ico { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: var(--bm-ink); color: #fff !important; cursor: pointer; text-decoration: none; }
.bm-ico svg { width: 22px; height: 22px; fill: currentColor; }
.bm-ico:hover, .bm-ico:focus-visible { background: var(--bm-accent); }
.bm-ico[hidden] { display: none; }
.bm-ico svg.bm-stroke { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.bm-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
