/* Gardex Distributors Map */

.gx-dmap {
	--gx-dmap-accent: #F2A93B;
	--gx-dmap-height: 720px;
	--gx-dmap-radius: 14px;
	display: block;
	position: relative;
	width: 100%;
	box-sizing: border-box;
}

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

/* ----- Search bar (floats above the map, centered) ----- */
.gx-dmap__search {
	position: relative;
	z-index: 2;
	max-width: 480px;
	margin: 0 auto 18px;
	padding: 0 16px;
}

.gx-dmap__form {
	display: flex;
	align-items: center;
	background: #FFFFFF;
	border: 1px solid #000000;
	border-radius: 999px;
	padding: 6px 6px 6px 22px;
	transition: border-color 0.2s ease;
}

.gx-dmap__input {
	flex: 1 1 auto;
	min-width: 0;
	background: transparent;
	border: 0;
	outline: none;
	font: inherit;
	font-size: 15px;
	color: #1F2937;
	padding: 10px 0;
}

.gx-dmap__input::placeholder {
	color: #9CA3AF;
}

.gx-dmap__submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 999px;
	border: 0;
	background: transparent;
	color: #6B7280;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease;
}

.gx-dmap__submit:hover,
.gx-dmap__submit:focus-visible {
	background: #F3F4F6;
	color: #111827;
	outline: none;
}

.gx-dmap__feedback {
	margin: 10px 4px 0;
	min-height: 1.25em;
	font-size: 14px;
	text-align: center;
	color: #6B7280;
}

.gx-dmap__feedback--ok  { color: #1F2937; }
.gx-dmap__feedback--err { color: #B91C1C; }

/* ----- Map container ----- */
.gx-dmap__map {
	width: 100%;
	height: var(--gx-dmap-height);
	border-radius: var(--gx-dmap-radius);
	overflow: hidden;
	background: #F1F2F4;
}

/* ----- Leaflet pin (we use a divIcon with raw SVG, so reset Leaflet defaults) ----- */
.gx-dmap-pin {
	background: none !important;
	border: 0 !important;
	filter: drop-shadow(0 4px 6px rgba(15, 23, 42, 0.18));
	transition: transform 0.15s ease;
}

.gx-dmap-pin:hover {
	transform: translateY(-2px);
}

/* ----- Popup ----- */
.gx-dmap-popup-wrap .leaflet-popup-content-wrapper {
	border-radius: 12px;
	padding: 4px 6px;
	box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
}

.gx-dmap-popup-wrap .leaflet-popup-content {
	margin: 12px 14px;
	font: inherit;
	color: #1F2937;
}

.gx-dmap-popup__name {
	margin: 0 0 6px;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: #111827;
}

.gx-dmap-popup__line {
	margin: 2px 0;
	font-size: 14px;
	color: #374151;
}

.gx-dmap-popup__line a {
	color: inherit;
	text-decoration: none;
	border-bottom: 1px solid #D1D5DB;
}

.gx-dmap-popup__line a:hover {
	color: #111827;
	border-bottom-color: #9CA3AF;
}

/* ----- Responsive ----- */
@media (max-width: 640px) {
	.gx-dmap__map { height: calc(var(--gx-dmap-height) * 0.7); min-height: 420px; }
}
