/* ==========================================================
   Nash Distribution — SWAT Certified Training / Where's Clark?
   ========================================================== */

.ntm-page,
.ntm-page *,
.ntm-page *::before,
.ntm-page *::after {
	box-sizing: border-box;
}

.ntm-page {
	width: 100%;
}


/* ==========================================================
   Intro
   ========================================================== */

.ntm-intro {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	align-items: center;
	gap: 48px;
	width: 100%;
	margin: 0 0 50px;
}

.ntm-intro__col {
	min-width: 0;
}

.ntm-intro__lede {
	margin: 0 0 28px;
	color: #202124;
	font-size: 16px;
	line-height: 1.65;
}

.ntm-intro__heading {
	margin: 0 0 22px;
	color: #111;
	font-size: 25px;
	font-weight: 700;
	line-height: 1.3;
}

.ntm-intro__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.ntm-intro__item {
	display: flex;
	align-items: flex-start;
	gap: 13px;
	margin: 0 0 20px;
	padding: 0;
}

.ntm-intro__item:last-child {
	margin-bottom: 0;
}

.ntm-intro__check {
	display: block;
	width: 22px;
	height: 22px;
	flex: 0 0 22px;
	margin-top: 2px;
	color: #ec1c40;
}

.ntm-intro__check svg {
	display: block;
	width: 100%;
	height: 100%;
}

.ntm-intro__item-title {
	margin: 0 0 3px;
	padding: 0;
	color: #111;
	font-size: 17px;
	font-weight: 700;
	line-height: 1.35;
}

.ntm-intro__item-text {
	margin: 0;
	color: #4a4a4a;
	font-size: 14px;
	line-height: 1.55;
}


/* ==========================================================
   Training photo gallery
   ========================================================== */

.ntm-gallery {
	position: relative;
	width: 100%;
	min-width: 0;
	overflow: hidden;
	background: #f2f2f2;
}

.ntm-gallery__slides {
	position: relative;
	width: 100%;
	aspect-ratio: 4 / 3;
	overflow: hidden;
}

.ntm-gallery__slide {
	position: absolute;
	inset: 0;
	z-index: 1;
	opacity: 0;
	visibility: hidden;
	transition:
		opacity 0.6s ease,
		visibility 0.6s ease;
}

.ntm-gallery__slide.is-active {
	z-index: 2;
	opacity: 1;
	visibility: visible;
}

.ntm-gallery__slide img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* ==========================================================
   Map + legend
   ========================================================== */

.ntm-wrap {
	display: flex;
	align-items: stretch;
	gap: 18px;
	width: 100%;
	margin: 0 0 42px;
	padding: 0;
}

.ntm-wrap--legend-right {
	flex-direction: row;
}

.ntm-wrap--legend-below,
.ntm-wrap--legend-off {
	flex-direction: column;
}

.ntm-wrap .ntm-map {
	flex: 1 1 auto;
	min-width: 0;
}


/* Map */

.ntm-map {
	position: relative;
	width: 100%;
	min-height: 320px;
	overflow: hidden;
	background: #e9e9e9;
	z-index: 1;
}

.ntm-map__error {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	height: 100%;
	min-height: 320px;
	padding: 30px;
	color: #555;
	text-align: center;
}


/* ==========================================================
   Legend
   ========================================================== */

.ntm-legend {
	flex: 0 0 220px;
	align-self: flex-start;
	padding: 14px 16px;
	border: 1px solid #e0e0e0;
	background: #fff;
	color: #202124;
	font-size: 14px;
	line-height: 1.35;
}

.ntm-wrap--legend-below .ntm-legend {
	flex: 1 1 auto;
	align-self: stretch;
}

.ntm-legend__title {
	margin: 0 0 10px;
	color: #5f6368;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.ntm-legend__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.ntm-legend__item {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 9px;
}

.ntm-legend .ntm-legend__toggle {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	background: transparent;
	color: #202124;
	font: inherit;
	font-size: 14px;
	line-height: 1.35;
	letter-spacing: normal;
	text-align: left;
	text-decoration: none;
	text-transform: none;
	cursor: pointer;
	transition: none;
}

.ntm-legend .ntm-legend__toggle:hover,
.ntm-legend .ntm-legend__toggle:focus,
.ntm-legend .ntm-legend__toggle:active {
	background: transparent;
	color: #202124;
	box-shadow: none;
	text-decoration: none;
	transform: none;
	opacity: 1;
}

.ntm-legend .ntm-legend__toggle:focus-visible {
	outline: 2px solid #202124;
	outline-offset: 2px;
}

.ntm-legend .ntm-legend__label {
	color: inherit;
}

.ntm-legend__box {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	flex: 0 0 18px;
	line-height: 0;
}

.ntm-legend__box-frame {
	fill: currentColor;
	stroke: currentColor;
	stroke-width: 1.5;
}

.ntm-legend__box-tick {
	stroke: #fff;
}

.ntm-legend__item--off .ntm-legend__box-frame {
	fill: none;
	stroke: #9aa0a6;
}

.ntm-legend__item--off .ntm-legend__box-tick {
	stroke: none;
}

.ntm-legend .ntm-legend__reset {
	display: inline-block;
	margin-top: 12px;
	padding: 0;
	border: 0;
	background: none;
	color: #1a73e8;
	font: inherit;
	font-size: 13px;
	font-weight: 600;
	text-decoration: underline;
	cursor: pointer;
}

.ntm-legend .ntm-legend__reset:hover,
.ntm-legend .ntm-legend__reset:focus {
	background: none;
	color: #1a73e8;
	text-decoration: underline;
}

.ntm-legend .ntm-legend__reset:focus-visible {
	outline: 2px solid #1a73e8;
	outline-offset: 2px;
}

.ntm-legend .ntm-legend__reset[hidden] {
	display: none;
}

.ntm-legend__item--off .ntm-legend__toggle,
.ntm-legend__item--off .ntm-legend__toggle:hover {
	color: #9aa0a6;
}

.ntm-legend__item--off .ntm-legend__swatch {
	opacity: 0.35;
	filter: grayscale(1);
}

.ntm-legend__item--note {
	display: block;
	margin-top: 12px;
	padding-top: 10px;
	border-top: 1px solid #eee;
	color: #5f6368;
	font-size: 13px;
	font-style: italic;
}

.ntm-legend__swatch {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	flex: 0 0 26px;
}

.ntm-legend__swatch img,
.ntm-legend__swatch svg {
	max-width: 26px;
	max-height: 26px;
	height: auto;
}


/* ==========================================================
   Markers
   ========================================================== */

.ntm-marker,
.leaflet-marker-icon.ntm-marker {
	background: transparent;
	border: 0;
}

.ntm-marker--image {
	object-fit: contain;
	filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.ntm-arrow,
.leaflet-marker-icon.ntm-arrow {
	background: transparent;
	border: 0;
}

.ntm-arrow__inner {
	width: 16px;
	height: 16px;
	line-height: 0;
}


/* ==========================================================
   Popups
   ========================================================== */

.ntm-popup {
	min-width: 170px;
	color: #202124;
	font-size: 14px;
	line-height: 1.4;
}

.ntm-popup__badge {
	display: inline-block;
	margin-bottom: 6px;
	padding: 2px 8px;
	border-radius: 10px;
	background: #e8eaed;
	color: #5f6368;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.ntm-popup--active .ntm-popup__badge,
.ntm-popup--travel .ntm-popup__badge {
	background: #ec1c40;
	color: #fff;
}

.ntm-popup__title {
	margin: 0 0 2px;
	color: #000;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.35;
}

.ntm-popup__dates {
	margin: 0 0 4px;
	color: #3c4043;
}

.ntm-popup__type {
	margin: 0 0 4px;
	color: #5f6368;
	font-size: 13px;
}

.ntm-popup__link {
	font-weight: 600;
}

.ntm-map .leaflet-popup-content {
	margin: 12px 14px;
}

.ntm-map img.leaflet-tile {
	max-width: none;
}


/* ==========================================================
   CTA + form
   ========================================================== */

.ntm-cta {
	margin: 0 0 28px;
	text-align: center;
}

.ntm-cta__title {
	margin: 0 0 8px;
	color: #111;
	font-size: 24px;
	font-weight: 700;
	line-height: 1.3;
}

.ntm-cta__text {
	margin: 0;
	color: #444;
	font-size: 16px;
	line-height: 1.55;
}

.ntm-form {
	width: 100%;
	margin: 0;
}


/* ==========================================================
   Tablet
   ========================================================== */

@media (max-width: 782px) {

	.ntm-intro {
		grid-template-columns: 1fr;
		gap: 28px;
		margin-bottom: 34px;
	}

	.ntm-intro__heading {
		font-size: 22px;
	}

	.ntm-gallery {
		max-width: 600px;
		margin: 0 auto;
	}

	.ntm-wrap {
		flex-direction: column;
		margin-bottom: 34px;
	}

	.ntm-wrap--legend-right .ntm-legend {
		flex: 1 1 auto;
		align-self: stretch;
		width: 100%;
	}

	.ntm-map {
		min-height: 400px;
	}

	.ntm-cta__title {
		font-size: 21px;
	}
}


/* ==========================================================
   Mobile
   ========================================================== */

@media (max-width: 480px) {

	.ntm-intro {
		gap: 22px;
	}

	.ntm-intro__lede {
		font-size: 15px;
	}

	.ntm-intro__heading {
		font-size: 20px;
	}

	.ntm-map {
		min-height: 360px;
	}

	.ntm-legend {
		padding: 12px 14px;
	}

	.ntm-cta__title {
		font-size: 20px;
	}
}