.bbm-wrap {
	display: grid;
	grid-template-columns: minmax(280px, 380px) 1fr;
	grid-template-rows: auto minmax(0, 1fr);
	grid-template-areas:
		"filters map"
		"list    map";
	gap: 16px;
	height: var(--bbm-height, 600px);
	font-family: inherit;
	color: inherit;
}

.bbm-filters {
	grid-area: filters;
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.bbm-list-region {
	grid-area: list;
	min-height: 0;
	overflow-y: auto;
	display: flex;
	flex-direction: column;
}

.bbm-map {
	grid-area: map;
}

.bbm-search {
	flex: 0 0 auto;
	margin-bottom: 12px;
	position: relative;
}

.bbm-search-input,
.bbm-category-toggle {
	display: block;
	width: 100%;
	margin: 0;
	padding: 10px 14px;
	font-size: 14px;
	font-family: inherit;
	color: inherit;
	line-height: 1.4;
	border: 1px solid #cfd4da;
	border-radius: 6px;
	background: #fff;
	box-sizing: border-box;
	transition: border-color 0.12s ease, box-shadow 0.12s ease;
}

.bbm-search-input:hover,
.bbm-category-toggle:hover {
	border-color: #98a2b3;
}

.bbm-search-input:focus,
.bbm-category-toggle:focus,
.bbm-category-toggle[aria-expanded="true"] {
	border-color: #98a2b3;
	outline: none;
}

.bbm-suggestion {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	margin-top: -1px;
	z-index: 1000;
	max-height: 280px;
	overflow-y: auto;
	overflow-x: hidden;
	background: #fff;
	border: 1px solid #e3e6ea;
	border-top-left-radius: 0;
	border-top-right-radius: 0;
	border-bottom-left-radius: 8px;
	border-bottom-right-radius: 8px;
	box-shadow: 0 12px 28px rgba(15, 30, 50, 0.10), 0 2px 6px rgba(15, 30, 50, 0.06);
	padding: 4px 4px 0;
}

.bbm-suggestion[hidden] {
	display: none;
}

.bbm-suggestion-option {
	display: block;
	width: 100%;
	padding: 8px 10px;
	font-size: 13px;
	font-family: inherit;
	line-height: 1.3;
	text-align: left;
	color: inherit;
	background: transparent;
	border: 0;
	border-radius: 4px;
	cursor: pointer;
	word-break: break-word;
}

.bbm-suggestion-option:hover,
.bbm-suggestion-option:focus,
.bbm-suggestion-option[aria-selected="true"] {
	background: var(--bbm-primary, #8AD000);
	color: #fff;
	outline: none;
}

.bbm-suggestion-footer {
	position: sticky;
	bottom: 0;
	display: flex;
	justify-content: flex-end;
	margin: 0 -4px;
	padding: 4px 6px;
	background: #fff;
	border-top: 1px solid #eef0f2;
}

.bbm-suggestion-close {
	padding: 4px 8px;
	font-size: 12px;
	font-family: inherit;
	color: #6a7280;
	background: transparent;
	border: 0;
	border-radius: 4px;
	cursor: pointer;
}

.bbm-suggestion-close:hover,
.bbm-suggestion-close:focus {
	color: var(--bbm-primary-deep, #3a5b00);
	outline: none;
}

.bbm-categories,
.bbm-destinations {
	flex: 0 0 auto;
	margin-bottom: 14px;
	position: relative;
}

.bbm-categories[hidden],
.bbm-destinations[hidden] {
	display: none;
}

.bbm-category-dropdown {
	position: relative;
}

.bbm-category-toggle {
	text-align: left;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}

.bbm-category-toggle-arrow {
	color: #6a7280;
	transition: transform 0.15s ease;
}

.bbm-category-toggle[aria-expanded="true"] .bbm-category-toggle-arrow {
	transform: rotate(180deg);
}

.bbm-category-panel {
	position: absolute;
	top: calc(100% + 6px);
	left: 0;
	right: 0;
	z-index: 1000;
	max-height: 300px;
	overflow-y: auto;
	background: #fff;
	border: 1px solid #e3e6ea;
	border-radius: 8px;
	box-shadow: 0 12px 28px rgba(15, 30, 50, 0.10), 0 2px 6px rgba(15, 30, 50, 0.06);
	padding: 4px;
}

.bbm-category-panel[hidden] {
	display: none;
}

.bbm-category-option {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 6px 8px;
	border-radius: 4px;
	cursor: pointer;
	font-size: 13px;
	color: inherit;
	user-select: none;
}

.bbm-category-option:hover {
	background: #f3f5f7;
}

.bbm-category-option input[type="checkbox"] {
	accent-color: var(--bbm-primary, #8AD000);
	width: 16px;
	height: 16px;
	margin: 0;
	flex: 0 0 auto;
}

.bbm-tree-node {
	display: block;
}

.bbm-tree-row {
	display: flex;
	align-items: center;
	gap: 4px;
	padding: 3px 6px;
	border-radius: 4px;
	transition: background 0.12s ease;
}

.bbm-tree-row:hover {
	background: #f3f5f7;
}

.bbm-tree-node:has(> .bbm-tree-children:not([hidden])) > .bbm-tree-row {
	background: #f6f8fa;
}

.bbm-tree-node:has(> .bbm-tree-children) > .bbm-tree-row .bbm-tree-label {
	font-weight: 600;
	color: #1a1a1a;
}

.bbm-tree-toggle {
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	padding: 0;
	border: 0;
	background: transparent;
	color: #98a2b3;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 4px;
	transform-origin: center;
	transition: transform 0.18s ease, background 0.12s ease, color 0.12s ease;
}

.bbm-tree-toggle::before {
	content: '';
	display: block;
	width: 6px;
	height: 6px;
	border-top: 1.5px solid currentColor;
	border-right: 1.5px solid currentColor;
	transform: rotate(45deg) translate(-1px, 1px);
}

.bbm-tree-toggle:hover {
	background: rgba(0, 0, 0, 0.06);
	color: #475467;
}

.bbm-tree-toggle[aria-expanded="true"] {
	transform: rotate(90deg);
	color: #475467;
}

.bbm-tree-spacer {
	display: inline-block;
	width: 18px;
	height: 18px;
	flex: 0 0 auto;
}

.bbm-tree-label {
	flex: 1;
	display: flex;
	align-items: center;
	gap: 6px;
	cursor: pointer;
	font-size: 13px;
	color: inherit;
	margin: 0;
	user-select: none;
	min-width: 0;
}

.bbm-tree-label > span {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.bbm-tree-label input[type="checkbox"] {
	accent-color: var(--bbm-primary, #8AD000);
	width: 14px;
	height: 14px;
	margin: 0;
	flex: 0 0 auto;
}

.bbm-tree-badge {
	flex: 0 0 auto;
	margin-left: auto;
	padding: 1px 7px;
	background: var(--bbm-primary-soft, rgba(138, 208, 0, 0.18));
	color: var(--bbm-primary-deep, #3a5b00);
	font-size: 11px;
	font-weight: 600;
	line-height: 1.4;
	border-radius: 999px;
	letter-spacing: 0.02em;
}

.bbm-tree-badge[hidden] {
	display: none;
}

.bbm-tree-children {
	padding-left: 14px;
	margin-left: 9px;
	margin-top: 1px;
	margin-bottom: 1px;
	border-left: 1.5px solid #e5e8eb;
}

.bbm-tree-children[hidden] {
	display: none;
}

.bbm-category-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	margin-top: 8px;
	margin-bottom: 4px;
}

.bbm-category-chips:empty {
	display: none;
	margin: 0;
}

.bbm-chip {
	display: inline-flex;
	align-items: center;
	gap: 2px;
	padding: 2px 2px 2px 8px;
	background: var(--bbm-primary, #8AD000);
	color: #ffffff;
	border-radius: 999px;
	font-size: 10px;
	font-weight: 600;
	line-height: 1;
	text-shadow: 0 1px 1px rgba(0, 0, 0, 0.12);
}

.bbm-chip-remove {
	width: 14px;
	height: 14px;
	padding: 0;
	margin: 0;
	border: 0;
	background: transparent;
	color: #ffffff;
	cursor: pointer;
	font-size: 13px;
	line-height: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	opacity: 0.85;
	text-shadow: 0 1px 1px rgba(0, 0, 0, 0.18);
}

.bbm-chip-remove:hover {
	opacity: 1;
}

.bbm-chip-more {
	border: 0;
	cursor: pointer;
	background: var(--bbm-primary-deep, #3a5b00);
	padding: 4px 10px;
	font-family: inherit;
}

.bbm-chip-more:hover,
.bbm-chip-more:focus,
.bbm-chip-more[aria-expanded="true"] {
	background: var(--bbm-primary-dark, #2c7a3d);
	outline: none;
}

.bbm-chips-overflow {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	z-index: 1000;
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	max-height: 200px;
	overflow-y: auto;
	overflow-x: hidden;
	margin-top: 4px;
	padding: 8px;
	background: #fff;
	border: 1px solid #e3e6ea;
	border-radius: 8px;
	box-shadow: 0 12px 28px rgba(15, 30, 50, 0.10), 0 2px 6px rgba(15, 30, 50, 0.06);
}

.bbm-chips-overflow[hidden] {
	display: none;
}

.bbm-filter-actions {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: 8px;
}

.bbm-filter-actions:has(.bbm-result-count:empty):has(.bbm-clear-all[hidden]) {
	display: none;
}

.bbm-result-count {
	font-size: 12px;
	color: #6a7280;
}

.bbm-result-count:empty {
	display: none;
}

.bbm-clear-all {
	padding: 0;
	margin-left: auto;
	background: transparent;
	border: 0;
	color: #6a7280;
	font-size: 12px;
	cursor: pointer;
	text-decoration: underline;
	text-underline-offset: 2px;
	font-family: inherit;
}

.bbm-clear-all:hover {
	color: #1a1a1a;
}

.bbm-clear-all[hidden] {
	display: none;
}

.bbm-loader {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
	color: #6a7280;
	font-size: 14px;
	padding: 24px 12px;
	text-align: center;
}

.bbm-loader[hidden] {
	display: none;
}

.bbm-loader-spinner {
	display: block;
	width: 32px;
	height: 32px;
	box-sizing: border-box;
	border: 3px solid #e3e6ea;
	border-top-color: var(--bbm-primary-dark, #2c7a3d);
	border-radius: 50%;
	animation: bbm-spin 0.7s linear infinite;
}

.bbm-loader-text {
	display: block;
}

@keyframes bbm-spin {
	to { transform: rotate(360deg); }
}

.bbm-cluster-icon {
	background: transparent !important;
	border: none !important;
}

.bbm-cluster-icon .bbm-cluster-inner {
	background-size: contain;
	background-position: center;
	background-repeat: no-repeat;
	color: #ffffff;
	font-weight: 700;
	font-size: 13px;
	text-align: center;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.bbm-results,
.bbm-list {
	flex: 1 1 auto;
	min-height: 0;
	padding-right: 4px;
}

.bbm-list-heading {
	margin: 4px 0 10px;
	font-size: 14px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #555;
}

.bbm-wrap ul.bbm-list-items,
.bbm-wrap ul.bbm-results-list {
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.bbm-wrap li.bbm-card {
	display: flex;
	flex-direction: column;
	margin: 0 !important;
	padding: 0;
	border: 1px solid #e3e6ea;
	border-radius: 8px;
	background: #fff;
	cursor: pointer;
	overflow: hidden;
	list-style: none !important;
	text-indent: 0 !important;
	transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.bbm-wrap li.bbm-card::before,
.bbm-wrap li.bbm-card::marker {
	content: none !important;
	display: none !important;
}

.bbm-card:hover,
.bbm-card.is-active {
	border-color: var(--bbm-primary-dark, #2c7a3d);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.bbm-card-thumb {
	width: 100%;
	height: 110px;
	background-size: cover;
	background-position: center;
	background-color: #eef0f2;
}

.bbm-card-body {
	display: flex;
	flex-direction: column;
	min-width: 0;
	padding: 10px;
}

.bbm-card-title {
	font-weight: 600;
	font-size: 15px;
	color: inherit;
	line-height: 1.25;
	display: block;
}

.bbm-card-address {
	font-size: 12px;
	color: #6a7280;
	margin-top: 2px;
}

.bbm-card-excerpt {
	font-size: 13px;
	color: #444;
	margin: 6px 0 4px;
	line-height: 1.35;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.bbm-card-link {
	font-size: 13px;
	color: var(--bbm-primary-dark, #2c7a3d);
	text-decoration: none;
	margin-top: auto;
}

.bbm-card-link:hover {
	text-decoration: underline;
}

.bbm-card-pricing {
	margin: 6px 0 4px;
	font-size: 13px;
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 6px;
}

.bbm-price-special,
.bbm-price-normal {
	font-weight: 700;
	color: #1a1a1a;
}

.bbm-price-special {
	color: var(--bbm-primary-dark, #2c7a3d);
}

.bbm-price-was {
	color: #8a8f96;
	font-size: 12px;
}

.bbm-price-unit {
	color: #6a7280;
	font-size: 12px;
	font-weight: 500;
}

.bbm-price-discount {
	background: var(--bbm-primary-soft, rgba(138, 208, 0, 0.18));
	color: var(--bbm-primary-deep, #3a5b00);
	font-weight: 600;
	font-size: 11px;
	padding: 1px 6px;
	border-radius: 10px;
	letter-spacing: 0.02em;
}

.bbm-price-valid {
	flex-basis: 100%;
	font-size: 11px;
	color: #6a7280;
	margin-top: 2px;
}

.bbm-empty {
	padding: 14px;
	font-size: 14px;
	color: #6a7280;
	text-align: center;
}

.bbm-map {
	width: 100%;
	height: 100%;
	min-height: 320px;
	border-radius: 8px;
	overflow: hidden;
	border: 1px solid #e3e6ea;
}

.bbm-popup-title {
	font-weight: 600;
	font-size: 14px;
	margin-bottom: 4px;
	display: block;
	color: inherit;
	text-decoration: none;
}

.bbm-popup-thumb {
	width: 100%;
	height: 110px;
	background-size: cover;
	background-position: center;
	border-radius: 4px;
	margin-bottom: 6px;
}

.bbm-popup-link {
	display: inline-block;
	margin-top: 6px;
	font-size: 13px;
	color: var(--bbm-primary-dark, #2c7a3d);
	text-decoration: none;
}

.bbm-popup-link:hover {
	text-decoration: underline;
}

.bbm-popup a {
	-webkit-tap-highlight-color: transparent;
}

.bbm-popup a:focus {
	outline: none;
}

@media (max-width: 768px) {
	.bbm-wrap {
		grid-template-columns: 1fr;
		grid-template-rows: auto auto auto;
		grid-template-areas:
			"filters"
			"map"
			"list";
		height: auto;
		gap: 12px;
	}

	.bbm-list-region {
		overflow: visible;
		min-height: 0;
	}

	.bbm-map {
		height: 460px;
	}

	/* Shrink Google's default 48px close-button chrome on mobile */
	.bbm-wrap .gm-style-iw-chr {
		height: 32px !important;
	}

	.bbm-wrap .gm-style-iw-chr > button {
		width: 28px !important;
		height: 28px !important;
		padding: 0 !important;
	}

	.bbm-wrap .gm-style-iw-chr > button > span {
		width: 16px !important;
		height: 16px !important;
		margin: 6px !important;
	}
}
