.evx-map-view {
	display: grid;
	gap: var(--evx-space-20, 20px);
}

.evx-map-view__layout {
	display: grid;
	grid-template-columns: minmax(300px, 40%) minmax(0, 1fr);
	gap: var(--evx-space-20, 20px);
	align-items: start;
}

.evx-map-view__layout--map-only {
	grid-template-columns: minmax(0, 1fr);
}

.evx-map-view__results {
	min-width: 0;
}

.evx-map-view__events {
	display: grid;
	gap: var(--evx-space-10, 10px);
}

.evx-map-view__map-panel {
	position: sticky;
	top: var(--evx-space-20, 20px);
	min-width: 0;
}

.evx-map-view__canvas {
	display: grid;
	place-items: center;
	height: var(--evx-map-height, 560px);
	min-height: 280px;
	border: 1px solid var(--evx-color-border, #e4e7ec);
	border-radius: var(--evx-radius-lg, 12px);
	background: var(--evx-color-surface-subtle, #f8fafc);
	overflow: hidden;
	z-index: 0;
}

.evx-map-view__status {
	max-width: 360px;
	margin: 0;
	text-align: center;
	color: var(--evx-color-text-muted, #667085);
}

.evx-map-event-card {
	display: grid;
	grid-template-columns: 100px minmax(0, 1fr);
	min-width: 0;
	border-radius: 5px;
	overflow: hidden;
}
.evx-map-event-card.evx-map-no-media {
    grid-template-columns: 1fr;
}
.evx-map-event-card:hover,
.evx-map-event-card:focus-within {
	border-color: var(--evx-primary);
	box-shadow: var(--evx-shadow-sm, 0 4px 12px rgba(16, 24, 40, 0.08));
	transform: translateY(-1px);
}

.evx-map-event-card--unmapped {
	border-style: dashed;
}

.evx-map-event-card__media img {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 140px;
	object-fit: cover;
}

.evx-map-event-card__content {
	display: grid;
	gap: var(--evx-space-8, 8px);
	min-width: 0;
	padding: var(--evx-space-14, 14px);
}

.evx-map-event-card__heading {
	display: flex;
	align-items: flex-start;
	gap: var(--evx-space-8, 8px);
}

.evx-map-event-card__title {
	flex: 1;
	min-width: 0;
	margin: 0;
	font-size: 16px;
	line-height: 1.35;
}


.evx-map-event-card__title a {
	color: inherit;
	text-decoration: none;
	outline: none !important;
}
.evx-map-event-card__title a:hover {
    color: var(--evx-primary);
}

.evx-map-event-card__map-status {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	color: var(--evx-primary, #f14b0e);
}

.evx-map-event-card__map-status svg,
.evx-map-event-card__meta svg {
	width: 15px;
	height: 15px;
	flex: 0 0 auto;
}

.evx-map-event-card__meta {
	display: flex;
	align-items: center;
	gap: var(--evx-space-8, 8px);
	min-width: 0;
	color: var(--evx-color-text-muted, #667085);
	font-size: var(--evx-font-size-sm, 14px);
	line-height: 1;
}

.evx-map-event-card__meta span {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.evx-map-event-card__meta--muted {
	opacity: 0.78;
}

.evx-map-event-card__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--evx-space-12, 12px);
	margin-top: var(--evx-space-4, 4px);
}

.evx-map-event-card__link, .evx-map-event-card__link:hover {
	font-weight: 600;
	text-decoration: none;
	color: var(--evx-primary);
}


.evx-map-event-card.is-active {
	border-color: var(--evx-primary, #f14b0e);
	box-shadow: 0 0 0 2px color-mix(in srgb, var(--evx-primary, #f14b0e) 20%, transparent), var(--evx-shadow-sm, 0 4px 12px rgba(16, 24, 40, 0.08));
}

.evx-map-marker-wrap {
	background: transparent;
	border: 0;
}

.evx-map-marker {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border: 3px solid #fff;
	border-radius: 50% 50% 50% 8px;
	background: var(--evx-primary, #f14b0e);
	box-shadow: 0 5px 14px rgba(16, 24, 40, 0.28);
	transform: rotate(-45deg);
}

.evx-map-marker__dot,
.evx-map-marker__count {
	transform: rotate(45deg);
}

.evx-map-marker__dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: #fff;
}

.evx-map-marker__count {
	position: absolute;
	inset-block-start: -8px;
	inset-inline-end: -8px;
	display: grid;
	place-items: center;
	min-width: 22px;
	height: 22px;
	padding-inline: 5px;
	border: 2px solid #fff;
	border-radius: 999px;
	background: var(--evx-color-text, #101828);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	line-height: 1;
}

.evx-map-popup {
	display: grid;
	gap: 5px;
	min-width: 200px;
}

.evx-map-popup__venue {
	font-size: 14px;
	line-height: 1.3;
}

.evx-map-popup__address,
.evx-map-popup__event-meta {
	color: var(--evx-color-text-muted);
	font-size: 12px;
}

.evx-map-popup__events {
	display: grid;
	gap: 10px;
	margin-top: 5px;
}

.evx-map-popup__event {
	display: grid;
	grid-template-columns: 50px minmax(0, 1fr);
	gap: 10px;
	padding-top: 10px;
	border-top: 1px solid var(--evx-color-border);
}
.evx-map-popup__event.evx-map-popup-no-media {
    grid-template-columns: 1fr;
}

.evx-map-popup__event:first-child {
	padding-top: 4px;
	border-top: 0;
}

.evx-map-popup__event > img {
	width: 50px;
	height: 50px;
	border-radius: 5px;
	object-fit: cover;
}

.evx-map-popup__event-content {
	display: grid;
	gap: 3px;
	min-width: 0;
}

.evx-map-popup__event-title {
	color: var(--evx-color-text, #101828);
	font-size: 13px;
	font-weight: 700;
	line-height: 1.3;
	text-decoration: none;
}

.evx-map-popup__event-price {
	font-size: 12px;
}

.evx-map-view .leaflet-container {
	font-family: inherit;
}

.evx-map-view .leaflet-popup-content {
	margin: 15px;
}

.evx-map-view .leaflet-control-attribution {
	font-size: 10px;
}
.leaflet-popup-content-wrapper{
	border-radius: 5px;
}
.leaflet-container a.leaflet-popup-close-button,.leaflet-container a {
    color: var(--evx-primary);
}
.leaflet-container a{
	font-size: 12px;
}
@media (max-width: 1024px) {
	.evx-map-view__layout {
		grid-template-columns: 1fr;
	}

	.evx-map-view__map-panel {
		position: static;
		order: -1;
	}

	.evx-map-view__canvas {
		height: min(var(--evx-map-height, 560px), 420px);
		min-height: 320px;
	}
}

@media (max-width: 768px) {
	.evx-map-event-card {
		grid-template-columns: 80px minmax(0, 1fr);
	}

	.evx-map-event-card__media img {
		min-height: 100px;
	}

	.evx-map-event-card__footer {
		align-items: flex-start;
		flex-direction: column;
	}
	.leaflet-fade-anim .leaflet-map-pane .leaflet-popup{
		max-width: 300px;
	}
	.evx-map-event-card__title {
		font-size: var(--evx-font-size-14);
	}
	.evx-map-event-card__meta {
		font-size: 12px;
	}
	.evx-map-event-card__footer{
		gap:0;
	}
	.evx-map-event-card__price {
		font-size: 12px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.evx-map-event-card {
		transition: none;
	}
}


