/* =========================================================
   Harmony - Section Revendeurs (store locator)
   Scoped to .harmony-revendeurs-section to avoid any
   conflict with global theme / Elementor / WooCommerce styles.
   ========================================================= */

.elementor-element-4d4561a,
.elementor-element-rv0cardcol {
	flex: 0 0 100% !important;
	max-width: 100% !important;
}

.elementor-element-9deb118 {
	padding-bottom: 8px !important;
}

.elementor-element-ef0e85d {
	padding-top: 12px !important;
	padding-bottom: 18px !important;
}

.elementor-element-rv0cardsec {
	padding-top: 18px !important;
}

.harmony-revendeurs-section {
	--hr-orange: var(--harmony-orange, #F18C08);
	--hr-accent: #F5AA2B;
	--hr-dark: var(--harmony-dark, #222222);
	--hr-bg: #f7f5f2;
	--hr-border: #ece7e0;
	--hr-radius: 18px;
	--hr-radius-sm: 12px;
	font-family: inherit;
	max-width: 100%;
	box-sizing: border-box;
}

.harmony-revendeurs-section *,
.harmony-revendeurs-section *::before,
.harmony-revendeurs-section *::after {
	box-sizing: border-box;
}

/* ---------------------------------------------------------
   Search + filter bar
   --------------------------------------------------------- */
.harmony-rv-tools {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 14px;
	max-width: 480px;
	margin-top: 28px;
	margin-bottom: 20px;
}

.harmony-rv-search {
	display: flex;
	align-items: center;
	width: 100%;
	height: 56px;
	background: #ffffff;
	border: 1px solid var(--hr-border);
	border-radius: var(--hr-radius-sm);
	overflow: hidden;
	box-shadow: 0 4px 18px rgba(34, 34, 34, 0.05);
	transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.harmony-rv-search:focus-within {
	border-color: var(--hr-accent);
	box-shadow: 0 4px 18px rgba(245, 170, 43, 0.18);
}

.harmony-rv-search input[type="text"] {
	flex: 1;
	height: 100%;
	border: none;
	outline: none;
	padding: 0 20px;
	font-size: 15px;
	background: transparent;
	color: var(--hr-dark);
}

.harmony-rv-search input[type="text"]::placeholder {
	color: #aaa;
}

.harmony-revendeurs-section .harmony-rv-search button[type="submit"] {
	border: none !important;
	background: var(--hr-dark) !important;
	background-color: var(--hr-dark) !important;
	border-color: var(--hr-dark) !important;
	color: #fff !important;
	-webkit-text-fill-color: #fff !important;
	width: 56px;
	height: 100%;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	cursor: pointer;
	font-size: 15px;
	line-height: 1;
	transition: background 0.2s ease, color 0.2s ease;
}

.harmony-revendeurs-section .harmony-rv-search button[type="submit"] i {
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff !important;
	fill: #fff !important;
	stroke: #fff !important;
	-webkit-text-fill-color: #fff !important;
}

.harmony-revendeurs-section .harmony-rv-search button[type="submit"]:hover {
	background: var(--hr-accent) !important;
	background-color: var(--hr-accent) !important;
	border-color: var(--hr-accent) !important;
	color: var(--hr-dark) !important;
	-webkit-text-fill-color: var(--hr-dark) !important;
}

.harmony-revendeurs-section .harmony-rv-search button[type="submit"]:hover i {
	color: var(--hr-dark) !important;
	fill: var(--hr-dark) !important;
	stroke: var(--hr-dark) !important;
	-webkit-text-fill-color: var(--hr-dark) !important;
}

.harmony-rv-locate {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	height: 56px;
	border: 1px solid var(--hr-accent);
	background: rgba(245, 170, 43, 0.06);
	color: var(--hr-dark);
	border-radius: var(--hr-radius-sm);
	padding: 0 22px;
	font-size: 14px;
	font-weight: 600;
	white-space: nowrap;
	cursor: pointer;
	transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.harmony-rv-locate i {
	color: var(--hr-accent);
	transition: color 0.2s ease;
}

.harmony-rv-locate:hover {
	background: var(--hr-accent);
	border-color: var(--hr-accent);
	transform: translateY(-1px);
}

.harmony-rv-locate:hover i {
	color: var(--hr-dark);
}

.harmony-rv-region {
	position: relative;
	width: 100%;
	height: 56px;
}

.harmony-rv-region select {
	width: 100%;
	height: 100%;
	padding: 0 44px 0 20px;
	border-radius: var(--hr-radius-sm);
	border: 1px solid var(--hr-border);
	background: #ffffff !important;
	background-image: none !important;
	font-size: 15px;
	color: var(--hr-dark);
	box-shadow: 0 4px 18px rgba(34, 34, 34, 0.05);
	-webkit-appearance: none !important;
	-moz-appearance: none !important;
	appearance: none !important;
	cursor: pointer;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.harmony-rv-region select:focus {
	outline: none;
	border-color: var(--hr-accent);
	box-shadow: 0 4px 18px rgba(245, 170, 43, 0.18);
}

/* Hide any extra arrow/icon injected by the theme's custom select styling
   (.fill_inited) so only our own ::after chevron remains visible */
.harmony-rv-region select::-ms-expand {
	display: none;
}

.harmony-rv-region .select_container {
	position: static;
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	border: none;
	background: transparent;
}

.harmony-rv-region .select_container::after,
.harmony-rv-region .select_container::before {
	display: none !important;
}

.harmony-rv-region::after {
	content: "";
	position: absolute;
	right: 20px;
	top: 50%;
	width: 9px;
	height: 9px;
	border-right: 2px solid var(--hr-dark);
	border-bottom: 2px solid var(--hr-dark);
	transform: translateY(-65%) rotate(45deg);
	pointer-events: none;
	z-index: 1;
}

.harmony-rv-status {
	font-size: 13px;
	color: #999;
	min-height: 18px;
}

/* ---------------------------------------------------------
   Map
   --------------------------------------------------------- */
.harmony-rv-map-wrap {
	position: relative;
	border-radius: var(--hr-radius);
	overflow: hidden;
	min-height: 560px;
	background: var(--hr-bg);
	border: 1px solid var(--hr-border);
	box-shadow: 0 12px 40px rgba(34, 34, 34, 0.08);
}

.harmony-rv-map {
	width: 100%;
	height: 560px;
	border-radius: var(--hr-radius);
}

.harmony-rv-map-alert {
	position: absolute;
	left: 18px;
	right: 18px;
	bottom: 18px;
	z-index: 500;
	pointer-events: none;
}

.harmony-rv-map-alert .harmony-rv-distance-alert {
	box-shadow: 0 12px 30px rgba(34, 34, 34, 0.16);
	background: rgba(255, 255, 255, 0.94);
	backdrop-filter: blur(8px);
}

/* Leaflet attribution: keep it subtle and on-brand */
.harmony-rv-map .leaflet-control-attribution {
	background: rgba(255, 255, 255, 0.8);
	color: #999;
	font-size: 10px;
	border-radius: 6px 0 0 0;
}

.harmony-rv-map .leaflet-control-attribution a {
	color: #999;
}

/* Custom marker */
.harmony-rv-marker {
	position: relative;
	width: 34px;
	height: 34px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--hr-accent);
	border: 3px solid #ffffff;
	border-radius: 50%;
	box-shadow:
		0 3px 10px rgba(34, 34, 34, 0.22),
		0 0 0 6px rgba(245, 170, 43, 0.16);
	color: #fff;
	font-size: 14px;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.harmony-rv-marker:hover {
	transform: scale(1.08);
	box-shadow:
		0 4px 14px rgba(34, 34, 34, 0.28),
		0 0 0 8px rgba(245, 170, 43, 0.22);
}

.harmony-rv-marker.is-active {
	width: 42px;
	height: 42px;
	background: var(--hr-dark);
	box-shadow:
		0 4px 14px rgba(34, 34, 34, 0.3),
		0 0 0 8px rgba(34, 34, 34, 0.12);
}

/* Leaflet popup styling */
.harmony-rv-map .leaflet-popup-content-wrapper {
	border-radius: var(--hr-radius);
	padding: 0;
	overflow: hidden;
	box-shadow: 0 14px 40px rgba(34, 34, 34, 0.18);
}

.harmony-rv-map .leaflet-popup-content {
	margin: 0;
	width: 280px !important;
}

.harmony-rv-map .leaflet-popup-tip {
	box-shadow: 0 6px 14px rgba(34, 34, 34, 0.12);
}

.harmony-rv-popup img {
	width: 100%;
	height: 130px;
	object-fit: cover;
	display: block;
	background: var(--hr-bg);
}

.harmony-rv-popup-body {
	padding: 18px 20px;
}

.harmony-rv-popup-body h4 {
	margin: 0 0 8px;
	font-size: 18px;
	font-weight: 700;
	color: var(--hr-dark);
}

.harmony-rv-popup-body .harmony-rv-addr {
	font-size: 13px;
	color: #888;
	margin: 0 0 10px;
	line-height: 1.5;
}

.harmony-rv-popup-body .harmony-rv-phone {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	color: var(--hr-dark);
	margin-bottom: 6px;
}

.harmony-rv-popup-body .harmony-rv-status-row {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	margin-bottom: 14px;
}

.harmony-rv-popup-body .harmony-rv-status-row .dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #4caf50;
	flex-shrink: 0;
	box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.18);
}

.harmony-rv-popup-body .harmony-rv-status-row.closed .dot {
	background: #c0392b;
	box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.16);
}

.harmony-rv-popup-body .harmony-rv-cta {
	display: block;
	text-align: center;
	background: var(--hr-accent);
	color: var(--hr-dark);
	font-weight: 700;
	font-size: 13px;
	letter-spacing: 0.06em;
	padding: 13px 16px;
	border-radius: var(--hr-radius-sm);
	text-decoration: none;
	transition: background 0.2s ease, color 0.2s ease;
}

.harmony-rv-popup-body .harmony-rv-cta:hover {
	background: var(--hr-dark);
	color: #fff;
}

/* ---------------------------------------------------------
   Nearby resellers cards
   --------------------------------------------------------- */
.harmony-rv-cards-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 24px;
	gap: 12px;
}

.harmony-rv-cards-header a {
	display: flex;
	align-items: center;
	gap: 8px;
	font-weight: 700;
	color: var(--hr-dark);
	text-decoration: none;
	white-space: nowrap;
}

.harmony-rv-cards {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
}

.harmony-rv-shortcode-slider {
	position: relative;
	width: 100%;
	padding: 0;
}

.harmony-rv-slider-title {
	margin: 0 0 22px;
	font-size: clamp(24px, 3vw, 38px);
	line-height: 1.1;
	color: var(--hr-dark);
}

.harmony-rv-cards--slider {
	display: flex;
	grid-template-columns: none;
	gap: 20px;
	overflow-x: auto;
	overflow-y: hidden;
	padding: 2px 4px 10px;
	scroll-snap-type: x mandatory;
	scroll-padding-left: 4px;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	-ms-overflow-style: none;
}

.harmony-rv-cards--slider .harmony-rv-card {
	flex: 0 0 calc((100% - 60px) / 4);
	scroll-snap-align: start;
}

.harmony-rv-cards--slider .harmony-rv-empty,
.harmony-rv-cards--slider .harmony-rv-distance-alert,
.harmony-rv-cards--slider .harmony-rv-show-all {
	flex: 0 0 100%;
}

.harmony-rv-cards--slider::-webkit-scrollbar {
	display: none;
	width: 0;
	height: 0;
}

.harmony-rv-slider-controls {
	pointer-events: none;
	position: absolute;
	left: -62px;
	right: -62px;
	top: 0;
	bottom: 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	z-index: 2;
}

.harmony-rv-slider-prev,
.harmony-rv-slider-next {
	pointer-events: auto;
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border: 1px solid var(--hr-border) !important;
	border-radius: 50%;
	background: #ffffff !important;
	color: var(--hr-dark) !important;
	font-size: 0;
	line-height: 1;
	box-shadow: 0 8px 24px rgba(34, 34, 34, 0.12);
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.harmony-rv-slider-prev:hover,
.harmony-rv-slider-next:hover {
	background: var(--hr-accent) !important;
	border-color: var(--hr-accent) !important;
	color: var(--hr-dark) !important;
	transform: translateY(-1px);
}

.harmony-rv-slider-prev::before,
.harmony-rv-slider-prev::after,
.harmony-rv-slider-next::before,
.harmony-rv-slider-next::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	display: block;
	color: currentColor;
}

.harmony-rv-slider-prev::before,
.harmony-rv-slider-next::before {
	width: 18px;
	height: 4px;
	border-radius: 999px;
	background: currentColor;
	transform: translate(-50%, -50%);
}

.harmony-rv-slider-prev::after,
.harmony-rv-slider-next::after {
	width: 11px;
	height: 11px;
	border-top: 4px solid currentColor;
	border-radius: 2px;
}

.harmony-rv-slider-prev::after {
	border-left: 4px solid currentColor;
	transform: translate(-66%, -50%) rotate(-45deg);
}

.harmony-rv-slider-next::after {
	border-right: 4px solid currentColor;
	transform: translate(-34%, -50%) rotate(45deg);
}

.harmony-rv-card {
	display: flex;
	flex-direction: column;
	background: #ffffff;
	border-radius: var(--hr-radius);
	overflow: hidden;
	border: 1px solid var(--hr-border);
	box-shadow: 0 6px 24px rgba(34, 34, 34, 0.05);
	min-width: 0;
	transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.harmony-rv-distance-alert {
	grid-column: 1 / -1;
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 18px 20px;
	background: rgba(245, 170, 43, 0.1);
	border: 1px solid rgba(245, 170, 43, 0.35);
	border-radius: var(--hr-radius-sm);
	color: var(--hr-dark);
	font-size: 14px;
	line-height: 1.5;
}

.harmony-rv-distance-alert strong {
	font-size: 15px;
	font-weight: 700;
}

.harmony-rv-show-all {
	grid-column: 1 / -1;
	justify-self: center;
	min-width: 220px;
	border: 1px solid var(--hr-dark) !important;
	background: var(--hr-dark) !important;
	color: #ffffff !important;
	border-radius: var(--hr-radius-sm);
	padding: 15px 26px;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
	transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.harmony-rv-show-all:hover {
	background: var(--hr-accent) !important;
	border-color: var(--hr-accent) !important;
	color: var(--hr-dark) !important;
	transform: translateY(-1px);
}

.harmony-rv-card:hover {
	transform: translateY(-4px);
	border-color: transparent;
	box-shadow: 0 18px 40px rgba(34, 34, 34, 0.12);
}

.harmony-rv-card img,
.harmony-rv-card > div[style*="background"] {
	width: 100%;
	aspect-ratio: 4 / 3;
	height: auto;
	object-fit: cover;
	display: block;
	background: var(--hr-bg);
	transition: transform 0.4s ease;
}

.harmony-rv-card:hover img {
	transform: scale(1.04);
}

.harmony-rv-card-body {
	padding: 16px 18px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex: 1;
}

.harmony-rv-card-body .harmony-rv-card-info {
	flex: 1 1 auto;
	min-width: 0;
}

.harmony-rv-card-body .harmony-rv-card-info h4 {
	margin: 0 0 6px;
	font-size: 16px;
	font-weight: 700;
	color: var(--hr-dark);
	overflow-wrap: break-word;
	line-height: 1.3;
}

.harmony-rv-card-body .harmony-rv-card-dist {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	color: #999;
}

.harmony-rv-card-body .harmony-rv-card-dist i {
	color: var(--hr-accent);
}

.harmony-rv-card-link {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	flex-shrink: 0;
	border-radius: var(--hr-radius-sm);
	background: var(--hr-dark);
	color: #fff;
	text-decoration: none;
	transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.harmony-rv-card-link-icon {
	position: relative;
	display: block;
	width: 20px;
	height: 20px;
	color: inherit;
	font-size: 0;
	line-height: 0;
	transform: none;
}

.harmony-rv-card-link-icon::before,
.harmony-rv-card-link-icon::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	display: block;
}

.harmony-rv-card-link-icon::before {
	width: 18px;
	height: 4px;
	border-radius: 999px;
	background: currentColor;
	transform: translate(-50%, -50%);
}

.harmony-rv-card-link-icon::after {
	width: 11px;
	height: 11px;
	border-top: 4px solid currentColor;
	border-right: 4px solid currentColor;
	border-radius: 2px;
	transform: translate(-34%, -50%) rotate(45deg);
}

.harmony-rv-card-link:hover {
	background: var(--hr-accent);
	color: var(--hr-dark);
	transform: scale(1.06);
}

/* ---------------------------------------------------------
   Map zoom controls (Leaflet default, restyled)
   --------------------------------------------------------- */
.harmony-rv-map .leaflet-control-zoom {
	border: none !important;
	box-shadow: 0 4px 14px rgba(34, 34, 34, 0.12) !important;
	border-radius: 10px !important;
	overflow: hidden;
}

.harmony-rv-map .leaflet-control-zoom a {
	border-radius: 0 !important;
	color: var(--hr-dark) !important;
	border-color: var(--hr-border) !important;
}

.harmony-rv-map .leaflet-control-zoom a:hover {
	background: var(--hr-bg) !important;
	color: var(--hr-accent) !important;
}

/* ---------------------------------------------------------
   Empty state
   --------------------------------------------------------- */
.harmony-rv-empty {
	padding: 40px;
	text-align: center;
	color: #999;
	background: #ffffff;
	border: 1px solid var(--hr-border);
	border-radius: var(--hr-radius);
}

/* ---------------------------------------------------------
   Responsive
   --------------------------------------------------------- */
@media (max-width: 1024px) {
	.harmony-rv-cards {
		grid-template-columns: repeat(2, 1fr);
	}
	.harmony-rv-cards--slider .harmony-rv-card {
		flex-basis: calc((100% - 20px) / 2);
	}
	.harmony-rv-slider-controls {
		left: -52px;
		right: -52px;
	}
	.harmony-rv-map,
	.harmony-rv-map-wrap {
		height: 400px;
		min-height: 400px;
	}
}

@media (max-width: 767px) {
	.harmony-rv-shortcode-slider {
		padding: 0 44px;
	}
	.harmony-rv-cards--slider .harmony-rv-card {
		flex-basis: 100%;
	}
	.harmony-rv-slider-controls {
		left: 0;
		right: 0;
	}
	.harmony-rv-tools {
		max-width: 100%;
	}
	.harmony-rv-cards {
		grid-template-columns: 1fr;
	}
	.harmony-rv-map,
	.harmony-rv-map-wrap {
		height: 340px;
		min-height: 340px;
	}
	.harmony-rv-map-alert {
		left: 12px;
		right: 12px;
		bottom: 12px;
	}
	.harmony-rv-card-body {
		flex-wrap: wrap;
	}
	.harmony-rv-slider-prev,
	.harmony-rv-slider-next {
		width: 38px;
		height: 38px;
		font-size: 20px;
	}
}
