/**
 * Kubota Europe — Dealer map element (`vc_kbeu_dealer_map`).
 *
 * The Find a dealer finder of the Figma design (node 5168-2264, a 1617px
 * frame inside the 2560 artboard): a filter header (place search box with a
 * teal icon disc, category pill), the "Choose your dealer" line, then the
 * numbered dealer list on the left (teal scrollbar, thin separators) and the
 * Google map on the right, 747px tall with 40px right corners. Sizes are
 * Figma-max `clamp()`s; the block fills its WPBakery column.
 *
 * The category pill is the shared filter bar's (`kbeu-fb__*`, the form carries
 * `kbeu-fb`): only the design's deltas — grey outline, ink label, teal chevron —
 * are redefined here. The map's own controls (numbered pins, zoom) are styled
 * here too: the markers are HTML (`AdvancedMarkerElement`).
 *
 * The selected dealer (Figma 4942-3387, "Buscador" selected state): its row
 * turns #f5f5f5 and a card of the same grey covers the left 607/983 of the map —
 * name, address, the "Contact us" button, a divider, then Contact details /
 * Services / Opening hours. Under 861px it sits between the map and the list.
 * "Contact us" opens a modal `<dialog>` holding the contact form (no design: the
 * form's compact `--card` look).
 */

.kbeu-dm {
	--kbeu-dm-teal: var( --kbeu-color-teal );
	--kbeu-dm-orange: #dc4506;
	--kbeu-dm-ink: #050b20;
	--kbeu-dm-line: rgba( 5, 11, 32, 0.2 );
	--kbeu-dm-chip: rgba( 5, 11, 32, 0.3 );
	--kbeu-dm-border: #dbdbdb;
	--kbeu-dm-radius: 15px;
	--kbeu-dm-fs: clamp( 15px, 0.78vw, 20px );
	--kbeu-dm-icon: clamp( 32px, 1.62vw, 41px );
	--kbeu-dm-map-h: clamp( 420px, 29.2vw, 747px );
	--kbeu-dm-map-radius: clamp( 20px, 1.56vw, 40px );
	--kbeu-dm-item-x: clamp( 20px, 1.64vw, 42px );
	--kbeu-dm-item-y: clamp( 20px, 1.17vw, 30px );
	--kbeu-dm-card-bg: #f5f5f5;
	--kbeu-dm-card-top: clamp( 24px, 1.76vw, 45px );
	--kbeu-dm-card-x: clamp( 20px, 2.42vw, 62px );

	/* Shared pill tokens, resized to this design (306 × 50 @2560). */
	--kbeu-fb-h: clamp( 40px, 1.95vw, 50px );
	--kbeu-fb-pill-w: clamp( 200px, 11.95vw, 306px );
	--kbeu-fb-fs: var( --kbeu-dm-fs );
	--kbeu-fb-radius: var( --kbeu-dm-radius );
	--kbeu-fb-ink: var( --kbeu-dm-ink );

	position: relative;
	box-sizing: border-box;
	width: 100%;
	font-family: var( --kbeu-font-principal );
	font-size: var( --kbeu-dm-fs );
	line-height: 1.48;
	color: var( --kbeu-dm-ink );
}

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

/* --- Filter header ----------------------------------------------------------- */

.kbeu-dm .kbeu-dm__filter {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: clamp( 14px, 1.3vw, 33px );
	padding: 0 0 clamp( 28px, 2.3vw, 58px );
}

.kbeu-dm__field {
	display: flex;
	align-items: center;
	gap: clamp( 10px, 0.55vw, 14px );
	min-width: 0;
}

/* The search group is 435px of the 1617px frame; it does not grow. */
.kbeu-dm__field--search {
	flex: 0 1 clamp( 260px, 26.9%, 435px );
	max-width: 100%;
}

.kbeu-dm__field--category {
	flex: 0 1 auto;
}

.kbeu-dm__icon {
	flex: 0 0 auto;
	width: var( --kbeu-dm-icon );
	height: var( --kbeu-dm-icon );
}

.kbeu-dm__icon img {
	display: block;
	width: 100%;
	height: 100%;
}

/* The combobox: the input plus its own suggestion list. */
.kbeu-dm__combo {
	position: relative;
	flex: 1 1 auto;
	min-width: 0;
}

/* `!important`s against Impreza's global `input[type=search]` rules (min-height,
   line-height, padding) and its focused-input paint (alternate background +
   ring on `input:not([type=submit]):focus`). */
.kbeu-dm .kbeu-dm__input {
	display: block;
	width: 100%;
	height: var( --kbeu-fb-h );
	min-height: 0 !important;
	margin: 0;
	padding: 0 clamp( 16px, 1.1vw, 28px ) !important;
	border: 1px solid var( --kbeu-dm-border );
	border-radius: var( --kbeu-dm-radius );
	background: #fff;
	font-family: inherit;
	font-size: var( --kbeu-dm-fs );
	font-weight: 400;
	line-height: 1.2 !important;
	color: var( --kbeu-dm-ink );
	box-shadow: none;
	outline: none;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.kbeu-dm .kbeu-dm__input:focus {
	border-color: var( --kbeu-dm-teal );
	background: #fff;
	color: var( --kbeu-dm-ink );
	box-shadow: 0 0 0 3px rgba( 0, 168, 169, 0.2 );
}

.kbeu-dm .kbeu-dm__input::placeholder {
	color: var( --kbeu-dm-ink );
	opacity: 1;
}

.kbeu-dm .kbeu-dm__input::-webkit-search-cancel-button {
	-webkit-appearance: none;
	appearance: none;
}

.kbeu-dm__suggestions {
	position: absolute;
	top: calc( 100% + 8px );
	left: 0;
	right: 0;
	z-index: 31;
	margin: 0;
	padding: 6px 0;
	list-style: none;
	border: 1px solid var( --kbeu-dm-border );
	border-radius: var( --kbeu-dm-radius );
	background: #fff;
	box-shadow: 0 12px 30px rgba( 5, 11, 32, 0.12 );
	max-height: 320px;
	overflow-y: auto;
}

.kbeu-dm__suggestions[hidden] {
	display: none;
}

.kbeu-dm__suggestion {
	margin: 0;
	padding: 10px clamp( 16px, 1.1vw, 28px );
	cursor: pointer;
	line-height: 1.3;
}

.kbeu-dm__suggestion--empty {
	cursor: default;
	color: var( --kbeu-color-gray );
}

.kbeu-dm__suggestion[aria-selected='true'],
.kbeu-dm__suggestion:hover {
	background: rgba( 0, 168, 169, 0.08 );
}

.kbeu-dm__suggestion-main {
	display: block;
	font-weight: 500;
}

.kbeu-dm__suggestion-secondary {
	display: block;
	font-size: 0.85em;
	color: var( --kbeu-color-gray );
}

/* The category pill: the design draws it outlined in grey with the label in
   ink and only the chevron teal (the shared bar's is teal all over). */
.kbeu-dm .kbeu-fb__facet .kbeu-fb__pill {
	justify-content: space-between;
	border-color: var( --kbeu-dm-border );
	color: var( --kbeu-dm-ink );
	font-weight: 400;
	padding: 0 clamp( 14px, 0.9vw, 24px ) 0 clamp( 16px, 1.1vw, 28px );
}

.kbeu-dm .kbeu-fb__facet .kbeu-fb__pill:hover,
.kbeu-dm .kbeu-fb__facet .kbeu-fb__pill:focus-visible,
.kbeu-dm .kbeu-fb__facet .kbeu-fb__pill[aria-expanded='true'] {
	border-color: var( --kbeu-dm-teal );
	color: var( --kbeu-dm-ink );
}

.kbeu-dm .kbeu-fb__facet .kbeu-fb__chevron {
	color: var( --kbeu-dm-teal );
}

.kbeu-dm .kbeu-fb__facet.is-set .kbeu-fb__pill {
	border-color: var( --kbeu-dm-teal );
	background: var( --kbeu-dm-teal );
	color: #fff;
}

.kbeu-dm .kbeu-fb__facet.is-set .kbeu-fb__chevron {
	color: #fff;
}

/* The no-JS submit (the design has none: Enter searches). */
.kbeu-dm .kbeu-dm__apply[type='submit'] {
	height: var( --kbeu-fb-h );
	padding: 0 clamp( 16px, 1.1vw, 28px ) !important;
	border: 1px solid var( --kbeu-dm-teal ) !important;
	border-radius: var( --kbeu-dm-radius ) !important;
	background: var( --kbeu-dm-teal ) !important;
	color: #fff !important;
	font-family: inherit;
	font-size: var( --kbeu-dm-fs ) !important;
	line-height: 1 !important;
	cursor: pointer;
}

.kbeu-dm.is-enhanced .kbeu-dm__apply {
	display: none;
}

/* --- Heading ------------------------------------------------------------------- */

.kbeu-dm .kbeu-dm__heading {
	margin: 0 0 clamp( 12px, 0.7vw, 18px );
	font-family: inherit;
	font-size: var( --kbeu-dm-fs );
	font-weight: 400;
	line-height: 1.48;
	color: var( --kbeu-dm-ink );
}

/* --- Body: list + map ---------------------------------------------------------- */

.kbeu-dm__body {
	display: grid;
	grid-template-columns: 634fr 983fr;
	align-items: start;
	border-top: 1px solid var( --kbeu-dm-line );
}

/* Explicit cells: the card shares the map's. */
.kbeu-dm__panel {
	--kbeu-dm-panel-pad: clamp( 10px, 0.7vw, 18px );

	grid-column: 1;
	grid-row: 1;
	position: relative;
	height: var( --kbeu-dm-map-h );
	overflow-y: auto;
	overflow-x: hidden;
	padding-right: var( --kbeu-dm-panel-pad );
	scrollbar-width: thin;
	scrollbar-color: var( --kbeu-dm-teal ) transparent;
}

.kbeu-dm__panel::-webkit-scrollbar {
	width: 8px;
}

.kbeu-dm__panel::-webkit-scrollbar-track {
	background: transparent;
}

.kbeu-dm__panel::-webkit-scrollbar-thumb {
	border-radius: 30px;
	background: var( --kbeu-dm-teal );
}

/* `isolation` keeps Google's own z-indexes inside the map, under the card. */
.kbeu-dm__map {
	grid-column: 2;
	grid-row: 1;
	isolation: isolate;
	height: var( --kbeu-dm-map-h );
	border-radius: 0 var( --kbeu-dm-map-radius ) var( --kbeu-dm-map-radius ) 0;
	overflow: hidden;
	background: var( --kbeu-color-surface );
}

/* Status line (loading, counts, errors). */
.kbeu-dm .kbeu-dm__status {
	margin: 0;
	padding: var( --kbeu-dm-item-y ) var( --kbeu-dm-item-x );
	font-size: 0.85em;
	color: var( --kbeu-color-gray );
}

.kbeu-dm .kbeu-dm__status:empty {
	display: none;
}

.kbeu-dm .kbeu-dm__status.is-error {
	color: var( --kbeu-color-orange );
}

/* --- Dealer list --------------------------------------------------------------- */

.kbeu-dm .kbeu-dm__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.kbeu-dm.is-loading .kbeu-dm__list {
	opacity: 0.5;
	transition: opacity 0.2s ease;
}

.kbeu-dm .kbeu-dm__item {
	position: relative;
	margin: 0;
	padding: var( --kbeu-dm-item-y ) var( --kbeu-dm-item-x );
	border-bottom: 1px solid var( --kbeu-dm-line );
	transition: background-color 0.2s ease;
}

/* The selected dealer's row: the card's grey, running on into the card (over
   the panel's right padding) as the design's band does. */
.kbeu-dm .kbeu-dm__item.is-active {
	background: var( --kbeu-dm-card-bg );
}

@media ( min-width: 861px ) {
	.kbeu-dm.has-card .kbeu-dm__item.is-active {
		margin-right: calc( -1 * var( --kbeu-dm-panel-pad ) );
		padding-right: calc( var( --kbeu-dm-item-x ) + var( --kbeu-dm-panel-pad ) );
	}
}

.kbeu-dm__item-head {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: clamp( 8px, 0.4vw, 10px );
}

.kbeu-dm__num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: clamp( 26px, 1.25vw, 32px );
	height: clamp( 26px, 1.25vw, 32px );
	border-radius: 50%;
	background: var( --kbeu-dm-teal );
	color: #fff;
	font-size: clamp( 14px, 0.78vw, 20px );
	line-height: 1;
}

.kbeu-dm__distance {
	font-size: clamp( 14px, 0.66vw, 17px );
}

.kbeu-dm__distance:empty {
	display: none;
}

.kbeu-dm__area[hidden] {
	display: none;
}

.kbeu-dm__area {
	display: inline-block;
	padding: 2px 10px;
	border-radius: 14px;
	background: var( --kbeu-dm-orange );
	color: #fff;
	font-size: clamp( 12px, 0.55vw, 14px );
	line-height: 1.6;
}

.kbeu-dm .kbeu-dm__name {
	margin: clamp( 8px, 0.55vw, 14px ) 0 0;
	font-family: inherit;
	font-size: clamp( 18px, 0.94vw, 24px );
	font-weight: 700;
	line-height: 1.48;
	color: #000;
}

.kbeu-dm__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: clamp( 12px, 1vw, 24px );
}

.kbeu-dm .kbeu-dm__address {
	margin: 0;
	font-size: var( --kbeu-dm-fs );
	line-height: 1.48;
	color: var( --kbeu-dm-ink );
}

/* The arrow: a button of its own (opens / closes the dealer's card), bare. */
.kbeu-dm .kbeu-dm__toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 36px;
	height: 36px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var( --kbeu-dm-ink );
	cursor: pointer;
	transition: background-color 0.2s ease, transform 0.2s ease;
}

.kbeu-dm .kbeu-dm__toggle:hover,
.kbeu-dm .kbeu-dm__toggle:focus-visible {
	background: rgba( 0, 168, 169, 0.1 );
	outline: none;
}

.kbeu-dm .kbeu-dm__toggle:focus-visible {
	box-shadow: 0 0 0 3px rgba( 0, 168, 169, 0.35 );
}

.kbeu-dm__arrow {
	width: 16px;
	height: 15px;
	transition: transform 0.2s ease;
}


.kbeu-dm .kbeu-dm__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: clamp( 10px, 0.62vw, 16px ) 0 0;
	padding: 0;
	list-style: none;
}

.kbeu-dm .kbeu-dm__chips:empty {
	display: none;
}

.kbeu-dm .kbeu-dm__chip {
	margin: 0;
	padding: 0 13px;
	border: 1px solid var( --kbeu-dm-chip );
	border-radius: 14px;
	font-size: clamp( 12px, 0.55vw, 14px );
	line-height: 28px;
	text-transform: capitalize;
	white-space: nowrap;
}

.kbeu-dm .kbeu-dm__noscript {
	margin: 0;
	padding: var( --kbeu-dm-item-y ) var( --kbeu-dm-item-x );
	color: var( --kbeu-color-gray );
}

/* --- The selected dealer's card ------------------------------------------------ */

/* Over the map's left side (607 of its 983px), as tall as the map, square
   corners; it scrolls on its own when the content does not fit. */
.kbeu-dm .kbeu-dm__card {
	grid-column: 2;
	grid-row: 1;
	justify-self: start;
	position: relative;
	z-index: 2;
	width: clamp( min( 100%, 300px ), 61.75%, 100% );
	height: var( --kbeu-dm-map-h );
	margin: 0;
	padding: var( --kbeu-dm-card-top ) var( --kbeu-dm-card-x );
	overflow-y: auto;
	background: var( --kbeu-dm-card-bg );
	container: kbeu-dm-card / inline-size;
	outline: none;
	scrollbar-width: thin;
}

.kbeu-dm .kbeu-dm__card[hidden] {
	display: none;
}

/* The close buttons (card and dialog): a bare "×". */
.kbeu-dm .kbeu-dm__close {
	position: absolute;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: clamp( 36px, 1.72vw, 44px );
	height: clamp( 36px, 1.72vw, 44px );
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var( --kbeu-dm-ink );
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.kbeu-dm .kbeu-dm__close:hover,
.kbeu-dm .kbeu-dm__close:focus-visible {
	background: rgba( 5, 11, 32, 0.08 );
	outline: none;
}

.kbeu-dm .kbeu-dm__close:focus-visible {
	box-shadow: 0 0 0 3px rgba( 0, 168, 169, 0.35 );
}

.kbeu-dm .kbeu-dm__close svg {
	display: block;
	width: clamp( 18px, 0.94vw, 24px );
	height: clamp( 18px, 0.94vw, 24px );
}

.kbeu-dm .kbeu-dm__card-close {
	top: clamp( 8px, 0.4vw, 10px );
	right: clamp( 10px, 1.02vw, 26px );
}

.kbeu-dm .kbeu-dm__card-head {
	padding-right: clamp( 28px, 1.6vw, 40px );
}

.kbeu-dm .kbeu-dm__card-name {
	margin: 0;
	font-family: inherit;
	font-size: var( --kbeu-dm-fs );
	font-weight: 400;
	line-height: 1.48;
	color: #000;
}

.kbeu-dm .kbeu-dm__card-address {
	max-width: 17.5em;
	margin: clamp( 4px, 0.3vw, 7px ) 0 0;
	font-size: clamp( 14px, 0.66vw, 17px );
	line-height: 1.48;
	color: #000;
}

/* "Contact us": the shared primary button at the design's 270 × 54. */
.kbeu-dm .kbeu-dm__contact {
	min-width: clamp( 190px, 10.55vw, 270px );
	min-height: clamp( 44px, 2.11vw, 54px );
	margin-top: clamp( 12px, 0.62vw, 16px );
	padding: 0 clamp( 18px, 1.02vw, 26px );
	color: #fff;
	font-family: inherit;
	font-size: var( --kbeu-dm-fs );
	font-weight: 400;
	cursor: pointer;
}

.kbeu-dm .kbeu-dm__contact[hidden] {
	display: none;
}

/* The divider 47px under the button, then the three columns at 0 / 208 / 364
   of the 500px content: flex shares in that ratio, so a column left empty
   (hidden) gives its room to the others; wrapped when the card is narrow. */
.kbeu-dm .kbeu-dm__card-cols {
	display: flex;
	flex-wrap: wrap;
	gap: clamp( 18px, 1.05vw, 27px ) 0;
	margin-top: clamp( 24px, 1.84vw, 47px );
	padding-top: clamp( 18px, 1.05vw, 27px );
	border-top: 1px solid rgba( 0, 0, 0, 0.15 );
}

.kbeu-dm .kbeu-dm__card-col {
	flex: 208 1 0;
	min-width: 0;
	margin: 0;
	padding-right: clamp( 10px, 0.62vw, 16px );
}

.kbeu-dm .kbeu-dm__card-col--services {
	flex-grow: 156;
}

.kbeu-dm .kbeu-dm__card-col--hours {
	flex-grow: 136;
}

.kbeu-dm .kbeu-dm__card-col[hidden] {
	display: none;
}

.kbeu-dm .kbeu-dm__card-title {
	margin: 0 0 clamp( 8px, 0.62vw, 16px );
	font-family: inherit;
	font-size: clamp( 14px, 0.62vw, 16px );
	font-weight: 700;
	line-height: 1.3;
	color: #000;
}

.kbeu-dm .kbeu-dm__contacts,
.kbeu-dm .kbeu-dm__services {
	margin: 0;
	padding: 0;
	list-style: none;
}

/* Icon 22px + 14px text on a 35px line, 39px apart. */
.kbeu-dm .kbeu-dm__contact-row {
	display: flex;
	align-items: center;
	gap: clamp( 8px, 0.43vw, 11px );
	margin: 0 0 4px;
	font-size: 14px;
	line-height: 35px;
}

.kbeu-dm .kbeu-dm__contact-row[hidden] {
	display: none;
}

.kbeu-dm .kbeu-dm__contact-icon {
	flex: 0 0 auto;
	width: 22px;
	height: 22px;
}

.kbeu-dm .kbeu-dm__contact-link {
	min-width: 0;
	overflow-wrap: anywhere;
	line-height: 1.3;
	color: var( --kbeu-dm-ink );
	text-decoration: none;
}

.kbeu-dm .kbeu-dm__contact-link:hover,
.kbeu-dm .kbeu-dm__contact-link:focus-visible {
	color: var( --kbeu-dm-teal );
	text-decoration: underline;
}

.kbeu-dm .kbeu-dm__service {
	margin: 0 0 6px;
	font-size: 14px;
	line-height: 1.4;
}

.kbeu-dm .kbeu-dm__hours {
	margin: 0;
	font-size: 14px;
	line-height: 1.6;
	white-space: pre-line;
	overflow-wrap: anywhere;
}

/* Narrow card: contact details on a row of their own, then services and
   hours side by side; one column on the narrowest. */
@container kbeu-dm-card ( max-width: 520px ) {
	.kbeu-dm .kbeu-dm__card-col--contact {
		flex-basis: 100%;
	}
}

@container kbeu-dm-card ( max-width: 340px ) {
	.kbeu-dm .kbeu-dm__card-col {
		flex-basis: 100%;
	}
}

/* --- "Contact us": the dialog ------------------------------------------------- */

.kbeu-dm .kbeu-dm__dialog {
	width: min( 900px, calc( 100vw - 32px ) );
	max-width: none;
	max-height: calc( 100vh - 32px );
	max-height: calc( 100dvh - 32px );
	margin: auto;
	padding: 0;
	border: 0;
	border-radius: var( --kbeu-dm-map-radius );
	background: #fff;
	color: var( --kbeu-dm-ink );
	box-shadow: 0 24px 60px rgba( 5, 11, 32, 0.25 );
	overflow-y: auto;
	overscroll-behavior: contain;
}

.kbeu-dm .kbeu-dm__dialog::backdrop {
	background: rgba( 5, 11, 32, 0.55 );
}

/* The page behind a modal dialog does not scroll. */
html:has( .kbeu-dm__dialog[open] ) {
	overflow: hidden;
}

.kbeu-dm .kbeu-dm__dialog-inner {
	position: relative;
	padding: clamp( 24px, 2.19vw, 56px );
}

.kbeu-dm .kbeu-dm__dialog-close {
	top: clamp( 10px, 0.78vw, 20px );
	right: clamp( 10px, 0.78vw, 20px );
}

.kbeu-dm .kbeu-dm__dialog-head {
	margin: 0 0 clamp( 20px, 1.25vw, 32px );
	padding-right: clamp( 36px, 1.72vw, 44px );
}

.kbeu-dm .kbeu-dm__dialog-title {
	margin: 0;
	font-family: inherit;
	font-size: clamp( 22px, 1.25vw, 32px );
	font-weight: 700;
	line-height: 1.25;
	color: #000;
}

.kbeu-dm .kbeu-dm__dialog-address {
	margin: 6px 0 0;
	font-size: clamp( 14px, 0.66vw, 17px );
	line-height: 1.48;
	color: var( --kbeu-color-gray );
}

.kbeu-dm .kbeu-dm__dialog-address:empty {
	display: none;
}

/* A shorter message box than the contact page's. */
.kbeu-dm .kbeu-dm__form {
	--kbeu-cf-textarea-height: 120px;
}

/* --- Map controls -------------------------------------------------------------- */

/* The numbered pin: the Figma marker (27 × 36) with the number over the head. */
.kbeu-dm__pin {
	position: relative;
	width: 27px;
	height: 36px;
	cursor: pointer;
	transform-origin: 50% 100%;
	transition: transform 0.15s ease;
}

.kbeu-dm__pin img,
.kbeu-dm__pin svg {
	display: block;
	width: 100%;
	height: 100%;
}

.kbeu-dm__pin-num {
	position: absolute;
	top: 3px;
	left: 0;
	right: 0;
	text-align: center;
	font-family: var( --kbeu-font-principal );
	font-size: 15px;
	line-height: 20px;
	color: #fff;
	pointer-events: none;
}

.kbeu-dm__pin.is-active {
	transform: scale( 1.25 );
}

/* Dealers of the area beyond the list's limit: plain dots (click = zoom in there). */
.kbeu-dm__dot {
	width: 14px;
	height: 14px;
	border: 2px solid #fff;
	border-radius: 50%;
	background: var( --kbeu-dm-orange );
	box-shadow: 0 1px 3px rgba( 0, 0, 0, 0.35 );
	cursor: pointer;
	transform: translateY( 50% );
}

/* Teal +/- control (Figma "Group 69": 33 × 68, 14px corners). */
.kbeu-dm__zoom {
	display: flex;
	flex-direction: column;
	width: 33px;
	margin: 0 clamp( 14px, 1.9vw, 48px ) clamp( 14px, 1.5vw, 38px) 0;
	border-radius: 14px;
	background: var( --kbeu-dm-teal );
	overflow: hidden;
	box-shadow: 0 2px 6px rgba( 0, 0, 0, 0.2 );
}

.kbeu-dm__zoom button {
	display: block;
	width: 33px;
	height: 34px;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: #fff;
	font-size: 22px;
	line-height: 34px;
	cursor: pointer;
}

.kbeu-dm__zoom button:hover,
.kbeu-dm__zoom button:focus-visible {
	background: rgba( 255, 255, 255, 0.18 );
	outline: none;
}

.kbeu-dm__zoom button + button {
	border-top: 1px solid rgba( 255, 255, 255, 0.5 );
}

/* --- Responsive ------------------------------------------------------------------- */

@media ( max-width: 860px ) {
	.kbeu-dm__body {
		grid-template-columns: 1fr;
		border-top: 0;
	}

	/* Stacked: the map, the selected dealer's card, then the list. */
	.kbeu-dm__map {
		grid-column: 1;
		grid-row: auto;
		order: -1;
		height: clamp( 320px, 60vw, 480px );
		border-radius: var( --kbeu-dm-map-radius );
	}

	.kbeu-dm .kbeu-dm__card {
		grid-column: 1;
		grid-row: auto;
		order: 0;
		width: 100%;
		height: auto;
		margin-top: 16px;
		overflow: visible;
		border-radius: var( --kbeu-dm-map-radius );
	}

	.kbeu-dm__panel {
		grid-column: 1;
		grid-row: auto;
		order: 1;
		height: auto;
		max-height: none;
		padding-right: 0;
		overflow: visible;
	}

	.kbeu-dm .kbeu-dm__item {
		padding-left: 0;
		padding-right: 0;
	}

	.kbeu-dm .kbeu-dm__status,
	.kbeu-dm .kbeu-dm__noscript {
		padding-left: 0;
		padding-right: 0;
	}
}

@media ( max-width: 480px ) {
	.kbeu-dm__field--search,
	.kbeu-dm__field--category {
		flex: 1 1 100%;
	}

	.kbeu-dm .kbeu-fb__facet {
		flex: 1 1 auto;
	}

	.kbeu-dm .kbeu-fb__facet .kbeu-fb__pill {
		width: 100%;
	}

	.kbeu-dm .kbeu-dm__contact {
		width: 100%;
	}
}

/* Phones: the dialog takes the whole screen. */
@media ( max-width: 640px ) {
	.kbeu-dm .kbeu-dm__dialog {
		width: 100vw;
		height: 100vh;
		height: 100dvh;
		max-height: none;
		border-radius: 0;
	}
}

@media ( prefers-reduced-motion: reduce ) {
	.kbeu-dm .kbeu-dm__input,
	.kbeu-dm .kbeu-dm__item,
	.kbeu-dm .kbeu-dm__toggle,
	.kbeu-dm .kbeu-dm__close,
	.kbeu-dm__arrow,
	.kbeu-dm__pin,
	.kbeu-dm.is-loading .kbeu-dm__list {
		transition: none;
	}
}
