/**
 * HHK Branch Locator - Stage 2 (functional layout; final styling comes in Stage 6)
 */
.hhkbl {
	--hhkbl-red: #c8202f;
	--hhkbl-border: #e6e6e6;
	--hhkbl-text: #222;
	--hhkbl-muted: #555;
	--hhkbl-active: #fbeeee;

	display: flex;
	width: 100%;
	height: var(--hhkbl-height, 600px);
	border: 1px solid var(--hhkbl-border);
	background: #fff;
	color: var(--hhkbl-text);
	box-sizing: border-box;
	overflow: hidden;
}

.hhkbl *,
.hhkbl *::before,
.hhkbl *::after {
	box-sizing: border-box;
}

/* Sidebar */
.hhkbl__sidebar {
	display: flex;
	flex-direction: column;
	flex: 0 0 320px;
	max-width: 320px;
	background: #fff;
	border-right: 1px solid var(--hhkbl-border);
	min-height: 0;
}

.hhkbl__list {
	flex: 1 1 auto;
	overflow-y: auto;
	position: relative;
	min-height: 0;
}

/* Branch items */
.hhkbl__item {
	padding: 18px 20px;
	border-bottom: 1px solid var(--hhkbl-border);
	cursor: pointer;
	outline: none;
	transition: background-color 0.15s ease;
}

.hhkbl__item:hover,
.hhkbl__item:focus-visible {
	background: #fafafa;
}

.hhkbl__item.is-active {
	background: var(--hhkbl-active);
	box-shadow: inset 3px 0 0 var(--hhkbl-red);
}

.hhkbl__name {
	margin: 0 0 12px;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.3;
	color: var(--hhkbl-text);
}

.hhkbl__row {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin: 0 0 10px;
	font-size: 13px;
	line-height: 1.45;
	color: var(--hhkbl-muted);
}

.hhkbl__row:last-child {
	margin-bottom: 0;
}

.hhkbl__row a {
	color: inherit;
	text-decoration: none;
}

.hhkbl__row a:hover {
	color: var(--hhkbl-red);
	text-decoration: underline;
}

.hhkbl__icon {
	flex: 0 0 16px;
	width: 16px;
	margin-top: 1px;
	color: var(--hhkbl-red);
}

.hhkbl__icon svg {
	display: block;
}

/* Map */
.hhkbl__map {
	flex: 1 1 auto;
	min-width: 0;
	min-height: 0;
	background: #e5e3df;
}

.hhkbl__error {
	padding: 20px;
	margin: 0;
	color: var(--hhkbl-red);
}

.hhkbl__info {
	font-size: 13px;
	line-height: 1.4;
	color: #222;
	max-width: 220px;
}

/* Mobile: stack map on top, list below */
@media (max-width: 768px) {
	.hhkbl {
		flex-direction: column-reverse;
		height: auto;
	}

	.hhkbl__sidebar {
		flex: none;
		max-width: none;
		width: 100%;
		border-right: 0;
		border-top: 1px solid var(--hhkbl-border);
	}

	.hhkbl__list {
		max-height: 380px;
	}

	.hhkbl__map {
		flex: none;
		height: 380px;
		width: 100%;
	}
}
