/* =====================================================
   TULUA Events – Single Event Page
   Mirrors the original CPT layout
   ===================================================== */

/* ── Container ── */
.tulua-single-event {
	max-width: 1100px;
	margin: 0 auto;
	padding: 60px 0 60px;
}

/* Ensure the content section has top breathing room from the header */
.tulua-single-event .tulua-event-grid {
	padding-top: 20px;
}

/* ── Two-column grid ── */
.tulua-event-grid {
	display: grid;
	grid-template-columns: 1fr 340px;
	gap: 50px;
	align-items: start;
}

/* ── Left column: Event details ── */
.tulua-event-details {
	min-width: 0;
}

/* Title */
.tulua-event-title {
	font-size: 28px;
	font-weight: 700;
	line-height: 1.25;
	margin: 0 0 6px;
}

/* Date */
.tulua-event-date {
	font-size: 14px;
	color: #666;
	margin: 0 0 20px;
}

/* Venue */
.tulua-venue-name {
	font-size: 16px;
	font-weight: 700;
	margin: 0 0 2px;
}

.tulua-venue-address {
	font-size: 14px;
	color: #666;
	margin: 0 0 18px;
}

/* ── Price row ── */
.tulua-price-row {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 16px;
	font-weight: 600;
	margin-bottom: 14px;
}

.tulua-inline-icon {
	width: 20px;
	height: 20px;
	flex-shrink: 0;
}

/* ── Info bar (time + dress code) ── */
.tulua-info-bar {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px;
	font-size: 13px;
	color: #333;
	background: #f5f5f5;
	border-radius: 6px;
	padding: 10px 14px;
	margin-bottom: 30px;
	line-height: 1.5;
}

.tulua-info-icon {
	width: 16px;
	height: 16px;
	flex-shrink: 0;
}

.tulua-info-divider {
	color: #ccc;
	margin: 0 4px;
}

/* ── Sections ── */
.tulua-section {
	margin-bottom: 30px;
}

.tulua-section-heading {
	font-size: 16px;
	font-weight: 600;
	color: #c9a96e;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin: 0 0 12px;
	padding-bottom: 8px;
	border-bottom: 1px solid #f0ece4;
}

/* ── Tickets ── */
.tulua-section .tribe-tickets__tickets-wrapper {
	border-radius: 6px;
}

/* ── Line Up ── */
.tulua-lineup {
	font-size: 20px;
	font-weight: 700;
	line-height: 1.6;
	margin: 0;
	text-transform: uppercase;
}

/* ── Description ── */
.tulua-event-desc {
	font-size: 14px;
	line-height: 1.75;
	color: #444;
}

.tulua-event-desc p {
	margin: 0 0 14px;
}

.tulua-event-desc p:last-child {
	margin-bottom: 0;
}

/* ── Gallery ── */
.tulua-gallery {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.tulua-gallery-item img {
	width: 100px;
	height: 100px;
	object-fit: cover;
	border-radius: 4px;
	transition: opacity 0.2s ease;
}

.tulua-gallery-item {
	cursor: pointer;
}

.tulua-gallery-item:hover img {
	opacity: 0.8;
}

/* ── Lightbox ── */
.tulua-lightbox {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 999999;
	background: rgba(0, 0, 0, 0.92);
	align-items: center;
	justify-content: center;
}

.tulua-lightbox.is-open {
	display: flex;
}

.tulua-lightbox img {
	max-width: 90vw;
	max-height: 85vh;
	object-fit: contain;
	border-radius: 4px;
	user-select: none;
}

.tulua-lightbox-close {
	position: absolute;
	top: 20px;
	right: 24px;
	background: none;
	border: none;
	color: #fff;
	font-size: 32px;
	cursor: pointer;
	line-height: 1;
	padding: 8px;
	opacity: 0.8;
	transition: opacity 0.15s;
	z-index: 2;
}

.tulua-lightbox-close:hover {
	opacity: 1;
}

.tulua-lightbox-prev,
.tulua-lightbox-next {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: rgba(255, 255, 255, 0.12);
	border: none;
	color: #fff;
	font-size: 28px;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0.7;
	transition: opacity 0.15s, background 0.15s;
	z-index: 2;
}

.tulua-lightbox-prev:hover,
.tulua-lightbox-next:hover {
	opacity: 1;
	background: rgba(255, 255, 255, 0.25);
}

.tulua-lightbox-prev {
	left: 20px;
}

.tulua-lightbox-next {
	right: 20px;
}

.tulua-lightbox-counter {
	position: absolute;
	bottom: 20px;
	left: 50%;
	transform: translateX(-50%);
	color: rgba(255, 255, 255, 0.6);
	font-size: 13px;
}

/* ── Right column: Flyer sidebar ── */
.tulua-event-sidebar {
	position: sticky;
	top: 40px;
}

.tulua-flyer-sidebar {
	width: 100%;
	height: auto;
	border-radius: 8px;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

/* Sidebar badge (below flyer) */
.tulua-sidebar-badge {
	width: 100%;
	height: auto;
	margin-top: 16px;
	border-radius: 6px;
}

/* ── Hide default tribe event single elements that might bleed through ── */
.tribe-events-single,
.tribe-events-schedule,
.tribe-events-single-section,
.tribe-events-event-meta,
.tribe-events-back,
.tribe-events-sub-nav,
.tribe-events-cal-links,
.tribe-related-events {
	display: none !important;
}

/* ── Responsive ── */
@media (max-width: 900px) {
	.tulua-event-grid {
		grid-template-columns: 1fr;
		gap: 30px;
	}

	.tulua-event-sidebar {
		position: static;
		order: -1;
		max-width: none;
		width: 100vw;
		margin-left: calc(50% - 50vw);
		margin-right: calc(50% - 50vw);
	}

	.tulua-flyer-sidebar {
		border-radius: 0;
		box-shadow: none;
	}

	.tulua-single-event {
		padding: 20px 0 40px;
	}

	.tulua-sidebar-badge {
		display: none;
	}
}

@media (max-width: 480px) {
	.tulua-event-title {
		font-size: 22px;
	}

	.tulua-lineup {
		font-size: 16px;
	}

	.tulua-gallery-item img {
		width: 80px;
		height: 80px;
	}
}
