/* [local_store] fallback (includes/store-locator.php). Layout follows spec.vn's DevVN page:
   pill filters on top, store list on the left (40%), map on the right. */

.spec-store-locator {
	--spec-sl-green: #a3c83a;
	--spec-sl-yellow: #ffc20e;
	--spec-sl-height: 700px;
	position: relative;
	width: 100%;
	font-size: 16px;
	line-height: 1.5;
	text-align: left;
}

/* Filters */
.spec-store-locator .localstore_searchbox {
	padding: 0 16px 64px;
	background: var(--spec-sl-green);
	color: #fff;
}
.spec-store-locator .dvls_flex {
	display: flex;
	justify-content: center;
	gap: 10px;
	max-width: 1200px;
	margin: 0 auto;
}
.spec-store-locator .dvls_flex_box {
	position: relative;
}
.spec-store-locator .dvls_city_box,
.spec-store-locator .dvls_district_box {
	flex: 0 0 210px;
}
.spec-store-locator .keywork_box {
	flex: 1 1 auto;
	max-width: 754px;
	display: flex;
}
.spec-store-locator select,
.spec-store-locator input[type="text"] {
	width: 100%;
	margin: 0;
	background: #f9f9f9;
	border: 1px solid #ccc;
	box-shadow: 0 2px 4px -2px rgba(24, 39, 75, 0.12), 0 4px 4px -2px rgba(24, 39, 75, 0.08);
	border-radius: 64px;
	padding: 14px 20px;
	height: 54px;
	font-size: 17px;
	font-weight: 700;
	color: #000;
}
.spec-store-locator select {
	-webkit-appearance: none;
	appearance: none;
	padding-right: 40px;
	font-weight: 500;
	text-transform: uppercase;
	cursor: pointer;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23a3c83a' stroke-width='3' d='m5 9 7 7 7-7'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 18px center;
	background-size: 16px;
	text-overflow: ellipsis;
}
.spec-store-locator select:disabled {
	opacity: 0.6;
	cursor: default;
}
.spec-store-locator input[type="text"] {
	border-radius: 64px 0 0 64px;
	border-right: 0;
}
.spec-store-locator .btton_submit {
	flex: 0 0 152px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	height: 54px;
	margin: 0;
	padding: 0 16px;
	border: 0;
	border-radius: 0 64px 64px 0;
	background: var(--spec-sl-yellow);
	color: #fff;
	font-size: 16px;
	font-weight: 700;
	white-space: nowrap;
	cursor: pointer;
}
.spec-store-locator .btton_submit:hover,
.spec-store-locator .btton_submit:focus-visible {
	background: #f0b400;
	color: #fff;
}
.spec-store-locator .spec-sl-near-row {
	text-align: center;
	margin-top: 14px;
}
.spec-store-locator .spec-sl-near {
	background: transparent;
	border: 1px solid currentColor;
	border-radius: 64px;
	color: inherit;
	padding: 8px 20px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
}
.spec-store-locator .spec-sl-near:hover,
.spec-store-locator .spec-sl-near:focus-visible,
.spec-store-locator .spec-sl-near.is-active {
	background: #fff;
	color: #333;
	border-color: #fff;
}
.spec-store-locator .spec-sl-near:disabled {
	opacity: 0.7;
	cursor: progress;
}

/* List + map */
.spec-store-locator .spec-sl-body {
	display: flex;
	height: var(--spec-sl-height);
	background: #f5f5f5;
}
.spec-store-locator .localstore_search_wrap {
	flex: 0 0 40%;
	display: flex;
	flex-direction: column;
	min-width: 0;
	border-right: 4px solid #e6e6e6;
}
.spec-store-locator .spec-sl-count {
	padding: 20px 40px 0;
	font-size: 15px;
	color: #555;
}
.spec-store-locator .localstore_search_results {
	flex: 1 1 auto;
	overflow-y: auto;
	padding: 10px 24px 20px;
}
.spec-store-locator .localstore_search_results .localstore_box {
	padding: 22px 16px;
	border-radius: 8px;
	cursor: pointer;
	outline: none;
}
.spec-store-locator .localstore_search_results .localstore_box:hover,
.spec-store-locator .localstore_search_results .localstore_box:focus-visible {
	background: #fff;
	box-shadow: inset 3px 0 0 var(--spec-sl-green);
}
.spec-store-locator .localstore_info_name {
	margin-bottom: 6px;
}
.spec-store-locator .localstore_info_name strong {
	font-size: 18px;
	font-weight: 700;
	color: #111;
	text-transform: uppercase;
}
.spec-store-locator .spec-sl-distance {
	margin-left: 8px;
	padding: 1px 8px;
	border-radius: 10px;
	background: var(--spec-sl-green);
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	white-space: nowrap;
}
.spec-store-locator .localstore_info ul {
	list-style: none;
	margin: 0;
	padding: 0;
}
.spec-store-locator .localstore_info li {
	position: relative;
	padding-left: 26px;
	margin: 2px 0;
	font-size: 15px;
	color: #333;
}
.spec-store-locator .localstore_info li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 3px;
	width: 16px;
	height: 16px;
	background: var(--spec-sl-green);
	-webkit-mask: var(--spec-sl-icon) no-repeat center / contain;
	mask: var(--spec-sl-icon) no-repeat center / contain;
}
.spec-store-locator .spec-sl-address {
	--spec-sl-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a7 7 0 0 0-7 7c0 5.25 7 13 7 13s7-7.75 7-13a7 7 0 0 0-7-7zm0 9.5a2.5 2.5 0 1 1 0-5 2.5 2.5 0 0 1 0 5z'/%3E%3C/svg%3E");
}
.spec-store-locator .spec-sl-phone {
	--spec-sl-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2a1 1 0 0 1 1-.25 11.4 11.4 0 0 0 3.6.57 1 1 0 0 1 1 1V20a1 1 0 0 1-1 1A17 17 0 0 1 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.25.2 2.45.57 3.57a1 1 0 0 1-.25 1z'/%3E%3C/svg%3E");
}
.spec-store-locator .spec-sl-email {
	--spec-sl-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 4H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2zm0 4-8 5-8-5V6l8 5 8-5z'/%3E%3C/svg%3E");
}
.spec-store-locator .spec-sl-open {
	--spec-sl-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm1 10.4 3.5 2.1-.8 1.3L11 13V7h2z'/%3E%3C/svg%3E");
}
.spec-store-locator .localstore_maps {
	flex: 1 1 auto;
	min-width: 0;
	position: relative;
}
.spec-store-locator .spec-sl-map {
	position: absolute;
	inset: 0;
	z-index: 0; /* keep Leaflet panes below the sticky header */
}

/* Popup */
.spec-store-locator .leaflet-popup-content {
	margin: 14px 16px;
	font-size: 14px;
	line-height: 1.45;
}
.spec-store-locator .leaflet-popup-content .localstore_info_name strong {
	font-size: 15px;
}
.spec-store-locator .leaflet-popup-content .localstore_info li {
	font-size: 13px;
}
.spec-store-locator .leaflet-popup-content .localstore_img img {
	display: block;
	width: 100%;
	height: auto;
	margin-bottom: 8px;
	border-radius: 6px;
}
.spec-store-locator .localstore_action {
	display: flex;
	gap: 8px;
	margin-top: 10px;
}
.spec-store-locator .localstore_action a {
	flex: 1 1 0;
	display: inline-block;
	padding: 9px 10px;
	border-radius: 80px;
	background: var(--spec-sl-green);
	color: #fff !important;
	font-size: 14px;
	font-weight: 600;
	text-align: center;
	text-decoration: none;
}
.spec-store-locator .localstore_action a.localstore_btn {
	background: #fff;
	color: #333 !important;
	box-shadow: inset 0 0 0 1px #ccc;
}
.spec-store-locator .spec-sl-island {
	color: #3b6e8f;
	font-size: 12px;
	font-weight: 600;
	white-space: nowrap;
	text-align: center;
	text-shadow: 0 0 3px #fff, 0 0 3px #fff;
}

@media (max-width: 1080px) {
	.spec-store-locator .localstore_searchbox {
		padding-bottom: 24px;
	}
	.spec-store-locator .dvls_flex {
		flex-wrap: wrap;
	}
	.spec-store-locator .dvls_city_box,
	.spec-store-locator .dvls_district_box {
		flex: 1 1 calc(50% - 5px);
	}
	.spec-store-locator .keywork_box {
		flex: 1 1 100%;
		max-width: none;
	}
	.spec-store-locator select,
	.spec-store-locator input[type="text"] {
		font-size: 14px;
		height: 48px;
		padding: 12px 16px;
	}
	.spec-store-locator .btton_submit {
		flex-basis: 116px;
		height: 48px;
		padding: 0 12px;
		font-size: 14px;
	}
	.spec-store-locator .spec-sl-body {
		flex-direction: column-reverse;
		height: auto;
	}
	.spec-store-locator .localstore_maps {
		height: 380px;
		flex: 0 0 380px;
	}
	.spec-store-locator .localstore_search_wrap {
		flex: 0 0 auto;
		border-right: 0;
		border-top: 4px solid #e6e6e6;
	}
	.spec-store-locator .localstore_search_results {
		max-height: 520px;
		padding: 8px 12px 16px;
	}
	.spec-store-locator .spec-sl-count {
		padding: 14px 20px 0;
	}
	.spec-store-locator .localstore_info_name strong {
		font-size: 16px;
	}
}
@media (max-width: 480px) {
	.spec-store-locator .dvls_city_box,
	.spec-store-locator .dvls_district_box {
		flex-basis: 100%;
	}
}
