/* Service centre & store locator (inc/locator.php, assets/js/locator.js).
   Computers: search panel on the left (stays in view), results on the right.
   Phones: panel on top, results below. */

.am-loc {
	display: grid;
	grid-template-columns: minmax(300px, 380px) minmax(0, 1fr);
	gap: 40px;
	align-items: start;
}
.am-loc > * { min-width: 0; }   /* never let a long row of buttons widen the column */
.am-loc__panel {
	position: sticky;
	top: 96px;
	padding: 24px;
	border-radius: var(--a-radius-l);
	background: #fff;
	box-shadow: inset 0 0 0 1px var(--a-line);
}
.am-loc__step { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; color: var(--a-ink); font-size: 15px; font-weight: 600; }
.am-loc__step:not(:first-child) { margin-top: 24px; }
.am-loc__stepnum {
	display: inline-grid; place-items: center;
	width: 24px; height: 24px; border-radius: 50%;
	background: var(--a-blue); color: #fff; font-size: 13px; font-weight: 600;
}
.am-loc__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.am-loc__chip {
	min-height: 38px; padding: 0 14px;
	border: 1px solid var(--a-line); border-radius: 999px;
	background: #fff; color: var(--a-ink);
	font: inherit; font-size: 14px; font-weight: 500; cursor: pointer;
	transition: background-color 200ms var(--a-ease-out), border-color 200ms var(--a-ease-out), color 200ms var(--a-ease-out);
}
.am-loc__chip:hover { border-color: var(--a-blue-300); background: var(--a-blue-50); color: var(--a-ink); }
.am-loc__chip[aria-pressed="true"] { background: var(--a-blue); border-color: var(--a-blue); color: #fff; }

.am-loc__form { display: flex; gap: 8px; }
.am-loc__input {
	flex: 1; min-width: 0; height: 48px; padding: 0 16px;
	border: 1px solid var(--a-line); border-radius: 12px;
	font: inherit; font-size: 17px; color: var(--a-ink); background: #fff;
}
.am-loc__input:focus { border-color: var(--a-blue); outline: none; box-shadow: 0 0 0 3px rgba(0, 10, 82, .12); }
.am-loc__go {
	height: 48px; padding: 0 20px; border: 0; border-radius: 12px;
	background: var(--a-blue); color: #fff; font: inherit; font-size: 16px; font-weight: 600; cursor: pointer;
	transition: background-color 200ms var(--a-ease-out), transform var(--a-press) ease-out;
}
.am-loc__go:hover { background: var(--a-blue-700); color: #fff; }
.am-loc__go:active { transform: scale(.97); }
.am-loc__near {
	display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; padding: 0;
	border: 0; background: none; color: var(--a-blue); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer;
}
.am-loc__near svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.am-loc__near:hover { color: var(--a-red-ink); }
.am-loc__or { display: flex; align-items: center; gap: 12px; margin: 24px 0 16px; color: var(--a-muted); font-size: 13px; }
.am-loc__or::before, .am-loc__or::after { content: ""; flex: 1; height: 1px; background: var(--a-line); }
.am-loc__browse { display: grid; gap: 12px; }
.am-loc__browse label { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: var(--a-muted); }
.am-loc__browse select {
	height: 46px; padding: 0 12px; border: 1px solid var(--a-line); border-radius: 12px;
	background-color: #fff; font: inherit; font-size: 16px; color: var(--a-ink);
}
.am-loc__browse select:disabled { color: var(--a-muted); background: var(--a-blue-50); }

.am-loc__status { margin: 4px 0 20px; color: var(--a-text); font-size: 17px; }
.am-loc__status strong { color: var(--a-ink); }
.am-loc__results { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.am-loc__card {
	margin: 0; padding: 22px 22px 20px;
	border-radius: var(--a-radius-m);
	box-shadow: inset 0 0 0 1px var(--a-line);
	display: flex; flex-direction: column; gap: 8px;
	animation: am-loc-in 360ms var(--a-ease-out) both;
}
@keyframes am-loc-in { from { opacity: 0; transform: translateY(8px); } }
.am-loc__top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.am-pdesc .am-loc__name, .am-loc .am-loc__name { margin: 0; font-size: 18px; font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; color: var(--a-ink); }
.am-loc__dist { flex: none; color: var(--a-blue); font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.am-loc__addr { margin: 0; color: var(--a-text); font-size: 15px; line-height: 1.5; }
.am-loc__hours { margin: 0; color: var(--a-muted); font-size: 14px; }
.am-loc__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 8px; }
.am-loc__btn {
	display: inline-flex; align-items: center; min-height: 38px; padding: 0 14px;
	border-radius: 999px; box-shadow: inset 0 0 0 1px var(--a-line);
	color: var(--a-ink); font-size: 14px; font-weight: 500; text-decoration: none; font-variant-numeric: tabular-nums;
	transition: background-color 200ms var(--a-ease-out), box-shadow 200ms var(--a-ease-out);
}
.am-loc__btn:hover { background: var(--a-blue-50); color: var(--a-ink); }
.am-loc__btn--primary { background: var(--a-blue); box-shadow: none; color: #fff; font-weight: 600; }
.am-loc__btn--primary:hover { background: var(--a-blue-700); color: #fff; }
.am-loc__more {
	display: block; margin: 24px auto 0; min-height: 46px; padding: 0 24px;
	border: 1px solid var(--a-line); border-radius: 999px; background: #fff;
	font: inherit; font-size: 15px; font-weight: 600; color: var(--a-ink); cursor: pointer;
}
.am-loc__more:hover { background: var(--a-blue-50); }
.am-loc__more[hidden] { display: none; }
.am-loc__plain h3 { margin: 24px 0 8px; font-size: 18px; }

/* Other ways to get help */
.am-loc-help { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.am-loc-help li { margin: 0; }
.am-loc-help a {
	display: flex; flex-direction: column; gap: 6px; height: 100%;
	padding: 22px; border-radius: var(--a-radius-m); box-shadow: inset 0 0 0 1px var(--a-line);
	color: var(--a-ink); text-decoration: none;
	transition: box-shadow 200ms var(--a-ease-out), transform var(--a-move) var(--a-ease-out);
}
.am-loc-help a:hover { color: var(--a-ink); box-shadow: inset 0 0 0 1px var(--a-blue-300), var(--a-shadow-1); transform: translateY(-2px); }
.am-loc-help svg { width: 28px; height: 28px; fill: none; stroke: var(--a-blue); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.am-loc-help strong { font-size: 16px; font-weight: 600; }
.am-loc-help span { color: var(--a-muted); font-size: 14px; line-height: 1.45; }
.am-pg-wrap .am-loc-help-title { margin: 0 0 20px; font-size: var(--a-h4); }

@media (max-width: 1099px) {
	.am-loc__results { grid-template-columns: 1fr; }
	.am-loc-help { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 899px) {
	.am-loc { grid-template-columns: minmax(0, 1fr); gap: 24px; }
	.am-loc__panel { position: static; padding: 20px; }
}
@media (max-width: 559px) {
	.am-loc__chips { flex-wrap: nowrap; overflow-x: auto; margin-inline: -20px; padding: 2px 20px 6px; scrollbar-width: none; }
	.am-loc__chips::-webkit-scrollbar { display: none; }
	.am-loc__chip { flex: none; }
	.am-loc-help { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
	.am-loc__card { animation: none; }
	.am-loc-help a:hover { transform: none; }
}
