.hadera-map-wrapper {
	width: 100%;
	max-width: 100%;
}

.hadera-map-filters {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 12px 8px;
	margin: 16px 0;
}

.hadera-map-filter {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 14px;
	border: 1px solid #d8d8d8;
	border-radius: 20px;
	background: #fff;
	color: #333;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
	transition:
		opacity 0.25s ease,
		border-color 0.25s ease,
		background-color 0.25s ease,
		box-shadow 0.25s ease,
		transform 0.2s ease;
}

.hadera-map-filter:focus {
	outline: none;
}

.hadera-map-filter:focus-visible {
	outline: 2px solid #8d804f;
	outline-offset: 2px;
}

.hadera-map-filter.is-active {
	opacity: 1;
	border-color: #8d804f;
	background: #fff;
	box-shadow: none;
	transform: none;
}

.hadera-map-filter:not(.is-active) {
	opacity: 0.45;
	border-color: #d8d8d8;
	background: rgba(255, 255, 255, 0.6);
	box-shadow: none;
	transform: none;
}

@media (hover: hover) and (pointer: fine) {
	.hadera-map-filter.is-active:hover {
		border-color: #7a6f42;
		background: #faf8f3;
		box-shadow: 0 2px 8px rgba(141, 128, 79, 0.18);
		transform: translateY(-1px);
	}

	.hadera-map-filter:not(.is-active):hover {
		opacity: 0.7;
		border-color: #b8b8b8;
		background: #fff;
		box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
		transform: translateY(-1px);
	}
}

.hadera-map-filter:active {
	transform: scale(0.98);
}

.hadera-map-filter--all .hadera-map-filter-dot {
	display: none;
}

.hadera-map-filter-reset {
	display: inline-flex;
	align-items: center;
	margin-inline-start: 4px;
	padding: 0;
	border: none;
	background: transparent;
	color: #8d804f;
	font-size: 12px;
	font-weight: 500;
	text-decoration: underline;
	text-underline-offset: 2px;
	cursor: pointer;
	opacity: 0.85;
	transition: opacity 0.2s ease, color 0.2s ease;
}

.hadera-map-filter-reset[hidden] {
	display: none !important;
}

.hadera-map-filter-reset:hover {
	opacity: 1;
	color: #7a6f42;
}

.hadera-map-filter-dot {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: var(--category-color, #7f8c8d);
	flex-shrink: 0;
}

.hadera-map-wrapper--ltr .hadera-map-filters,
.hadera-map-wrapper--ltr .hadera-map-filter {
	direction: ltr;
	text-align: left;
}

.hadera-map-wrapper--rtl .hadera-map-filters,
.hadera-map-wrapper--rtl .hadera-map-filter {
	direction: rtl;
	text-align: right;
}

.hadera-map-canvas {
	width: 100%;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
	z-index: 1;
	touch-action: pan-x pan-y;
}

.hadera-map-pin {
	background: transparent;
	border: none;
}

.hadera-map-pin svg {
	display: block;
	filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.25));
}

.hadera-map-popup .leaflet-popup-content-wrapper {
	border-radius: 10px;
	padding: 0;
	overflow: hidden;
}

.hadera-map-popup .leaflet-popup-content {
	margin: 0;
	min-width: 240px;
	max-width: 300px;
}

.hadera-map-popup-inner {
	text-align: left;
}

.hadera-map-popup-inner[dir='rtl'] {
	direction: rtl;
	text-align: right;
}

.hadera-map-popup-inner[dir='ltr'] {
	direction: ltr;
	text-align: left;
}

.hadera-map-popup-image {
	width: 100%;
	height: 160px;
	object-fit: cover;
	display: block;
}

.hadera-map-popup-body {
	padding: 14px 16px 16px;
}

.hadera-map-popup-category {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 8px;
	padding: 3px 10px;
	border: 1px solid #e0e0e0;
	border-radius: 12px;
	background: #f9f9f9;
	font-size: 11px;
	font-weight: 600;
	line-height: 1.2;
	color: #555;
}

.hadera-map-popup-category-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--category-color, #7f8c8d);
	flex-shrink: 0;
}

.hadera-map-popup-title {
	margin: 0 0 8px;
	font-size: 18px;
	font-weight: 700;
	color: #222;
	line-height: 1.3;
}

.hadera-map-popup-caption {
	margin: 0 0 10px;
	font-size: 14px;
	color: #555;
	line-height: 1.5;
}

.hadera-map-popup-address {
	margin: 0 0 12px;
	font-size: 13px;
	color: #777;
}

.hadera-map-popup-link {
	display: inline-block;
	padding: 8px 16px;
	background: #8d804f;
	color: #fff !important;
	text-decoration: none;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 600;
	transition: background 0.2s ease;
}

.hadera-map-popup-link:hover {
	background: #7a6f42;
	color: #fff !important;
}

.hadera-map-empty {
	padding: 16px;
	background: #fff3cd;
	border: 1px solid #ffc107;
	border-radius: 6px;
	color: #664d03;
}

.hadera-map-loading {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	min-height: 200px;
	color: #666;
	font-size: 14px;
}

.hadera-map-cluster {
	background: transparent;
}

.hadera-map-cluster div {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	border-radius: 50%;
	background: #8d804f;
	color: #fff;
	font-weight: 700;
	font-size: 13px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
	border: 2px solid #fff;
}

.hadera-map-cluster--small div {
	width: 36px;
	height: 36px;
}

.hadera-map-cluster--medium div {
	width: 44px;
	height: 44px;
	font-size: 14px;
}

.hadera-map-cluster--large div {
	width: 52px;
	height: 52px;
	font-size: 15px;
}

@media (max-width: 600px) {
	.hadera-map-filters {
		gap: 8px 14px;
	}

	.hadera-map-filter {
		font-size: 13px;
	}

	.hadera-map-canvas {
		min-height: 350px;
	}
}
