/**
* TJL Store Locator.
*
* Scoped under #tjl-store-locator throughout, so nothing here can reach the
* rest of the page. Typography and colour follow the Elementor kit: Prata for
* headings, Jost for body, #8441C0 as the brand purple, #E4097F as the accent.
*/
#tjl-store-locator {
	--tjl-sl-purple: #8441C0;
	--tjl-sl-purple-deep: #3A1259;
	--tjl-sl-pink: #E4097F;
	--tjl-sl-ink: #2F363D;
	--tjl-sl-muted: #6B6675;
	--tjl-sl-line: #E7DCF2;
	--tjl-sl-ground: #FDF8FF;
	--tjl-sl-card: #FFFFFF;

	box-sizing: border-box;
	padding: 72px 20px 80px;
	background: var(--tjl-sl-ground);
	font-family: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;
	color: var(--tjl-sl-ink);
}
#tjl-store-locator *,
#tjl-store-locator *::before,
#tjl-store-locator *::after {
	box-sizing: border-box;
}

/* ---- Neutralise theme chrome ----
 * Nexter and the Elementor kit both style bare `button`, `input` and `h3`
 * at specificity (0,1,1) -- `.elementor-kit-27 button` and friends -- which
 * outranks a plain class. Every selector in this file is therefore prefixed
 * with the section id, and this block zeroes the handful of properties the
 * theme sets that the component rules below do not otherwise mention. */
#tjl-store-locator button,
#tjl-store-locator input {
	margin: 0;
	min-height: 0;
	line-height: normal;
	text-shadow: none;
	box-shadow: none;
	-webkit-appearance: none;
	appearance: none;
}

#tjl-store-locator h2,
#tjl-store-locator h3,
#tjl-store-locator p,
#tjl-store-locator ul,
#tjl-store-locator li {
	margin: 0;
	padding: 0;
	text-transform: none;
	letter-spacing: normal;
}
#tjl-store-locator .tjl-sl__inner {
	max-width: 1180px;
	margin: 0 auto;
}

/* ---- Heading block ---- */
#tjl-store-locator .tjl-sl__head {
	text-align: center;
	margin-bottom: 26px;
}
#tjl-store-locator .tjl-sl__eyebrow {
	margin: 0 0 8px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 2.4px;
	text-transform: uppercase;
	color: var(--tjl-sl-pink);
}
#tjl-store-locator .tjl-sl__title {
	margin: 0 0 10px;
	font-family: "Prata", Georgia, serif;
	font-weight: 400;
	font-size: clamp( 26px, 3.4vw, 44px );
	line-height: 1.15;
	color: var(--tjl-sl-purple-deep);
}
#tjl-store-locator .tjl-sl__sub {
	margin: 0 auto;
	max-width: 620px;
	font-size: 16px;
	line-height: 1.55;
	color: var(--tjl-sl-muted);
}

/* ---- Search row ---- */
#tjl-store-locator .tjl-sl__search {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin: 0 auto 22px;
	max-width: 760px;
}
#tjl-store-locator .tjl-sl__field {
	position: relative;
	flex: 1 1 300px;
	min-width: 0;
	display: flex;
	align-items: center;
}
#tjl-store-locator .tjl-sl__field-icon {
	position: absolute;
	left: 16px;
	width: 19px;
	height: 19px;
	fill: var(--tjl-sl-purple);
	pointer-events: none;
}
#tjl-store-locator .tjl-sl__input {
	width: 100%;
	height: 52px;
	padding: 0 44px 0 44px;
	border: 1px solid var(--tjl-sl-line);
	border-radius: 999px;
	background: var(--tjl-sl-card);
	font-family: inherit;
	font-size: 16px; /* 16px keeps iOS from zooming the page on focus. */
	letter-spacing: 0.4px;
	color: var(--tjl-sl-ink);
	box-shadow: 0 2px 10px rgba(58, 18, 89, 0.05);
	transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
#tjl-store-locator .tjl-sl__input::placeholder {
	color: #A49DAF;
	letter-spacing: 0.2px;
}
#tjl-store-locator .tjl-sl__input:focus {
	outline: none;
	border-color: var(--tjl-sl-purple);
	box-shadow: 0 0 0 3px rgba(132, 65, 192, 0.16);
}
#tjl-store-locator .tjl-sl__clear {
	position: absolute;
	right: 14px;
	width: 24px;
	height: 24px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #EFE7F8;
	color: var(--tjl-sl-purple-deep);
	font-size: 17px;
	line-height: 1;
	cursor: pointer;
}
#tjl-store-locator .tjl-sl__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	height: 52px;
	padding: 0 24px;
	border: 1px solid transparent;
	border-radius: 999px;
	font-family: inherit;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.8px;
	text-transform: uppercase;
	cursor: pointer;
	white-space: nowrap;
	transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.18s ease;
}
#tjl-store-locator .tjl-sl__btn svg {
	width: 17px;
	height: 17px;
	fill: currentColor;
}
#tjl-store-locator .tjl-sl__btn--go {
	background: var(--tjl-sl-purple);
	color: #FFFFFF;
	box-shadow: 0 6px 18px -8px rgba(132, 65, 192, 0.8);
}
#tjl-store-locator .tjl-sl__btn--geo {
	background: var(--tjl-sl-card);
	border-color: var(--tjl-sl-line);
	color: var(--tjl-sl-purple-deep);
}
#tjl-store-locator .tjl-sl__btn:disabled {
	opacity: 0.55;
	cursor: not-allowed;
}
#tjl-store-locator .tjl-sl__btn.is-busy {
	opacity: 0.7;
}

/* ---- City chips ---- */
#tjl-store-locator .tjl-sl__cities {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin-bottom: 18px;
}
#tjl-store-locator .tjl-sl__chip {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 9px 16px;
	border: 1px solid var(--tjl-sl-line);
	border-radius: 999px;
	background: var(--tjl-sl-card);
	font-family: inherit;
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.3px;
	color: var(--tjl-sl-purple-deep);
	cursor: pointer;
	transition: background-color 0.22s ease, color 0.22s ease, border-color 0.22s ease;
}
#tjl-store-locator .tjl-sl__count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 20px;
	height: 20px;
	padding: 0 6px;
	border-radius: 999px;
	background: #F2EAFA;
	font-size: 11px;
	font-weight: 600;
	color: var(--tjl-sl-purple);
	transition: inherit;
}
#tjl-store-locator .tjl-sl__chip.is-active {
	background: var(--tjl-sl-purple);
	border-color: var(--tjl-sl-purple);
	color: #FFFFFF;
}
#tjl-store-locator .tjl-sl__chip.is-active .tjl-sl__count {
	background: rgba(255, 255, 255, 0.24);
	color: #FFFFFF;
}

/* ---- Status line ---- */
#tjl-store-locator .tjl-sl__status {
	margin: 0 0 18px;
	text-align: center;
	font-size: 14px;
	line-height: 1.5;
	color: var(--tjl-sl-muted);
}
#tjl-store-locator .tjl-sl__status[hidden] {
	display: none;
}

/* ---- The branch grid ---- */
#tjl-store-locator .tjl-sl__list {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}
#tjl-store-locator .tjl-sl__card {
	display: flex;
	flex-direction: column;
	padding: 20px 20px 18px;
	border: 1px solid var(--tjl-sl-line);
	border-radius: 16px;
	background: var(--tjl-sl-card);
	box-shadow: 0 2px 14px -8px rgba(58, 18, 89, 0.22);
	transition: box-shadow 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}
#tjl-store-locator .tjl-sl__card[hidden] {
	display: none;
}

/* The top PIN / distance result, so the eye lands on it first. */
#tjl-store-locator .tjl-sl__card.is-match {
	border-color: var(--tjl-sl-purple);
	box-shadow: 0 10px 28px -14px rgba(132, 65, 192, 0.65);
}
#tjl-store-locator .tjl-sl__card-top {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 8px;
}
#tjl-store-locator .tjl-sl__name {
	margin: 0;
	font-family: "Prata", Georgia, serif;
	font-weight: 400;
	font-size: 19px;
	line-height: 1.25;
	color: var(--tjl-sl-purple-deep);
}
#tjl-store-locator .tjl-sl__badge {
	flex: 0 0 auto;
	padding: 4px 10px;
	border-radius: 999px;
	background: #F2EAFA;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.6px;
	color: var(--tjl-sl-purple);
}
#tjl-store-locator .tjl-sl__addr {
	margin: 0 0 10px;
	font-size: 14px;
	line-height: 1.55;
	color: var(--tjl-sl-muted);
}
#tjl-store-locator .tjl-sl__distance {
	margin: 0 0 10px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.3px;
	color: var(--tjl-sl-pink);
}
#tjl-store-locator .tjl-sl__distance[hidden] {
	display: none;
}
#tjl-store-locator .tjl-sl__phones {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 14px;
	margin: 0 0 14px;
	font-size: 14px;
}
#tjl-store-locator .tjl-sl__phones a {
	color: var(--tjl-sl-ink);
	text-decoration: none;
	border-bottom: 1px solid var(--tjl-sl-line);
}
#tjl-store-locator .tjl-sl__phones a:hover,
#tjl-store-locator .tjl-sl__phones a:focus {
	color: var(--tjl-sl-purple);
	border-bottom-color: currentColor;
}
#tjl-store-locator .tjl-sl__dir {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: auto;
	align-self: flex-start;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.6px;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--tjl-sl-purple);
}
#tjl-store-locator .tjl-sl__dir svg {
	width: 15px;
	height: 15px;
	fill: currentColor;
	transition: transform 0.25s ease;
}
#tjl-store-locator .tjl-sl__empty {
	margin: 18px 0 0;
	text-align: center;
	font-size: 14px;
	color: var(--tjl-sl-muted);
}
#tjl-store-locator .tjl-sl__empty[hidden] {
	display: none;
}

/* Keyboard focus, visible on every control. */
#tjl-store-locator :focus-visible {
	outline: 2px solid var(--tjl-sl-purple);
	outline-offset: 2px;
}

/* ---- Hover, pointer devices only ---- */
@media (hover: hover) and (pointer: fine) {
	#tjl-store-locator .tjl-sl__card:hover {
		border-color: #D7C3EC;
		box-shadow: 0 14px 30px -16px rgba(58, 18, 89, 0.45);
		transform: translateY(-2px);
	}
	#tjl-store-locator .tjl-sl__btn--go:hover {
		background: #7334AE;
	}
	#tjl-store-locator .tjl-sl__btn--geo:hover {
		border-color: var(--tjl-sl-purple);
		color: var(--tjl-sl-purple);
	}
	#tjl-store-locator .tjl-sl__chip:not(.is-active):hover {
		border-color: var(--tjl-sl-purple);
		color: var(--tjl-sl-purple);
	}
	#tjl-store-locator .tjl-sl__dir:hover svg {
		transform: translateX(3px);
	}
}

/* ---- Tablet ---- */
@media (max-width: 1024px) {
	#tjl-store-locator {
		padding: 56px 20px 60px;
	}
	#tjl-store-locator .tjl-sl__list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* ---- Phone ---- */
@media (max-width: 767px) {
	#tjl-store-locator {
		padding: 40px 16px 44px;
	}
	#tjl-store-locator .tjl-sl__head {
		margin-bottom: 18px;
	}
	#tjl-store-locator .tjl-sl__sub {
		font-size: 14px;
	}
	#tjl-store-locator .tjl-sl__search {
		gap: 8px;
		margin-bottom: 16px;
	}
	/* One row: the PIN bar with "use my location" living INSIDE it, and
	   "find stores" immediately to its right. Two stacked rows of controls
	   cost 102px of a 844px screen before a single branch was visible.

	   A two-column grid, not flex: grid is what lets the field and the geo
	   button occupy the SAME cell, so the button sits inside the bar without
	   absolute positioning or a DOM move. Both are placed on row 1 / column 1
	   and the button is pushed to the end of it. */
	#tjl-store-locator .tjl-sl__search {
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto;
		align-items: center;
		gap: 8px;
	}
	#tjl-store-locator .tjl-sl__field {
		grid-area: 1 / 1;
		flex: 0 1 auto;
	}
	#tjl-store-locator .tjl-sl__btn {
		height: 46px;
		padding: 0 14px;
		font-size: 12px;
		letter-spacing: 0.4px;
	}
	#tjl-store-locator .tjl-sl__btn--go {
		grid-area: 1 / 2;
	}

	/* Inside the bar: a round icon button at the trailing edge.
	   `font-size: 0` collapses the label, which is a bare text node with no
	   element of its own to hide. It stays in the accessibility tree, so the
	   button keeps its name -- and render.php sets an explicit aria-label
	   besides. */
	#tjl-store-locator .tjl-sl__btn--geo {
		grid-area: 1 / 1;
		justify-self: end;
		align-self: center;
		z-index: 2;
		width: 38px;
		height: 38px;
		margin-right: 5px;
		padding: 0;
		gap: 0;
		border-radius: 50%;
		font-size: 0;
		background: #F3ECFB;
		border-color: transparent;
	}
	#tjl-store-locator .tjl-sl__btn--geo svg {
		width: 19px;
		height: 19px;
	}

	#tjl-store-locator .tjl-sl__input {
		height: 48px;
		/* Room for the geo button, so a six-digit PIN never runs under it. */
		padding-right: 52px;
	}

	/* The clear "x" shares the trailing edge with the geo button; it steps
	   left rather than stacking on top of it. */
	#tjl-store-locator .tjl-sl__clear {
		right: 52px;
	}

	/* First-scroll hint. The geo button is now a small icon inside a bar
	   rather than a labelled button of its own, so it needs one moment of
	   announcing itself. Added once by locator.js when the section first
	   enters view, and removed on the first interaction. */
	#tjl-store-locator .tjl-sl__btn--geo.is-hint {
		animation: tjl-sl-hint 1.5s ease-in-out 3;
	}

	@keyframes tjl-sl-hint {
		0%, 100% {
			box-shadow: 0 0 0 0 rgba(228, 9, 127, 0);
			background: #F3ECFB;
		}
		45% {
			box-shadow: 0 0 0 7px rgba(228, 9, 127, 0.16);
			background: #FFE3F1;
		}
	}
	#tjl-store-locator .tjl-sl__cities {
		gap: 6px;
		margin-bottom: 14px;
	}
	#tjl-store-locator .tjl-sl__chip {
		padding: 7px 12px;
		font-size: 12px;
	}
	#tjl-store-locator .tjl-sl__list {
		grid-template-columns: minmax(0, 1fr);
		gap: 12px;
	}
	#tjl-store-locator .tjl-sl__card {
		padding: 16px 16px 14px;
	}
	#tjl-store-locator .tjl-sl__name {
		font-size: 17px;
	}
	#tjl-store-locator .tjl-sl__addr {
		font-size: 13px;
	}
}

@media (prefers-reduced-motion: reduce) {
	#tjl-store-locator .tjl-sl__btn--geo.is-hint {
		animation: none;
	}
	#tjl-store-locator * {
		transition: none !important;
	}
	#tjl-store-locator .tjl-sl__card:hover {
		transform: none;
	}
}

/* =====================================================================
 * Layout modes
 *
 * Two attributes on the section decide the shape:
 *   data-layout  carousel (home) | grid (Contact Us, a full directory)
 *   data-mode    browse          | results (after a PIN or location search)
 *
 * Only `carousel` + `browse` is a carousel. A results view is always a short
 * static grid, because paging through three answers is friction, not a
 * feature. Specificity does the switching -- the mode selectors are (1,3,0)
 * and the base/media rules are (1,1,0) -- so source order is irrelevant.
 * ===================================================================== */

#tjl-store-locator .tjl-sl__viewport {
	position: relative;
}

/* ---- Carousel ---- */
#tjl-store-locator[data-layout="carousel"][data-mode="browse"] .tjl-sl__list {
	display: flex;
	grid-template-columns: none;
	gap: 16px;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
	-ms-overflow-style: none;
	/* The cards cast a shadow; without this the scroller clips it. */
	padding: 2px 2px 6px;
	margin: -2px -2px -6px;
}

#tjl-store-locator[data-layout="carousel"][data-mode="browse"] .tjl-sl__list::-webkit-scrollbar {
	display: none;
}

#tjl-store-locator[data-layout="carousel"][data-mode="browse"] .tjl-sl__card {
	flex: 0 0 calc((100% - 32px) / 3);
	scroll-snap-align: start;
}

/* ---- Results view: at most three, no paging ---- */
#tjl-store-locator[data-mode="results"] .tjl-sl__list {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
	overflow: visible;
}

/* ---- Arrows ---- */
#tjl-store-locator .tjl-sl__nav {
	position: absolute;
	top: 50%;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	transform: translateY(-50%);
	border: 1px solid var(--tjl-sl-line);
	border-radius: 50%;
	background: var(--tjl-sl-card);
	color: var(--tjl-sl-purple-deep);
	cursor: pointer;
	box-shadow: 0 4px 14px -6px rgba(58, 18, 89, 0.45);
	transition: background-color 0.22s ease, color 0.22s ease, opacity 0.22s ease;
}

#tjl-store-locator .tjl-sl__nav svg {
	width: 22px;
	height: 22px;
	fill: currentColor;
}

#tjl-store-locator .tjl-sl__nav--prev {
	left: -18px;
}

#tjl-store-locator .tjl-sl__nav--next {
	right: -18px;
}

#tjl-store-locator .tjl-sl__nav[hidden] {
	display: none;
}

/* Parked at an end: dimmed but still in the layout, so the track never shifts. */
#tjl-store-locator .tjl-sl__nav:disabled {
	opacity: 0.3;
	cursor: default;
	box-shadow: none;
}

/* ---- Dots ---- */
#tjl-store-locator .tjl-sl__dots {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 7px;
	margin-top: 16px;
}

#tjl-store-locator .tjl-sl__dots[hidden] {
	display: none;
}

#tjl-store-locator .tjl-sl__dot {
	width: 7px;
	height: 7px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: #D9CBE9;
	cursor: pointer;
	transition: width 0.25s ease, background-color 0.25s ease;
}

#tjl-store-locator .tjl-sl__dot.is-active {
	width: 20px;
	background: var(--tjl-sl-purple);
}

/* ---- "Show all branches" ---- */
#tjl-store-locator .tjl-sl__showall-line {
	margin-top: 16px;
	text-align: center;
}

#tjl-store-locator .tjl-sl__showall-line[hidden] {
	display: none;
}

#tjl-store-locator .tjl-sl__showall {
	padding: 0 0 2px;
	border: 0;
	border-bottom: 1px solid currentColor;
	background: none;
	font-family: inherit;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.6px;
	text-transform: uppercase;
	color: var(--tjl-sl-purple);
	cursor: pointer;
}

@media (hover: hover) and (pointer: fine) {
	#tjl-store-locator .tjl-sl__nav:not(:disabled):hover {
		background: var(--tjl-sl-purple);
		color: #FFFFFF;
	}

	#tjl-store-locator .tjl-sl__showall:hover {
		color: var(--tjl-sl-purple-deep);
	}
}

/* ---- Tablet: two across ---- */
@media (max-width: 1024px) {
	#tjl-store-locator[data-layout="carousel"][data-mode="browse"] .tjl-sl__card {
		flex: 0 0 calc((100% - 16px) / 2);
	}

	#tjl-store-locator[data-mode="results"] .tjl-sl__list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* ---- Phone: one card with the next peeking, so the swipe is discoverable ---- */
@media (max-width: 767px) {
	#tjl-store-locator[data-layout="carousel"][data-mode="browse"] .tjl-sl__list {
		gap: 12px;
	}

	#tjl-store-locator[data-layout="carousel"][data-mode="browse"] .tjl-sl__card {
		flex: 0 0 86%;
	}

	/* Touch swiping is the control here; arrows would only cover the cards. */
	#tjl-store-locator .tjl-sl__nav {
		display: none;
	}

	#tjl-store-locator[data-mode="results"] .tjl-sl__list {
		grid-template-columns: minmax(0, 1fr);
		gap: 12px;
	}
}

@media (prefers-reduced-motion: reduce) {
	#tjl-store-locator[data-layout="carousel"][data-mode="browse"] .tjl-sl__list {
		scroll-behavior: auto;
	}
}

/* ---- Embedded variant ----
 * `bare="yes"`: no tinted band and no vertical padding, for a locator dropped
 * inside a section that already supplies both. (1,1,0) beats the (1,0,0)
 * padding rules in the breakpoint blocks above, so no media overrides needed. */
#tjl-store-locator.tjl-sl--bare {
	padding: 0;
	background: transparent;
}
