.bnd {
	--bnd-blue: #294B92;
	--bnd-red: #C84231;
	--bnd-ink: #363636;
	--bnd-muted: #898989;
	--bnd-line: #E3E3E3;
	--bnd-soft: #F5F6F8;
	color: #555;
	font-size: 14px;
	line-height: 22px;
}

.bnd [hidden] {
	display: none !important;
}

.bnd-intro {
	font-size: 15px;
	line-height: 24px;
	margin: 0 0 16px;
}

.bnd-search {
	position: relative;
	margin-bottom: 12px;
}

.bnd-search .fa-search {
	position: absolute;
	left: 14px;
	top: 15px;
	font-size: 14px;
	color: #A9B3C6;
}

.bnd-search input {
	width: 100%;
	height: 44px;
	padding: 0 40px 0 38px;
	font-size: 14px;
	color: var(--bnd-ink);
	background: #fff;
	border: 1px solid #D4D9E2;
	border-radius: 3px;
	-webkit-appearance: none;
	appearance: none;
}

.bnd-search input:focus {
	outline: none;
	border-color: var(--bnd-blue);
	box-shadow: 0 0 0 3px rgba(41, 75, 146, 0.15);
}

.bnd-search input::-webkit-search-cancel-button {
	-webkit-appearance: none;
}

.bnd-clear {
	position: absolute;
	right: 6px;
	top: 6px;
	width: 32px;
	height: 32px;
	padding: 0;
	font-size: 18px;
	line-height: 1;
	color: var(--bnd-muted);
	background: none;
	border: 0;
	border-radius: 3px;
}

.bnd-clear:hover {
	color: var(--bnd-ink);
	background: #E8EBF0;
}

.bnd-panel {
	background: #fff;
	border: 1px solid var(--bnd-line);
	border-radius: 3px;
	overflow: hidden;
}

.bnd-body {
	display: flex;
	align-items: stretch;
}

.bnd.is-ready .bnd-body {
	height: clamp(420px, 58vh, 500px);
}

.bnd-pane {
	flex: 0 0 44%;
	min-width: 0;
	border-right: 1px solid var(--bnd-line);
}

.bnd.is-ready .bnd-pane {
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}

.bnd-mapwrap {
	flex: 1 1 0;
	min-width: 0;
}

.bnd-map {
	height: 100%;
	min-height: 420px;
	background: #E8EBF0;
	z-index: 1;
}

.bnd-head {
	padding: 10px 14px;
	background: var(--bnd-soft);
	border-bottom: 1px solid var(--bnd-line);
}

.bnd.is-ready .bnd-head {
	position: -webkit-sticky;
	position: sticky;
	top: 0;
	z-index: 2;
}

.bnd-head-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}

.bnd-head-title {
	margin: 0;
	font-size: 12px;
	font-weight: 700;
	line-height: 18px;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--bnd-muted);
}

.bnd-head-count {
	flex: 0 0 auto;
	font-size: 12px;
	color: var(--bnd-muted);
}

.bnd-back {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	margin-bottom: 5px;
	padding: 0;
	font-size: 13px;
	line-height: 18px;
	color: var(--bnd-blue);
	background: none;
	border: 0;
}

.bnd-back:hover {
	color: var(--bnd-ink);
}

.bnd-wardlist {
	margin: 0;
	padding: 0;
	list-style: none;
}

.bnd-wardrow {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	padding: 13px 14px;
	text-align: left;
	background: none;
	border: 0;
	border-bottom: 1px solid #EFEFEF;
}

.bnd-wardrow:hover, .bnd-wardrow.is-hot {
	background: #F3F6FC;
}

.bnd-wardrow:focus-visible {
	outline: 2px solid var(--bnd-blue);
	outline-offset: -2px;
}

.bnd-wardname {
	flex: 1 1 auto;
	font-size: 14px;
	font-weight: 600;
	line-height: 20px;
	color: var(--bnd-ink);
}

.bnd-wardcount {
	flex: 0 0 auto;
	min-width: 24px;
	height: 22px;
	padding: 0 7px;
	font-size: 12px;
	font-weight: 700;
	line-height: 22px;
	text-align: center;
	color: var(--bnd-blue);
	background: #EDF1F9;
	border-radius: 11px;
}

.bnd-wardrow .fa-angle-right {
	flex: 0 0 auto;
	font-size: 16px;
	color: #B9C2D4;
}

.bnd-wardrow.is-empty {
	opacity: 0.45;
}

.bnd-cards {
	padding: 10px 12px 12px;
}

.bnd-card {
	margin-bottom: 8px;
	background: #fff;
	border: 1px solid var(--bnd-line);
	border-left: 3px solid transparent;
	border-radius: 3px;
}

.bnd-card:hover {
	border-color: #C3CCE0;
	border-left-color: #C3CCE0;
}

.bnd-card.is-active {
	border-color: #C3CCE0;
	border-left-color: var(--bnd-red);
	box-shadow: 0 2px 10px rgba(41, 75, 146, 0.14);
}

.bnd-card-head {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	width: 100%;
	padding: 11px 12px 3px;
	text-align: left;
	background: none;
	border: 0;
}

.bnd-card-head:focus-visible {
	outline: 2px solid var(--bnd-blue);
	outline-offset: -2px;
}

.bnd-num {
	flex: 0 0 auto;
	width: 24px;
	height: 24px;
	font-size: 12px;
	font-weight: 700;
	line-height: 24px;
	text-align: center;
	color: #fff;
	background: var(--bnd-blue);
	border-radius: 50%;
}

.bnd-card.is-active .bnd-num {
	background: var(--bnd-red);
}

.bnd-name {
	font-size: 14px;
	font-weight: 700;
	line-height: 20px;
	color: var(--bnd-ink);
}

.bnd-inward {
	display: none;
	margin-top: 2px;
	font-size: 12px;
	font-weight: 400;
	line-height: 16px;
	color: var(--bnd-muted);
}

.bnd-card.show-ward .bnd-inward {
	display: block;
}

.bnd-body-card {
	padding: 0 12px 11px 12px;
}

.bnd-line {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin: 3px 0;
	font-size: 13px;
	line-height: 20px;
}

.bnd-line .fa {
	flex: 0 0 auto;
	width: 14px;
	margin-top: 3px;
	font-size: 13px;
	text-align: center;
	color: #A9B3C6;
}

.bnd-line a {
	word-break: break-word;
}

.bnd-meta {
	margin: 8px 0 0;
	font-size: 12px;
	line-height: 18px;
	color: #A0A0A0;
}

.bnd-meta b {
	font-weight: 400;
	color: #767676;
}

.bnd-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
	margin-top: 9px;
}

.bnd-act {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 10px;
	font-size: 12px;
	line-height: 16px;
	color: var(--bnd-blue);
	background: #fff;
	border: 1px solid #D4D9E2;
	border-radius: 3px;
}

.bnd-act:hover, .bnd-act:focus {
	color: #fff;
	background: var(--bnd-blue);
	border-color: var(--bnd-blue);
}

.bnd-precision {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 2px 8px;
	font-size: 11px;
	line-height: 18px;
	color: #8A6D1F;
	background: #FDF6E3;
	border: 1px solid #F0E2BC;
	border-radius: 10px;
}

.bnd-empty {
	margin: 0;
	padding: 34px 20px;
	text-align: center;
	color: var(--bnd-muted);
}

.bnd-empty button {
	margin-top: 10px;
}

.bnd-view {
	display: none;
}

.bnd-maphint {
	margin: 8px 0 0;
	font-size: 12px;
	line-height: 17px;
	color: var(--bnd-muted);
}

.bnd-note {
	margin: 26px 0 0;
	padding: 14px 16px;
	font-size: 13px;
	line-height: 21px;
	background: var(--bnd-soft);
	border-left: 3px solid var(--bnd-blue);
}

.bnd-updated {
	margin: 12px 0 0;
	font-size: 12px;
	color: var(--bnd-muted);
}

.bnd-pin {
	width: 26px;
	height: 26px;
	background: var(--bnd-blue);
	border: 2px solid #fff;
	border-radius: 50% 50% 50% 0;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
	transform: rotate(-45deg);
	transform-origin: center;
	transition: 0.15s ease-in-out transform, 0.15s ease-in-out background;
}

.bnd-pin b {
	display: block;
	font-size: 11px;
	font-weight: 700;
	line-height: 22px;
	text-align: center;
	color: #fff;
	transform: rotate(45deg);
}

.bnd-pin.is-hover {
	transform: rotate(-45deg) scale(1.15);
}

.bnd-pin.is-active {
	background: var(--bnd-red);
	transform: rotate(-45deg) scale(1.22);
}

.bnd-cluster {
	width: 34px;
	height: 34px;
	font-size: 13px;
	font-weight: 700;
	line-height: 28px;
	text-align: center;
	color: var(--bnd-blue);
	background: #fff;
	border: 3px solid var(--bnd-blue);
	border-radius: 50%;
	box-shadow: 0 0 0 5px rgba(41, 75, 146, 0.22);
}

.bnd-cluster:hover {
	color: #fff;
	background: var(--bnd-blue);
}

.bnd-wardbadge {
	width: 36px;
	height: 36px;
	font-size: 14px;
	font-weight: 700;
	line-height: 32px;
	text-align: center;
	color: #fff;
	background: rgba(41, 75, 146, 0.92);
	border: 2px solid #fff;
	border-radius: 50%;
	box-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
	transition: 0.15s ease-in-out transform;
}

.bnd-wardbadge.is-hot {
	background: var(--bnd-blue);
	transform: scale(1.14);
}

.leaflet-tooltip.bnd-tip {
	padding: 4px 8px;
	font-size: 12px;
	font-weight: 600;
	color: var(--bnd-ink);
	border-color: #C3CCE0;
}

.leaflet-popup-content {
	margin: 12px 14px;
	font-size: 13px;
	line-height: 20px;
}

.bnd-pop-name {
	display: block;
	margin-bottom: 4px;
	font-size: 14px;
	font-weight: 700;
	color: var(--bnd-ink);
}

.bnd-pop-addr {
	display: block;
	color: #6B6B6B;
}

.bnd-pop-tel {
	margin-top: 5px;
}

.bnd-pop-tel .fa {
	color: #A9B3C6;
}

.bnd-pop .bnd-precision, .bnd-pop .bnd-act {
	margin-top: 6px;
}

.bnd-reset {
	width: 34px;
	height: 34px;
	font-size: 14px;
	line-height: 34px;
	text-align: center;
	color: var(--bnd-ink);
	background: #fff;
	border-radius: 3px;
	box-shadow: 0 1px 5px rgba(0, 0, 0, 0.4);
}

.bnd-reset:hover {
	background: #F4F4F4;
}

.bnd-sr {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
}

@media (max-width: 991px) {
	.bnd-pane {
		flex-basis: 46%;
	}
}

@media (max-width: 767px) {
	.bnd-view {
		display: flex;
		margin-bottom: 12px;
		border: 1px solid #D4D9E2;
		border-radius: 3px;
		overflow: hidden;
	}
	.bnd-view button {
		flex: 1 1 50%;
		padding: 11px 10px;
		font-size: 13px;
		line-height: 16px;
		color: #4A4A4A;
		background: #fff;
		border: 0;
	}
	.bnd-view button + button {
		border-left: 1px solid #D4D9E2;
	}
	.bnd-view button.is-on {
		color: #fff;
		background: var(--bnd-blue);
	}
	.bnd-body, .bnd.is-ready .bnd-body {
		display: block;
		height: auto;
	}
	.bnd-pane, .bnd.is-ready .bnd-pane {
		overflow: visible;
		border-right: 0;
	}
	.bnd-mapwrap {
		display: none;
	}
	.bnd.view-map .bnd-mapwrap {
		display: block;
	}
	.bnd.view-map .bnd-pane {
		display: none;
	}
	.bnd-map {
		height: 66vh;
		min-height: 340px;
	}
	.bnd-act {
		padding: 9px 12px;
		font-size: 13px;
	}
	.bnd-wardrow {
		padding: 15px 14px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.bnd-pin, .bnd-wardbadge {
		transition: none;
	}
}
