/* VUE Distribution Locator */
.vdl {
	--vdl-red: #D61F3F;
	--vdl-red-dark: #B5152F;
	--vdl-ink: #111114;
	--vdl-cream: #F4F2EE;
	--vdl-line: #E2DED6;
	--vdl-muted: #6B665E;
	--vdl-paper: #FFFFFF;
	--vdl-head: "Barlow Condensed", "Oswald", "Arial Narrow", sans-serif;
	--vdl-body: "Average", Georgia, "Times New Roman", serif;
	box-sizing: border-box;
	container: vdl / inline-size;
	width: 100%;
	padding: clamp(44px, 6vw, 72px) clamp(16px, 3.4vw, 44px) clamp(52px, 6.5vw, 80px);
	background: var(--vdl-cream);
	color: var(--vdl-ink);
	font-family: var(--vdl-body);
	font-size: 16px;
	line-height: 1.5;
}
.vdl *, .vdl *::before, .vdl *::after { box-sizing: border-box; }

/* Neutralize theme button/input styles inside the locator. */
.vdl button {
	font: inherit;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
	color: inherit;
	text-transform: none;
	letter-spacing: normal;
	line-height: 1.2;
	box-shadow: none;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
}
.vdl button:hover, .vdl button:focus { background-color: transparent; color: inherit; }
.vdl button:focus:not(:focus-visible), .vdl a:focus:not(:focus-visible) { outline: none; }
.vdl .vdl-input:focus-visible { outline: none; }
.vdl button:focus-visible, .vdl a:focus-visible, .vdl input:focus-visible {
	outline: 3px solid rgba(214, 31, 63, .45);
	outline-offset: 2px;
}
.vdl-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Header ---------- */
.vdl-head {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 48px;
	align-items: end;
	max-width: 1400px;
	margin: 0 auto 36px;
}
.vdl .vdl-eyebrow {
	margin: 0 0 16px;
	font-family: var(--vdl-head);
	font-weight: 700;
	font-size: 16px;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--vdl-red);
}
.vdl .vdl-title {
	margin: 0 0 18px;
	font-family: var(--vdl-head);
	font-weight: 700;
	font-size: clamp(46px, 6.4vw, 84px);
	line-height: .9;
	letter-spacing: -.005em;
	text-transform: uppercase;
	color: var(--vdl-ink);
}
.vdl .vdl-title em { color: var(--vdl-red); font-style: italic; }
.vdl .vdl-intro { margin: 0; max-width: 600px; font-size: 19px; line-height: 1.55; color: var(--vdl-ink); }
.vdl-stats {
	display: flex;
	margin: 0;
	border: 1px solid var(--vdl-line);
	background: var(--vdl-paper);
}
.vdl-stats > div { padding: 18px 26px; border-right: 1px solid var(--vdl-line); }
.vdl-stats > div:last-child { border-right: 0; }
.vdl-stats dt {
	font-family: var(--vdl-head);
	font-weight: 600;
	font-size: 14px;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--vdl-muted);
}
.vdl-stats dd {
	margin: 2px 0 0;
	font-family: var(--vdl-head);
	font-weight: 700;
	font-size: 46px;
	line-height: 1;
	color: var(--vdl-red);
}

/* ---------- App shell ---------- */
.vdl-app {
	display: grid;
	grid-template-columns: minmax(340px, 420px) minmax(0, 1fr);
	height: var(--vdl-h, 680px);
	max-width: 1400px;
	margin: 0 auto;
	background: var(--vdl-paper);
	border: 1px solid var(--vdl-line);
	box-shadow: 0 30px 60px -30px rgba(17, 17, 20, .25);
}
.vdl-panel {
	display: flex;
	flex-direction: column;
	min-height: 0;
	border-right: 1px solid var(--vdl-line);
}

/* ---------- Search ---------- */
.vdl-search { padding: 22px 22px 14px; }
.vdl-field { position: relative; display: flex; }
.vdl-icon {
	position: absolute;
	left: 14px;
	top: 50%;
	width: 20px;
	height: 20px;
	margin-top: -10px;
	fill: var(--vdl-muted);
	pointer-events: none;
}
.vdl .vdl-input {
	flex: 1;
	min-width: 0;
	height: 54px;
	margin: 0;
	padding: 0 12px 0 44px;
	border: 1px solid var(--vdl-ink);
	border-right: 0;
	border-radius: 0;
	background: var(--vdl-paper);
	color: var(--vdl-ink);
	font-family: var(--vdl-body);
	font-size: 17px;
	box-shadow: none;
	outline: none;
}
.vdl .vdl-input:focus { border-color: var(--vdl-red); box-shadow: inset 0 0 0 1px var(--vdl-red); }
.vdl .vdl-input::placeholder { color: #8F8A82; }
.vdl .vdl-go {
	flex: 0 0 auto;
	height: 54px;
	padding: 0 22px;
	background: var(--vdl-red);
	color: #fff;
	font-family: var(--vdl-head);
	font-weight: 700;
	font-size: 18px;
	letter-spacing: .1em;
	text-transform: uppercase;
	transition: background .15s;
}
.vdl .vdl-go:hover, .vdl .vdl-go:focus { background: var(--vdl-ink); color: #fff; }
.vdl.is-busy .vdl-go { opacity: .7; cursor: progress; }
.vdl .vdl-locate {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 12px;
	color: var(--vdl-red);
	font-family: var(--vdl-head);
	font-weight: 700;
	font-size: 16px;
	letter-spacing: .08em;
	text-transform: uppercase;
}
.vdl .vdl-locate svg { width: 18px; height: 18px; fill: currentColor; }
.vdl .vdl-locate:hover, .vdl .vdl-locate:focus { color: var(--vdl-ink); }

/* Suggestions */
.vdl-suggest {
	position: absolute;
	z-index: 1001;
	top: 100%;
	left: 0;
	right: 0;
	margin: 4px 0 0;
	padding: 6px 0;
	list-style: none;
	background: var(--vdl-paper);
	border: 1px solid var(--vdl-line);
	box-shadow: 0 18px 40px -12px rgba(17, 17, 20, .3);
}
.vdl-suggest li {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	margin: 0;
	padding: 10px 16px;
	cursor: pointer;
	font-size: 15px;
}
.vdl-suggest li strong { font-family: var(--vdl-head); font-weight: 700; font-size: 18px; }
.vdl-suggest li span { color: var(--vdl-muted); white-space: nowrap; }
.vdl-suggest li:hover, .vdl-suggest li.is-focus { background: var(--vdl-cream); }
.vdl-suggest .vdl-suggest-search {
	border-top: 1px solid var(--vdl-line);
	color: var(--vdl-red);
	font-family: var(--vdl-head);
	font-weight: 700;
	letter-spacing: .04em;
}

/* Area chips */
.vdl-chips {
	display: flex;
	gap: 8px;
	padding: 4px 22px 16px;
	overflow-x: auto;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
	-webkit-mask-image: linear-gradient(90deg, #000 85%, transparent);
	mask-image: linear-gradient(90deg, #000 85%, transparent);
}
.vdl-chips::-webkit-scrollbar { display: none; }
.vdl-chips::after { content: ""; flex: 0 0 24px; }
.vdl .vdl-chip {
	flex: 0 0 auto;
	padding: 8px 12px;
	border: 1px solid var(--vdl-line);
	background: var(--vdl-paper);
	color: var(--vdl-ink);
	font-family: var(--vdl-head);
	font-weight: 600;
	font-size: 15px;
	letter-spacing: .04em;
	text-transform: uppercase;
	white-space: nowrap;
	transition: border-color .15s, background .15s, color .15s;
}
.vdl .vdl-chip span { margin-left: 4px; color: var(--vdl-muted); font-weight: 500; }
.vdl .vdl-chip:hover, .vdl .vdl-chip:focus { border-color: var(--vdl-ink); background: var(--vdl-paper); color: var(--vdl-ink); }
.vdl .vdl-chip.is-active, .vdl .vdl-chip.is-active:hover { background: var(--vdl-ink); border-color: var(--vdl-ink); color: #fff; }
.vdl .vdl-chip.is-active span { color: rgba(255, 255, 255, .65); }

.vdl-status {
	padding: 12px 22px;
	border-top: 1px solid var(--vdl-line);
	border-bottom: 1px solid var(--vdl-line);
	background: #FAF9F6;
	color: var(--vdl-muted);
	font-size: 15px;
	line-height: 1.4;
}
.vdl-status strong { color: var(--vdl-ink); }
.vdl .vdl-clear {
	margin-left: 6px;
	color: var(--vdl-red);
	font-family: var(--vdl-head);
	font-weight: 700;
	font-size: 14px;
	letter-spacing: .08em;
	text-transform: uppercase;
	text-decoration: underline;
	text-underline-offset: 3px;
}
.vdl .vdl-clear:hover, .vdl .vdl-clear:focus { color: var(--vdl-ink); }

/* ---------- List ---------- */
.vdl-list {
	flex: 1;
	min-height: 0;
	margin: 0;
	padding: 0;
	list-style: none;
	overflow-y: auto;
	scrollbar-width: thin;
}
.vdl-item {
	position: relative;
	display: flex;
	margin: 0;
	border-bottom: 1px solid var(--vdl-line);
	transition: background .15s;
}
.vdl-item::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 4px;
	background: var(--vdl-red);
	transform: scaleY(0);
	transition: transform .2s;
}
.vdl-item:hover { background: #FAF9F6; }
.vdl-item.is-active { background: #FDF3F5; }
.vdl-item.is-active::before { transform: scaleY(1); }
.vdl .vdl-item-btn {
	display: flex;
	flex: 1;
	min-width: 0;
	gap: 12px;
	align-items: flex-start;
	padding: 16px 8px 16px 22px;
	text-align: left;
}
.vdl .vdl-item-btn:hover, .vdl .vdl-item-btn:focus { background: transparent; color: inherit; }
.vdl-item-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.vdl-item-name {
	font-family: var(--vdl-head);
	font-weight: 700;
	font-size: 21px;
	line-height: 1.1;
	color: var(--vdl-ink);
}
.vdl-item-addr { font-family: var(--vdl-body); font-size: 15px; line-height: 1.4; color: var(--vdl-muted); }
.vdl-item-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.vdl-item-meta:empty { display: none; }
.vdl-tag {
	font-family: var(--vdl-head);
	font-weight: 600;
	font-size: 12px;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--vdl-muted);
}
.vdl-note {
	display: inline-block;
	margin: 0;
	padding: 1px 8px;
	background: #FFF1D6;
	color: #7A4F00;
	font-family: var(--vdl-head);
	font-weight: 600;
	font-size: 13px;
	letter-spacing: .04em;
	text-transform: uppercase;
}
.vdl-badge {
	align-self: flex-start;
	margin-bottom: 4px;
	padding: 3px 8px;
	background: var(--vdl-red);
	color: #fff;
	font-family: var(--vdl-head);
	font-weight: 700;
	font-size: 12px;
	letter-spacing: .12em;
	text-transform: uppercase;
}
.vdl-dist {
	flex: 0 0 auto;
	padding-top: 2px;
	font-family: var(--vdl-head);
	font-weight: 700;
	font-size: 19px;
	color: var(--vdl-red);
	white-space: nowrap;
}
.vdl .vdl-item-dir {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 40px;
	height: 40px;
	margin: 14px 16px 0 4px;
	border: 1px solid var(--vdl-line);
	border-radius: 50%;
	color: var(--vdl-ink);
	transition: background .15s, border-color .15s, color .15s;
}
.vdl .vdl-item-dir svg { width: 18px; height: 18px; fill: currentColor; }
.vdl .vdl-item-dir:hover, .vdl .vdl-item-dir:focus { background: var(--vdl-red); border-color: var(--vdl-red); color: #fff; }
.vdl-empty { padding: 28px 22px; color: var(--vdl-muted); }
.vdl-msg { color: var(--vdl-ink); }

/* ---------- Map ---------- */
.vdl-map-wrap { position: relative; min-width: 0; min-height: 0; }
.vdl-map { position: absolute; inset: 0; background: #EDEBE6; font-family: var(--vdl-body); }
.vdl .leaflet-container a { color: var(--vdl-red); }
.vdl .leaflet-bar a, .vdl .leaflet-bar a:hover { color: var(--vdl-ink); }
.vdl .leaflet-control-zoom { border: 1px solid var(--vdl-line); box-shadow: 0 6px 18px -8px rgba(0, 0, 0, .3); }
.vdl .leaflet-control-zoom a { width: 38px; height: 38px; line-height: 38px; font-size: 20px; border-radius: 0 !important; }

/* Pins */
.vdl-pin { background: none; border: 0; }
.vdl-pin span {
	position: absolute;
	left: 3px;
	top: 2px;
	width: 24px;
	height: 24px;
	border-radius: 50% 50% 50% 0;
	background: var(--vdl-red);
	border: 3px solid #fff;
	transform: rotate(-45deg);
	box-shadow: -2px 3px 8px rgba(17, 17, 20, .35);
	transition: transform .18s ease, background .18s;
}
.vdl-pin span::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	width: 6px;
	height: 6px;
	margin: -3px 0 0 -3px;
	border-radius: 50%;
	background: #fff;
}
.vdl-pin:hover span { transform: rotate(-45deg) scale(1.12); }
.vdl-pin.is-active { z-index: 900 !important; }
.vdl-pin.is-active span { background: var(--vdl-ink); transform: rotate(-45deg) scale(1.25); }

/* Clusters */
.vdl-cluster { background: none; }
.vdl-cluster span {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	border-radius: 50%;
	background: var(--vdl-red);
	border: 3px solid #fff;
	box-shadow: 0 0 0 6px rgba(214, 31, 63, .22), 0 8px 18px -6px rgba(17, 17, 20, .45);
	color: #fff;
	font-family: var(--vdl-head);
	font-weight: 700;
	font-size: 17px;
	transition: transform .15s;
}
.vdl-cluster:hover span { transform: scale(1.08); }

/* "You" marker */
.vdl-you { background: none; }
.vdl-you span {
	position: absolute;
	inset: 0;
	border-radius: 50%;
	background: #1F6FEB;
	border: 3px solid #fff;
	box-shadow: 0 2px 8px rgba(0, 0, 0, .35);
}
.vdl-you span::before {
	content: "";
	position: absolute;
	inset: -14px;
	border-radius: 50%;
	background: rgba(31, 111, 235, .22);
	animation: vdl-pulse 2s ease-out infinite;
}
.vdl-you b {
	position: absolute;
	left: 50%;
	top: -26px;
	transform: translateX(-50%);
	padding: 2px 7px;
	background: var(--vdl-ink);
	color: #fff;
	font: 700 12px/1.3 var(--vdl-head);
	letter-spacing: .1em;
	text-transform: uppercase;
	white-space: nowrap;
}
@keyframes vdl-pulse {
	0% { transform: scale(.4); opacity: 1; }
	100% { transform: scale(1.4); opacity: 0; }
}

/* Popup */
.vdl .vdl-popup .leaflet-popup-content-wrapper {
	border-radius: 2px;
	padding: 0;
	box-shadow: 0 24px 50px -18px rgba(17, 17, 20, .45);
}
.vdl .vdl-popup .leaflet-popup-content { margin: 0; width: auto !important; }
.vdl .vdl-popup a.leaflet-popup-close-button { top: 8px; right: 8px; color: var(--vdl-muted); font-size: 22px; }
.vdl-pop { padding: 18px 20px 16px; }
.vdl .vdl-pop-area {
	margin: 0 0 4px;
	font-family: var(--vdl-head);
	font-weight: 700;
	font-size: 12px;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--vdl-red);
}
.vdl .vdl-pop-name {
	margin: 0 18px 4px 0;
	font-family: var(--vdl-head);
	font-weight: 700;
	font-size: 24px;
	line-height: 1.05;
	color: var(--vdl-ink);
}
.vdl .vdl-pop-addr { margin: 0 0 10px; font-family: var(--vdl-body); font-size: 15px; line-height: 1.4; color: var(--vdl-muted); }
.vdl .vdl-pop .vdl-note { margin-bottom: 12px; }
.vdl-pop-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.vdl-pop-dist { white-space: nowrap; font-family: var(--vdl-head); font-weight: 700; font-size: 19px; color: var(--vdl-ink); }
.vdl .vdl-pop-dir, .vdl .leaflet-container a.vdl-pop-dir {
	margin-left: auto;
	padding: 9px 16px;
	background: var(--vdl-red);
	color: #fff;
	font-family: var(--vdl-head);
	font-weight: 700;
	font-size: 15px;
	letter-spacing: .1em;
	text-transform: uppercase;
	text-decoration: none;
}
.vdl .vdl-pop-dir:hover, .vdl .leaflet-container a.vdl-pop-dir:hover { background: var(--vdl-ink); color: #fff; }

/* ---------- Responsive (based on the space the locator gets, not the screen) ---------- */
@container vdl (max-width: 1100px) {
	.vdl-head { grid-template-columns: 1fr; gap: 28px; align-items: start; }
}
@container vdl (max-width: 860px) {
	.vdl-app { display: flex; flex-direction: column; height: auto; }
	.vdl-panel { display: contents; }
	.vdl-search { order: 1; padding: 18px 18px 12px; }
	.vdl-chips { order: 2; padding: 2px 18px 14px; }
	.vdl-map-wrap { order: 3; height: 58vh; min-height: 340px; max-height: 620px; }
	.vdl-status { order: 4; padding: 12px 18px; }
	.vdl-list { order: 5; flex: none; max-height: 70vh; }
	.vdl .vdl-item-btn { padding-left: 18px; }
	.vdl-stats { width: 100%; }
	.vdl-stats > div { flex: 1; padding: 14px 16px; }
	.vdl-stats dd { font-size: 36px; }
	.vdl .vdl-intro { font-size: 17px; }
}
@container vdl (max-width: 420px) {
	.vdl .vdl-go { padding: 0 16px; }
	.vdl .vdl-item-name { font-size: 19px; }
	.vdl-stats > div { padding: 12px; }
	.vdl-stats dd { font-size: 30px; }
}
@media (prefers-reduced-motion: reduce) {
	.vdl *, .vdl *::before, .vdl *::after { animation: none !important; transition: none !important; }
}
