/**
 * HALINK C8 — Hệ thống cửa hàng / store locator
 */

.hl-page--stores {
	background: var(--hl-bg, #f1f5f9);
}

.hl-stores {
	padding: 0 0 clamp(3rem, 6vw, 5rem);
}

.hl-stores__header {
	max-width: 40rem;
	margin: 0 auto 2rem;
	text-align: center;
}

.hl-stores__eyebrow {
	margin: 0 0 0.5rem;
	font-family: var(--hl-font);
	font-size: var(--hl-text-sm);
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--hl-primary);
}

.hl-stores__title {
	margin: 0 0 0.75rem;
	font-family: var(--hl-font-display);
	font-size: clamp(1.75rem, 1.2rem + 2vw, 2.75rem);
	font-weight: 700;
	color: var(--hl-primary, #0f172a);
	line-height: 1.2;
}

.hl-stores__intro {
	margin: 0;
	color: var(--hl-text-muted, #6b6b6b);
	font-size: var(--hl-text-md);
	line-height: 1.7;
}

.hl-stores__toolbar {
	margin-bottom: 1.5rem;
}

.hl-stores__filter-label {
	display: block;
	margin-bottom: 0.65rem;
	font-size: var(--hl-text-sm);
	font-weight: 600;
	color: var(--hl-primary, #0f172a);
}

.hl-stores__filters {
	display: flex;
	flex-wrap: wrap;
	gap: 0.85rem 1rem;
	align-items: center;
	justify-content: space-between;
}

.hl-stores__cities {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.hl-stores__city {
	appearance: none;
	border: 1px solid var(--hl-border, #e4e2dc);
	background: #fff;
	color: var(--hl-primary, #0f172a);
	font-family: var(--hl-font);
	font-size: 0.875rem;
	font-weight: 500;
	padding: 0.55rem 1.1rem;
	border-radius: var(--hl-radius-cta, 20px 5px);
	cursor: pointer;
	transition: background var(--hl-duration) var(--hl-ease), color var(--hl-duration) var(--hl-ease), border-color var(--hl-duration) var(--hl-ease), transform var(--hl-duration) var(--hl-ease);
}

.hl-stores__city:hover {
	border-color: var(--hl-primary);
	color: var(--hl-primary);
}

.hl-stores__city.is-active {
	background: var(--hl-primary, #0f172a);
	border-color: var(--hl-primary, #0f172a);
	color: #fff;
}

.hl-stores__search {
	position: relative;
	flex: 1 1 220px;
	max-width: 320px;
}

.hl-stores__search-icon {
	position: absolute;
	left: 0.9rem;
	top: 50%;
	transform: translateY(-50%);
	width: 1.1rem;
	height: 1.1rem;
	color: var(--hl-text-muted);
	pointer-events: none;
}

.hl-stores__search-icon svg {
	display: block;
	width: 100%;
	height: 100%;
}

.hl-stores__search-input {
	width: 100%;
	border: 1px solid var(--hl-border, #e4e2dc);
	background: #fff;
	border-radius: var(--hl-radius-cta, 20px 5px);
	padding: 0.7rem 1rem 0.7rem 2.5rem;
	font-family: var(--hl-font);
	font-size: 0.9375rem;
	color: var(--hl-text);
	outline: none;
	transition: border-color var(--hl-duration) var(--hl-ease), box-shadow var(--hl-duration) var(--hl-ease);
}

.hl-stores__search-input:focus {
	border-color: var(--hl-primary);
	box-shadow: var(--hl-shadow-focus);
}

.hl-stores__layout {
	display: grid;
	grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
	gap: clamp(1.25rem, 3vw, 2rem);
	align-items: start;
}

.hl-stores__count {
	margin: 0 0 0.85rem;
	font-size: var(--hl-text-sm);
	font-weight: 600;
	color: var(--hl-text-muted);
}

.hl-stores__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.85rem;
	max-height: min(70vh, 640px);
	overflow: auto;
	padding-right: 0.25rem;
}

.hl-stores__card {
	width: 100%;
	text-align: left;
	appearance: none;
	border: 1px solid transparent;
	background: #fff;
	padding: 1.1rem 1.15rem 1rem;
	border-radius: 16px 6px;
	cursor: pointer;
	box-shadow: var(--hl-shadow-sm);
	transition: border-color var(--hl-duration) var(--hl-ease), box-shadow var(--hl-duration) var(--hl-ease), transform var(--hl-duration) var(--hl-ease);
}

.hl-stores__card:hover {
	border-color: rgba(154, 86, 58, 0.35);
	transform: translateY(-2px);
}

.hl-stores__card.is-active {
	border-color: var(--hl-primary);
	box-shadow: var(--hl-shadow);
}

.hl-stores__card-top {
	display: flex;
	gap: 0.75rem;
	align-items: flex-start;
	margin-bottom: 0.75rem;
}

.hl-stores__card-index {
	flex: 0 0 auto;
	width: 2rem;
	height: 2rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: var(--hl-primary, #0f172a);
	color: #fff;
	font-size: 0.8125rem;
	font-weight: 600;
}

.hl-stores__card.is-active .hl-stores__card-index {
	background: var(--hl-primary);
}

.hl-stores__card-heading {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.45rem 0.65rem;
	min-width: 0;
}

.hl-stores__card-name {
	font-family: var(--hl-font-display);
	font-size: 1.125rem;
	font-weight: 700;
	color: var(--hl-primary, #0f172a);
	line-height: 1.3;
}

.hl-stores__badge {
	display: inline-block;
	padding: 0.2rem 0.55rem;
	font-size: 0.6875rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--hl-primary);
	background: var(--hl-secondary-light, #f5ebe6);
	border-radius: 4px;
}

.hl-stores__meta {
	list-style: none;
	margin: 0 0 0.85rem;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
}

.hl-stores__meta li {
	display: flex;
	gap: 0.5rem;
	align-items: flex-start;
	font-size: 0.875rem;
	line-height: 1.5;
	color: var(--hl-text-muted, #6b6b6b);
}

.hl-stores__meta-icon {
	flex: 0 0 auto;
	width: 1rem;
	height: 1rem;
	margin-top: 0.15rem;
	color: var(--hl-primary);
}

.hl-stores__meta-icon svg {
	display: block;
	width: 100%;
	height: 100%;
}

.hl-stores__card-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.hl-stores__action {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.45rem 0.95rem;
	border-radius: var(--hl-radius-cta, 20px 5px);
	background: var(--hl-primary, #0f172a);
	color: #fff;
	font-size: 0.8125rem;
	font-weight: 600;
	text-decoration: none;
	transition: background var(--hl-duration) var(--hl-ease);
}

.hl-stores__action:hover {
	background: var(--hl-primary);
	color: #fff;
}

.hl-stores__action--ghost {
	background: transparent;
	color: var(--hl-primary, #0f172a);
	border: 1px solid var(--hl-border-strong, #d1cfc8);
}

.hl-stores__action--ghost:hover {
	border-color: var(--hl-primary);
	color: var(--hl-primary);
	background: transparent;
}

.hl-stores__empty {
	margin: 1.5rem 0 0;
	padding: 1.25rem;
	text-align: center;
	color: var(--hl-text-muted);
	background: #fff;
	border-radius: 12px;
}

.hl-stores__map-panel {
	position: sticky;
	top: calc(var(--hl-header-h-sticky, 72px) + 1rem);
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.hl-stores__map-frame {
	position: relative;
	overflow: hidden;
	border-radius: 20px 8px;
	background: #f8fafc;
	box-shadow: var(--hl-shadow);
	aspect-ratio: 4 / 3;
	min-height: 280px;
}

.hl-stores__map-frame iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.hl-stores__map-info {
	background: var(--hl-primary, #0f172a);
	color: #fff;
	padding: 1.25rem 1.35rem;
	border-radius: 16px 6px;
}

.hl-stores__map-name {
	margin: 0 0 0.35rem;
	font-family: var(--hl-font-display);
	font-size: 1.25rem;
	font-weight: 700;
}

.hl-stores__map-address {
	margin: 0 0 1rem;
	font-size: 0.9rem;
	line-height: 1.55;
	opacity: 0.85;
}

.hl-stores__map-cta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.55rem;
}

.hl-stores__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.65rem 1.15rem;
	border-radius: var(--hl-radius-cta, 20px 5px);
	background: var(--hl-primary);
	color: #fff;
	font-size: 0.875rem;
	font-weight: 600;
	text-decoration: none;
	transition: background var(--hl-duration) var(--hl-ease), color var(--hl-duration) var(--hl-ease);
}

.hl-stores__btn:hover {
	background: #fff;
	color: var(--hl-primary, #0f172a);
}

.hl-stores__btn--secondary {
	background: transparent;
	border: 1px solid rgba(255, 255, 255, 0.45);
}

.hl-stores__btn--secondary:hover {
	background: #fff;
	border-color: #fff;
	color: var(--hl-primary, #0f172a);
}

@media (max-width: 991px) {
	.hl-stores__layout {
		grid-template-columns: 1fr;
	}

	.hl-stores__map-panel {
		position: static;
		order: -1;
	}

	.hl-stores__map-frame {
		aspect-ratio: 16 / 10;
		min-height: 220px;
	}

	.hl-stores__list {
		max-height: none;
	}
}

@media (max-width: 575px) {
	.hl-stores__filters {
		flex-direction: column;
		align-items: stretch;
	}

	.hl-stores__search {
		max-width: none;
	}

	.hl-stores__map-cta {
		flex-direction: column;
	}

	.hl-stores__btn {
		width: 100%;
	}
}
