/* Modern single event layout. Scoped to avoid theme/plugin conflicts. */

.evx-single-event__article {
	background: transparent;
}

.evx-single-event__content > *:first-child {
	margin-top: 0;
}

.evx-single-event__content > *:last-child {
	margin-bottom: 0;
}

.evx-single-event__content a {
	color: var(--evx-primary);
	font-weight: 650;
}
.evx-single-event__content a.evx-virtual-event-join-btn {
    color: #fff;
}

/* Template 1 layout. */
.evx-single-event--template-1 {

	max-width: none;
	margin: 0 auto;
	padding: 24px 0 64px;
	line-height: 1.5;
}

.evx-single-event--template-1 svg {
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.evx-single-event__meta-row span,
.evx-single-event__location-line {
	display: inline-flex;
	align-items: center;
}

.evx-single-event__breadcrumb a:hover,
.evx-single-event__breadcrumb a:focus {
	color: var(--evx-primary);
}

.evx-single-event__breadcrumb {
	display: flex;
	align-items: center;
	gap: 11px;
	margin-bottom: 22px;
	color: var(--evx-text-secondary);
	font-size: 13px;
	line-height: 20px;
}

.evx-single-event__breadcrumb span:last-child {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}



.evx-single-event--template-1 .evx-single-event__layout {
	grid-template-columns: minmax(0, 1fr) minmax(320px, 390px);
	align-items: start;
	margin-top: 0;
}

.evx-single-event--template-1 .evx-single-event__main {
	display: block;
	background: var(--evx-surface);
	border: 1px solid var(--evx-border);
	border-radius: 5px;
	overflow: hidden;
}


.evx-single-event--template-1 .evx-single-event__hero-media {
	position: relative;
	height: 256px;
	background: linear-gradient(135deg, #080f1f, #312e81 52%, #f14b0e);
	overflow: hidden;
}

.evx-single-event--template-1 .evx-single-event__hero-media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(8, 15, 31, 0.04), rgba(8, 15, 31, 0.16));
	pointer-events: none;
}

.evx-single-event--template-1 .evx-single-event__hero-image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.evx-single-event__badge {
	position: absolute;
	top: 22px;
	left: 26px;
	z-index: 2;
	background: var(--evx-primary);
	color: var(--evx-surface);
	letter-spacing: 0;
	text-transform: none;
}

.evx-single-event__summary {
	padding: 20px;
	border-bottom: 1px solid var(--evx-border);
}

.evx-single-event--template-1 .evx-single-event__title {
	max-width: none;
	font-size: 24px;
	font-weight: 600;
	letter-spacing: 0;
	line-height: 1.18;
	text-shadow: none;
}

.evx-single-event__meta-row {
	display: flex;
	flex-wrap: wrap;
	gap: 18px;
	font-weight: 500;
	line-height: 2;
	font-size: 14px;
}

.evx-single-event__meta-row span,
.evx-single-event__location-line {
	gap: 10px;
}

.evx-single-event__meta-row svg,
.evx-single-event__location-line svg {
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
}



.evx-single-event__location-line a, .evx-single-event__info-row a, .evx-single-event__section-heading a, 
.evx-single-event__location-line a:hover, .evx-single-event__info-row a:hover, .evx-single-event__section-heading a:hover {
	color: var(--evx-primary);
	font-weight: 700;
	text-decoration: none;
}

.evx-single-event--template-1 .evx-single-event__section {
	padding: 20px;
}


.evx-single-event--template-1 .evx-single-event__section h2,
.evx-single-event__info-card h2,
.evx-single-event__tickets-card h2 {
	font-size: 16px;
	font-weight: 500;
}


.evx-single-event__sidebar {
	display: grid;
	gap: 20px;
}

.evx-single-event__info-card {
	padding: 15px;
	
}

.evx-single-event__tickets-card {
	padding: 15px;
    border: 1px solid var(--evx-border);
    box-shadow: none;
    border-radius: var(--evx-radius-5);
}

.evx-single-event__info-row {
	display: grid;
	grid-template-columns: 20px minmax(0, 1fr);
	gap: 15px;
	padding: 15px 0;
	border-bottom: 1px solid var(--evx-border);
	font-size:14px;
}

.evx-single-event__info-row:last-child {
	border-bottom: 0;
	padding-bottom: 0;
}

.evx-single-event__info-row > svg {
	width: 24px;
	height: 24px;
	margin-top: 2px;
	color: #080f1f;
}

.evx-single-event__info-row strong,
.evx-single-event__info-row span {
	display: block;
}

.evx-single-event__info-row strong {
	margin-bottom: 5px;
	font-weight: 500;
}


.evx-single-event__info-row a {
	display: inline-flex;
}

.evx-single-event__mobile-bookbar .evx-ui-button {
	min-width: 132px;
	min-height: 44px;
}

/* Single event share menu. */

.evx-single-event__share-menu {
	flex: none;
	right: 0;
	width: 220px;
}

.evx-single-event__share-menu::before {
	content: "";
	position: absolute;
	top: -6px;
	right: 18px;
	width: 12px;
	height: 12px;
	border-top: 1px solid var(--evx-border);
	border-left: 1px solid var(--evx-border);
	background: var(--evx-surface);
	transform: rotate(45deg);
}

.evx-single-event__share-menu strong {
	display: block;
	margin: 0 0 8px;
	color: var(--evx-text-primary);
	font-size: 14px;
	font-weight: 500;
	line-height: 18px;
	text-align: center;
	border-bottom: 1px solid var(--evx-primary);
	padding-bottom: 5px;
}

.evx-single-event__share-link {
	display: flex;
	align-items: center;
	padding: 8px 10px;
	border-radius: 10px;
	color: var(--evx-text-primary);
	font-size: 14px;
	font-weight: 500;
	line-height: 20px;
	text-decoration: none !important;
}

.evx-single-event__share-link:hover,
.evx-single-event__share-link:focus {
	color: var(--evx-primary);
	outline: none;
	text-decoration: none !important;
}

/* Mobile sticky ticket booking bar. */
.evx-single-event__mobile-bookbar {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 10000;
	display: none;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: 14px;
	padding: 12px max(14px, env(safe-area-inset-left)) calc(12px + env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-right));
	border-top: 1px solid var(--evx-border);
	background: rgba(255, 255, 255, .96);
	box-shadow: 0 -14px 34px rgba(15, 23, 42, .12);
	backdrop-filter: blur(14px);
}

.evx-single-event__mobile-bookbar span,
.evx-single-event__mobile-bookbar strong {
	display: block;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.evx-single-event__mobile-bookbar span {
	color: var(--evx-text-muted);
	font-size: 12px;
	font-weight: 700;
	line-height: 16px;
}

.evx-single-event__mobile-bookbar strong {
	font-size: 14px;
	font-weight: 700;
	line-height: 20px;
}


/* Single event responsive layout fixes. */
.evx-single-event--template-1 {
	width: min(100% - 32px, 1280px);
	padding-bottom: 64px;
}

.evx-single-event__sidebar,
.evx-single-event--template-1 .evx-single-event__sidebar {
	position: static;
	top: auto;
	align-self: start;
	min-width: 0;
}

.evx-single-event__tickets-card,
.evx-single-event__tickets-card .evx-ticket-form {
	position: static;
	top: auto;
	width: 100%;
	max-width: 100%;
}

.evx-single-event__title-row {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 12px;
}

.evx-single-event__title-row .evx-single-event__title {
	margin: 0;
	min-width: 0;
	color: var(--evx-text-primary);
}

.evx-single-event__title-actions {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	flex: 0 0 auto;
}

.evx-single-event__actions {
	display: inline-flex;
	align-items: center;
	justify-content: flex-end;
	gap: 10px;
	flex: 0 0 auto;
}

.evx-single-event__actions > .evx-single-event__share {
	display: inline-flex;
	align-items: center;
	flex: 0 0 auto;
}

.evx-single-event__title-actions .evx-single-event__share {
	position: relative;
}

.evx-single-event__title-actions button.evx-single-event__round-button {
	width: 42px;
	height: 42px;
	border: 1px solid var(--evx-border);
	background: var(--evx-surface);
	box-shadow: var(--evx-shadow-sm);
	color: var(--evx-text-primary);
	border-radius:50%;
	padding:5px;
}

.evx-single-event__title-actions button.evx-single-event__round-button:hover,
.evx-single-event__title-actions button.evx-single-event__round-button:focus {
	border-color: var(--evx-primary);
	background: var(--evx-primary-soft);
	box-shadow: var(--evx-shadow-sm);
	color: var(--evx-primary);
}

@media (max-width: 920px) {

	.evx-single-event--template-1 .evx-single-event__layout {
		grid-template-columns: minmax(0, 1fr);
	}

	
}

@media (max-width: 640px) {

	.evx-single-event__title-row {
		align-items: flex-start;
		gap: 12px;
		flex-wrap: wrap-reverse;
	}

	.evx-single-event--template-1 .evx-single-event__title {
		font-size: clamp(18px, 5vw, 24px);
		line-height: 1.2;
	}

    .evx-single-event__location-line {
        align-items: flex-start;
        display: flex;
        flex-wrap: wrap;
    }

	.evx-single-event__mobile-bookbar {
		display: grid;
	}
	a.evx-single-ticket-sticky-btn {
		color: #fff;
		border-radius: 0;
		font-weight: 500;
	}
	
}


.evx-single-event__map-card {
	overflow: hidden;
}

.evx-single-event__map {
	position: relative;
	width: 100%;
	min-height: 320px;
	border-radius: var(--evx-radius-md, 12px);
	overflow: hidden;
}
.evx-virtual-event-card .evx-card-header, .evx-virtual-event-card .evx-card-body {
    padding: 0;
    padding-bottom: 10px;
}
.evx-single-event__map iframe {
	display: block;
	width: 100%;
	height: 320px;
	border: 0;
}

.evx-single-event__map-address {
	margin: 14px 0 0;
}




/* Keep action dropdowns above adjacent cards/sections and prevent clipping. */
.evx-single-event .evx-single-event__summary,
.evx-single-event .evx-event-header__summary,
.evx-single-event .evx-single-event__title-row,
.evx-single-event .evx-event-header__title-row,
.evx-single-event .evx-single-event__title-actions,
.evx-single-event .evx-event-header__actions,
.evx-single-event [data-evx-dropdown] {
	position: relative;
	overflow: visible;
}

.evx-single-event .evx-single-event__summary,
.evx-single-event .evx-event-header__summary,
.evx-single-event .evx-single-template-2__hero,
.evx-single-event .evx-single-template-2__header,
.evx-single-event .evx-single-template-3__header {
	z-index: 20;
	overflow: visible;
}

.evx-single-event .evx-single-event__title-actions,
.evx-single-event .evx-event-header__actions {
	z-index: 30;
}

.evx-single-event [data-evx-dropdown].is-open {
	z-index: 100002;
}

.evx-single-event .evx-single-event__share-menu,
.evx-single-event .evx-single-event__calendar-menu,
.evx-single-event .evx-dropdown__menu {
	z-index: 100003;
	max-width: min(320px, calc(100vw - 24px));
}

/* Desktop: icon, address and map action remain on one row. */
.evx-single-event .evx-single-event__location-line.evx-event-location {
	display: flex;
	align-items: flex-start;
	gap: var(--evx-space-10);
	width: 100%;
	min-width: 0;
	margin: 0;
	font-size: 14px;
	font-weight: 500;
}

.evx-single-event .evx-single-event__location-line.evx-event-location > svg,
.evx-single-event .evx-single-event__location-line.evx-event-location > .evx-icon,
.evx-single-event .evx-single-event__location-line.evx-event-location > [aria-hidden="true"] {
	flex: 0 0 auto;
	margin-top: 2px;
}

.evx-single-event .evx-single-event__location-line.evx-event-location > :not(svg):not(.evx-icon):not(a):not([aria-hidden="true"]) {
	min-width: 0;
}

.evx-single-event .evx-single-event__location-line.evx-event-location > a,
.evx-single-event .evx-single-event__location-line.evx-event-location .evx-event-location__map-link {
	flex: 0 0 auto;
	margin-left: auto;
	white-space: nowrap;
}

@media (max-width: 767px) {
	/* Mobile: icon + address first row, map action full-width second row. */
	.evx-single-event .evx-single-event__location-line.evx-event-location {
		display: grid;
		grid-template-columns: auto minmax(0, 1fr);
		align-items: start;
		gap: var(--evx-space-6, 6px) var(--evx-space-8, 8px);
	}

	.evx-single-event .evx-single-event__location-line.evx-event-location > svg,
	.evx-single-event .evx-single-event__location-line.evx-event-location > .evx-icon,
	.evx-single-event .evx-single-event__location-line.evx-event-location > [aria-hidden="true"] {
		grid-column: 1;
		grid-row: 1;
	}

	.evx-single-event .evx-single-event__location-line.evx-event-location > :not(svg):not(.evx-icon):not(a):not([aria-hidden="true"]) {
		grid-column: 2;
		grid-row: 1;
		min-width: 0;
	}

	.evx-single-event .evx-single-event__location-line.evx-event-location > a,
	.evx-single-event .evx-single-event__location-line.evx-event-location .evx-event-location__map-link {
		grid-column: 1 / -1;
		grid-row: 2;
		justify-self: stretch;
		width: 100%;
		margin: 0;
		padding-left: calc(20px + var(--evx-space-8, 8px));
		white-space: normal;
	}

	/* Anchor menus to the viewport-safe side on narrow screens. */
	.evx-single-event [data-evx-dropdown] .evx-single-event__share-menu,
	.evx-single-event [data-evx-dropdown] .evx-single-event__calendar-menu,
	.evx-single-event [data-evx-dropdown] .evx-dropdown__menu {
		width: max-content;
		min-width: min(240px, calc(100vw - 24px));
		max-width: calc(100vw - 24px);
		right: unset;
	}
	.evx-single-event__share-menu::before{
		right: unset !important;
	}
}