/**
 * Store locator.
 *
 * Two columns on desktop — a scrolling outlet sidebar and a sticky map — and a
 * single stacked column on mobile, matching the reference layout. Colours are
 * kept to the site's navy accent and neutral greys so it sits inside the theme
 * rather than beside it.
 */

.unu-loc {
	--unu-ink: #111;
	--unu-muted: #6b6b6b;
	--unu-line: #e6e6e6;
	--unu-accent: #0d1c57;
	--unu-sel: #f4f4f4;
	/* Full-bleed: the page releases the theme's container, so the locator only
	   keeps a gutter of its own. */
	max-width: none;
	margin: 0;
	padding: 0 clamp(16px, 3vw, 44px) 56px;
	color: var(--unu-ink);
}

/* ---------------------------------------------------------------- header */

.unu-loc__head {
	max-width: 720px;
	margin: 0 0 30px;
}

.unu-loc__title {
	margin: 0 0 12px;
	font-size: clamp(26px, 4vw, 40px);
	line-height: 1.15;
	letter-spacing: -0.01em;
}

.unu-loc__intro {
	margin: 0;
	color: var(--unu-muted);
	font-size: 15px;
	line-height: 1.6;
}

.unu-loc__status {
	margin: 12px 0 0;
	min-height: 20px;
	font-size: 13px;
	line-height: 1.5;
	color: var(--unu-accent);
}

.unu-loc__status:empty {
	margin: 0;
	min-height: 0;
}

/* ---------------------------------------------------------------- layout */

.unu-loc__body {
	display: grid;
	grid-template-columns: minmax(300px, 380px) 1fr;
	gap: 32px;
	align-items: start;
}

/* --------------------------------------------------------------- sidebar */

.unu-loc__sidebar {
	max-height: 78vh;
	overflow-y: auto;
	overscroll-behavior: contain;
	padding-right: 6px;
}

/* A restrained scrollbar; the sidebar scrolls a lot on small screens. */
.unu-loc__sidebar::-webkit-scrollbar { width: 6px; }
.unu-loc__sidebar::-webkit-scrollbar-thumb { background: #d2d2d2; border-radius: 3px; }

.unu-loc__country,
.unu-loc__cityname {
	margin: 0;
	font-size: inherit;
	font-weight: inherit;
}

.unu-loc__toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	width: 100%;
	padding: 16px 2px;
	border: 0;
	border-bottom: 1px solid var(--unu-line);
	background: none;
	color: var(--unu-ink);
	font: inherit;
	text-align: left;
	text-transform: uppercase;
	letter-spacing: 0.09em;
	cursor: pointer;
}

.unu-loc__country > .unu-loc__toggle {
	font-size: 15px;
	font-weight: 700;
}

.unu-loc__cityname > .unu-loc__toggle {
	margin-left: 14px;
	font-size: 13px;
	font-weight: 600;
	color: #333;
}

.unu-loc__toggle:hover { color: var(--unu-accent); }

.unu-loc__toggle:focus-visible {
	outline: 2px solid var(--unu-accent);
	outline-offset: 2px;
}

/* The +/− indicator is drawn rather than typed, so it cannot inherit a font
   that lacks a matching minus glyph. */
.unu-loc__sign {
	position: relative;
	flex: 0 0 12px;
	width: 12px;
	height: 12px;
}

.unu-loc__sign::before,
.unu-loc__sign::after {
	content: "";
	position: absolute;
	inset: 50% 0 auto 0;
	height: 1.5px;
	background: currentColor;
	transition: transform 0.2s ease;
}

.unu-loc__sign::after { transform: rotate(90deg); }

.is-open > * > .unu-loc__toggle .unu-loc__sign::after { transform: rotate(0deg); }

/* Collapsed by default; opened by the .is-open class on the wrapper. */
.unu-loc__panel { display: none; }
.unu-loc__group.is-open > .unu-loc__panel,
.unu-loc__city.is-open > .unu-loc__panel { display: block; }

.unu-loc__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

/* ------------------------------------------------------------------ card */

.unu-loc__item {
	position: relative;
	margin: 0 0 2px 14px;
	padding: 18px 16px;
	border-bottom: 1px solid var(--unu-line);
	transition: background-color 0.18s ease;
}

.unu-loc__item.is-selected {
	background: var(--unu-sel);
	border-bottom-color: transparent;
	box-shadow: inset 3px 0 0 var(--unu-accent);
}

.unu-loc__name {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 0 0 4px;
	font-size: 15px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.unu-loc__near {
	padding: 3px 8px;
	border-radius: 999px;
	background: var(--unu-accent);
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.08em;
	white-space: nowrap;
}

.unu-loc__venue {
	margin: 0 0 6px;
	font-size: 13px;
	font-weight: 600;
	color: #333;
}

.unu-loc__addr {
	margin: 0 0 10px;
	font-size: 13px;
	line-height: 1.65;
	font-style: normal;
	color: var(--unu-muted);
}

.unu-loc__row { margin: 0 0 10px; }

.unu-loc__tel {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	color: var(--unu-ink);
	text-decoration: none;
}

.unu-loc__tel:hover { color: var(--unu-accent); text-decoration: underline; }

.unu-loc__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 18px;
	margin: 0;
}

.unu-loc__view,
.unu-loc__dir {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--unu-ink);
	font: inherit;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	text-decoration: none;
	cursor: pointer;
}

.unu-loc__view:hover,
.unu-loc__dir:hover { color: var(--unu-accent); }

.unu-loc__view:focus-visible,
.unu-loc__dir:focus-visible {
	outline: 2px solid var(--unu-accent);
	outline-offset: 3px;
}

.unu-loc__item.is-selected .unu-loc__view {
	color: var(--unu-accent);
	cursor: default;
}

/* -------------------------------------------------------------------- map */

.unu-loc__mapwrap { position: sticky; top: 90px; }

.unu-loc__mapcard {
	border: 1px solid var(--unu-line);
	background: #fff;
}

.unu-loc__maplabel {
	margin: 0;
	padding: 14px 18px;
	border-bottom: 1px solid var(--unu-line);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: var(--unu-ink);
}

.unu-loc__maplabel:empty { display: none; }

.unu-loc__mapframe {
	position: relative;
	/* Tall enough to be useful, capped so it never exceeds the viewport. */
	height: min(72vh, 620px);
	background: #eceff1;
}

.unu-loc__map {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
}

/* --------------------------------------------------------------- responsive */

@media (max-width: 900px) {
	.unu-loc { padding: 4px 16px 44px; }

	.unu-loc__body {
		grid-template-columns: 1fr;
		gap: 24px;
	}

	.unu-loc__sidebar {
		max-height: none;
		overflow: visible;
		padding-right: 0;
		order: 1;
	}

	.unu-loc__mapwrap {
		position: static;
		order: 2;
	}

	.unu-loc__mapframe { height: 60vh; }

	.unu-loc__item { margin-left: 8px; padding: 16px 12px; }
	.unu-loc__cityname > .unu-loc__toggle { margin-left: 8px; }
}

@media (max-width: 480px) {
	.unu-loc__mapframe { height: 56vh; }
	.unu-loc__actions { gap: 10px 14px; }
}

@media (prefers-reduced-motion: reduce) {
	.unu-loc__sign::before,
	.unu-loc__sign::after,
	.unu-loc__item { transition: none; }
}

/* ------------------------------------------------------- theme width release
 * Moderno caps page content at 768px, which left the map about 230px wide.
 * Scoped to the body class the locator adds, so no other page is affected. */

.unu-locator-page .c-post,
.unu-locator-page .c-post--no-sidebar {
	max-width: none;
}

.unu-locator-page .c-post__inner {
	padding-left: 0;
	padding-right: 0;
}

/* The theme prints the page title above the content; the locator's own heading
   sits beneath it, so the top gap would otherwise double up. */
.unu-locator-page .c-post__content > .unu-loc {
	padding-top: 0;
}

/* ------------------------------------------------------- theme overrides
 * Moderno styles every <button> with a border, block display and generous
 * padding, and sets a fill on every <svg>. Both are re-stated here with the
 * extra specificity (and, where the theme rule is equally specific, with
 * !important) so the locator's inline controls are not rendered as boxed
 * buttons with solid-filled outline icons. */

.unu-loc .unu-loc__view,
.unu-loc .unu-loc__dir {
	display: inline-flex !important;
	width: auto !important;
	min-width: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: none !important;
	box-shadow: none !important;
	color: var(--unu-ink);
	line-height: 1.3;
	text-transform: uppercase;
}

.unu-loc .unu-loc__view:hover,
.unu-loc .unu-loc__dir:hover {
	background: none !important;
	color: var(--unu-accent);
}

.unu-loc .unu-loc__item.is-selected .unu-loc__view { color: var(--unu-accent); }

/* Outline icons must not inherit the theme's blanket svg fill. */
.unu-loc .unu-ico { flex: 0 0 auto; }
.unu-loc .unu-ico--line { fill: none !important; }
.unu-loc .unu-ico--solid { fill: currentColor !important; }

/* ------------------------------------------------------------ mobile polish
 * The theme adds its own horizontal padding to page content, so the locator's
 * own padding was doubling it and costing the map ~30px of width on a 360px
 * screen. The header block is also tightened, since the theme's paragraph
 * margins stack with it. */

@media (max-width: 900px) {
	.unu-loc {
		padding-left: 0;
		padding-right: 0;
	}

	.unu-loc__head { margin-bottom: 16px; }
	.unu-loc__intro { font-size: 14px; }
	.unu-loc__status { margin: 10px 0 0; }
}


/* --------------------------------------------------------- full-width page
 * Moderno centres page content with auto side margins on .c-post__container
 * (135px each side at 1440px) and adds 70px of top padding. Both are released
 * here so the locator runs the full width of the viewport and its heading sits
 * close to the page title, rather than a screen-height below it. */

.unu-locator-page .c-post__container.l-section,
.unu-locator-page .c-post__container.l-section--container {
	margin-left: 0 !important;
	margin-right: 0 !important;
	max-width: none !important;
	width: 100% !important;
}

.unu-locator-page .l-section__content { max-width: none; }

/* The theme's 70px top padding comes from a more specific rule than a plain
   .c-post__inner selector, so it needs the extra weight to be reduced. */
.unu-locator-page .c-post__inner {
	padding-top: 16px !important;
	padding-bottom: 0 !important;
}

/* The theme gives h2 a 40px top margin; the header block supplies its own
   spacing, so this would only push the heading down. */
.unu-locator-page .unu-loc__title {
	margin-top: 0;
	margin-bottom: 0;
}

.unu-loc__head { margin-bottom: 22px; }

@media (max-width: 900px) {
	.unu-locator-page .c-post__inner { padding-top: 10px !important; }
	.unu-loc__head { margin-bottom: 14px; }
}
