/* assets/css/tour-events.css */

.pte-event-list {
	margin: 2rem auto;
	max-width: 800px;
	padding: 0;
}

.pte-event-cluster {
	border: 2px solid #999;
	margin-bottom: 2rem;
	text-align: center;
}

.pte-event-list .pte-event-cluster > h3 {
	margin: 0;
	padding: 0.5rem;
	font-size: 1.25rem;
	line-height: 1.2;
	font-weight: bold;
	background-color: #212024;
	color: #fff;
	border-bottom: 2px solid #999;
}

.pte-event-list .pte-event-cluster,
.pte-upcoming-widget {
	--pte-ticket-pad-y: 0.5rem;
	--pte-ticket-pad-x: 1rem;
	--pte-ticket-font-weight: 700;
	--pte-ticket-radius: 0;
}

.pte-event-list .pte-event-cluster ul.pte-event-items {
	margin: 0;
	padding: 0;
	list-style: none;
}

.pte-event-list .pte-event-cluster ul.pte-event-items > li.pte-event-item {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	column-gap: 1rem;
	list-style: none;
	padding: 1.5rem 2rem;
	margin: 0;
	color: #fff;
	min-width: 0;
}

.pte-event-list .pte-event-cluster ul.pte-event-items > li.pte-event-item:nth-child(odd) {
	background-color: #000000;
}

.pte-event-list .pte-event-cluster ul.pte-event-items > li.pte-event-item:nth-child(even) {
	background-color: #212024;
}

.pte-event-list .pte-event-cluster ul.pte-event-items > li.pte-event-item > code {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	column-gap: 1rem;
	grid-column: 1 / -1;
	justify-self: stretch;
	width: 100%;
	min-width: 0;
	margin: 0;
	font: inherit;
	line-height: inherit;
	color: inherit;
	background: none;
	border: 0;
	padding: 0;
	white-space: normal;
}

.pte-event-list .pte-event-cluster ul.pte-event-items > li.pte-event-item > .pte-event-date,
.pte-event-list .pte-event-cluster ul.pte-event-items > li.pte-event-item > .pte-event-time,
.pte-event-list .pte-event-cluster ul.pte-event-items > li.pte-event-item > .pte-event-ticket,
.pte-event-list .pte-event-cluster ul.pte-event-items > li.pte-event-item > code > .pte-event-date,
.pte-event-list .pte-event-cluster ul.pte-event-items > li.pte-event-item > code > .pte-event-time,
.pte-event-list .pte-event-cluster ul.pte-event-items > li.pte-event-item > code > .pte-event-ticket {
	min-width: 0;
}

.pte-event-list .pte-event-cluster ul.pte-event-items > li.pte-event-item > .pte-event-date,
.pte-event-list .pte-event-cluster ul.pte-event-items > li.pte-event-item > code > .pte-event-date {
	text-align: left;
	justify-self: start;
	overflow-wrap: anywhere;
}

.pte-event-list .pte-event-cluster ul.pte-event-items > li.pte-event-item > .pte-event-time,
.pte-event-list .pte-event-cluster ul.pte-event-items > li.pte-event-item > code > .pte-event-time {
	text-align: center;
	justify-self: center;
	overflow-wrap: anywhere;
}

.pte-event-list .pte-event-cluster ul.pte-event-items > li.pte-event-item > .pte-event-ticket,
.pte-event-list .pte-event-cluster ul.pte-event-items > li.pte-event-item > code > .pte-event-ticket {
	text-align: right;
	justify-self: end;
	white-space: nowrap;
}

.pte-event-list .pte-event-cluster ul.pte-event-items > li.pte-event-item > .pte-event-ticket.pte-event-ticket-empty,
.pte-event-list .pte-event-cluster ul.pte-event-items > li.pte-event-item > code > .pte-event-ticket.pte-event-ticket-empty {
	visibility: hidden;
}

.pte-event-list .pte-event-cluster ul.pte-event-items > li.pte-event-item .pte-tickets-button {
	flex: 0 0 auto;
	background-color: #333;
	color: #fff;
	padding: var(--pte-ticket-pad-y) var(--pte-ticket-pad-x);
	line-height: 1.2;
	text-decoration: none;
	border: none;
	border-radius: var(--pte-ticket-radius);
	font-weight: var(--pte-ticket-font-weight);
	cursor: pointer;
}

.pte-event-list .pte-event-cluster ul.pte-event-items > li.pte-event-item .pte-tickets-button:hover {
	background-color: #555;
}

.pte-pagination {
	text-align: center;
	margin-top: 2rem;
}

.pte-pagination + .pte-toggle {
	margin-top: 0.875rem;
}

.pte-pagination .page-numbers {
	display: inline-block;
	margin: 0 6px;
	padding: 6px 12px;
	background: #eee;
	color: #333;
	border-radius: 4px;
	text-decoration: none;
}

.pte-pagination .current {
	background: #333;
	color: #fff;
	font-weight: bold;
}

.pte-pagination .page-numbers:hover {
	background: #ddd;
}

.pte-toggle,
.pte-empty {
	text-align: center;
	margin-top: 1rem;
}

/* ===== Upcoming widget ===== */
.pte-upcoming-widget {
	max-width: 800px;
	width: 100%;
	box-sizing: border-box;
	border: 2px solid #999;
	background: #000;
	color: #fff;
	margin: 0 auto;
	padding: 0;
	display: flex;
	flex-direction: column;
	height: 100%;
	min-width: 0;
}


.pte-upcoming-title {
	margin: 0;
	padding: 0.5rem;
	font-size: 1.25rem;
	font-weight: bold;
	background-color: #212024;
	color: #fff;
	border-bottom: 2px solid #999;
	text-align: center;
}

.pte-upcoming-scroll {
	position: absolute;
	z-index: 5;
	width: 44px;
	height: 44px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 12px;
	background: transparent;
	color: #fff;
	font-size: 0;
	line-height: 0;
	cursor: pointer;
	transition: opacity 150ms ease;
}

.pte-upcoming-scroll::before {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	width: 8px;
	height: 8px;
	border-right: 2px solid #fff;
	border-bottom: 2px solid #fff;
	transform: translate(-50%, -50%) rotate(-135deg);
	z-index: 1;
}

.pte-upcoming-scroll::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 12px;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.34));
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
	transition: background 150ms ease, box-shadow 150ms ease;
}

.pte-upcoming-scroll.pte-upcoming-scroll-down::before {
	transform: translate(-50%, -50%) rotate(45deg);
}

.pte-upcoming-scroll-up {
	top: 6px;
	right: 10px;
}

.pte-upcoming-scroll-down {
	bottom: 6px;
	right: 10px;
}

.pte-upcoming-scroll:hover::after {
	background: linear-gradient(180deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.5));
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.pte-upcoming-scroll:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

.pte-upcoming-scroll.is-hidden {
	opacity: 0;
	pointer-events: none;
}

.pte-upcoming-scrollbox {
	flex: 1 1 auto;
	overflow-x: hidden;
	position: relative;
	box-sizing: border-box;
	min-width: 0;
}

.pte-upcoming-viewport {
	height: 100%;
	overflow: hidden;
	padding-top: 8px;
	padding-bottom: 8px;
	box-sizing: border-box;
	min-width: 0;
}

.pte-upcoming-widget .pte-upcoming-list {
	will-change: transform;
	transition: transform 200ms ease;
}

.pte-upcoming-widget .pte-upcoming-list {
	list-style: none;
	padding: 0;
	margin: 0;
	min-width: 0;
	box-sizing: border-box;
}

.pte-upcoming-widget .pte-upcoming-item {
	/* Use grid to prevent the date/time column from colliding with the ticket button */
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
	gap: 16px;
	align-items: center;
	padding: 1rem 1.25rem;
	min-width: 0;
	box-sizing: border-box;
}


.pte-upcoming-widget .pte-upcoming-item:nth-child(odd) {
	background-color: #000000;
}

.pte-upcoming-widget .pte-upcoming-item:nth-child(even) {
	background-color: #212024;
}

.pte-upcoming-widget .pte-upcoming-col {
	min-width: 0;
}

.pte-upcoming-widget .pte-upcoming-col-left {
	text-align: left;
	min-width: 0;
}


.pte-upcoming-widget .pte-upcoming-col-mid {
	text-align: center;
	min-width: 0;
}


.pte-upcoming-widget .pte-upcoming-col-right {
	text-align: right;
	justify-self: end;
}


.pte-upcoming-widget .pte-upcoming-name {
	font-weight: bold;
	line-height: 1.2;
}

.pte-upcoming-widget .pte-upcoming-location {
	opacity: 0.9;
	line-height: 1.2;
}

.pte-upcoming-widget .pte-upcoming-date {
	font-weight: 600;
	line-height: 1.2;
	white-space: normal;
	overflow: visible;
	text-overflow: clip;
}


.pte-upcoming-widget .pte-upcoming-time {
	opacity: 0.9;
	line-height: 1.2;
	white-space: normal;
	overflow: visible;
	text-overflow: clip;
}


.pte-upcoming-widget .pte-upcoming-ticket {
	display: inline-block;
	white-space: nowrap;
	max-width: 100%;
}

/* Reuse original button look inside the widget */
.pte-upcoming-widget .pte-tickets-button {
	background-color: #333;
	color: #fff;
	padding: var(--pte-ticket-pad-y) var(--pte-ticket-pad-x);
	line-height: 1.2;
	text-decoration: none;
	border: none;
	border-radius: var(--pte-ticket-radius);
	font-weight: var(--pte-ticket-font-weight);
	cursor: pointer;
}

.pte-upcoming-widget .pte-tickets-button:hover {
	background-color: #555;
}

.pte-upcoming-widget .pte-upcoming-ticket-empty {
	display: inline-block;
	visibility: hidden;
	white-space: nowrap;
}

.pte-event-list .pte-event-ticket-empty::before,
.pte-upcoming-widget .pte-upcoming-ticket-empty::before {
	content: attr(data-ticket-label);
	display: inline-block;
	padding: var(--pte-ticket-pad-y) var(--pte-ticket-pad-x);
	font-weight: var(--pte-ticket-font-weight);
	border-radius: var(--pte-ticket-radius);
	line-height: 1.2;
}

.pte-upcoming-footer {
	border-top: 2px solid #999;
	background: #212024;
	padding: 12px;
	text-align: center;
}

.pte-upcoming-link {
	display: inline-block;
	padding: 2px 4px;
	font-size: 0.9rem;
	font-weight: 400;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.pte-upcoming-link:hover {
	text-decoration: underline;
}

.pte-upcoming-link:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}



/* Responsive layout for the upcoming widget rows
   Use element-width classes (set by JS) instead of viewport breakpoints,
   because builders (like Avada) can render a narrow column inside a wide viewport.
*/

/* Two-column layout + tickets on its own row */
.pte-upcoming-widget.pte-upcoming-w-narrow .pte-upcoming-item {
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	grid-template-areas:
		"left mid"
		"right right";
}
.pte-upcoming-widget.pte-upcoming-w-narrow .pte-upcoming-item--no-ticket {
	grid-template-areas:
		"left mid";
}
.pte-upcoming-widget.pte-upcoming-w-narrow .pte-upcoming-col-left { grid-area: left; }
.pte-upcoming-widget.pte-upcoming-w-narrow .pte-upcoming-col-mid  { grid-area: mid; }
.pte-upcoming-widget.pte-upcoming-w-narrow .pte-upcoming-col-right {
	grid-area: right;
	justify-self: center;
	text-align: center;
	margin-top: 8px;
}
.pte-upcoming-widget.pte-upcoming-w-narrow .pte-upcoming-item--no-ticket .pte-upcoming-col-right { display: none; }

/* Single-column stacked layout */
.pte-upcoming-widget.pte-upcoming-w-stack .pte-upcoming-item {
	grid-template-columns: 1fr;
	grid-template-areas:
		"left"
		"mid"
		"right";
	gap: 10px;
}
.pte-upcoming-widget.pte-upcoming-w-stack .pte-upcoming-item--no-ticket {
	grid-template-areas:
		"left"
		"mid";
}

.pte-upcoming-widget.pte-upcoming-w-stack .pte-upcoming-col-left { grid-area: left; }
.pte-upcoming-widget.pte-upcoming-w-stack .pte-upcoming-col-mid  { grid-area: mid; }
.pte-upcoming-widget.pte-upcoming-w-stack .pte-upcoming-col-right { grid-area: right; }
.pte-upcoming-widget.pte-upcoming-w-stack .pte-upcoming-item--no-ticket .pte-upcoming-col-right { display: none; }

.pte-upcoming-widget.pte-upcoming-w-stack .pte-upcoming-col-mid {
	text-align: left;
}
.pte-upcoming-widget.pte-upcoming-w-stack .pte-upcoming-date,
.pte-upcoming-widget.pte-upcoming-w-stack .pte-upcoming-time {
	white-space: normal;
	overflow: visible;
	text-overflow: clip;
	word-break: break-word;
}
.pte-upcoming-widget.pte-upcoming-w-stack .pte-upcoming-col-right {
	text-align: center;
	justify-self: center;
	margin-top: 0;
}

/* Viewport fallback when JS width classes are not present */
@media (max-width: 560px) {
	.pte-upcoming-widget:not(.pte-upcoming-has-js) .pte-upcoming-item {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		grid-template-areas:
			"left mid"
			"right right";
	}
	.pte-upcoming-widget:not(.pte-upcoming-has-js) .pte-upcoming-item--no-ticket {
		grid-template-areas:
			"left mid";
	}
	.pte-upcoming-widget:not(.pte-upcoming-has-js) .pte-upcoming-col-left { grid-area: left; }
	.pte-upcoming-widget:not(.pte-upcoming-has-js) .pte-upcoming-col-mid  { grid-area: mid; }
	.pte-upcoming-widget:not(.pte-upcoming-has-js) .pte-upcoming-col-right {
		grid-area: right;
		justify-self: center;
		text-align: center;
		margin-top: 8px;
	}
	.pte-upcoming-widget:not(.pte-upcoming-has-js) .pte-upcoming-item--no-ticket .pte-upcoming-col-right { display: none; }
}

@media (max-width: 360px) {
	.pte-upcoming-widget:not(.pte-upcoming-has-js) .pte-upcoming-item {
		grid-template-columns: 1fr;
		grid-template-areas:
			"left"
			"mid"
			"right";
		gap: 10px;
	}
	.pte-upcoming-widget:not(.pte-upcoming-has-js) .pte-upcoming-item--no-ticket {
		grid-template-areas:
			"left"
			"mid";
	}
	.pte-upcoming-widget:not(.pte-upcoming-has-js) .pte-upcoming-col-left { grid-area: left; }
	.pte-upcoming-widget:not(.pte-upcoming-has-js) .pte-upcoming-col-mid  { grid-area: mid; }
	.pte-upcoming-widget:not(.pte-upcoming-has-js) .pte-upcoming-col-right {
		grid-area: right;
		text-align: center;
		justify-self: center;
		margin-top: 0;
	}
	.pte-upcoming-widget:not(.pte-upcoming-has-js) .pte-upcoming-item--no-ticket .pte-upcoming-col-right { display: none; }
	.pte-upcoming-widget:not(.pte-upcoming-has-js) .pte-upcoming-col-mid {
		text-align: left;
	}
	.pte-upcoming-widget:not(.pte-upcoming-has-js) .pte-upcoming-date,
	.pte-upcoming-widget:not(.pte-upcoming-has-js) .pte-upcoming-time {
		white-space: normal;
		overflow: visible;
		text-overflow: clip;
		word-break: break-word;
	}
}


/* Placeholder rows to fill widget height */
.pte-upcoming-widget .pte-upcoming-placeholder {
	pointer-events: none;
}
.pte-upcoming-widget .pte-upcoming-placeholder .pte-upcoming-name,
.pte-upcoming-widget .pte-upcoming-placeholder .pte-upcoming-location,
.pte-upcoming-widget .pte-upcoming-placeholder .pte-upcoming-date,
.pte-upcoming-widget .pte-upcoming-placeholder .pte-upcoming-time {
	opacity: 0.0;
}

.pte-upcoming-widget .pte-upcoming-scrollbox,
.pte-upcoming-widget .pte-upcoming-viewport {
	min-height: 0;
}
