/* ========================================================================
   BookieFinder 1.5 — Archive presentation system
   The archive layer makes directory pages feel like deliberate products
   rather than raw WordPress loops.
   ======================================================================== */
.bf-page-body { min-height: 420px; }

/* Shared archive rhythm ------------------------------------------------ */
.bf-page-body > .bf-page-header {
	padding-bottom: 18px;
	border-bottom: 2px solid var(--bf-brand);
	margin-bottom: 24px;
}
.bf-page-body > .bf-page-header h1 { max-width: 900px; }
.bf-page-body > .navigation.pagination { margin-top: 28px; }

/* Brand archive --------------------------------------------------------- */
.bf-brand-archive { padding-top: 22px; }
.bf-brand-hero {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 300px;
	gap: 32px;
	align-items: stretch;
	padding: 34px 0 28px;
	border-top: 1px solid var(--bf-border);
	border-bottom: 1px solid var(--bf-border);
}
.bf-brand-hero-copy { display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.bf-brand-hero h1 {
	font-size: clamp(42px, 6vw, 72px);
	line-height: .92;
	letter-spacing: -.04em;
	color: var(--bf-brand-deep);
	margin-bottom: 16px;
}
.bf-brand-description { max-width: 68ch; color: var(--bf-muted); font-size: 17px; line-height: 1.65; }
.bf-brand-description p { margin: 0 0 10px; }
.bf-brand-description p:last-child { margin-bottom: 0; }
.bf-brand-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.bf-brand-hero-mark {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 190px;
	padding: 28px;
	background: var(--bf-white);
	border: 1px solid var(--bf-border);
	position: relative;
}
.bf-brand-hero-mark::before {
	content: '';
	position: absolute;
	inset: 10px;
	border: 1px solid var(--bf-border-light);
	pointer-events: none;
}
.bf-brand-hero-mark .bf-bm-logo {
	max-width: 190px;
	max-height: 72px;
	width: auto;
	height: auto;
	position: relative;
	z-index: 1;
}
.bf-brand-mark-text {
	position: relative;
	z-index: 1;
	font-family: var(--bf-font-display);
	font-size: 28px;
	font-weight: 600;
	color: var(--bf-brand);
	text-align: center;
}
.bf-brand-stats { margin: 0 0 34px; }
.bf-brand-stats .bf-stat { padding: 18px 20px; }
.bf-brand-stats .bf-stat-value { font-size: 30px; color: var(--bf-brand); }

.bf-brand-section { padding: 34px 0 8px; }
.bf-section-head--brand { align-items: flex-end; margin-bottom: 20px; }
.bf-section-head--brand h2 { font-size: clamp(24px, 3vw, 32px); }
.bf-brand-result-count { color: var(--bf-muted); font-size: 13px; white-space: nowrap; }

/* Shop cards ------------------------------------------------------------ */
.bf-shop-card-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
}
.bf-shop-card {
	min-width: 0;
	display: flex;
	flex-direction: column;
	padding: 18px;
	background: var(--bf-white);
	border: 1px solid var(--bf-border);
	border-top: 3px solid var(--bf-brand);
}
.bf-shop-card:hover { border-color: var(--bf-brand); }
.bf-shop-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 13px; }
.bf-shop-card .bf-finder-status {
	display: inline-flex;
	align-items: center;
	min-height: 26px;
	padding: 4px 8px;
	background: var(--bf-bg);
	border: 1px solid var(--bf-border-light);
	border-radius: var(--bf-radius-pill);
	font-size: 10px;
}
.bf-shop-card .bf-finder-status--open { background: rgba(31,122,77,.07); border-color: rgba(31,122,77,.18); }
.bf-shop-card .bf-finder-status--closed { background: rgba(179,38,30,.06); border-color: rgba(179,38,30,.16); }
.bf-shop-card .bf-finder-status--open::before { margin-right: 5px; }
.bf-shop-card h3 { font-size: 21px; line-height: 1.15; margin: 0 0 7px; }
.bf-shop-card h3 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.bf-shop-card-address { min-height: 40px; color: var(--bf-muted); font-size: 13px; line-height: 1.5; }
.bf-postcode { white-space: nowrap; font-variant-numeric: tabular-nums; }
.bf-shop-card .bf-amenities-list { min-height: 27px; margin: 10px 0 2px; }
.bf-shop-card-foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-top: 16px;
	padding-top: 12px;
	border-top: 1px solid var(--bf-border-light);
	font-size: 11px;
	color: var(--bf-muted);
}
.bf-shop-card-foot > span { min-width: 0; }
.bf-shop-card-foot a { display: inline-flex; align-items: center; gap: 4px; color: var(--bf-brand); font-weight: 700; white-space: nowrap; }
.bf-shop-card-foot a .bf-i { width: 14px; height: 14px; }
.bf-shop-card .bf-finder-save { width: 34px; height: 34px; margin: -5px -5px -5px 0; }

/* Brand town links ------------------------------------------------------ */
.bf-brand-towns { border-top: 1px solid var(--bf-border); margin-top: 28px; }
.bf-brand-town-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	border-top: 1px solid var(--bf-border);
	border-left: 1px solid var(--bf-border);
}
.bf-town-link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 13px 14px;
	border-right: 1px solid var(--bf-border);
	border-bottom: 1px solid var(--bf-border);
	background: var(--bf-white);
	font-size: 14px;
	color: var(--bf-ink);
}
.bf-town-link:hover { background: var(--bf-brand-soft); text-decoration: none; }
.bf-town-link .bf-i { width: 14px; height: 14px; color: var(--bf-brand); }
.bf-empty-panel { display: flex; flex-direction: column; gap: 5px; padding: 28px; border: 1px solid var(--bf-border); background: var(--bf-white); color: var(--bf-muted); }
.bf-empty-panel strong { color: var(--bf-ink); }

/* Generic betting-shop archives --------------------------------------- */
.bf-finder-list--archive {
	border: 0;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}
.bf-finder-list--archive .bf-finder-row {
	grid-template-columns: minmax(0, 1fr) auto;
	padding: 16px;
	border: 1px solid var(--bf-border);
	background: var(--bf-white);
	border-top: 3px solid var(--bf-brand);
}
.bf-finder-list--archive .bf-finder-row:hover { border-color: var(--bf-brand); }
.bf-finder-list--archive .bf-finder-name { font-family: var(--bf-font-display); font-size: 19px; }
.bf-finder-list--archive .bf-finder-address { margin-top: 3px; }

/* Bookmaker / guide / offer archives ---------------------------------- */
.bf-bookmaker-grid--archive { gap: 14px; }
.bf-bookmaker-grid--archive .bf-bookmaker-card { min-height: 112px; justify-content: center; border-radius: 0; background: var(--bf-white); }
.bf-guide-grid--archive { gap: 16px; }
.bf-guide-grid--archive .bf-guide-card { border-radius: 0; }
.bf-offer-list--archive { background: transparent; }
.bf-offer-list--archive .bf-offer-row { background: var(--bf-white); padding: 16px; border: 1px solid var(--bf-border-light); border-top: 0; }
.bf-offer-list--archive .bf-offer-row:first-child { border-top: 1px solid var(--bf-border); }

@media (max-width: 980px) {
	.bf-brand-hero { grid-template-columns: minmax(0, 1fr) 220px; }
	.bf-shop-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.bf-brand-town-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
	.bf-brand-archive { padding-top: 14px; }
	.bf-brand-hero { grid-template-columns: 1fr; gap: 20px; padding: 24px 0; }
	.bf-brand-hero h1 { font-size: clamp(40px, 13vw, 58px); }
	.bf-brand-hero-mark { min-height: 130px; }
	.bf-brand-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 24px; }
	.bf-shop-card-grid { grid-template-columns: 1fr; }
	.bf-finder-list--archive { grid-template-columns: 1fr; }
	.bf-brand-town-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
	.bf-brand-actions { display: grid; grid-template-columns: 1fr; }
	.bf-brand-actions .bf-btn { width: 100%; }
	.bf-brand-stats { grid-template-columns: 1fr 1fr; }
	.bf-brand-stats .bf-stat { padding: 14px 12px; }
	.bf-brand-stats .bf-stat-value { font-size: 25px; }
}
