/* Map Container */
.wp-block-indigotree-mapbox-map {
	margin-block-end: 30px !important;
}

/* Map Popup */
#map .mapboxgl-popup-tip {
	display: none;
}

#map .mapboxgl-popup-content {
	width: 300px;
	max-width: 300px;
	padding: 30px;
	border-radius: 15px;
	background-color: #2a0b57;
	box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.2);
}

#map .mapboxgl-popup-content * {
	font-family: inherit;
	font-size: 14px;
	line-height: 100%;
}

#map .mapboxgl-popup-content h3 {
	margin: 0;
	padding: 0;
	color: #fff;
	font-size: 20px;
	font-weight: 600;
}

#map .mapboxgl-popup-content dl {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: stretch;
	margin: 2px 0;
}

#map .mapboxgl-popup-content dl[key="1"],
#map .mapboxgl-popup-content dl[key="2"],
#map .mapboxgl-popup-content dl[key="4"] {
	margin-top: clamp(6px, 6px + (100vw - 425px) * 0.002185, 8px);
	padding-top: clamp(6px, 6px + (100vw - 425px) * 0.002185, 8px);
	border-top: 1px solid #891fdc;
}

#map .mapboxgl-popup-content dt,
#map .mapboxgl-popup-content dd {
	margin: 0;
	display: flex;
	padding: calc(clamp(6px, 6px + (100vw - 425px) * 0.002185, 8px) / 2);
}

#map .mapboxgl-popup-content dt {
	min-width: calc(40% - calc(clamp(6px, 6px + (100vw - 425px) * 0.002185, 8px)));
	color: #f3eafc;
	font-weight: 600;
	text-transform: capitalize;
}

#map .mapboxgl-popup-content dd {
	min-width: calc(60% - calc(clamp(6px, 6px + (100vw - 425px) * 0.002185, 8px)));
	color: #fff;
	justify-content: right;
}

/* Map Credits */
#map .mapboxgl-ctrl-logo {
	transform: scale(0.75);
	transform-origin: left bottom;
}

#map .mapboxgl-ctrl-attrib {
	background-color: #d8d8d8;
}

#map .mapboxgl-ctrl-attrib a {
	font-size: 0.625rem;
	color: #525252;
}

.mapbox-improve-map {
	display: none;
}

/* Map Loading screen */
.indigotree-mapbox-map__loading-screen {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	position: absolute;
	top: 0;
	right: 0;
	left: 0;
	bottom: 0;
	z-index: 10;
	background-color: #f9f9f9;
	box-shadow: inset 0 0 4px 0 rgba(0, 0, 0, 0.1);
	transition: all 0.2s ease-out;
}

.indigotree-mapbox-map__loading-screen[data-loaded="true"] {
	animation-name: map-loaded;
	animation-duration: 2s;
	animation-fill-mode: forwards;
}

.indigotree-mapbox-map__loading-screen p {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
}

.indigotree-mapbox-map__loading-screen span {
	animation: map-loading 1s linear infinite;
	border: 2px solid #d8d8d8;
	border-left-color: transparent;
	border-radius: 50%;
	contain: strict;
	height: 20px;
	margin: auto;
	width: 20px;
}

@keyframes map-loading {
	0% {
		transform: rotate(0);
	}
	to {
		transform: rotate(1turn);
	}
}

@keyframes map-loaded {
	0% {
		opacity: 1;
	}
	99.999% {
		opacity: 0;
	}
	100% {
		content-visibility: none;
		z-index: -1;
		opacity: 0;
	}
}
