.kml-grid-map-wrap {
	position: relative;
	width: 100%;
	margin: 0 0 1.5rem;
}

.kml-grid-map-layout {
	position: relative;
	width: 100%;
	min-height: 320px;
	border: 1px solid #c3c4c7;
	background: #fff;
}

.kml-grid-map-stage {
	position: relative;
	width: 100%;
}

.kml-grid-map {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	background: #e8e8e8;
}

.kml-grid-map-hover-panel {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 5;
	box-sizing: border-box;
	width: min(420px, calc(100% - 24px));
	max-height: calc(100% - 24px);
	overflow: auto;
	padding: 1rem 1.1rem 1.25rem;
	border: 1px solid #c3c4c7;
	background: #fff;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
	font-size: 13px;
	line-height: 1.45;
	color: #111;
	pointer-events: auto;
}

.kml-grid-map-hover-panel[hidden] {
	display: none !important;
}

.kml-grid-map-hover-panel--map-overlay {
	z-index: 2147483646;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}

.kml-grid-map-hover-panel--map-overlay.kml-grid-map-hover-panel--fullscreen-compact {
	box-sizing: border-box;
}

.kml-grid-map:fullscreen,
.kml-grid-map:-webkit-full-screen {
	position: relative !important;
	overflow: visible !important;
}

.kml-grid-map .kml-grid-map-hover-panel--map-overlay,
.kml-grid-map:fullscreen .kml-grid-map-hover-panel--map-overlay,
.kml-grid-map:-webkit-full-screen .kml-grid-map-hover-panel--map-overlay {
	pointer-events: auto;
}

.kml-grid-map-panel__disclaimer {
	margin: 0 0 0.75rem;
	text-align: center;
	font-size: 12px;
	line-height: 1.5;
}

.kml-grid-map-panel__em {
	color: #c0392b;
	font-weight: 700;
}

.kml-grid-map-panel__subtitle {
	margin: 0 0 0.65rem;
	text-align: center;
	font-weight: 700;
	font-size: 13px;
}

.kml-grid-map-panel__grid-name {
	margin: 0 0 0 !important;
	padding: 0.35rem 0.45rem;
	border: 1px solid #000;
	border-bottom: 0;
	text-align: center;
	font-family: "Atkinson Hyperlegible", Arial, Helvetica, sans-serif;
	font-weight: 700;
	font-size: 12px;
	line-height: 1.35;
}

.kml-grid-map-panel__table {
	width: 100%;
	border-collapse: collapse;
	margin: 0 0 0.65rem;
	font-size: 12px;
}

.kml-grid-map-panel__table th,
.kml-grid-map-panel__table td {
	border: 1px solid #000;
	padding: 0.35rem 0.45rem;
	text-align: center;
	vertical-align: middle;
}

.kml-grid-map-panel__table thead th {
	font-weight: 700;
	background: #fff;
}

.kml-grid-map-panel__table tbody th[scope="row"] {
	text-align: left;
	font-weight: 400;
}

.kml-grid-map-panel__nla {
	margin: 0 0 0.85rem;
	font-size: 12px;
}

.kml-grid-map-panel__cta {
	display: block;
	margin: 0;
	text-align: center;
	font-weight: 700;
	font-size: 14px;
	line-height: 1.35;
	color: #1e7e34;
	text-decoration: none;
	text-transform: uppercase;
}

.kml-grid-map-panel__fine-print {
	margin: 0.85rem 0 0;
	text-align: center;
	font-size: 11px;
	line-height: 1.5;
}

.kml-grid-map-panel__city-state {
	margin: 1rem 0 0;
	padding: 0.5rem 0.25rem;
	text-align: center;
	font-weight: 700;
	font-size: 13px;
	line-height: 1.45;
	text-transform: none;
	color: #111;
}


.kml-grid-map-hover-bubble {
	--kml-bubble-tail: 10px;
	position: absolute;
	z-index: 1000002;
	box-sizing: border-box;
	padding: 12px 20px;
	border-radius: 10px;
	background: #fff;
	filter: drop-shadow(0 3px 12px rgba(0, 0, 0, 0.22));
	font-family: "Atkinson Hyperlegible", Arial, Helvetica, sans-serif;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.35;
	color: #111;
	white-space: nowrap;
	pointer-events: none;
}

.kml-grid-map-hover-bubble::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: calc(-1 * var(--kml-bubble-tail));
	transform: translateX(-50%);
	width: 0;
	height: 0;
	border-style: solid;
	border-width: var(--kml-bubble-tail) calc(var(--kml-bubble-tail) + 2px) 0;
	border-color: #fff transparent transparent;
	pointer-events: none;
}

.kml-grid-map-hover-bubble[hidden] {
	display: none !important;
}

/* Leaflet hover popup */
.kml-grid-map-leaflet-popup .leaflet-popup-close-button {
	display: none;
}

.kml-grid-map-leaflet-popup .leaflet-popup-content-wrapper {
	border-radius: 10px;
	box-shadow: 0 3px 12px rgba(0, 0, 0, 0.22);
}

.kml-grid-map-leaflet-popup .leaflet-popup-tip {
	background: #fff;
	box-shadow: none;
}

.kml-grid-map-leaflet-popup .leaflet-popup-content {
	margin: 12px 20px;
	font-family: "Atkinson Hyperlegible", Arial, Helvetica, sans-serif;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.35;
}

.kml-grid-map-legend {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1.25rem;
	margin: 0 0 0.75rem;
	font-size: 0.875rem;
	line-height: 1.3;
	justify-content: space-between;
}

.kml-grid-map-legend__items {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1.25rem;
}

.kml-grid-map-legend__item {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
}

.kml-grid-map-legend__item::before {
	content: "";
	width: 0.9rem;
	height: 0.9rem;
	border: 1px solid #000;
	flex-shrink: 0;
}

.kml-grid-map-legend__item--available::before {
	background: rgba(0, 0, 255, 0.3);
}

.kml-grid-map-legend__item--unavailable::before {
	background: rgba(255, 0, 0, 0.3);
}

@media screen and (max-width: 767px) {
	.kml-grid-map-hover-panel--map-overlay.kml-grid-map-hover-panel--fullscreen-compact {
		overflow: auto;
	}

	.kml-grid-map-stage {
		display: flex;
		flex-direction: column;
	}

	.kml-grid-map-layout {
		flex: 0 0 auto;
	}

	.kml-grid-map-hover-panel {
		position: static;
		top: auto;
		right: auto;
		z-index: auto;
		width: 100%;
		max-height: none;
		margin: 0;
		border-top: 0;
		box-shadow: none;
	}

	.kml-grid-map-hover-panel:not([hidden]) {
		display: block !important;
		position: static !important;
		left: auto !important;
		top: auto !important;
		right: auto !important;
		width: 100% !important;
		max-height: none !important;
		border: 1px solid #c3c4c7;
		margin-top: -1px;
	}

	.kml-grid-map-hover-bubble {
		font-size: 14px;
		padding: 10px 16px;
	}
}