.stoner-live-map,
.stoner-live-map * {
	box-sizing: border-box;
}

.stoner-live-map {
	position: relative;
	width: 100%;
	padding: 80px 4%;
	overflow: hidden;
	background: #080808;
	color: #ffffff;
	font-family: Arial, sans-serif;
}

.stoner-live-map__inner {
	width: min(1400px, 100%);
	margin: 0 auto;
}

.stoner-live-map__heading {
	max-width: 820px;
	margin: 0 auto 42px;
	text-align: center;
}

.stoner-live-map__eyebrow {
	margin: 0 0 12px;
	color: #e30613;
	font-size: 13px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: 3px;
	text-transform: uppercase;
}

.stoner-live-map__heading h2 {
	margin: 0;
	color: #ffffff;
	font-family: Impact, "Arial Narrow", sans-serif;
	font-size: clamp(54px, 7vw, 96px);
	font-weight: 400;
	line-height: 0.94;
	letter-spacing: 2px;
	text-transform: uppercase;
}

.stoner-live-map__line {
	width: 54px;
	height: 3px;
	margin: 22px auto;
	background: #e30613;
	box-shadow:
		0 0 14px rgba(227, 6, 19, 0.65);
}

.stoner-live-map__heading > p:last-child {
	max-width: 680px;
	margin: 0 auto;
	color: #bdbdbd;
	font-size: 15px;
	line-height: 1.6;
}

/* =========================================================
   MAP FRAME
========================================================= */

.stoner-live-map__frame {
	position: relative;
	width: 100%;
	padding: 30px;
	overflow: hidden;

	border:
		1px solid
		rgba(227, 6, 19, 0.45);

	background:
		radial-gradient(
			circle at 50% 48%,
			rgba(227, 6, 19, 0.07),
			transparent 48%
		),
		#0b0b0b;

	box-shadow:
		inset 0 0 40px rgba(0, 0, 0, 0.8),
		0 0 30px rgba(227, 6, 19, 0.08);
}

.stoner-live-map__svg {
	width: 100%;
	height: auto;
	display: block;
	overflow: hidden;

	cursor: grab;

	touch-action: none;
}

.stoner-live-map__svg:active {
	cursor: grabbing;
}

.stoner-map-viewport {
	transform-origin: 0 0;
}

/* =========================================================
   MAP VIEW SWITCHER
========================================================= */

.stoner-map-mode-control {
	position: absolute;
	z-index: 20;

	top: 18px;
	left: 18px;

	min-height: 44px;
	padding: 0 18px;

	border:
		1px solid
		rgba(227, 6, 19, 0.8);

	background:
		rgba(8, 8, 8, 0.9);

	color: #ffffff;

	font-family:
		Arial,
		sans-serif;

	font-size: 11px;
	font-weight: 700;

	line-height: 1;

	letter-spacing: 1px;

	text-transform: uppercase;

	cursor: pointer;

	backdrop-filter: blur(5px);

	box-shadow:
		0 8px 22px
		rgba(0, 0, 0, 0.3);

	transition:
		background-color 0.2s ease,
		border-color 0.2s ease,
		color 0.2s ease,
		box-shadow 0.2s ease,
		transform 0.2s ease;
}

.stoner-map-mode-control:hover,
.stoner-map-mode-control:focus-visible {
	background: #e30613;
	border-color: #e30613;
	color: #ffffff;

	box-shadow:
		0 0 16px
		rgba(227, 6, 19, 0.35);

	transform: translateY(-1px);
}

.stoner-map-mode-control:focus-visible {
	outline: 2px solid #ffffff;
	outline-offset: 2px;
}

/* =========================================================
   ZOOM CONTROLS
========================================================= */

.stoner-map-zoom-controls {
	position: absolute;
	z-index: 20;

	top: 18px;
	right: 18px;

	display: flex;
	flex-direction: column;

	gap: 5px;

	padding: 5px;

	border:
		1px solid
		rgba(255, 255, 255, 0.18);

	background:
		rgba(8, 8, 8, 0.88);

	backdrop-filter: blur(5px);

	box-shadow:
		0 8px 22px
		rgba(0, 0, 0, 0.32);
}

.stoner-map-zoom-button {
	width: 42px;
	height: 42px;

	display: flex;
	align-items: center;
	justify-content: center;

	padding: 0;

	border:
		1px solid
		rgba(255, 255, 255, 0.16);

	background: #111111;

	color: #ffffff;

	font-family:
		Arial,
		sans-serif;

	font-size: 26px;
	font-weight: 400;

	line-height: 1;

	cursor: pointer;

	transition:
		background-color 0.18s ease,
		border-color 0.18s ease,
		color 0.18s ease,
		box-shadow 0.18s ease;
}

.stoner-map-zoom-button:hover,
.stoner-map-zoom-button:focus-visible {
	border-color: #e30613;

	background: #e30613;

	color: #ffffff;

	box-shadow:
		0 0 12px
		rgba(227, 6, 19, 0.35);
}

.stoner-map-zoom-button:focus-visible {
	outline: 2px solid #ffffff;
	outline-offset: 2px;
}

/* =========================================================
   USA MAP
========================================================= */

.stoner-map-nation {
	fill: #414141;

	stroke: #e30613;
	stroke-width: 2;

	vector-effect: non-scaling-stroke;

	filter:
		drop-shadow(
			0 0 4px rgba(227, 6, 19, 0.7)
		)
		drop-shadow(
			0 0 10px rgba(227, 6, 19, 0.28)
		);
}

.stoner-map-state {
	fill: #4a4a4a;

	stroke: #e30613;
	stroke-width: 0.8;

	vector-effect: non-scaling-stroke;

	filter:
		drop-shadow(
			0 0 2px rgba(227, 6, 19, 0.42)
		);

	transition:
		fill 0.25s ease,
		opacity 0.25s ease;
}

.stoner-live-map__frame:hover
.stoner-map-state {
	fill: #505050;
}

/* =========================================================
   WORLD MAP
========================================================= */

.stoner-world-sphere {
	fill: #111111;

	stroke:
		rgba(227, 6, 19, 0.32);

	stroke-width: 1;

	vector-effect: non-scaling-stroke;
}

.stoner-world-country {
	fill: #454545;

	stroke: #e30613;

	stroke-width: 0.55;

	vector-effect: non-scaling-stroke;

	filter:
		drop-shadow(
			0 0 1.5px
			rgba(227, 6, 19, 0.34)
		);

	transition:
		fill 0.2s ease,
		opacity 0.2s ease;
}

.stoner-live-map__frame.is-world-view
.stoner-world-country:hover {
	fill: #515151;
}

/* Slightly softer world glow */
.stoner-live-map__frame.is-world-view
.stoner-world-country {
	filter:
		drop-shadow(
			0 0 1px
			rgba(227, 6, 19, 0.3)
		);
}

/* =========================================================
   PINS
========================================================= */

.stoner-map-pins {
	position: relative;
}

.stoner-map-pin {
	cursor: pointer;
	outline: none;
}

/* Smaller subtle glow pulse */
.stoner-map-pin__pulse {
	fill:
		rgba(227, 6, 19, 0.20);

	transform-box: fill-box;

	transform-origin: center;

	animation:
		stonerMapPinPulse
		2.4s
		ease-out
		infinite;

	pointer-events: none;
}

/* Smaller default pins */
.stoner-map-pin__dot {
	fill: #e30613;

	stroke: #ffffff;
	stroke-width: 1;

	vector-effect: non-scaling-stroke;

	filter:
		drop-shadow(
			0 0 2px
			rgba(227, 6, 19, 0.9)
		)
		drop-shadow(
			0 0 5px
			rgba(227, 6, 19, 0.5)
		);

	transform-box: fill-box;

	transform-origin: center;

	transition:
		fill 0.18s ease,
		transform 0.18s ease,
		filter 0.18s ease;
}

/* Active / hovered pin */
.stoner-map-pin:hover
.stoner-map-pin__dot,
.stoner-map-pin:focus
.stoner-map-pin__dot,
.stoner-map-pin:focus-visible
.stoner-map-pin__dot,
.stoner-map-pin.is-active
.stoner-map-pin__dot {
	fill: #ffffff;

	transform: scale(1.45);

	filter:
		drop-shadow(
			0 0 4px
			rgba(227, 6, 19, 1)
		)
		drop-shadow(
			0 0 10px
			rgba(227, 6, 19, 0.9)
		)
		drop-shadow(
			0 0 18px
			rgba(227, 6, 19, 0.45)
		);
}

.stoner-map-pin:hover
.stoner-map-pin__pulse,
.stoner-map-pin:focus
.stoner-map-pin__pulse,
.stoner-map-pin:focus-visible
.stoner-map-pin__pulse,
.stoner-map-pin.is-active
.stoner-map-pin__pulse {
	fill:
		rgba(227, 6, 19, 0.34);
}

/* =========================================================
   MULTIPLE SUBMISSION BADGE
========================================================= */

.stoner-map-pin__badge {
	fill: #111111;

	stroke: #e30613;

	stroke-width: 1;

	vector-effect: non-scaling-stroke;

	pointer-events: none;

	filter:
		drop-shadow(
			0 0 3px
			rgba(227, 6, 19, 0.8)
		);

	transition:
		filter 0.18s ease,
		transform 0.18s ease;
}

.stoner-map-pin__badge-text {
	fill: #ffffff;

	font-family:
		Arial,
		sans-serif;

	font-size: 7px;
	font-weight: 700;

	line-height: 1;

	pointer-events: none;
}

.stoner-map-pin:hover
.stoner-map-pin__badge,
.stoner-map-pin:focus
.stoner-map-pin__badge,
.stoner-map-pin:focus-visible
.stoner-map-pin__badge,
.stoner-map-pin.is-active
.stoner-map-pin__badge {
	filter:
		drop-shadow(
			0 0 6px
			rgba(227, 6, 19, 1)
		);
}

/* =========================================================
   HOVER CITY LABELS
========================================================= */

.stoner-map-pin__label-group {
	opacity: 0;
	visibility: hidden;

	pointer-events: none;

	transition:
		opacity 0.15s ease,
		visibility 0.15s ease;
}

.stoner-map-pin:hover
.stoner-map-pin__label-group,
.stoner-map-pin:focus
.stoner-map-pin__label-group,
.stoner-map-pin:focus-visible
.stoner-map-pin__label-group,
.stoner-map-pin.is-active
.stoner-map-pin__label-group {
	opacity: 1;
	visibility: visible;
}

.stoner-map-pin__label-bg {
	fill:
		rgba(5, 5, 5, 0.92);

	stroke:
		rgba(227, 6, 19, 0.8);

	stroke-width: 0.7;

	vector-effect: non-scaling-stroke;

	filter:
		drop-shadow(
			0 2px 4px
			rgba(0, 0, 0, 0.75)
		);
}

.stoner-map-pin__label {
	fill: #ffffff;

	font-family:
		Arial,
		sans-serif;

	font-size: 10px;
	font-weight: 700;

	letter-spacing: 0.45px;

	text-transform: uppercase;

	pointer-events: none;
}

/* =========================================================
   PIN PULSE
========================================================= */

@keyframes stonerMapPinPulse {
	0% {
		opacity: 0.72;
		transform: scale(0.7);
	}

	70%,
	100% {
		opacity: 0;
		transform: scale(2.2);
	}
}

/* =========================================================
   STATUS / LOADING
========================================================= */

.stoner-live-map__status {
	position: absolute;
	z-index: 30;

	inset: 0;

	display: flex;
	align-items: center;
	justify-content: center;

	padding: 24px;

	background:
		rgba(8, 8, 8, 0.88);

	color: #cfcfcf;

	font-size: 14px;
	font-weight: 700;

	letter-spacing: 1.5px;

	text-align: center;

	text-transform: uppercase;

	transition:
		opacity 0.3s ease,
		visibility 0.3s ease;
}

.stoner-live-map__status.is-hidden {
	visibility: hidden;
	opacity: 0;
}

/* =========================================================
   LEGEND
========================================================= */

.stoner-live-map__legend {
	display: flex;
	align-items: center;
	justify-content: center;

	gap: 10px;

	margin-top: 22px;

	color: #929292;

	font-size: 11px;
	font-weight: 700;

	letter-spacing: 1px;

	text-transform: uppercase;
}

.stoner-live-map__legend span {
	width: 8px;
	height: 8px;

	border-radius: 50%;

	background: #e30613;

	box-shadow:
		0 0 4px #e30613,
		0 0 9px
		rgba(227, 6, 19, 0.55);
}

/* =========================================================
   MODAL
========================================================= */

.stoner-map-modal {
	position: fixed;
	z-index: 999999;

	inset: 0;

	display: flex;
	align-items: center;
	justify-content: center;

	padding: 24px;

	visibility: hidden;
	opacity: 0;

	transition:
		opacity 0.25s ease,
		visibility 0.25s ease;
}

.stoner-map-modal.is-open {
	visibility: visible;
	opacity: 1;
}

.stoner-map-modal__backdrop {
	position: absolute;

	inset: 0;

	background:
		rgba(0, 0, 0, 0.88);

	backdrop-filter: blur(5px);
}

.stoner-map-modal__dialog {
	position: relative;

	z-index: 2;

	width:
		min(920px, 100%);

	max-height:
		calc(100vh - 48px);

	display: grid;

	grid-template-columns:
		minmax(0, 1.2fr)
		minmax(260px, 0.8fr);

	overflow: auto;

	border:
		1px solid
		rgba(227, 6, 19, 0.7);

	background: #0c0c0c;

	color: #ffffff;

	box-shadow:
		0 30px 90px
		rgba(0, 0, 0, 0.8),
		0 0 35px
		rgba(227, 6, 19, 0.18);

	transform:
		translateY(18px)
		scale(0.98);

	transition:
		transform 0.25s ease;
}

.stoner-map-modal.is-open
.stoner-map-modal__dialog {
	transform:
		translateY(0)
		scale(1);
}

/* =========================================================
   MODAL CLOSE
========================================================= */

.stoner-map-modal__close {
	position: absolute;

	z-index: 5;

	top: 14px;
	right: 14px;

	width: 42px;
	height: 42px;

	padding: 0;

	border:
		1px solid
		rgba(255, 255, 255, 0.45);

	border-radius: 50%;

	background:
		rgba(0, 0, 0, 0.72);

	color: #ffffff;

	font-family:
		Arial,
		sans-serif;

	font-size: 28px;

	line-height: 1;

	cursor: pointer;

	transition:
		background-color 0.2s ease,
		border-color 0.2s ease,
		transform 0.2s ease;
}

.stoner-map-modal__close:hover {
	border-color: #e30613;

	background: #e30613;

	transform: rotate(90deg);
}

/* =========================================================
   MODAL IMAGE
========================================================= */

.stoner-map-modal__image-wrap {
	min-height: 520px;

	background: #050505;
}

.stoner-map-modal__image-wrap img {
	width: 100%;
	height: 100%;

	min-height: 520px;

	display: block;

	object-fit: cover;
}

/* =========================================================
   MODAL CONTENT
========================================================= */

.stoner-map-modal__content {
	display: flex;

	flex-direction: column;

	justify-content: center;

	padding:
		68px
		44px
		44px;
}

.stoner-map-modal__location {
	margin:
		0 0 13px;

	color: #e30613;

	font-size: 12px;
	font-weight: 700;

	line-height: 1.3;

	letter-spacing: 2px;

	text-transform: uppercase;
}

.stoner-map-modal__content h3 {
	margin: 0;

	color: #ffffff;

	font-family:
		Impact,
		"Arial Narrow",
		sans-serif;

	font-size:
		clamp(
			42px,
			5vw,
			68px
		);

	font-weight: 400;

	line-height: 0.95;

	letter-spacing: 1.5px;

	text-transform: uppercase;
}

.stoner-map-modal__caption {
	margin: 22px 0 0;

	padding-top: 22px;

	border-top:
		2px solid
		#e30613;

	color: #c7c7c7;

	font-size: 15px;

	line-height: 1.65;
}

/* =========================================================
   MODAL CAROUSEL ARROWS
========================================================= */

.stoner-map-modal__arrow {
	position: absolute;

	z-index: 6;

	top: 50%;

	width: 48px;
	height: 64px;

	padding: 0;

	border:
		1px solid
		rgba(255, 255, 255, 0.35);

	background:
		rgba(0, 0, 0, 0.72);

	color: #ffffff;

	font-family:
		Arial,
		sans-serif;

	font-size: 46px;
	font-weight: 300;

	line-height: 1;

	cursor: pointer;

	transform:
		translateY(-50%);

	transition:
		background-color 0.2s ease,
		border-color 0.2s ease,
		color 0.2s ease;
}

.stoner-map-modal__arrow:hover,
.stoner-map-modal__arrow:focus-visible {
	border-color: #e30613;

	background: #e30613;

	color: #ffffff;
}

.stoner-map-modal__arrow--previous {
	left: 14px;
}

.stoner-map-modal__arrow--next {
	right: 14px;
}

.stoner-map-modal__arrow[hidden] {
	display: none;
}

.stoner-map-modal__counter {
	margin:
		22px 0 0;

	color: #e30613;

	font-size: 12px;
	font-weight: 700;

	line-height: 1;

	letter-spacing: 2px;

	text-transform: uppercase;
}

body.stoner-map-modal-open {
	overflow: hidden;
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 760px) {
	.stoner-live-map {
		padding:
			58px 12px;
	}

	.stoner-live-map__heading {
		margin-bottom: 30px;

		padding:
			0 12px;
	}

	.stoner-live-map__frame {
		padding:
			10px
			6px
			18px;
	}

	.stoner-map-state {
		stroke-width: 0.85;
	}

	.stoner-world-country {
		stroke-width: 0.45;
	}

	/*
	 * City labels stay hidden on touch devices.
	 */
	.stoner-map-pin__label-group {
		display: none;
	}

	.stoner-map-pin__dot {
		stroke-width: 0.8;
	}

	.stoner-map-pin__badge {
		stroke-width: 0.8;
	}

	.stoner-map-pin__badge-text {
		font-size: 6.5px;
	}

	/* Worldwide / USA switch */

	.stoner-map-mode-control {
		top: 10px;
		left: 10px;

		min-height: 38px;

		max-width: 170px;

		padding:
			0 12px;

		font-size: 9px;

		line-height: 1.2;

		letter-spacing: 0.7px;
	}

	/* Zoom buttons */

	.stoner-map-zoom-controls {
		top: 10px;
		right: 10px;

		gap: 4px;

		padding: 4px;
	}

	.stoner-map-zoom-button {
		width: 38px;
		height: 38px;

		font-size: 23px;
	}

	.stoner-live-map__legend {
		margin-top: 12px;

		font-size: 9px;
	}

	/* Modal */

	.stoner-map-modal {
		padding: 12px;
	}

	.stoner-map-modal__dialog {
		max-height:
			calc(100vh - 24px);

		grid-template-columns: 1fr;
	}

	.stoner-map-modal__image-wrap,
	.stoner-map-modal__image-wrap img {
		min-height: 0;

		max-height: 55vh;

		aspect-ratio:
			4 / 3;
	}

	.stoner-map-modal__content {
		padding:
			30px
			24px
			32px;
	}

	.stoner-map-modal__close {
		top: 10px;
		right: 10px;
	}

	.stoner-map-modal__arrow {
		top: 28%;

		width: 40px;
		height: 54px;

		font-size: 38px;
	}

	.stoner-map-modal__arrow--previous {
		left: 8px;
	}

	.stoner-map-modal__arrow--next {
		right: 8px;
	}

	.stoner-map-modal__counter {
		margin-top: 18px;
	}
}

/* =========================================================
   VERY SMALL MOBILE
========================================================= */

@media (max-width: 430px) {
	.stoner-map-mode-control {
		top: 8px;
		left: 8px;

		max-width: 145px;

		min-height: 34px;

		padding:
			0 9px;

		font-size: 8px;
	}

	.stoner-map-zoom-controls {
		top: 8px;
		right: 8px;
	}

	.stoner-map-zoom-button {
		width: 34px;
		height: 34px;

		font-size: 21px;
	}
}

/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {
	.stoner-map-pin__pulse {
		animation: none;
	}

	.stoner-map-modal,
	.stoner-map-modal__dialog,
	.stoner-map-modal__close,
	.stoner-map-pin__dot,
	.stoner-map-pin__label-group,
	.stoner-map-mode-control {
		transition: none;
	}
}