/**
 * Interactive US location map — American Concealed homepage.
 * Viewport-locked (no page scroll); map is capped so copy + CTAs can breathe.
 */

@import url("https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&display=swap");

html.hpc-has-location-map,
html.hpc-has-location-map body {
	height: 100%;
	overflow: hidden;
}

.hpc-location-map {
	--ac-bg: #141c28;
	--ac-card: #1e2a3a;
	--ac-fg: #f2f5f8;
	--ac-muted: #9aa8b8;
	--ac-gold: #d4b04a;
	--ac-gold-hover: #e0c05c;
	--ac-gold-fg: #1a2030;
	--ac-blue: #4ba3e3;
	--ac-border: rgba(255, 255, 255, 0.09);
	--hpc-map-available: #4ba3e3;
	--hpc-map-available-hover: var(--ac-gold);
	--hpc-map-unavailable: #2a3648;
	--hpc-map-stroke: rgba(242, 245, 248, 0.28);
	/* Width-first hero — height only as a short-screen safety net. */
	--hpc-map-max-w: min(96rem, 92vw);
	--hpc-map-max-h: min(48rem, 68vh);

	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0;
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	height: calc(100dvh - var(--hpc-map-chrome, 5.5rem));
	max-height: calc(100dvh - var(--hpc-map-chrome, 5.5rem));
	min-height: 0;
	overflow: hidden;
	padding: clamp(1.5rem, 3.5vh, 2.75rem) clamp(1.25rem, 4vw, 3rem);
	font-family: "DM Sans", Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	color: var(--ac-fg);
	background-color: var(--ac-bg);
	background-image:
		linear-gradient(
			155deg,
			rgba(42, 56, 78, 0.75) 0%,
			rgba(24, 34, 48, 0.72) 100%
		),
		radial-gradient(70% 55% at 50% 0%, rgba(45, 78, 120, 0.4) 0%, transparent 60%),
		radial-gradient(40% 40% at 18% 12%, rgba(212, 176, 74, 0.1) 0%, transparent 70%),
		radial-gradient(50% 45% at 88% 88%, rgba(75, 163, 227, 0.12) 0%, transparent 70%),
		linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
		linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
	background-size: auto, auto, auto, auto, 44px 44px, 44px 44px;
	background-repeat: no-repeat, no-repeat, no-repeat, no-repeat, repeat, repeat;
	background-position: center top, center top, 0 0, 100% 100%, 0 0, 0 0;
	isolation: isolate;
}

body.admin-bar .hpc-location-map {
	--hpc-map-chrome: 7.5rem;
}

.hpc-location-map *,
.hpc-location-map *::before,
.hpc-location-map *::after {
	box-sizing: border-box;
}

.hpc-location-map__header {
	flex: 0 0 auto;
	text-align: center;
	margin: 0 auto 1.1rem;
	max-width: 48rem;
}

.hpc-location-map__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	margin: 0 0 0.65rem;
	padding: 0.35rem 0.7rem;
	border-radius: 0.35rem;
	border: 1px solid rgba(212, 176, 74, 0.45);
	background: rgba(212, 176, 74, 0.12);
	color: var(--ac-gold) !important;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.hpc-location-map__title {
	margin: 0 0 0.45rem;
	font-size: clamp(1.65rem, 3.6vw, 2.5rem);
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: 0.01em;
	text-transform: uppercase;
	color: #ffffff !important;
}

.hpc-location-map__subtitle {
	margin: 0 auto;
	max-width: 36rem;
	font-size: clamp(0.95rem, 1.5vw, 1.08rem);
	line-height: 1.45;
	color: var(--ac-muted) !important;
}

.hpc-location-map__stage {
	position: relative;
	flex: 0 1 auto;
	width: min(100%, var(--hpc-map-max-w));
	max-width: var(--hpc-map-max-w);
	margin: 0 auto;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
}

.hpc-location-map__canvas {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: visible;
}

.hpc-location-map__svg {
	display: block;
	width: 100%;
	height: auto;
	/* Prefer width; only shrink if height would blow past the viewport budget. */
	max-width: 100%;
	max-height: var(--hpc-map-max-h);
}

.hpc-location-map__state {
	fill: var(--hpc-map-unavailable);
	stroke: var(--hpc-map-stroke);
	stroke-width: 1.1;
	vector-effect: non-scaling-stroke;
	transition: fill 0.15s ease, stroke 0.15s ease, filter 0.15s ease, opacity 0.15s ease;
	outline: none;
}

.hpc-location-map__state.is-unavailable,
.hpc-location-map__state.is-unknown {
	fill: var(--hpc-map-unavailable);
	opacity: 0.85;
	cursor: default;
}

.hpc-location-map__state.is-available {
	fill: var(--hpc-map-available);
	opacity: 1;
	cursor: pointer;
	filter: drop-shadow(0 0 12px rgba(75, 163, 227, 0.35));
}

.hpc-location-map__state.is-available:hover,
.hpc-location-map__state.is-available:focus-visible {
	fill: var(--hpc-map-available-hover);
	stroke: #ffffff;
	stroke-width: 1.4;
	filter: drop-shadow(0 0 16px rgba(212, 176, 74, 0.55));
}

.hpc-location-map__tooltip {
	position: absolute;
	z-index: 5;
	transform: translate(-50%, -130%);
	padding: 0.5rem 0.8rem;
	border-radius: 0.55rem;
	background: rgba(20, 28, 40, 0.96);
	border: 1px solid rgba(255, 255, 255, 0.14);
	color: #ffffff !important;
	font-size: 0.88rem;
	font-weight: 650;
	white-space: nowrap;
	pointer-events: none;
	box-shadow: 0 14px 28px -14px rgba(0, 0, 0, 0.85);
}

.hpc-location-map__tooltip.is-available {
	border-color: rgba(212, 176, 74, 0.5);
	color: var(--ac-gold) !important;
}

.hpc-location-map__tooltip.is-unavailable {
	color: var(--ac-muted) !important;
}

.hpc-location-map__list-wrap {
	flex: 0 0 auto;
	margin: 1.25rem auto 0;
	max-width: 48rem;
	text-align: center;
}

.hpc-location-map__list-label {
	margin: 0 0 0.75rem;
	font-size: 0.72rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	font-weight: 650;
	color: var(--ac-gold) !important;
}

.hpc-location-map__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.65rem;
}

.hpc-location-map__list-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 2.65rem;
	padding: 0 1.2rem;
	border-radius: 0.65rem;
	border: 0;
	background: var(--ac-gold);
	color: var(--ac-gold-fg) !important;
	font-weight: 700;
	font-size: 0.95rem;
	text-decoration: none !important;
	box-shadow: 0 10px 24px -14px rgba(212, 176, 74, 0.8);
	transition: background 0.15s ease, transform 0.15s ease;
}

.hpc-location-map__list-link:hover,
.hpc-location-map__list-link:focus-visible {
	background: var(--ac-gold-hover);
	color: var(--ac-gold-fg) !important;
	transform: translateY(-1px);
}

@media (max-width: 760px) {
	.hpc-location-map {
		--hpc-map-max-w: 96vw;
		--hpc-map-max-h: min(24rem, 50vh);
		padding: 1.15rem 0.75rem 1.25rem;
		justify-content: flex-start;
	}

	.hpc-location-map__header {
		margin-bottom: 0.9rem;
	}

	.hpc-location-map__list-wrap {
		margin-top: 1rem;
	}
}

@media (max-height: 700px) {
	.hpc-location-map {
		--hpc-map-max-h: min(28rem, 58vh);
		padding-block: 0.85rem;
	}

	.hpc-location-map__header {
		margin-bottom: 0.7rem;
	}

	.hpc-location-map__subtitle {
		display: none;
	}

	.hpc-location-map__list-wrap {
		margin-top: 0.85rem;
	}
}
