.mgeo-preloader {	
	border: 2px solid rgba(127, 127, 127, 0.3);
	border-top: 3px solid #f25a41;
	border-radius: 100%;
	width: 40px;
	height: 40px;
	position: absolute;
	margin-left: -20px;
	margin-top: -20px;
	top: 50%;
	left: 50%;
	animation: spin 1s infinite linear;
	pointer-events: none;
	z-index: 100;
	transition: opacity 0.2s;
}

@keyframes spin {
	from { transform: rotate(0deg); }
	to { transform: rotate(360deg); }
}

.mgeo-svg-layer {
	position: absolute;
}

/* container  */
.mgeo-container {
	height: 100%;
	width: 100%;
	min-height: 400px;
}

.mgeo-container:fullscreen { background-color: #fbfbfb; }

.mgeo-popup {
	font-size: 13px;
	color: #444;
}

.mgeo-map {
	position: relative;
	min-height: 400px;
	-webkit-tap-highlight-color: transparent;
}

/* icons */
.mgeo-icon {
	fill: #222;
	width: 16px;
	height: 16px;
}

/* sidebar */
.mgeo-sidebar {
	box-sizing: border-box;
	min-width: 200px;
	position: absolute;
	pointer-events: none !important;
	top: 12px;
	right: 12px;
	bottom: 12px;
	left: 12px;
	width: 30%;
	max-width: 360px;
	max-height: 100%;
}

.mgeo-sidebar > * {
	pointer-events: auto;
}

.mgeo-sidebar-dir {
	pointer-events: none;
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	margin-right: 12px;
	display: flex;
	flex-direction: column;
}

.mgeo-sidebar-dir > * {
	pointer-events: auto;
}

.mgeo-sidebar-popup > .mgeo-sidebar-dir {
	display: none;
}

.mgeo-sidebar.mgeo-sidebar-right {
	padding: 12px 12px 12px 0;
	left: auto;
	right: 0;
}

.mgeo-portrait .mgeo-sidebar {
	padding: 0;
	position: relative;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	width: 100%;
	max-width: none;
	max-height: 400px;
}

.mgeo-portrait .mgeo-sidebar > .mgeo-popup,
.mgeo-portrait .mgeo-sidebar-dir {
	margin: 0;
}

/* sidebar - header */
.mgeo-sidebar-header {
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
	box-sizing: border-box;
	background-color: #fff;
	max-height: 80px;
	padding: 16px 20px;
	position: absolute;
	overflow: hidden;
	width: auto;
	z-index: 2000;
	transition: max-height 0.2s;
}

.mgeo-portrait .mgeo-sidebar-header { width: 100%; }

.mgeo-sidebar-header .mgeo-icon-magnifier {
	pointer-events: none;
	position: absolute;
	top: 32px;
}

.mgeo-search-input {
	background: none !important;
	border: none !important;
	box-shadow: none !important;
	box-sizing: border-box;
	border-radius: 0;
	font-size: 22px !important;
	font-family: inherit;
	line-height: 22px;
	width: 100%;
	height: 48px !important;
	margin: 0 !important;
	padding: 0 50px 0 30px !important;
}

.mgeo-search-input::placeholder {
	opacity: 0.5;
	font-weight: 400;
}

input.mgeo-search-input:focus { outline: none !important; }

/* filters */
.mgeo-filters > ul {
	padding: 0 !important;
	margin: 0 !important;
	transition: height 0.2s;
}

.mgeo-filters {
	margin: 10px -20px -6px -20px;
	overflow-y: auto;
	opacity: 0;
	transition: opacity 0.2s;
}

.mgeo-filters h5 {
	color: #aaa;
	font-size: 10px;
	margin: 5px 20px;
	font-weight: 400;
}

.mgeo-filters:focus {
	background-color: #fafafa;
	padding: 22px 20px;
}

.mgeo-group {
	list-style: none;
	margin: 0 !important;
}

.mgeo-group > a {
	border-radius: 4px;
	box-sizing: border-box;
	color: #2f3434 !important;
	cursor: pointer;
	display: block;
	margin: 6px 10px;
	margin-bottom: 0;
	padding: 10px;
	text-decoration: none;
	overflow: hidden;
	text-overflow: ellipsis;
	transition: background-color 0.2s;
}

.mgeo-group > a:hover,
.mgeo-group > a:focus {
	background-color: #f8f8f8;
}

.mgeo-group h4 {
	display: inline-block;
	font-size: 14px;
	font-weight: bold;
	line-height: 22px;
	margin: 0;
	margin-top: 4px;
}

.mgeo-group h4.mgeo-title-margin { margin-top: 12px; }

.mgeo-group .mgeo-count {
	color: #888;
	font-size: 12px;
	font-weight: normal;
	margin-left: 4px;
	opacity: 0.5;
}

.mgeo-group .mgeo-dir-about {
	color: #aaa;
	display: block;
	font-size: 13px;
}

/* clear */
.mgeo-filter-clear {
	background: none;
	box-shadow: none;
	border: none;
	cursor: pointer;
	display: none;
	position: absolute;
	margin: 0;
	padding: 0;
	top: 30px;
	left: 16px;
	width: 24px;
	height: 24px;
}

.mgeo-filter-clear .mgeo-icon.mgeo-icon-cross {
	width: 12px;
	height: 12px;
	padding: 0;
	transition: transform 0.4s;
}

.mgeo-filter-active .mgeo-filter-clear { display: block; }
.mgeo-filter-active .mgeo-icon.mgeo-icon-magnifier { display: none; }

.mgeo-filter-clear:hover,
.mgeo-filter-clear:active,
.mgeo-filter-clear:focus {
	background: none;
	outline: none;
}

/* toggle  */
.mgeo-search-toggle {
	background: transparent;
	border-radius: 50% !important;
	box-shadow: none;
	border: none;
	cursor: pointer;
	line-height: 34px;
	display: none;
	position: absolute;
	margin: 0;
	padding: 4px;
	top: 24px;
	right: 20px;
	width: 34px;
	height: 34px;
	transition: background-color 0.2s;
}

.mgeo-sidebar-header-opened.mgeo-sidebar-filterable .mgeo-search-toggle { background-color: #f4f4f4; }

/* tags row */
.mgeo-sidebar.mgeo-sidebar-tagsrow .mgeo-sidebar-tags { display: block; }
.mgeo-sidebar.mgeo-sidebar-tagsrow .mgeo-sidebar-header { max-height: 100px; }
.mgeo-sidebar.mgeo-sidebar-tagsrow .mgeo-sidebar-list { margin-top: 100px; }

/* tags */
.mgeo-sidebar-tags {
	display: none;
	margin: 0 0 10px 0;
	max-width: 100%;
	overflow: hidden;
	white-space: nowrap;
}

.mgeo-tag {
	background-color: #aaa;
	border-radius: 12px;
	border: none;
	color: rgba(255, 255, 255, 0.8);
	cursor: pointer;
	display: inline-block;
	font-size: 9px;
	font-weight: 600;
	line-height: 20px;
	margin-right: 6px;
	padding: 0 8px;
	text-transform: uppercase;
}

.mgeo-tag > .mgeo-icon {
	margin-left: 6px;
	opacity: 0.4;
	width: 6px;
	height: 6px;
}

/* sidebar filters */
.mgeo-sidebar.mgeo-sidebar-header-opened.mgeo-sidebar-filterable .mgeo-filters { opacity: 1; }

.mgeo-sidebar.mgeo-sidebar-header-opened.mgeo-sidebar-filterable .mgeo-sidebar-header {
	height: auto;
	max-height: 80%;
	pointer-events: auto;
}

.mgeo-portrait .mgeo-sidebar { min-height: 300px; }

.mgeo-sidebar.mgeo-sidebar-header-opened.mgeo-sidebar-filterable {
	pointer-events: none !important;
	height: 100%;
}

/* list */
.mgeo-sidebar-list {
	background-color: #fdfdfd;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
	list-style: none;
	margin: 0;
	padding: 0;
	margin-top: 80px;
	overflow-x: hidden;
	overflow-y: auto;
	transition: margin-top 0.2s;
}

.mgeo-sidebar-header-opened.mgeo-sidebar-filterable .mgeo-sidebar-list {
	position: relative;
	overflow-y: hidden;
}

.mgeo-sidebar-nosearch .mgeo-sidebar-list { margin-top: 0; }

/* dimmed list */
.mgeo-sidebar-list .mgeo-dir-item { position: relative; }

.mgeo-sidebar-list .mgeo-dir-item::after {
	background-color: rgba(0, 0, 0, 0.2);
	content: '';
	position: absolute;
	pointer-events: none;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	opacity: 0;
	transition: opacity 0.2s;
}

.mgeo-sidebar-header-opened.mgeo-sidebar-filterable .mgeo-dir-item::after {
	opacity: 1; 
}

/* popup */
.mgeo-sidebar > .mgeo-popup {
	background-color: #fff;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
	color: #000;
	display: flex;
	flex-direction: column;
	pointer-events: auto;
	user-select: text;
	position: absolute;
	top: 0;
	right: 0;
	left: 0;
	bottom: 0; /* optional */
	margin-right: 12px;
	max-height: 100%;
	z-index: 10000;
}

.mgeo-sidebar > .mgeo-popup .mgeo-close {
	top: 20px;
	right: 12px;
}

.mgeo-sidebar > .mgeo-popup .mgeo-close > .mgeo-icon {
	width: 12px;
	height: 12px;
}

.mgeo-popup-image {
	height: 33%;
}

.mgeo-popup-image > img {
	object-fit: cover;
	width: 100%;
	max-height: 100%;
}

.mgeo-popup .mgeo-title {
	font-size: 24px;
	font-weight: bold;
	margin: 0 0 20px 0;
}

.mgeo-popup .mgeo-about {
	font-size: 16px;
	margin: -16px 0 20px 0;
}

.mgeo-sidebar > .mgeo-popup .mgeo-popup-container {
	padding: 20px;
	flex: 1 1 auto;
	min-height: 0;
/*	display: flex;
	flex-direction: column;*/
}

/* directory */
.mgeo-dir-item {
	margin: 0;
}

.mgeo-dir-item a {
	background-color: #fdfdfd;
	cursor: pointer;
	display: block;
	line-height: 14px;
	padding: 12px 20px;
	transition: background-color 0.2s;
}

.mgeo-dir-item a::after {
	content: '';
	clear: both;
	display: table;
	overflow: auto;
}

.mgeo-dir-item:hover > a,
.mgeo-dir-item > a:focus,
.mgeo-dir-item.mgeo-active > a {
	background-color: #f8f8f8;
}

.mgeo-dir-item.mgeo-hidden { display: none; }

.mgeo-dir-item .mgeo-dir-title {
	color: #333;
	font-size: 17px;
	font-weight: normal;
	line-height: 26px;
	margin: 0;
}

.mgeo-dir-item .mgeo-dir-about {
	font-size: 13px;
	color: #aaa;
}

/* thumbnail  */
.mgeo-filters .mgeo-thumb {
	background-color: #aaa;
	border: 2px solid transparent;
	border-radius: 50%;
	box-sizing: border-box;
	width: 40px;
	height: 40px;
}

.mgeo-filters .mgeo-thumb.mgeo-thumb-placeholder {
	color: rgba(255, 255, 255, 0.7);
	font-weight: bold;
}

.mgeo-thumb {
	border-radius: 0px;
	box-shadow: none !important;
	margin-right: 10px;
	float: left;
	width: 50px;
	height: 50px;
	object-fit: cover;
}

.mgeo-thumb.mgeo-thumb-placeholder {
	background-color: #eee;
	box-sizing: border-box;
	color: #fff;
	font-size: 20px;
	font-weight: 600;
	line-height: 34px;
	padding: 8px 4px;
	width: 50px;
	height: 50px;
	text-align: center;
}

.mgeo-group .mgeo-thumb-placeholder { line-height: 30px; }

/* hover tooltip */
.mgeo-hover-tooltip.mgeo-tooltip {
	display: block;
	padding: 10px 14px;
	width: auto;
	min-width: 40px;
	max-width: 400px;
	pointer-events: none;
	inline-size: max-content;
}

.mgeo-hover-tooltip.mgeo-tooltip h4,
.mgeo-hover-tooltip.mgeo-tooltip h5 {
	text-align: center;
}


.mgeo-hover-tooltip.mgeo-tooltip h5.mgeo-about {
	margin: 0;
}

.mgeo-hover-tooltip.mgeo-tooltip .mgeo-title {
	margin: 0;
	padding: 0;
}

/* tooltip  */
.mgeo-tooltip {
	background-color: #fff;
	box-shadow: 0 0 20px rgb(0 0 0 / 10%);
	box-sizing: border-box;
	border-radius: 6px;
	color: #000;
	opacity: 0;
	min-width: 0;
	max-width: 360px;
	max-height: 300px;

	position: absolute;
	bottom: 12px; /* 7 + elevation */
	left: -100px;
	margin-bottom: 0;
	transition: opacity 0.2s;

	display: flex;
	flex-wrap: nowrap;
	inline-size: max-content;
}

.mgeo-tooltip:after {
	content: '';
	border-color: #fff transparent transparent transparent !important;
	border-style: solid;
	border-width: 8px 7px 0 7px;
	width: 0;
	height: 0;
	position: absolute;
	bottom: -7px;
	left: 50%;
	margin-left: -7px;
}

.mgeo-tooltip-image {
	align-self: stretch;
	border-radius: 6px 0 0 6px;
	background-color: #666;
	flex: 1 1 40%;
	min-width: 160px;
	overflow: hidden;
}

.mgeo-tooltip-image > img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.mgeo-popup-container {
	position: relative;
	padding: 14px;
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
}

.mgeo-popup-content {
	overflow-y: auto;
	flex: 1 1 auto;
}

.mgeo-popup-content p { margin-top: 0; }
.mgeo-popup-content p:last-child { margin-bottom: 0; }

.mgeo-close {
	background: transparent;
	border: none;
	color: #000;
	cursor: pointer;
	opacity: 0.6;
	padding: 1px 4px;
	position: absolute;
	line-height: 8px;
	top: 8px;
	right: 8px;
	transition: opacity 0.2s;
}

.mgeo-close .mgeo-icon {
	width: 8px;
	height: 8px;
}

.mgeo-close:hover { opacity: 1; }

.mgeo-tooltip h4.mgeo-title {
	color: inherit;
	font-size: 16px;
	font-weight: bold;
	margin: 0 0 12px 0;
	padding-right: 10px;
}

.mgeo-tooltip.mgeo-tooltip-small h4.mgeo-title {
	margin: 0;
}

.mgeo-tooltip h5.mgeo-about {
	color: inherit;
	font-size: 12px;
	margin: -10px 0 12px 0;
	opacity: 0.6;
	text-transform: uppercase;
}

.mgeo-buttons > a {
	background-color: #aaa;
	border-radius: 4px;
	box-shadow: none;
	color: #fff;
	cursor: pointer;
	display: inline-block;
	font-size: 13px;
	font-weight: bold;
	float: right;
	padding: 6px 12px;
	text-decoration: none;
	margin: 12px -4px -4px 10px;
	transition: box-shadow 0.2s;
}

.mgeo-buttons > a:hover {
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* controls */
.ol-control {
	background: transparent;
	box-shadow: 0 0 12px rgb(0 0 0 / 6%);
	border-radius: 0;
	padding: 0;
	margin: 6px;
}

.ol-control button {
	background-color: #fff;
	color: #222;
	border-radius: 0 !important;
	margin: 0;
	cursor: pointer;
	width: 28px;
	height: 28px;
	transition: background-color 0.2s;
}

.ol-control button:hover,
.ol-control button:focus {
	background-color: #fafafa;
}

.mgeo-controls {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
}

.mgeo-controls .ol-control {
	pointer-events: auto;
}

.ol-attribution {
	right: 40px;
	bottom: 0;
	white-space: nowrap;
	max-width: initial;
}

.ol-attribution.ol-uncollapsible {
	margin-right: -6px;
	margin-bottom: -6px;
}

.ol-rotate {
	top: auto;
}

.mgeo-icon.mgeo-icon-compass.ol-compass {
	width: auto;
	height: auto;
}

/* level switcher */
.mgeo-level-switcher {
	margin: 6px;
	box-shadow: none;
}

.mgeo-level-switcher button {
	background-color: rgba(230,230,230,0.5);
	border-radius: 0;
	color: #333;
	cursor: pointer;
	display: block;
	font-size: 11px !important;
	font-weight: 600;
	line-height: 20px;
	padding: 4px 10px;
	text-align: center;
	user-select: none;
	width: 100%;
	border: none;
	transition: transform 0.1s, background-color 0.2s, color 0.2s;
	position: relative;
}


.mgeo-level-switcher:hover { background-color: transparent; }

.mgeo-level-switcher button:hover {
	background-color: #f8f8f8;
	color: #000;
}
.mgeo-level-switcher button:focus { outline: none; }

.mgeo-level-switcher button.mgeo-selected {
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
	background-color: #fff;
	color: #000;
	transform: scale(1.15);
	z-index: 100;
}

/* control zones */
.mgeo-control-zone {
	margin: 6px;
	position: absolute;
	display: flex;
	flex-direction: column;
	top: auto;
	right: auto;
	bottom: auto;
	left: auto;
}

.mgeo-control-zone .ol-control {
	position: static;
	top: auto;
	right: auto;
	bottom: auto;
	left: auto;
}

.mgeo-control-zone.mgeo-top-left {
	top: 0;
	left: 0;
	align-items: flex-start;
}

.mgeo-control-zone.mgeo-top-right {
	top: 0;
	right: 0;
	align-items: flex-end;
}

.mgeo-control-zone.mgeo-bottom-left {
	bottom: 0;
	left: 0;
	align-items: flex-start;
}

.mgeo-control-zone.mgeo-bottom-right {
	right: 0;
	bottom: 0;
	align-items: flex-end;
}

/* scrollbars */
.mgeo-map * {
	scrollbar-width: thin;
	scrollbar-color: #ddd #fdfdfd;
}

.mgeo-map *::-webkit-scrollbar {
	width: 12px;
	height: 12px;
}

.mgeo-map *::-webkit-scrollbar-track {
	background-color: #fdfdfd;
}

.mgeo-map *::-webkit-scrollbar-thumb {
	background-color: #ddd;
	border-radius: 20px;
	border: 3px solid #fdfdfd;
	box-sizing: border-box;
}

.mgeo-map .mgeo-popup * { scrollbar-color: #ddd #fff; }
.mgeo-map .mgeo-popup *::-webkit-scrollbar-track { background-color: #fff; }
.mgeo-map .mgeo-popup *::-webkit-scrollbar-thumb { border: 3px solid #fff; }


/*
.ol-layer:first-child {
	-webkit-filter: grayscale(100%);
	filter: grayscale(100%);
}*/