.rheonics-representatives-map-wrap {
	max-width: none;
	width: 100%;
}

.rheonics-representatives-map {
	--rr-map-country: #d8e0e8;
	--rr-map-country-border: #ffffff;
	--rr-map-country-active: var(--rheonics-blue, #005487);
	--rr-map-country-active-stroke: #003f66;
	--rr-marker-opacity: 0.78;
	--rr-marker-active-opacity: 1;
	--rr-popup-text: #1f2937;
	--rr-popup-muted: #64748b;
	--rr-popup-border: #cdcdcd;

	aspect-ratio: 16 / 9;
	background: transparent;
	height: clamp(540px, 54vw, 650px);
	min-height: 540px;
	outline: none;
	overflow: hidden;
	position: relative;
	width: 100%;
}

.rheonics-representatives-map .leaflet-container,
.rheonics-representatives-map.leaflet-container {
	background: white;
	font-family: inherit;
	border: 1px solid #cdcdcd;
	border-radius: 10px;
}

.rr-map-loading {
	align-items: center;
	color: #64748b;
	display: flex;
	font-size: 14px;
	inset: 0;
	justify-content: center;
	position: absolute;
	z-index: 1;
}

.rheonics-representatives-map.is-loaded .rr-map-loading {
	display: none;
}

.rheonics-representatives-map.is-map-unavailable .rr-map-loading {
	display: flex;
}

.rr-country {
	cursor: pointer;
	transition: fill 180ms ease, fill-opacity 180ms ease, stroke 180ms ease;
}

.rr-country.is-active {
	filter: saturate(1.05);
}

.rr-marker {
	align-items: center;
	background: transparent;
	border: 0;
	display: flex;
	height: 38px;
	justify-content: center;
	opacity: var(--rr-marker-opacity);
	transform: scale(1);
	transition: opacity 180ms ease, transform 180ms ease;
	width: 38px;
}

.rr-marker img {
	display: block;
	height: 25px;
	pointer-events: none;
	width: 20px;
}

.rr-marker-dot {
	background: #005487;
	border: 2px solid #ffffff;
	border-radius: 999px;
	box-shadow: 0 1px 4px rgba(15, 23, 42, 0.22);
	height: 10px;
	opacity: 0.95;
	width: 10px;
}

.rr-marker-dot span {
	display: block;
	height: 100%;
	width: 100%;
}

.rr-marker.is-active,
.rr-marker:focus-visible {
	opacity: var(--rr-marker-active-opacity);
	transform: scale(1.08);
}

.rr-marker.is-filtered-out {
	display: none;
}

.rr-marker:focus-visible {
	outline: 3px solid #67b7dc;
	outline-offset: 3px;
}

.rr-map-card {
	background: #ffffff;
	border: 1px solid var(--rr-popup-border);
	border-radius: 8px;
	box-shadow: 0 16px 36px rgba(15, 23, 42, 0.18);
	box-sizing: border-box;
	max-height: calc(100% - 32px);
	opacity: 0;
	overflow: auto;
	position: absolute;
	top: 18px;
	transform: translateY(-6px);
	transition: opacity 180ms ease, transform 180ms ease;
	width: min(340px, calc(100% - 36px));
	z-index: 700;
}

.rr-map-card.is-right {
	left: auto;
	right: 18px;
}

.rr-map-card.is-left {
	left: 18px;
	right: auto;
}

.rr-map-card.is-visible {
	opacity: 1;
	transform: translateY(0);
}

.rr-map-card[hidden] {
	display: none;
}

.rr-popup {
	color: var(--rr-popup-text);
	font-size: 14px;
	line-height: 1.45;
	padding: 18px;
}

.rr-popup-head {
	align-items: center;
	display: flex;
	gap: 12px;
	margin-bottom: 14px;
}

.rr-popup-image {
	border: 1px solid #e2e8f0;
	border-radius: 6px;
	flex: 0 0 58px;
	height: 58px;
	object-fit: contain;
	width: 58px;
}

.rr-popup-title {
	font-size: 16px;
	font-weight: 700;
	margin: 0;
}

.rr-popup-country {
	color: var(--rr-popup-muted);
	margin-top: 2px;
}

.rr-popup-description {
	margin: 0 0 16px;
}

.rr-popup-group {
	margin: 14px 0 0;
}

.rr-popup-company {
	border-top: 1px solid #e2e8f0;
	margin-top: 18px;
	padding-top: 16px;
}

.rr-popup-company h4 {
	color: #0f172a;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.25;
	margin: 0 0 10px;
}

.rr-popup-line {
	margin: 10px 0 0;
}

.rr-popup-line:first-of-type {
	margin-top: 0;
}

.rr-popup-label {
	color: var(--rr-popup-muted);
	display: block;
	font-size: 12px;
	font-weight: 700;
	margin-bottom: 4px;
	text-transform: uppercase;
}

.rr-popup-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 5px;
}

.rr-popup-pill {
	background: #eef5fa;
	border: 1px solid #d6e8f2;
	border-radius: 999px;
	color: #0f4f75;
	font-size: 12px;
	padding: 3px 8px;
}

.rr-popup-link {
	color: #005487;
	font-weight: 700;
	text-decoration: none;
}

.rr-popup-link:hover,
.rr-popup-link:focus {
	text-decoration: underline;
}

.rheonics-representatives-list {
	display: grid;
	gap: 28px;
	margin-top: 24px;
	width: 100%;
}

.rr-filters {
	align-items: end;
	background: #f8fafc;
	border: 1px solid #cdcdcd;
	border-radius: 8px;
	display: grid;
	gap: 12px;
	grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
	padding: 14px;
}

.rr-filter-field {
	display: flex;
	flex-direction: column;
	gap: 5px;
	position: relative;
}

.rr-filter-field span {
	color: #475569;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
}

.rr-filter-toggle {
	background: #ffffff;
	border: 1px solid #cbd5e1;
	border-radius: 4px;
	color: #0f172a;
	cursor: pointer;
	font: inherit;
	font-size: 14px;
	line-height: 1.2;
	min-height: 40px;
	padding: 8px 30px 8px 10px;
	position: relative;
	text-align: left;
	width: 100%;
}

.rr-filter-toggle::after {
	border-left: 5px solid transparent;
	border-right: 5px solid transparent;
	border-top: 5px solid #64748b;
	content: "";
	position: absolute;
	right: 12px;
	top: 50%;
	transform: translateY(-50%);
}

.rr-filter-toggle:focus,
.rr-filter-toggle[aria-expanded="true"] {
	border-color: #005487;
	outline: 2px solid #67b7dc;
	outline-offset: 1px;
}

.rr-filter-menu {
	background: #ffffff;
	border: 1px solid #cbd5e1;
	border-radius: 6px;
	box-shadow: 0 12px 28px rgba(15, 23, 42, 0.16);
	box-sizing: border-box;
	left: 0;
	max-height: 240px;
	overflow: auto;
	padding: 5px;
	position: absolute;
	right: 0;
	top: calc(100% + 4px);
	z-index: 20;
}

.rr-filter-menu[hidden] {
	display: none;
}

.rr-filter-option {
	background: transparent;
	border: 0;
	border-radius: 4px;
	color: #0f172a;
	cursor: pointer;
	display: block;
	font: inherit;
	font-size: 14px;
	line-height: 1.25;
	padding: 9px 10px;
	text-align: left;
	width: 100%;
}

.rr-filter-option:hover,
.rr-filter-option:focus,
.rr-filter-option.is-selected {
	background: #eef5fa;
	color: #005487;
	outline: none;
}

.rr-filter-reset {
	background: #ffffff;
	border: 1px solid #cbd5e1;
	border-radius: 4px;
	color: #005487;
	cursor: pointer;
	font: inherit;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.2;
	min-height: 40px;
	padding: 8px 12px;
}

.rr-filter-reset:hover,
.rr-filter-reset:focus {
	border-color: #005487;
	outline: 2px solid #67b7dc;
	outline-offset: 1px;
}

.rr-empty-results {
	background: #ffffff;
	border: 1px solid #cdcdcd;
	border-radius: 8px;
	color: #475569;
	margin: 0;
	padding: 18px;
}

.rr-region-group h2 {
	color: #0f172a;
	font-size: clamp(20px, 2vw, 26px);
	line-height: 1.2;
	margin: 0 0 14px;
}

.rr-region-grid {
	display: grid;
	gap: 14px;
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.rr-rep-card {
	background: #ffffff;
	border: 1px solid #cdcdcd;
	border-radius: 8px;
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	gap: 14px;
	justify-content: space-between;
	min-height: 190px;
	padding: 16px;
	transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.rr-rep-card:hover,
.rr-rep-card:focus,
.rr-rep-card.is-active {
	border-color: #005487;
	box-shadow: 0 10px 24px rgba(15, 23, 42, 0.1);
	outline: none;
	transform: translateY(-1px);
}

.rr-rep-card h3 {
	color: #0f172a;
	font-size: 17px;
	line-height: 1.25;
	margin: 0;
}

.rr-rep-country {
	color: #64748b;
	font-size: 14px;
	margin: 4px 0 0;
}

.rr-rep-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 5px;
	margin-top: 10px;
}

.rr-rep-pill {
	background: #eef5fa;
	border: 1px solid #d6e8f2;
	border-radius: 999px;
	color: #0f4f75;
	font-size: 12px;
	padding: 3px 8px;
}

.rr-rep-address {
	color: #475569;
	font-size: 13px;
	line-height: 1.4;
	margin: 10px 0 0;
}

.rr-rep-view {
	align-self: flex-start;
	background: #005487;
	border: 1px solid #005487;
	border-radius: 4px;
	color: #ffffff;
	cursor: pointer;
	font: inherit;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.2;
	padding: 9px 12px;
}

.rr-rep-view:hover,
.rr-rep-view:focus {
	background: #003f66;
	border-color: #003f66;
	outline: 2px solid #67b7dc;
	outline-offset: 2px;
}

.rr-drawer-backdrop,
.rr-rep-drawer {
	display: none;
}

.rr-drawer-open,
.rr-drawer-open body {
	overflow: hidden;
}

@media (max-width: 1024px) {
	.rheonics-representatives-map {
		aspect-ratio: 4 / 3;
		height: auto;
		min-height: 480px;
	}

	.rr-region-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.rr-filters {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.rr-filter-reset {
		justify-self: start;
	}
}

@media (max-width: 600px) {
	.rheonics-representatives-map {
		aspect-ratio: 1 / 0.78;
		min-height: 310px;
	}

	.rr-map-card {
		display: none !important;
	}

	.rheonics-representatives-list {
		gap: 24px;
		margin-top: 18px;
	}

	.rr-filters {
		grid-template-columns: 1fr;
	}

	.rr-filter-reset {
		justify-self: stretch;
	}

	.rr-region-grid {
		grid-template-columns: 1fr;
	}

	.rr-rep-card {
		min-height: 0;
		padding: 14px;
	}

	.rr-rep-card:hover {
		transform: none;
	}

	.rr-drawer-backdrop {
		background: rgba(15, 23, 42, 0.34);
		inset: 0;
		position: fixed;
		z-index: 100000;
	}

	.rr-drawer-backdrop.is-visible {
		display: block;
	}

	.rr-rep-drawer {
		background: #ffffff;
		border-radius: 12px 12px 0 0;
		bottom: 0;
		box-shadow: 0 -16px 36px rgba(15, 23, 42, 0.2);
		box-sizing: border-box;
		display: block;
		left: 0;
		max-height: min(82vh, 680px);
		opacity: 0;
		overflow: auto;
		position: fixed;
		right: 0;
		transform: translateY(100%);
		transition: opacity 200ms ease, transform 200ms ease;
		z-index: 100001;
	}

	.rr-rep-drawer.is-visible {
		opacity: 1;
		transform: translateY(0);
	}

	.rr-rep-drawer[hidden] {
		display: none;
	}

	.rr-drawer-close {
		background: transparent;
		border: 0;
		color: #005487;
		cursor: pointer;
		display: block;
		font: inherit;
		font-size: 14px;
		font-weight: 700;
		margin: 10px 12px 0 auto;
		padding: 8px;
	}

	.rr-drawer-close:focus {
		outline: 2px solid #67b7dc;
		outline-offset: 2px;
	}

	.rr-rep-drawer .rr-popup {
		padding: 18px 20px 24px;
	}

	.rr-rep-drawer .rr-popup-head {
		margin-bottom: 16px;
	}

	.rr-rep-drawer .rr-popup-group {
		margin-top: 16px;
	}

	.rr-rep-drawer .rr-popup-company {
		margin-top: 22px;
		padding-top: 18px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.rr-country,
	.rr-marker,
	.rr-rep-card,
	.rr-map-card,
	.rr-rep-drawer {
		transition: none;
	}
}
