.jcm {
	--jcm-border: #dce3e9;
	--jcm-ink: #172231;
	--jcm-muted: #637083;
	--jcm-primary: #d80019;
	--jcm-violent: #d92d20;
	--jcm-theft: #f79009;
	--jcm-drugs: #7f56d9;
	--jcm-property: #1570ef;
	--jcm-fraud: #0e9384;
	--jcm-dui: #c11574;
	--jcm-other: #667085;
	box-sizing: border-box;
	width: 100%;
	max-width: var(--wp--style--global--wide-size, 1200px);
	padding-right: 20px;
	padding-left: 20px;
	margin-inline: auto;
	color: var(--jcm-ink);
	font-family: "Dosis", sans-serif;
}

/* Override WordPress's content-width constraint on the shortcode wrapper. */
.is-layout-constrained > .jcm.alignwide,
.is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)):has(.jcm),
.is-layout-constrained > .wp-block-shortcode:has(.jcm) {
	width: 100%;
	max-width: var(--wp--style--global--wide-size, 1200px);
	margin-right: auto !important;
	margin-left: auto !important;
}

.jcm *,
.jcm *::before,
.jcm *::after {
	box-sizing: border-box;
}

.jcm .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.jcm__header {
	display: flex;
	gap: 24px;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 16px;
}

.jcm__header h2 {
	margin: 0;
	font-size: 25px;
	font-weight: 600;
	line-height: 1.15;
}

.jcm__legend {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 14px;
	justify-content: flex-end;
	font-size: 12px;
}

.jcm__legend span {
	display: inline-flex;
	gap: 6px;
	align-items: center;
}

.jcm__legend-icon {
	display: block;
	flex: 0 0 25px;
	width: 25px;
	height: 25px;
	object-fit: contain;
}

.jcm--view-layout-2 .jcm__workspace {
	display: grid;
	grid-template-columns: minmax(0, 3fr) minmax(360px, 2fr);
	gap: 24px;
	align-items: start;
}

.jcm--view-layout-2.jcm--layout-50-50 .jcm__workspace {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.jcm--view-layout-2 .jcm__map-panel {
	position: sticky;
	top: 20px;
	min-width: 0;
}

.jcm--view-layout-2 .jcm__list-panel {
	width: 100%;
	height: var(--jcm-panel-height, 620px);
	min-width: 0;
	padding-right: 8px;
	overflow-y: auto;
	overscroll-behavior: contain;
	scrollbar-gutter: stable;
}

.jcm--view-layout-2 .jcm__list-panel::-webkit-scrollbar {
	width: 8px;
}

.jcm--view-layout-2 .jcm__list-panel::-webkit-scrollbar-thumb {
	background: #c8cdd3;
	border-radius: 999px;
}

.jcm--view-layout-2 .jcm__list-panel::-webkit-scrollbar-track {
	background: #f3f4f6;
}

.jcm__filters {
	display: grid;
	width: 100%;
	max-width: 800px;
	margin-inline: auto;
	grid-template-columns: minmax(190px, 1fr) repeat(2, minmax(140px, 180px)) auto;
	gap: 10px;
	align-items: end;
	padding: 12px;
	background: #fff;
	border: 1px solid var(--jcm-border);
	border-radius: 10px;
}

.jcm__filters--type-only {
	grid-template-columns: repeat(2, minmax(150px, 200px)) repeat(2, minmax(130px, 200px));
	gap: 10px;
	align-items: end;
	padding: 10px 0;
	border: 0;
	border-radius: 0;
}

.jcm__filters--type-only label:first-child {
	width: 100%;
	max-width: 200px;
}

.jcm__filters--type-only label {
	width: 100%;
	max-width: 200px;
	min-width: 0;
}

.jcm--view-layout-2 .jcm__list-panel .jcm__filters {
	position: sticky;
	top: 0;
	z-index: 500;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	max-width: none;
	margin: 0;
	box-shadow: 0 5px 10px rgba(16, 24, 40, 0.05);
}

.jcm--view-layout-2 .jcm__list-panel .jcm__filters label:first-child {
	grid-column: 1 / -1;
}

.jcm__filters label,
.jcm__filters label > span {
	display: block;
}

.jcm__filters label > span {
	margin-bottom: 5px;
	font-size: 13px;
	font-weight: 700;
}

.jcm__filters select,
.jcm__filters input,
.jcm__reset {
	box-sizing: border-box;
	width: 100%;
	min-height: 38px;
	padding: 0 12px;
	color: var(--jcm-ink);
	background: #fff;
	border: 1px solid #aeb7c2;
	border-radius: 6px;
	font: inherit;
	font-size: 14px;
}

.jcm__reset {
	align-self: end;
	color: #fff;
	background: var(--jcm-primary);
	border-color: var(--jcm-primary);
	font-weight: 700;
	cursor: pointer;
}

.jcm__reset:hover,
.jcm__reset:focus-visible {
	background: #b50015;
}

.jcm__map {
	height: var(--jcm-panel-height, 620px);
	min-height: 400px;
	border: 1px solid var(--jcm-border);
	border-radius: 10px;
}

.jcm__notice {
	margin: 9px 0 24px;
	color: var(--jcm-muted);
	font-size: 13px;
}

.jcm__results-toolbar {
	display: flex;
	width: 100%;
	max-width: 800px;
	gap: 16px;
	align-items: center;
	justify-content: space-between;
	margin: 0 auto;
	padding: 10px 0;
}

.jcm--view-layout-2 .jcm__list-panel .jcm__results-toolbar,
.jcm--view-layout-2 .jcm__list-panel .jcm__report-list,
.jcm--view-layout-2 .jcm__list-panel .jcm__pagination {
	max-width: none;
}

.jcm__status {
	font-size: 18px;
	font-weight: 600;
}

.jcm__report-list {
	display: grid;
	width: 100%;
	max-width: 800px;
	gap: 14px;
	margin-inline: auto;
}

.jcm-card {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 20px;
	padding: 20px 22px;
	overflow: hidden;
	background: #fff;
	border: 1px solid var(--jcm-border);
	border-radius: 0;
	box-shadow: 0 2px 8px rgba(16, 24, 40, 0.04);
}

.jcm-card:nth-child(even) {
	background: #f7f7f7;
}

.jcm--view-layout-2 .jcm__list-panel .jcm-card {
	grid-template-columns: minmax(0, 1fr);
	gap: 12px;
}

.jcm-card:focus-visible {
	outline: 3px solid rgba(21, 112, 239, 0.3);
	outline-offset: 2px;
}

.jcm-card__topline {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 14px;
	align-items: center;
	margin-bottom: 6px;
}

.jcm-card__type,
.jcm-popup__type {
	display: inline-flex;
	padding: 3px 8px;
	color: #fff;
	background: var(--jcm-other);
	border-radius: 999px;
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.03em;
	text-transform: uppercase;
}

.jcm-card--violent .jcm-card__type,
.jcm-color--violent { background: var(--jcm-violent); }
.jcm-card--theft .jcm-card__type,
.jcm-color--theft { background: var(--jcm-theft); }
.jcm-card--drugs .jcm-card__type,
.jcm-color--drugs { background: var(--jcm-drugs); }
.jcm-card--property .jcm-card__type,
.jcm-color--property { background: var(--jcm-property); }
.jcm-card--fraud .jcm-card__type,
.jcm-color--fraud { background: var(--jcm-fraud); }
.jcm-card--dui .jcm-card__type,
.jcm-color--dui { background: var(--jcm-dui); }

.jcm-card time {
	color: var(--jcm-muted);
	font-size: 13px;
	font-weight: 650;
}

.jcm-card h3 {
	margin: 0 0 14px;
	font-size: 20px;
	font-weight: 600;
	line-height: 1.25;
}

.jcm-card__details {
	display: grid;
	grid-template-columns: 1fr;
	gap: 4px;
	margin: 0;
}

.jcm-card__field {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	align-items: baseline;
	font-size: 14px;
}

.jcm-card__field dt {
	display: inline;
	margin: 0;
	font-weight: 800;
}

.jcm-card__field dt::after {
	content: ":";
}

.jcm-card__field dd {
	display: inline;
	flex: 1 1 auto;
	margin: 0;
}

.jcm-card__description {
	margin: 14px 0 0;
	padding-top: 12px;
	color: var(--jcm-muted);
	border-top: 1px solid var(--jcm-border);
	font-size: 14px;
	line-height: 1.55;
}

.jcm-card__description strong {
	font-weight: 800;
}

.jcm-card__detail-link {
	display: inline-flex;
	margin-top: 9px;
	color: var(--jcm-primary);
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
}

.jcm-card__detail-link:hover,
.jcm-card__detail-link:focus-visible {
	text-decoration: underline;
}

.jcm-card__map-button {
	align-self: start;
	padding: 8px 12px;
	color: var(--jcm-primary);
	background: #fff;
	border: 1px solid var(--jcm-primary);
	border-radius: 6px;
	font: inherit;
	font-size: 12px;
	font-weight: 750;
	cursor: pointer;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.jcm-card__map-button:hover,
.jcm-card__map-button:focus-visible {
	color: #fff;
	background: var(--jcm-primary);
}

.jcm__pagination {
	display: flex;
	width: 100%;
	max-width: 800px;
	flex-wrap: wrap;
	gap: 6px;
	justify-content: center;
	margin: 18px auto 0;
}

.jcm__pagination button {
	min-width: 38px;
	height: 38px;
	color: var(--jcm-ink);
	background: #fff;
	border: 1px solid var(--jcm-border);
	border-radius: 6px;
	cursor: pointer;
}

.jcm__pagination button.is-current {
	color: #fff;
	background: var(--jcm-primary);
	border-color: var(--jcm-primary);
}

.jcm-popup h3 {
	margin: 7px 0 4px;
	font-size: 18px;
	line-height: 1.25;
}

.jcm-popup p {
	margin: 8px 0 0;
}

.jcm-popup__date {
	color: var(--jcm-muted);
	font-weight: 650;
}

.jcm-popup__details {
	display: grid;
	gap: 3px;
	margin-top: 9px;
}

.jcm-popup__details strong {
	font-weight: 800;
}

.jcm-marker-wrap {
	background: transparent;
	border: 0;
}

.jcm-svg-marker {
	object-fit: contain;
	image-rendering: auto;
}

.jcm-marker {
	position: relative;
	display: block;
	width: 28px;
	height: 28px;
	background: var(--jcm-other);
	border: 3px solid #fff;
	border-radius: 50% 50% 50% 0;
	box-shadow: 0 2px 7px rgba(0, 0, 0, 0.35);
	transform: rotate(-45deg);
}

.jcm-marker span {
	position: absolute;
	top: 7px;
	left: 7px;
	width: 8px;
	height: 8px;
	background: #fff;
	border-radius: 50%;
}

.jcm-marker--violent { background: var(--jcm-violent); }
.jcm-marker--theft { background: var(--jcm-theft); }
.jcm-marker--drugs { background: var(--jcm-drugs); }
.jcm-marker--property { background: var(--jcm-property); }
.jcm-marker--fraud { background: var(--jcm-fraud); }
.jcm-marker--dui { background: var(--jcm-dui); }
.jcm-marker--other { background: var(--jcm-other); }

.marker-cluster-small,
.marker-cluster-medium,
.marker-cluster-large {
	background: rgba(216, 0, 25, 0.22);
}

.marker-cluster-small div,
.marker-cluster-medium div,
.marker-cluster-large div {
	color: #fff;
	background: var(--jcm-primary);
	font-weight: 800;
}

@media (max-width: 860px) {
	.jcm__workspace,
	.jcm--layout-50-50 .jcm__workspace {
		display: block;
	}

	.jcm__map-panel {
		position: static;
	}

	.jcm__list-panel {
		height: auto;
		padding-right: 0;
		overflow: visible;
	}

	.jcm__list-panel .jcm__filters {
		position: static;
		box-shadow: none;
	}

	.jcm__header {
		align-items: flex-start;
		flex-direction: column;
		gap: 10px;
	}

	.jcm__legend {
		justify-content: flex-start;
	}

	.jcm__filters {
		grid-template-columns: 1fr 1fr;
	}

	.jcm__notice {
		margin-bottom: 16px;
	}

	.jcm__filters label:first-child {
		grid-column: 1 / -1;
	}

	.jcm__filters--type-only {
		grid-template-columns: repeat(2, minmax(150px, 200px)) repeat(2, minmax(130px, 200px));
	}

	.jcm__filters--type-only label:first-child {
		grid-column: auto;
	}

	.jcm__reset {
		justify-self: start;
	}

}

@media (max-width: 600px) {
	.jcm__workspace {
		display: flex;
		flex-direction: column;
	}

	.jcm__list-panel {
		display: contents;
	}

	.jcm__filters {
		order: -2;
		margin-bottom: 12px;
	}

	.jcm__map-panel {
		order: -1;
	}

	.jcm__filters {
		grid-template-columns: 1fr;
	}

	.jcm__filters--type-only {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.jcm__filters--type-only label,
	.jcm__filters--type-only label:first-child {
		grid-column: auto;
		max-width: none;
	}

	.jcm__map {
		min-height: 440px;
	}

	.jcm__results-toolbar {
		align-items: stretch;
		flex-direction: column;
	}

	.jcm-card {
		grid-template-columns: 1fr;
		padding: 18px;
	}

	.jcm-card__map-button {
		width: 100%;
	}
}
