/* ==========================================================================
   Store locator (frame 10) — page-templates/tpl-store-locator.php
   ========================================================================== */

.lz-locator { padding: 39px 0 64px; }
.lz-locator__grid {
	display: grid;
	grid-template-columns: minmax(0, 626px) minmax(0, 528px);
	justify-content: space-between;
	align-items: start;
	column-gap: 40px;
}

.lz-locator__title {
	margin-top: 24px;
	color: var(--lz-grey);
	font-size: 12px;
	line-height: 18px;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: .04em;
}

/* Search row */
.lz-locator__search {
	display: flex;
	align-items: center;
	gap: 13px;
	margin-top: 14px;
}
.lz-locator__field {
	position: relative;
	flex: 0 1 295px;
	min-width: 0;
}
.lz-locator input.lz-locator__input[type="search"] {
	display: block;
	width: 100%;
	height: 48px;
	min-height: 0;
	padding: 0 60px 0 28px;
	border: 0;
	border-radius: var(--lz-r-md);
	background: var(--lz-field);
	color: var(--lz-black);
	font-size: 16px;
	line-height: 24px;
	-webkit-appearance: none;
	appearance: none;
}
.lz-locator input.lz-locator__input[type="search"]::placeholder { color: var(--lz-grey); opacity: 1; }
.lz-locator input.lz-locator__input[type="search"]::-webkit-search-cancel-button { display: none; }
.lz-locator input.lz-locator__input[type="search"]:focus { outline: 2px solid var(--lz-black); outline-offset: -2px; }
.lz-locator__field-icon {
	position: absolute;
	right: 26px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--lz-grey);
	pointer-events: none;
}
.lz-locator__geo {
	display: inline-flex;
	align-items: center;
	justify-content: space-between;
	flex: 0 0 153px;
	height: 48px;
	padding: 0 13px;
	border: 1px solid #ededed;
	border-radius: var(--lz-r-md);
	background: #fff;
	color: var(--lz-grey);
	font-size: 16px;
	line-height: 24px;
	white-space: nowrap;
	transition: border-color .2s, color .2s;
}
.lz-locator__geo svg { flex: 0 0 auto; margin-right: -1px; }
.lz-locator__geo:hover { border-color: var(--lz-black); color: var(--lz-black); }
.lz-locator__geo.is-loading { opacity: .6; pointer-events: none; }
.lz-locator__submit { flex: 0 0 153px; height: 48px; padding: 0 12px; margin-left: -1px; }

.lz-locator__status { margin-top: 12px; font-size: 13px; line-height: 18px; color: var(--lz-grey); }
.lz-locator__status:empty { display: none; }
.lz-locator__status.is-error { color: var(--lz-error); }

/* List */
.lz-locator__list {
	display: grid;
	grid-template-columns: repeat(2, 324px);
	row-gap: 50px;
	margin-top: 80px;
}
.lz-locator__status:not(:empty) + .lz-locator__list { margin-top: 50px; }
.lz-locator__item {
	position: relative;
	padding-left: 68px;
	min-height: 48px;
}
.lz-locator__item[hidden] { display: none; }
.lz-locator__store {
	display: block;
	width: 100%;
	text-align: left;
	color: inherit;
	cursor: pointer;
}
.lz-locator__chip {
	position: absolute;
	top: -33px;
	left: 68px;
	display: inline-flex;
	align-items: center;
	height: 20px;
	padding: 0 15px;
	border-radius: var(--lz-r-pill);
	background: #e1f4ef;
	color: var(--lz-green);
	font-size: 10px;
	line-height: 15px;
	white-space: nowrap;
}
.lz-locator__chip[hidden] { display: none; }
.lz-locator__pin,
.lz-locator__marker {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border: 1px solid var(--lz-border);
	border-radius: var(--lz-r-xs);
	background: #fff;
	color: var(--lz-black);
	box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
	transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.lz-locator__pin { position: absolute; left: 0; top: -1px; }
.lz-locator__item.is-active .lz-locator__pin,
.lz-locator__marker.is-active {
	background: var(--lz-black);
	border-color: var(--lz-border);
	color: #fff;
}
.lz-locator__store:hover .lz-locator__pin { border-color: var(--lz-black); }
.lz-locator__info { display: block; margin-top: -5px; }
.lz-locator__name {
	display: block;
	font-size: 18px;
	line-height: 27px;
	font-weight: 500;
	letter-spacing: -0.02em;
	color: var(--lz-black);
}
.lz-locator__addr,
.lz-locator__phone {
	display: block;
	color: var(--lz-grey);
	font-size: 14px;
	line-height: 21px;
}
.lz-locator__addr { margin-top: 5px; }
.lz-locator__phone:hover { color: var(--lz-black); }
.lz-locator__links {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-top: 8px;
}
.lz-locator__dir {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	color: var(--lz-black);
	font-size: 13px;
	line-height: 20px;
	font-weight: 500;
	text-decoration: underline;
	text-underline-offset: 3px;
}
.lz-locator__social {
	display: inline-flex;
	color: var(--lz-grey);
	transition: color .2s;
}
.lz-locator__dir:hover,
.lz-locator__social:hover { color: var(--lz-green); }
.lz-locator__empty { margin-top: 48px; color: var(--lz-grey); }

/* Map (Leaflet + OpenStreetMap) */
.lz-locator__map {
	position: relative;
	width: 100%;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	border-radius: var(--lz-r-md);
	background: #f2ede2;
	isolation: isolate; /* keep Leaflet's z-indexes under the sticky header / drawers */
}
.lz-locator__canvas {
	position: absolute;
	inset: 0;
	background: #f2ede2;
	font-family: inherit;
}
/* Soft, warm tiles in the brand's beige palette. */
.lz-locator__canvas .leaflet-tile-pane { filter: grayscale(.85) sepia(.18) brightness(1.04) contrast(.92); }
.lz-locator__noscript {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	text-align: center;
	color: var(--lz-grey);
}
.lz-locator__canvas .leaflet-control-zoom {
	border: 1px solid var(--lz-border);
	border-radius: var(--lz-r-xs);
	box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
	overflow: hidden;
}
.lz-locator__canvas .leaflet-control-zoom a { color: var(--lz-black); }
.lz-locator__canvas .leaflet-control-attribution { font-size: 10px; background: rgba(255, 255, 255, .75); }

/* Map pin: the list's square pin with a small pointer below it. */
.lz-locator__mk { background: none; border: 0; }
.lz-locator__marker {
	position: relative;
	width: 44px;
	height: 44px;
	padding: 0;
	cursor: pointer;
}
.lz-locator__marker::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: -8px;
	width: 12px;
	height: 12px;
	margin-left: -6px;
	background: inherit;
	border-right: 1px solid var(--lz-border);
	border-bottom: 1px solid var(--lz-border);
	transform: rotate(45deg);
	transition: background-color .2s;
}
.lz-locator__mk:hover .lz-locator__marker { transform: translateY(-2px); }
.lz-locator__mk.is-active .lz-locator__marker {
	background: var(--lz-black);
	color: #fff;
}

/* "Ma position" dot */
.lz-locator__me span {
	display: block;
	width: 18px;
	height: 18px;
	border: 3px solid #fff;
	border-radius: 50%;
	background: var(--lz-green);
	box-shadow: 0 0 0 6px rgba(0, 128, 96, .18), 0 1px 3px rgba(0, 0, 0, .3);
}

/* Popup */
.lz-locator__leaflet-popup .leaflet-popup-content-wrapper {
	border-radius: var(--lz-r-md);
	box-shadow: 0 6px 24px rgba(0, 0, 0, .12);
}
.lz-locator__leaflet-popup .leaflet-popup-content { margin: 16px 20px 16px 18px; font: inherit; }
.lz-locator__popup .lz-locator__info { margin-top: 0; }
.lz-locator__popup .lz-locator__name { font-size: 16px; line-height: 22px; }
.lz-locator__popup .lz-locator__addr,
.lz-locator__popup .lz-locator__phone { font-size: 13px; line-height: 19px; }
.lz-locator__popup .lz-locator__phone { margin-top: 4px; }
.lz-locator__popup a { color: inherit; }
.lz-locator__popup .lz-locator__dir { color: var(--lz-black); }

/* ---------- Responsive ---------- */
@media (max-width: 1279px) {
	.lz-locator__list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; }
	.lz-locator__search { flex-wrap: wrap; }
}
@media (min-width: 1024px) and (max-width: 1279px) {
	/* Left column is too narrow for 2 store columns + the 3-control search row. */
	.lz-locator__list { grid-template-columns: minmax(0, 1fr); row-gap: 40px; margin-top: 56px; }
	.lz-locator__field { flex: 1 1 100%; }
	.lz-locator__geo, .lz-locator__submit { flex: 1 1 0; min-width: 0; margin-left: 0; }
	.lz-locator__map { position: sticky; top: 24px; }
}
@media (max-width: 1023px) {
	.lz-locator { padding-top: 24px; }
	.lz-locator__grid { grid-template-columns: minmax(0, 1fr); row-gap: 40px; }
	.lz-locator__field { flex: 1 1 auto; }
	.lz-locator__map { max-width: none; aspect-ratio: 4 / 3; }
	/* Phones / tablets: title + search, then the map, then the list. */
	.lz-locator__main { display: contents; }
	.lz-locator__grid { row-gap: 0; }
	.lz-locator__map { order: 1; margin-top: 24px; }
	.lz-locator__list, .lz-locator__empty { order: 2; }
}
@media (max-width: 767px) {
	.lz-locator__title { margin-top: 0; }
	.lz-locator__field { flex: 1 1 100%; }
	.lz-locator__geo, .lz-locator__submit { flex: 1 1 0; min-width: 0; }
	.lz-locator__submit { margin-left: 0; }
	.lz-locator__list { grid-template-columns: minmax(0, 1fr); row-gap: 48px; margin-top: 64px; }
}
