.jmv-map {
	--jmv-map-primary: #327caf;
	--jmv-map-deep: #102436;
	--jmv-map-ink: #182434;
	--jmv-map-muted: #657386;
	--jmv-map-line: #dfe7ef;
	--jmv-map-soft: #f5f9fc;
	--jmv-map-card: #ffffff;
	background: var(--jmv-map-soft);
	color: var(--jmv-map-ink);
	font-family: Poppins, inherit;
	padding: 54px 20px;
	overflow-x: hidden;
}

.jmv-map,
.jmv-map * {
	box-sizing: border-box;
}

.jmv-map__inner {
	width: 100%;
	max-width: 1180px;
	margin: 0 auto;
	min-width: 0;
}

.jmv-map__header {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 24px;
	align-items: end;
	margin: 0 0 24px;
}

.jmv-map__eyebrow {
	margin: 0 0 9px;
	color: var(--jmv-map-primary);
	font-size: 13px;
	font-weight: 900;
	letter-spacing: 0;
	text-transform: uppercase;
}

.jmv-map__header h2 {
	margin: 0;
	color: var(--jmv-map-deep);
	font-size: clamp(30px, 3.2vw, 46px);
	font-weight: 900;
	letter-spacing: 0;
	line-height: 1.08;
}

.jmv-map__header p:not(.jmv-map__eyebrow) {
	max-width: 720px;
	margin: 12px 0 0;
	color: var(--jmv-map-muted);
	font-size: 17px;
	line-height: 1.55;
}

.jmv-map__summary {
	display: inline-flex;
	flex-direction: column;
	align-items: flex-end;
	justify-content: center;
	border: 1px solid var(--jmv-map-line);
	border-radius: 8px;
	background: #ffffff;
	padding: 14px 16px;
	min-width: 132px;
	box-shadow: 0 10px 24px rgba(16, 36, 54, 0.06);
}

.jmv-map__summary strong {
	color: var(--jmv-map-deep);
	font-size: 34px;
	font-weight: 900;
	line-height: 1;
}

.jmv-map__summary span {
	margin-top: 5px;
	color: var(--jmv-map-muted);
	font-size: 12px;
	font-weight: 800;
	line-height: 1.2;
	text-transform: uppercase;
}

.jmv-map__toolbar {
	display: grid;
	grid-template-columns: minmax(240px, 1fr) minmax(170px, 0.35fr) minmax(130px, 0.25fr);
	gap: 12px;
	margin: 0 0 16px;
}

.jmv-map__field {
	display: grid;
	gap: 6px;
	min-width: 0;
}

.jmv-map__field span {
	color: var(--jmv-map-deep);
	font-size: 12px;
	font-weight: 900;
	line-height: 1;
	text-transform: uppercase;
}

.jmv-map__field input,
.jmv-map__field select {
	width: 100%;
	min-height: 46px;
	border: 1px solid var(--jmv-map-line);
	border-radius: 8px;
	background: #ffffff;
	color: var(--jmv-map-ink);
	font: inherit;
	font-size: 15px;
	line-height: 1.2;
	padding: 0 14px;
	outline: none;
	box-shadow: 0 8px 18px rgba(16, 36, 54, 0.05);
}

.jmv-map__field input:focus,
.jmv-map__field select:focus {
	border-color: var(--jmv-map-primary);
	box-shadow: 0 0 0 3px rgba(50, 124, 175, 0.16);
}

.jmv-map__nearby {
	display: grid;
	grid-template-columns: minmax(260px, 0.7fr) minmax(360px, 1.3fr);
	gap: 18px 36px;
	align-items: center;
	border-top: 1px solid var(--jmv-map-line);
	border-bottom: 1px solid var(--jmv-map-line);
	margin: 4px 0 18px;
	padding: 20px 0;
}

.jmv-map__nearby-copy {
	min-width: 0;
}

.jmv-map__nearby-kicker {
	margin: 0 0 5px;
	color: #277044;
	font-size: 11px;
	font-weight: 900;
	line-height: 1.2;
	text-transform: uppercase;
}

.jmv-map__nearby-copy h3 {
	margin: 0;
	color: var(--jmv-map-deep);
	font-size: 21px;
	font-weight: 900;
	letter-spacing: 0;
	line-height: 1.2;
}

.jmv-map__nearby-copy > p:last-child {
	margin: 7px 0 0;
	color: var(--jmv-map-muted);
	font-size: 13px;
	line-height: 1.45;
}

.jmv-map__cep-form {
	min-width: 0;
}

.jmv-map__cep-control {
	display: grid;
	grid-template-columns: minmax(150px, 1fr) auto;
	gap: 8px;
}

.jmv-map__cep-control button {
	min-width: 150px;
	min-height: 46px;
	border: 0;
	border-radius: 8px;
	background: var(--jmv-map-primary);
	color: #ffffff;
	cursor: pointer;
	font: inherit;
	font-size: 14px;
	font-weight: 900;
	line-height: 1.2;
	padding: 0 18px;
}

.jmv-map__cep-control button:hover,
.jmv-map__cep-control button:focus {
	background: #246992;
	outline: none;
	box-shadow: 0 0 0 3px rgba(50, 124, 175, 0.16);
}

.jmv-map__cep-control button:disabled {
	cursor: wait;
	opacity: 0.72;
}

.jmv-map__cep-status {
	min-height: 18px;
	margin: 6px 0 0;
	color: var(--jmv-map-muted);
	font-size: 12px;
	font-weight: 700;
	line-height: 1.4;
}

.jmv-map__cep-status--success {
	color: #277044;
}

.jmv-map__cep-status--error {
	color: #b13d32;
}

.jmv-map__nearby-results {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
	grid-column: 1 / -1;
	min-width: 0;
}

.jmv-map__nearby-results[hidden] {
	display: none;
}

.jmv-map__nearby-results-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	grid-column: 1 / -1;
	margin-top: 2px;
}

.jmv-map__nearby-results-head strong {
	color: var(--jmv-map-deep);
	font-size: 15px;
	font-weight: 900;
}

.jmv-map__nearby-results-head span {
	color: var(--jmv-map-muted);
	font-size: 11px;
	font-weight: 700;
}

.jmv-map-nearby-card {
	position: relative;
	display: grid;
	grid-template-columns: 28px minmax(0, 1fr);
	gap: 10px;
	border: 1px solid var(--jmv-map-line);
	border-radius: 8px;
	background: #ffffff;
	min-width: 0;
	padding: 14px;
	box-shadow: 0 8px 20px rgba(16, 36, 54, 0.05);
}

.jmv-map-nearby-card__rank {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: var(--jmv-map-deep);
	color: #ffffff;
	font-size: 12px;
	font-weight: 900;
}

.jmv-map-nearby-card__content {
	min-width: 0;
}

.jmv-map-nearby-card__head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 8px;
}

.jmv-map-nearby-card__province {
	display: block;
	color: var(--jmv-map-primary);
	font-size: 10px;
	font-weight: 900;
	line-height: 1.2;
	text-transform: uppercase;
}

.jmv-map-nearby-card h4 {
	margin: 2px 0 0;
	color: var(--jmv-map-deep);
	font-size: 15px;
	font-weight: 900;
	letter-spacing: 0;
	line-height: 1.25;
}

.jmv-map-nearby-card__distance {
	flex: 0 0 auto;
	color: #277044;
	font-size: 13px;
	font-weight: 900;
	line-height: 1.2;
	white-space: nowrap;
}

.jmv-map-nearby-card__location,
.jmv-map-nearby-card .jmv-map-address,
.jmv-map-nearby-card .jmv-map-cep {
	margin: 6px 0 0;
	color: var(--jmv-map-muted);
	font-size: 11px;
	line-height: 1.4;
}

.jmv-map-nearby-card .jmv-map-address {
	color: var(--jmv-map-ink);
}

.jmv-map-nearby-card__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 11px;
}

.jmv-map-nearby-card__actions a,
.jmv-map-nearby-card__actions button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 32px;
	border: 1px solid var(--jmv-map-line);
	border-radius: 6px;
	background: #ffffff;
	color: var(--jmv-map-deep);
	cursor: pointer;
	font: inherit;
	font-size: 10px;
	font-weight: 900;
	line-height: 1;
	padding: 0 9px;
	text-decoration: none;
}

.jmv-map-nearby-card__actions a:hover,
.jmv-map-nearby-card__actions a:focus,
.jmv-map-nearby-card__actions button:hover,
.jmv-map-nearby-card__actions button:focus {
	border-color: var(--jmv-map-primary);
	color: var(--jmv-map-primary);
	outline: none;
}

.jmv-map__body {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
	gap: 16px;
	align-items: stretch;
}

.jmv-map__canvas-wrap,
.jmv-map__list {
	border: 1px solid var(--jmv-map-line);
	border-radius: 8px;
	background: var(--jmv-map-card);
	box-shadow: 0 14px 32px rgba(16, 36, 54, 0.08);
	min-width: 0;
	overflow: hidden;
}

.jmv-map__canvas {
	width: 100%;
	height: var(--jmv-map-height, 520px);
	min-height: 380px;
	background: #dce8f0;
}

.jmv-map__list {
	display: flex;
	flex-direction: column;
	max-height: var(--jmv-map-height, 520px);
}

.jmv-map__list-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	border-bottom: 1px solid var(--jmv-map-line);
	padding: 16px;
}

.jmv-map__list-head strong {
	color: var(--jmv-map-deep);
	font-size: 17px;
	font-weight: 900;
	line-height: 1;
}

.jmv-map__list-head span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 999px;
	background: var(--jmv-map-primary);
	color: #ffffff;
	font-size: 12px;
	font-weight: 900;
	min-width: 32px;
	height: 28px;
	padding: 0 9px;
}

.jmv-map__items {
	overflow: auto;
	padding: 10px;
}

.jmv-map-card {
	display: grid;
	grid-template-columns: 12px minmax(0, 1fr);
	gap: 10px;
	width: 100%;
	border: 1px solid transparent;
	border-radius: 8px;
	background: #ffffff;
	color: inherit;
	cursor: pointer;
	font: inherit;
	padding: 10px;
	text-align: left;
}

.jmv-map-card + .jmv-map-card {
	margin-top: 6px;
}

.jmv-map-card:hover,
.jmv-map-card:focus {
	border-color: rgba(50, 124, 175, 0.35);
	background: #f7fbfe;
	outline: none;
}

.jmv-map-card__dot {
	width: 10px;
	height: 10px;
	border-radius: 999px;
	background: var(--jmv-province-color, var(--jmv-map-primary));
	margin-top: 6px;
	box-shadow: 0 0 0 4px rgba(50, 124, 175, 0.12);
}

.jmv-map-card__content {
	min-width: 0;
}

.jmv-map-card strong {
	display: block;
	color: var(--jmv-map-deep);
	font-size: 14px;
	font-weight: 900;
	line-height: 1.25;
}

.jmv-map-card small {
	display: block;
	margin-top: 3px;
	color: var(--jmv-map-muted);
	font-size: 12px;
	font-weight: 700;
	line-height: 1.35;
}

.jmv-map-card__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 5px;
	margin-top: 7px;
}

.jmv-map-badge {
	display: inline-flex;
	align-items: center;
	border: 1px solid rgba(101, 115, 134, 0.2);
	border-radius: 999px;
	background: #f8fafc;
	color: var(--jmv-map-muted);
	font-size: 10px;
	font-weight: 900;
	line-height: 1;
	padding: 5px 7px;
	text-transform: uppercase;
}

.jmv-map-badge--exact {
	border-color: rgba(39, 132, 90, 0.24);
	background: #eef8f2;
	color: #277044;
}

.jmv-map-badge--cep {
	border-color: rgba(50, 124, 175, 0.2);
	background: #eef6fb;
	color: #246992;
}

.jmv-map-badge--cep-central {
	border-color: rgba(210, 138, 30, 0.24);
	background: #fff7e8;
	color: #8f5a0c;
}

.jmv-map-address,
.jmv-map-cep {
	overflow-wrap: anywhere;
}

.jmv-map-cep .jmv-map-badge {
	margin-left: 4px;
}

.jmv-map-popup {
	max-width: 270px;
	color: var(--jmv-map-ink);
	font-family: Poppins, inherit;
}

.jmv-map-popup__group + .jmv-map-popup__group {
	border-top: 1px solid var(--jmv-map-line);
	margin-top: 10px;
	padding-top: 10px;
}

.jmv-map-popup h3 {
	margin: 0;
	color: var(--jmv-map-deep);
	font-size: 15px;
	font-weight: 900;
	line-height: 1.25;
}

.jmv-map-popup p {
	margin: 6px 0 0;
	color: var(--jmv-map-muted);
	font-size: 12px;
	line-height: 1.35;
}

.jmv-map-popup__links {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 9px;
}

.jmv-map-popup__links a {
	display: inline-flex;
	align-items: center;
	border-radius: 6px;
	background: var(--jmv-map-primary);
	color: #ffffff;
	font-size: 12px;
	font-weight: 900;
	line-height: 1;
	padding: 8px 9px;
	text-decoration: none;
}

.jmv-map-popup__links a:nth-child(2) {
	background: var(--jmv-map-deep);
}

.jmv-map-leaflet-icon {
	background: transparent;
	border: 0;
}

.jmv-map-pin {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border: 3px solid #ffffff;
	border-radius: 50% 50% 50% 0;
	background: var(--jmv-pin-color, var(--jmv-map-primary));
	color: #ffffff;
	font-size: 11px;
	font-weight: 900;
	transform: rotate(-45deg);
	box-shadow: 0 8px 18px rgba(16, 36, 54, 0.28);
}

.jmv-map-pin b {
	display: inline-block;
	transform: rotate(45deg);
}

.jmv-map-pin::after {
	content: "";
	width: 8px;
	height: 8px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.92);
}

.jmv-map-pin--count::after {
	display: none;
}

.jmv-map-empty {
	border: 1px dashed var(--jmv-map-line);
	border-radius: 8px;
	color: var(--jmv-map-muted);
	font-size: 14px;
	font-weight: 700;
	padding: 18px;
	text-align: center;
}

.jmv-map .leaflet-container {
	font-family: Poppins, inherit;
}

.jmv-map .leaflet-control-attribution {
	font-size: 10px;
}

@media (max-width: 980px) {
	.jmv-map__header,
	.jmv-map__body {
		grid-template-columns: 1fr;
	}

	.jmv-map__nearby-results {
		grid-template-columns: 1fr;
	}

	.jmv-map__summary {
		align-items: flex-start;
		justify-self: start;
	}

	.jmv-map__list {
		max-height: 360px;
	}
}

@media (max-width: 720px) {
	.jmv-map {
		padding: 42px 16px;
	}

	.jmv-map__toolbar {
		grid-template-columns: 1fr;
	}

	.jmv-map__nearby {
		grid-template-columns: 1fr;
	}

	.jmv-map__cep-control {
		grid-template-columns: 1fr;
	}

	.jmv-map__cep-control button {
		width: 100%;
	}

	.jmv-map__nearby-results-head {
		align-items: flex-start;
		flex-direction: column;
		gap: 2px;
	}

	.jmv-map__canvas {
		height: min(var(--jmv-map-height, 520px), 460px);
		min-height: 340px;
	}
}

@media (max-width: 420px) {
	.jmv-map__header h2 {
		font-size: 30px;
	}

	.jmv-map__summary {
		width: 100%;
	}
}
