/**
 * Founder location coverage map.
 */

.ds-locmap {
	color: #F6F1E7;
	background: var(--n-ground, #050505);
}

.ds-locmap__legend {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0 0 16px;
}

.ds-locmap__toggle {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 13px;
	border: 1px solid rgba(246, 241, 231, .2);
	border-radius: 999px;
	color: var(--n-text-muted, #A6A6AC);
	background: transparent;
	font: inherit;
	font-size: .82rem;
	line-height: 1;
	cursor: pointer;
	opacity: .5;
	transition: opacity .16s ease, background-color .16s ease, border-color .16s ease;
}

.ds-locmap__toggle.is-on {
	color: #F6F1E7;
	background: rgba(246, 241, 231, .12);
	border-color: rgba(246, 241, 231, .42);
	opacity: 1;
}

.ds-locmap__toggle:focus-visible {
	outline: 2px solid var(--n-gold, #E5B300);
	outline-offset: 2px;
}

.ds-locmap__dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: #8a8f98;
	box-shadow: 0 0 8px currentColor;
}

.ds-locmap__dot--dsplus {
	color: #E2062C;
	background: #E2062C;
}

.ds-locmap__dot--preferred,
.ds-locmap__dot--partner {
	color: var(--n-teal, #1188A0);
	background: var(--n-teal, #1188A0);
}

.ds-locmap__dot--owned {
	color: #F6F1E7;
	background: #F6F1E7;
}

.ds-locmap__dot--friendly {
	color: #F6F1E7;
	background: #F6F1E7;
}

.ds-locmap__dot--squad {
	box-sizing: border-box;
	background: transparent;
	border: 2px solid var(--n-gold, #E5B300);
	box-shadow: none;
}

.ds-locmap__count {
	color: var(--n-text-muted, #A6A6AC);
	font-variant-numeric: tabular-nums;
}

.ds-locmap__canvas {
	height: 70vh;
	min-height: 480px;
	border: 1px solid rgba(246, 241, 231, .15);
	background: var(--n-ground, #050505);
}

.ds-locmap__pin,
.ds-locmap__squad {
	background: transparent;
	border: 0;
}

/* Teardrop pins, tip on the spot. The glow is what lifts them off a dark map. */
.ds-locmap__pin svg {
	display: block;
	overflow: visible;
	filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .9));
	transform-origin: 50% 100%;
	transition: transform .15s ease;
}

/* The colored markers carry a little glow of their own so they read as lit,
   not just painted, against the dark map. White stays flat on purpose. */
.ds-locmap__pin--dsplus svg {
	filter: drop-shadow(0 0 3.5px rgba(226, 6, 44, .6)) drop-shadow(0 1px 2px rgba(0, 0, 0, .9));
}

.ds-locmap__pin--preferred svg,
.ds-locmap__pin--partner svg {
	filter: drop-shadow(0 0 3.5px rgba(17, 136, 160, .75)) drop-shadow(0 1px 2px rgba(0, 0, 0, .9));
}

.ds-locmap__squad-ring {
	filter: drop-shadow(0 0 3.5px rgba(229, 179, 0, .6));
}

.ds-locmap__canvas.is-zoomed-out .ds-locmap__pin svg {
	transform: scale(.8);
}

/* The pin under the mouse grows the way the squad rings do, and comes to the
   front, so there is never a doubt about which one you are about to click.
   Written after the zoomed-out rule, and as specific as it, because that rule
   was quietly cancelling the hover at the map's opening zoom. */
.ds-locmap__pin:hover svg {
	transform: scale(1.25);
}

/* Zoomed out the pins rest at .8, so the hover is a quarter up from there,
   not a jump to the full-size hover, which nearly doubled them. */
.ds-locmap__canvas.is-zoomed-out .ds-locmap__pin:hover svg {
	transform: scale(1);
}

.ds-locmap .leaflet-marker-icon.ds-locmap__pin:hover {
	z-index: 10000 !important;
}

.ds-locmap__squad {
	cursor: pointer;
}

.ds-locmap__squad-inner {
	position: relative;
	display: block;
	width: 14px;
	height: 14px;
	transition: transform .2s ease;
}

.ds-locmap__squad-ring {
	display: block;
	overflow: visible;
	transition: transform .15s ease, filter .15s ease;
}

.ds-locmap__squad:hover .ds-locmap__squad-ring {
	transform: scale(1.5);
	filter: drop-shadow(0 0 6px rgba(229, 179, 0, .9));
}

.ds-locmap__squad:hover .ds-locmap__squad-label {
	opacity: 1;
	color: #F6F1E7;
}

.ds-locmap__squad-label {
	position: absolute;
	top: 17px;
	left: 50%;
	transform: translateX(-50%);
	pointer-events: none;
	display: block;
	color: var(--n-gold, #E5B300);
	font-family: var(--n-font-sans, 'Inter', sans-serif);
	font-size: 9px;
	font-weight: 700;
	letter-spacing: .12em;
	line-height: 1.3;
	text-align: center;
	text-transform: uppercase;
	text-shadow: 0 1px 3px #050505, 0 0 6px #050505;
	white-space: nowrap;
	opacity: .85;
}

.ds-locmap__canvas.is-zoomed-out .ds-locmap__squad-label {
	display: none;
}

.ds-locmap .ds-locmap__tip {
	padding: 4px 8px;
	background: #050505;
	border: 1px solid rgba(229, 179, 0, .55);
	border-radius: 0;
	color: #F6F1E7;
	font-size: 12px;
	font-weight: 600;
	box-shadow: 0 4px 14px rgba(0, 0, 0, .6);
}

.ds-locmap .ds-locmap__tip::before {
	display: none;
}

.ds-locmap .leaflet-popup-content-wrapper,
.ds-locmap .leaflet-popup-tip {
	color: #F6F1E7;
	background: #111214;
}

.ds-locmap .leaflet-bar a,
.ds-locmap .leaflet-control-attribution {
	color: var(--n-text-muted, #A6A6AC);
	background: rgba(5, 5, 5, .9);
}

.ds-locmap .leaflet-bar a {
	border-bottom-color: rgba(246, 241, 231, .15);
}

.ds-locmap .leaflet-bar a:hover,
.ds-locmap .leaflet-bar a:focus {
	color: var(--n-gold, #E5B300);
	background: #111214;
}

.ds-locmap .leaflet-control-attribution a {
	color: var(--n-gold, #E5B300);
}

.ds-locmap .leaflet-popup-content-wrapper {
	border: 1px solid rgba(246, 241, 231, .16);
	border-radius: 8px;
	box-shadow: 0 10px 28px rgba(0, 0, 0, .45);
}

.ds-locmap .leaflet-popup-content {
	display: grid;
	gap: 5px;
	margin: 14px 16px;
	line-height: 1.35;
}

.ds-locmap .leaflet-popup-content span,
.ds-locmap .leaflet-popup-content small {
	display: block;
}

.ds-locmap .leaflet-popup-content small {
	color: var(--n-text-muted, #A6A6AC);
}

.ds-locmap__popup-name,
.ds-locmap__popup-name:visited {
	color: var(--n-gold, #E5B300);
	font-weight: 700;
}

.ds-locmap__popup-perk {
	color: #F6F1E7;
	font-weight: 600;
}

.ds-locmap__note {
	margin: 14px 0 0;
	color: var(--n-text-muted, #A6A6AC);
	font-size: .9rem;
}

.ds-locmap__gaps {
	margin-top: 36px;
}

.ds-locmap__gaps h2 {
	margin: 0 0 16px;
	color: #F6F1E7;
}

.ds-locmap__gaps ol {
	margin: 0;
	padding-left: 1.5rem;
	color: var(--n-text-muted, #A6A6AC);
}

.ds-locmap__gaps li {
	margin-bottom: 8px;
	padding-left: 5px;
}

.ds-locmap__gaps strong {
	color: var(--n-gold, #E5B300);
}

@media (max-width: 640px) {
	.ds-locmap__legend {
		gap: 8px;
	}

	.ds-locmap__canvas {
		height: 60vh;
	}
}

/* OpenStreetMap tiles are light; this turns them into a dark base that
 * matches the site without needing a keyed dark basemap. */
.ds-locmap .leaflet-tile-pane {
	filter: invert(1) hue-rotate(180deg) brightness(.82) contrast(.92) saturate(.35);
}

/* Legend keys are the same pin and ring shapes the map draws. */
.ds-locmap__key {
	display: block;
	flex: none;
	overflow: visible;
}

/* The general page template leaves about 220px between its title and the
   content (hero bottom padding, a margin, then the body's own top padding),
   which on this page is a black gap above the map. Tightened here only. */
.ds-general-page:has(.ds-locmap) .ds-subpage-hero {
	padding-bottom: 20px !important;
	margin-bottom: 0 !important;
}

.ds-general-page:has(.ds-locmap) .ds-subpage-body {
	padding-top: 12px !important;
}

.ds-locmap__intro {
	margin-top: 0 !important;
}
