.reread-bsf-locator {
	max-width: 1100px;
	padding: clamp(48px, 8vw, 96px) 28px 96px;
	margin: 0 auto;
	font-family: var(--wp--preset--font-family--body, Arial, sans-serif);
}

.reread-bsf-locator__intro {
	max-width: 720px;
	margin: 0 auto 40px;
	text-align: center;
}

.reread-bsf-locator__intro h1 {
	margin: 0 0 12px;
	font-family: var(--wp--preset--font-family--display, Georgia, serif);
	font-size: clamp(2.5rem, 7vw, 4.75rem);
	line-height: 0.95;
}

.reread-bsf-search__heading {
	max-width: 680px;
	margin: 0 auto 14px;
	font-family: 'Roboto', Arial, sans-serif;
	font-weight: 700;
	font-size: clamp(1.1rem, 2.2vw, 1.5rem);
}

.reread-bsf-locator__map {
	display: grid;
	place-items: center;
	width: 100%;
	height: 530px;
	margin-bottom: 44px;
	overflow: hidden;
	border: 4px solid #000;
	border-radius: 32px;
	background: #f5f0e8;
}

@media (max-width: 781px) {
	.reread-bsf-locator__map {
		height: 360px;
	}
}

/* The map frame is a grid, so the hidden attribute alone does not hide it:
   this failure-only rule removes the frame when Maps is disabled or failed. */
.reread-bsf-locator__map[hidden] {
	display: none;
}

/* Map-only variant (embedded by the Content block): no finder band padding
   and no bottom margin; the map frame keeps the legacy 530px/360px,
   4px border and 32px radius defined above. */
.reread-bsf-locator--map-only {
	max-width: none;
	padding: 0;
}

.reread-bsf-locator--map-only .reread-bsf-locator__map {
	margin-bottom: 0;
}

.reread-bsf-locator--map-only .reread-bsf-locator__notice {
	margin-bottom: 0;
}

.reread-bsf-search {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
	align-items: end;
	max-width: 680px;
	padding: 28px;
	margin: 0 auto 24px;
	border: 2px solid #000;
	border-radius: 22px;
}

.reread-bsf-search__field {
	display: grid;
	gap: 7px;
	min-width: 0;
	width: 100%;
	box-sizing: border-box;
}

.reread-bsf-search__heading,
.reread-bsf-search > .reread-bsf-locator__notice,
.reread-bsf-results {
	grid-column: 1 / -1;
}

.reread-bsf-search__heading {
	width: 100%;
	text-align: center;
}

.reread-bsf-search label {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.reread-bsf-search input,
.reread-bsf-search select,
.reread-bsf-search button {
	min-height: 46px;
	/* Concrete width so both pill controls occupy their grid cells' full
	   outer width (box-sizing keeps the 1.5px border inside it). */
	box-sizing: border-box;
	width: 100%;
	padding: 10px 16px;
	border: 1.5px solid #000;
	border-radius: 999px;
	background: #fff;
}

.reread-bsf-search button {
	/* Keep the button as a centered pill, not stretched like the controls. */
	width: auto;
	min-width: 130px;
	grid-column: 1 / -1;
	justify-self: center;
	background: #000;
	color: #fff;
	font-weight: 700;
	cursor: pointer;
}

.reread-bsf-search button:disabled,
.reread-bsf-search input:disabled,
.reread-bsf-search select:disabled {
	cursor: not-allowed;
	opacity: 0.5;
}

.reread-bsf-locator__notice {
	min-height: 24px;
	margin: 18px auto 34px;
	text-align: center;
}

.reread-bsf-locator__notice.is-error {
	font-weight: 700;
}

/* Results: a single bordered rounded block holding a compact count and
   horizontal rows (no per-item cards). */
.reread-bsf-results__block {
	padding: 8px 0 0;
}

.reread-bsf-results__count {
	margin: 0 0 6px;
	text-align: center;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.reread-bsf-results__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.reread-bsf-results__row {
	display: flex;
	gap: 16px 24px;
	justify-content: space-between;
	padding: 20px 0;
	border-top: 1px solid #000;
}

.reread-bsf-results__primary {
	min-width: 0;
}

.reread-bsf-results__primary h3 {
	margin: 0;
	font-family: var(--wp--preset--font-family--display, Georgia, serif);
	font-size: 1rem;
	font-weight: 700;
}

.reread-bsf-results__primary h3 a:hover,
.reread-bsf-results__primary h3 a:focus-visible {
	text-decoration: underline;
	text-underline-offset: 4px;
}

.reread-bsf-results__place {
	margin: 0;
}

.reread-bsf-results__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	margin: 0 0 8px;
}

.reread-bsf-results__status,
.reread-bsf-results__distance {
	display: inline-flex;
	padding: 4px 10px;
	border-radius: 999px;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.reread-bsf-results__status {
	background: #000;
	color: #fff;
}

.reread-bsf-results__distance {
	border: 1px solid #000;
	background: #fff;
	color: #000;
}

.reread-bsf-results__secondary {
	flex: 0 0 50%;
	margin-left: 0;
	text-align: left;
}

.reread-bsf-results__secondary p {
	margin: 0;
	font-size: 0.95rem;
}

/* Same content width as the map: no narrower cap of its own. */
.reread-bsf-navigator {
	margin: 0 auto 28px;
}

.reread-bsf-navigator__body {
	padding: 0 0 12px;
}

.reread-bsf-navigator__country {
	margin: 0 0 18px;
}

.reread-bsf-navigator__country-name {
	margin: 0;
	padding: 10px 0;
	font-family: var(--wp--preset--font-family--display, Georgia, serif);
	font-size: 1.15rem;
	border-bottom: 1.5px solid #000;
}

.reread-bsf-navigator__toggle {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	width: 100%;
	min-height: 44px;
	padding: 10px 0;
	border: 0;
	background: transparent;
	color: inherit;
	font: inherit;
	text-align: left;
	cursor: pointer;
}

.reread-bsf-navigator__toggle--city {
	font-size: 0.95rem;
	font-weight: 700;
}

.reread-bsf-navigator__toggle:focus-visible,
.reread-bsf-navigator__city-link:focus-visible {
	outline: 2px solid #000;
	outline-offset: -4px;
}

/* Chevron hugs the city name (no flex-start gap, no margin-left:auto) and
   always points down: no transform when collapsed. */
.reread-bsf-navigator__toggle--city::after {
	content: '▾';
	flex: 0 0 auto;
	margin-left: 6px;
	font-size: 0.8em;
	font-weight: 400;
}

.reread-bsf-navigator__city-link {
	display: flex;
	align-items: center;
	min-height: 40px;
	padding: 10px 0;
	color: inherit;
	text-decoration: none;
	font-weight: 700;
}

.reread-bsf-navigator__city-link:hover,
.reread-bsf-navigator__city-link:focus-visible {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.reread-bsf-navigator__panel {
	padding: 0 0 10px;
}

/* City entries only: fill top-to-bottom then left-to-right (column-major)
   via a CSS grid whose row count is set by locator.js (--reread-bsf-city-rows
   = ceil(cityCount / columns)). Grid rows are fixed at render time, so
   expanding a multi-store city panel grows its own row without rebalancing
   or reordering other cities. The dedicated city-list selector keeps
   bookstore-choice lists inside city panels single column. The responsive
   column count lives in locator.js (matchMedia 420px/720px, else 4), not in
   CSS multi-column balancing. */
.reread-bsf-navigator__city-list {
	display: grid;
	grid-auto-flow: column;
	grid-template-rows: repeat(var(--reread-bsf-city-rows, 1), max-content);
	grid-auto-columns: minmax(0, 1fr);
	column-gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

/* Grid ancestry keeps each city (and its disclosure panel flow) in one
   assigned cell; min-width:0 lets wide names shrink inside minmax(0,1fr). */
.reread-bsf-navigator__city-list > li {
	min-width: 0;
}

.reread-bsf-navigator__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.reread-bsf-navigator__list li {
	padding: 7px 16px;
}

.reread-bsf-navigator__list a:hover,
.reread-bsf-navigator__list a:focus-visible {
	text-decoration: underline;
	text-underline-offset: 3px;
}

@media (max-width: 720px) {
	.reread-bsf-locator {
		padding-right: 18px;
		padding-left: 18px;
	}

	.reread-bsf-navigator {
		margin-bottom: 24px;
	}

	/* City-list column count is set by locator.js via
	   --reread-bsf-city-rows: no CSS column overrides here. */

	.reread-bsf-search {
		grid-template-columns: 1fr;
		padding: 22px;
	}

	.reread-bsf-search button {
		width: 100%;
	}

	.reread-bsf-results__row {
		flex-direction: column;
		gap: 10px;
	}

	.reread-bsf-results__secondary {
		margin-left: 0;
		text-align: left;
	}
}

@media (max-width: 420px) {
	/* City-list column count is set by locator.js via
	   --reread-bsf-city-rows: no CSS column overrides here. */
}
