.of-map-app {
	position: relative;
	margin: 10px 5px;
	background: #f4f6f3;
	border: 1px solid #d9ded8;
	border-radius: 8px;
	color: #1f2a24;
	font-family: Arial, Verdana, Helvetica, sans-serif;
}

.of-map-main {
	display: grid;
	grid-template-columns: minmax(300px, 360px) minmax(520px, 1fr);
	gap: 0;
	min-height: 720px;
}

.of-map-panel {
	background: #ffffff;
	border-right: 1px solid #d9ded8;
	padding: 18px;
	overflow: auto;
}

.of-map-panel-head {
	padding-bottom: 14px;
	border-bottom: 1px solid #e4e8e2;
}

.of-map-kicker {
	color: #52705b;
	font-size: 11px;
	font-weight: bold;
	letter-spacing: 0;
	text-transform: uppercase;
}

.of-map-panel h1 {
	margin: 4px 0 6px;
	font-size: 24px;
	line-height: 1.2;
	color: #17221c;
}

.of-map-panel p {
	margin: 0;
	color: #5a665d;
	font-size: 13px;
	line-height: 1.45;
}

.of-map-actions,
.of-map-form-row,
.of-map-search {
	display: flex;
	align-items: center;
	gap: 8px;
}

.of-map-actions {
	padding: 14px 0;
	border-bottom: 1px solid #e4e8e2;
}

.of-map-button,
.of-map-icon-button,
.of-map-link-button,
.of-popup-action {
	min-height: 32px;
	border: 1px solid #c7d0c7;
	border-radius: 6px;
	background: #ffffff;
	color: #213229;
	cursor: pointer;
	font: bold 12px Arial, Verdana, Helvetica, sans-serif;
	line-height: 1;
	text-decoration: none;
}

.of-map-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 0 10px;
	white-space: nowrap;
}

.of-map-button:hover,
.of-map-icon-button:hover,
.of-map-link-button:hover,
.of-popup-action:hover {
	border-color: #78977f;
	background: #eef4ee;
}

.of-map-button.is-primary,
.of-popup-action.is-primary {
	border-color: #326746;
	background: #326746;
	color: #ffffff;
}

.of-map-icon-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	padding: 0;
	font-size: 17px;
}

.of-map-link-button {
	width: 100%;
	margin-top: 8px;
	padding: 0 10px;
	text-align: left;
}

.of-map-link-button.is-disabled,
.of-map-link-button:disabled {
	color: #7d867e;
	cursor: default;
	background: #f3f5f3;
}

.of-map-section {
	padding: 14px 0;
	border-bottom: 1px solid #e4e8e2;
}

.of-map-section-title {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 10px;
	color: #203128;
	font-weight: bold;
	font-size: 14px;
}

.of-map-section-title img {
	width: 22px;
	height: 22px;
}

.of-map-section-title small {
	margin-left: auto;
	min-width: 28px;
	padding: 3px 7px;
	border-radius: 999px;
	background: #e7ede7;
	color: #4d5d52;
	text-align: center;
	font-size: 11px;
}

.of-map-entry-form {
	margin-top: 12px;
}

.of-map-entry-form label,
.of-map-coords label {
	display: block;
	margin-bottom: 10px;
}

.of-map-entry-form label span,
.of-map-coords label span {
	display: block;
	margin-bottom: 4px;
	color: #536158;
	font-size: 11px;
	font-weight: bold;
	text-transform: uppercase;
}

.of-map-entry-form input[type="text"],
.of-map-entry-form textarea,
.of-map-entry-form select,
.of-map-search input,
.of-popup-form input[type="text"],
.of-popup-form textarea {
	box-sizing: border-box;
	width: 100%;
	border: 1px solid #c8d1c9;
	border-radius: 6px;
	background: #ffffff;
	color: #1e2a23;
	font: 13px Arial, Verdana, Helvetica, sans-serif;
}

.of-map-entry-form input[type="text"],
.of-map-entry-form select,
.of-map-search input,
.of-popup-form input[type="text"] {
	height: 34px;
	padding: 0 10px;
}

.of-map-entry-form textarea,
.of-popup-form textarea {
	min-height: 112px;
	padding: 9px 10px;
	resize: vertical;
}

.of-map-coords {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
	margin-top: 10px;
}

.of-map-coords input[readonly] {
	background: #eef2ee;
	color: #536158;
}

.of-map-filter-row {
	display: grid;
	grid-template-columns: 24px 22px minmax(0, 1fr) auto;
	align-items: center;
	gap: 8px;
	min-height: 32px;
	color: #27362d;
	font-size: 13px;
}

.of-map-filter-row img {
	width: 22px;
	height: 22px;
}

.of-map-filter-row input {
	margin: 0;
}

.of-map-filter-row span {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.of-map-filter-row em {
	color: #68766d;
	font-style: normal;
	font-size: 12px;
}

.of-map-filter-mine span {
	color: #a23b2a;
}

.of-map-search {
	margin-top: 12px;
}

.of-map-result-list {
	max-height: 270px;
	overflow: auto;
	border: 1px solid #d9ded8;
	border-radius: 8px;
	background: #fbfcfb;
}

.of-map-result {
	display: grid;
	grid-template-columns: 26px minmax(0, 1fr);
	gap: 8px;
	width: 100%;
	padding: 9px 10px;
	border: 0;
	border-bottom: 1px solid #e6eae5;
	background: transparent;
	color: #1f3026;
	text-align: left;
	cursor: pointer;
}

.of-map-result:last-child {
	border-bottom: 0;
}

.of-map-result:hover {
	background: #edf4ee;
}

.of-map-result img {
	width: 24px;
	height: 24px;
}

.of-map-result strong,
.of-map-result span {
	display: block;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.of-map-result strong {
	font-size: 13px;
	line-height: 1.25;
}

.of-map-result span {
	margin-top: 2px;
	color: #627064;
	font-size: 11px;
}

.of-map-empty {
	padding: 14px;
	color: #68766d;
	font-size: 13px;
	line-height: 1.4;
}

.of-map-mapwrap {
	position: relative;
	min-width: 0;
	min-height: 720px;
	background: #dce4df;
}

.of-map-canvas {
	width: 100%;
	height: 100%;
	min-height: 720px;
}

.of-map-status {
	position: absolute;
	right: 14px;
	bottom: 14px;
	z-index: 500;
	display: flex;
	gap: 8px;
}

.of-map-status span {
	padding: 6px 9px;
	border: 1px solid rgba(40, 55, 45, 0.16);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.94);
	color: #2a3a30;
	font-size: 12px;
	font-weight: bold;
	box-shadow: 0 2px 10px rgba(23, 34, 28, 0.12);
}

.of-map-loader {
	position: absolute;
	z-index: 2000;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(244, 246, 243, 0.72);
}

.of-map-loader-box {
	width: 190px;
	padding: 22px;
	border: 1px solid #d2dbd1;
	border-radius: 8px;
	background: #ffffff;
	text-align: center;
	box-shadow: 0 18px 45px rgba(31, 42, 36, 0.18);
}

.of-map-loader-text {
	margin-top: 10px;
	color: #526258;
	font-size: 12px;
}

.of-map-cluster {
	display: flex;
	align-items: center;
	justify-content: center;
	border: 2px solid rgba(255, 255, 255, 0.92);
	border-radius: 999px;
	background: #326746;
	color: #ffffff;
	box-shadow: 0 4px 16px rgba(31, 42, 36, 0.28);
	font: bold 13px Arial, Verdana, Helvetica, sans-serif;
}

.of-map-cluster-medium {
	background: #b8792d;
}

.of-map-cluster-large {
	background: #a23b2a;
}

.of-map-cluster span {
	line-height: 1;
}

.of-map-popup {
	min-width: 260px;
	max-width: 380px;
	color: #1e2a23;
	font: 13px Arial, Verdana, Helvetica, sans-serif;
}

.of-popup-head {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	margin-bottom: 10px;
}

.of-popup-avatar {
	flex: 0 0 auto;
	max-width: 74px;
	max-height: 90px;
	overflow: hidden;
	border-radius: 6px;
	background: #eef2ee;
}

.of-popup-avatar img {
	display: block;
	max-width: 74px;
	height: auto;
}

.of-popup-title {
	margin: 0;
	color: #17221c;
	font-size: 16px;
	line-height: 1.25;
}

.of-popup-title a {
	color: #1c5f3a;
	text-decoration: none;
}

.of-popup-meta,
.of-popup-line {
	color: #58655c;
	font-size: 12px;
	line-height: 1.4;
}

.of-popup-body {
	margin: 9px 0;
	line-height: 1.45;
}

.of-popup-line {
	margin: 4px 0;
}

.of-popup-line b {
	color: #27362d;
}

.of-popup-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
	margin-top: 12px;
	padding-top: 10px;
	border-top: 1px solid #e4e8e2;
}

.of-popup-action {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0 10px;
}

.of-popup-action.is-danger {
	border-color: #b84532;
	color: #a23b2a;
}

.of-popup-form {
	display: grid;
	gap: 8px;
}

.of-map-app.is-fullscreen {
	position: fixed;
	z-index: 99999;
	inset: 10px;
	margin: 0;
}

.of-map-app.is-fullscreen .of-map-main,
.of-map-app.is-fullscreen .of-map-canvas {
	height: calc(100vh - 22px);
	min-height: 0;
}

@media (max-width: 980px) {
	.of-map-main {
		grid-template-columns: 1fr;
	}

	.of-map-panel {
		border-right: 0;
		border-bottom: 1px solid #d9ded8;
	}

	.of-map-mapwrap {
		min-height: 70vh;
	}

	.of-map-canvas {
		height: 70vh;
		min-height: 460px;
	}
}

@media (max-width: 560px) {
	.of-map-app {
		margin: 6px 0;
		border-left: 0;
		border-right: 0;
		border-radius: 0;
	}

	.of-map-panel {
		padding: 14px;
	}

	.of-map-actions {
		flex-wrap: wrap;
	}

	.of-map-button {
		flex: 1 1 auto;
	}

	.of-map-status {
		right: 8px;
		bottom: 8px;
		flex-direction: column;
		align-items: flex-end;
	}
}
