/* ==========================================================================
   Business Listings Hub — avenue2 brand theme
   Navy #0A1A35 · Gold #F2A93B · Deep gold (hover) #D98C1F · Blue link #2F6FED
   White #FFFFFF · Section bg #F4F5F7 · Headings: serif (see var) · Body: Inter
   Assumption: exact hex values sampled from the site screenshots.
   Assumption: heading font swapped to a serif stack to match "New listings" —
   update --bhl-font-heading if the theme enqueues a specific webfont.
   ========================================================================== */

:root {
	--bhl-navy: #0A1A35;
	--bhl-navy-light: #14264a;
	--bhl-gold: #F2A93B;
	--bhl-gold-deep: #D98C1F;
	--bhl-link: #2F6FED;
	--bhl-white: #FFFFFF;
	--bhl-section-bg: #F4F5F7;
	--bhl-charcoal: #1B1B1B;
	--bhl-card-bg: #FFFFFF;
	--bhl-card-border: #E2E2E2;
	--bhl-input-bg: #f5f5f7;
	--bhl-text-muted: #6b7280;
	--bhl-font-heading: Georgia, 'Times New Roman', serif;
	--bhl-font-body: 'Inter', sans-serif;
}

.bhl-listings-wrap,
.bhl-archive-wrap,
.bhl-single-wrap {
	color: var(--bhl-navy);
	background: var(--bhl-section-bg);
	font-family: var(--bhl-font-body);
	padding: 32px;
	border-radius: 12px;
}

.bhl-listings-heading {
	font-family: var(--bhl-font-heading);
	color: var(--bhl-navy);
	text-align: center;
	letter-spacing: 0.5px;
	text-transform: none;
	font-size: 32px;
	margin: 0 0 24px;
}

/* ---------- Search bar ---------- */

.bhl-search-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	background: var(--bhl-white);
	border: 1px solid #e2e2e2;
	border-radius: 8px;
	padding: 14px;
	margin-bottom: 24px;
}

.bhl-search-fields {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	flex: 1;
}

.bhl-filter-text,
.bhl-filter-select {
	background: var(--bhl-input-bg);
	border: 1px solid #ddd;
	color: var(--bhl-charcoal);
	border-radius: 4px;
	padding: 10px 14px;
	font-family: var(--bhl-font-body);
	font-size: 14px;
	min-width: 180px;
	flex: 1 1 180px;
}

.bhl-filter-narrow {
	min-width: 130px;
	flex: 0 1 150px;
}

.bhl-filter-select {
	flex: 0 1 200px;
	min-width: 170px;
}

.bhl-filter-text::placeholder {
	color: #8a8a8a;
}

.bhl-filter-text:focus,
.bhl-filter-select:focus {
	outline: none;
	border-color: var(--bhl-navy);
}

.bhl-search-btn {
	background: var(--bhl-gold);
	color: var(--bhl-navy);
	border: none;
	border-radius: 4px;
	padding: 11px 26px;
	font-weight: 700;
	font-size: 14px;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	cursor: pointer;
	flex: 0 0 auto;
	transition: background 0.15s ease;
}

.bhl-search-btn:hover {
	background: var(--bhl-gold-deep);
}

.bhl-view-toggle {
	display: flex;
	gap: 4px;
	background: var(--bhl-input-bg);
	border: 1px solid #ddd;
	border-radius: 4px;
	padding: 4px;
	flex: 0 0 auto;
}

.bhl-view-btn {
	width: 34px;
	height: 34px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: transparent;
	border: none;
	border-radius: 4px;
	cursor: pointer;
}

.bhl-view-btn.is-active {
	background: var(--bhl-gold);
}

.bhl-icon-list,
.bhl-icon-grid {
	width: 16px;
	height: 16px;
	display: block;
	background-color: var(--bhl-charcoal);
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-position: center;
	mask-position: center;
	-webkit-mask-size: contain;
	mask-size: contain;
}

.bhl-view-btn.is-active .bhl-icon-list,
.bhl-view-btn.is-active .bhl-icon-grid {
	background-color: var(--bhl-charcoal);
}

.bhl-icon-list {
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Crect x='0' y='1' width='16' height='2'/%3E%3Crect x='0' y='7' width='16' height='2'/%3E%3Crect x='0' y='13' width='16' height='2'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Crect x='0' y='1' width='16' height='2'/%3E%3Crect x='0' y='7' width='16' height='2'/%3E%3Crect x='0' y='13' width='16' height='2'/%3E%3C/svg%3E");
}

.bhl-icon-grid {
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Crect x='0' y='0' width='7' height='7'/%3E%3Crect x='9' y='0' width='7' height='7'/%3E%3Crect x='0' y='9' width='7' height='7'/%3E%3Crect x='9' y='9' width='7' height='7'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Crect x='0' y='0' width='7' height='7'/%3E%3Crect x='9' y='0' width='7' height='7'/%3E%3Crect x='0' y='9' width='7' height='7'/%3E%3Crect x='9' y='9' width='7' height='7'/%3E%3C/svg%3E");
}

/* ---------- Grid ---------- */

.bhl-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 24px;
}
.bhl-grid.bhl-grid-4up {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.bhl-grid.is-list {
	grid-template-columns: 1fr;
}

.bhl-grid.is-list .bhl-card {
	flex-direction: row;
}

.bhl-grid.is-list .bhl-card-thumb-link {
	flex: 0 0 240px;
}

.bhl-grid.is-list .bhl-card-thumb,
.bhl-grid.is-list .bhl-card-thumb-placeholder {
	height: 100%;
	min-height: 160px;
}

/* ---------- Card ---------- */

.bhl-card {
	background: var(--bhl-card-bg);
	border: 1px solid var(--bhl-card-border);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.bhl-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 24px rgba(10, 26, 53, 0.14);
}

.bhl-card-thumb-link {
	display: block;
}

.bhl-card-thumb,
.bhl-card-thumb-placeholder {
	width: 100%;
	height: 170px;
	object-fit: cover;
	background: linear-gradient(160deg, var(--bhl-navy) 0%, var(--bhl-navy-light) 100%);
	display: block;
}

.bhl-card-body {
	padding: 16px;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.bhl-card-title {
	font-family: var(--bhl-font-body);
	font-weight: 600;
	font-size: 16px;
	line-height: 1.35;
	margin: 0 0 8px;
}

.bhl-card-title a {
	text-decoration: none;
	color: var(--bhl-link);
}

.bhl-card-title a:hover {
	color: var(--bhl-navy);
}

.bhl-card-location {
	font-size: 13px;
	color: var(--bhl-text-muted);
	margin: 0 0 10px;
}

.bhl-card-excerpt {
	font-size: 13px;
	color: var(--bhl-text-muted);
	line-height: 1.5;
	margin: 0 0 16px;
}

.bhl-card-footer {
	margin-top: auto;
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: 12px;
	padding-top: 12px;
	border-top: 1px solid var(--bhl-card-border);
}

.bhl-card-figure {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.bhl-card-figure-label {
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: var(--bhl-text-muted);
}

.bhl-card-figure-value {
	font-size: 15px;
	font-weight: 700;
	color: var(--bhl-navy);
}

.bhl-no-results {
	grid-column: 1 / -1;
	text-align: center;
	color: var(--bhl-text-muted);
	padding: 40px 0;
}

/* ---------- View all button ---------- */

.bhl-view-all {
	text-align: center;
	margin-top: 28px;
}

.bhl-view-all-btn {
	display: inline-block;
	padding: 12px 32px;
	background: transparent;
	border: 1px solid var(--bhl-navy);
	color: var(--bhl-navy);
	text-decoration: none;
	font-weight: 600;
	font-size: 13px;
	letter-spacing: 1px;
	text-transform: uppercase;
	transition: background 0.15s ease, color 0.15s ease;
}

.bhl-view-all-btn:hover {
	background: var(--bhl-navy);
	border-color: var(--bhl-navy);
	color: var(--bhl-white);
}

/* ---------- Single listing ---------- */

.bhl-single-wrap {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 32px;
}

.bhl-single-thumb {
	width: 100%;
	border-radius: 8px;
	display: block;
}

.bhl-single-title {
	font-family: var(--bhl-font-heading);
	letter-spacing: 0.2px;
	color: var(--bhl-navy);
	margin-top: 0;
}

.bhl-single-location {
	color: var(--bhl-link);
	font-weight: 600;
}

.bhl-single-meta {
	list-style: none;
	padding: 0;
	margin: 0 0 20px;
	font-size: 15px;
}

.bhl-single-meta li {
	margin-bottom: 6px;
}

@media (max-width: 720px) {
	.bhl-single-wrap {
		grid-template-columns: 1fr;
	}

	.bhl-search-bar {
		flex-direction: column;
		align-items: stretch;
	}

	.bhl-view-toggle {
		align-self: flex-end;
	}
}
@media (max-width: 1100px) {
	.bhl-grid.bhl-grid-4up {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 560px) {
	.bhl-grid.bhl-grid-4up {
		grid-template-columns: 1fr;
	}
}