
:root {
	--timeline-grid-width: 88px;
}

.timetable__nav {
	display: flex;
	flex-direction: column;
	gap: 16px;

	padding-left: 52px;

	position: sticky;
		top: 88px;

	background: transparent;
	z-index: 200;
}

.timetable__nav.pinned {
	/*background: black;*/
	background: url('https://hitthecity-festival.nl/wp-content/uploads/2025/04/bg-2025-night.svg');
	background-repeat: no-repeat;
	background-size: cover;
	background-attachment: fixed;
	padding-bottom: 8px;
}

.sticky__helper {
	width: 100%;
	height: 1px;
}

.nav__type--days {
	display: flex;
	gap: 0px;
}

.timetable__nav--currentday {
	padding-top: 16px;
	padding-left: 24px;

	color: var(--white);
}

.timetable__nav--pdf-download {
	padding-top: 12px;
	padding-left: 24px;
}

.timetable__pdf-download {
	padding: 24px;
	text-align: center;
	background: rgba(255, 255, 255, 0.05);
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	margin-top: 32px;
}

.btn__pdf-download {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 3px 0px;
	/* background: rgba(255, 255, 255, 0.1); */
	color: white;
	text-decoration: none;
	border-radius: 0;
	font-size: 12px;
	font-weight: 500;
	transition: all 0.2s ease;
	border: none;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	border-bottom: 1px solid currentColor;
}

.btn__pdf-download:hover {
	background: rgba(255, 255, 255, 0.2);
	transform: translateY(-1px);
}

.btn__pdf-download i {
	font-size: 14px;
}

/*.timetable__timeline {
	position: relative;
	width: 100%;
	padding-left: 52px;
}*/

.timetable__nav--head {
	display: flex;
	align-content: center;
	align-items: center;
	justify-content: space-between;
	padding-right: 56px;
}

.nav__type--header--mobile {
	display: none;
}

/* Show desktop button on desktop, hide mobile button on desktop */
.btn__second--desktop {
	display: block !important;
	visibility: visible !important;
	opacity: 1 !important;
	position: relative !important;
	left: auto !important;
	width: auto !important;
	height: auto !important;
	overflow: visible !important;
}



.timetable__main {
	height: 100%;
	padding-bottom: 0;
	padding-top: 0;
}

.timetable__main .section__margin {
	padding-top: calc(128px - 24px);
	padding-bottom: 0px;
	padding-left: 0px;
	padding-right: 0;
	min-height: calc(100% - 128px);
	width: calc(100% - 0px - 0px);
}

.timetable__timeline {
	position: relative;
	width: calc(100% - 77px);
	padding-left: 77px;
	padding-top: 8px;
	/*padding-right: 128px;*/

	height: 100%;

	overflow-x: scroll;
	scrollbar-width: none;        /* Firefox */
	-ms-overflow-style: none; 

	scroll-behavior: smooth;
}

.timetable__timeline::-webkit-scrollbar {
  display: none;                /* Safari & Chrome */
}

.timetable__grid {
	display: grid;
	gap: 8px 0px;
	position: relative;
	width: max-content;
	padding-right: 128px;
	padding-bottom: 128px;
}

.time-marker-row {
	display: contents;
}

.time-marker {
	position: relative;
	text-align: center;
	font-size: 10px;
	padding: 0px 0;
	height: 20px;
}

.time-marker span {
	display: block;
	width: 100%;
	height: 100%;

	margin-left: -50%;
	color: rgba(255, 255, 255, 0.6);
}

.time-marker:after {
	content: "";
	position: absolute;
	left: 0;
	top:16px;

	width: 1px;
	height: var(--marker-line-height);
	background: white;
	opacity: 0.2;
	z-index: -1;
}

.time-marker.hour:after {
	opacity: 0.4;
}

.stage-name {
	background: #222;
	color: white;
	padding: 6px 12px;
	font-weight: bold;
	white-space: nowrap;
	position: sticky;
	left: 0;
	z-index: 5;
	display: flex;
	align-items: center;
	opacity: 0;
	transform: translateX(-20px);
	animation: slideInLeft 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes slideInLeft {
	from {
		opacity: 0;
		transform: translateX(-20px);
	}
	to {
		opacity: 1;
		transform: translateX(0);
	}
}

.stage-name span {
  display: inline-block;
}

.event-card {
	overflow: hidden;
	filter: drop-shadow(0px 2px 4px rgba(0, 0, 0, 0.1));
	width: 100%;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	cursor: pointer;
	opacity: 0;
	transform: translateY(20px);
	animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.event-card:hover {
  overflow: visible;
  z-index: 10; /* ensure it's above others */
  filter: drop-shadow(0px 4px 8px rgba(0, 0, 0, 0.4));
  transform: scale(1.02);
}

.act__wrapper {
	width: calc(100% - 2px);
	color: white;
	margin: 2px 1px 2px 2px;
}

.act__info {
	background-color: #A35C9D;

	padding: 16px;
	white-space: normal;

	display: flex;
	flex-direction: column;
	gap: 0px;

	width: max-content;
	min-width: calc(100% - 32px);
}

.act__name {
	font-weight: bold;
	font-size: 15px;
	text-transform: uppercase;
	letter-spacing: 0.01em;
	width: max-content;
}

.act__time {
	font-size: 12px;
	opacity: 0.6;
}

/* View Toggle */
.btn__second.active {
	background-color: var(--purple);
	color: white;
}

/* List View */
.timetable__timelist {
	display: none;
	width: 100%;
	padding-bottom: 80px;
	padding-top: 8px;
}

.timetable__timelist.active {
	display: block;
}

.timetable__timeline.hidden {
	display: none;
}

.timetable__list {
	display: flex;
	flex-direction: column;
	gap: 24px;

	width: calc(100% - 180px - 72px);
	margin: 0 auto;
}

.list__stage {
	padding: 0px;
}

.list__stage-name {
	font-weight: bold;
	color: white;
	margin-bottom: 12px;
	text-transform: uppercase;
	letter-spacing: 0.05em;

	padding: 6px 12px;

	background: #222;

	position: sticky;
		top: 193px;

	z-index: 200;
}

.list__acts {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.list__act {
	background: rgba(163, 92, 157, 0.9);
	padding: 12px 16px;
	color: white;
	display: flex;
    justify-content: space-between;
    align-items: flex-start;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    flex-direction: column;
}

.list__act:hover {
	background: rgba(163, 92, 157, 1);
	transform: translateY(0px) scale(1.005);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.list__act-name {
	font-weight: bold;
	font-size: 14px;
	text-transform: uppercase;
	letter-spacing: 0.02em;
}

.list__act-time {
	font-size: 12px;
	opacity: 0.8;
}

.list__act--recommended {
	position: relative;
	transition: all 0.3s ease;
}

.list__act--recommended:hover {
	transform: translateX(4px);
	box-shadow: 0 4px 12px rgba(29, 185, 84, 0.2);
}

@media screen and (max-width: 768px){

	.section__margin {
		flex-direction: row;
		padding:16px;
		gap: 16px;
		flex-wrap: wrap;
		width: calc(100% - 32px);
	}

	.btn__day {
		font-size: 14px;
	}

	.timetable__main .section__margin {
		padding-top: 72px;
	}

	.timetable__timeline {
		padding-left: 16px;
		width: calc(100% - 16px);
	}

	.timetable__nav {
		padding-left: 16px;
		padding-right: 16px;
		width: calc(100% - 32px);

		top: 72px;
	}

	.timetable__nav--head {
		padding-right: 0;
		flex-direction: column;
		gap: 4px;
	}

	.nav__type--days {
		display: flex;
		gap: 0px;
		width: 100%;
		justify-content: space-between;
	}

	.timetable__nav--currentday {
		padding-top: 0px;
		padding-left: 0px;
	}

	

	.timetable__list {
		width: calc(100% - 16px - 16px);
		padding-left: 16px;
		padding-right: 16px;
	}

	.list__stage-name {
		top: 176px;
		font-size: 13px;
		margin-bottom: 2px;
	}

	.stage-name span {
		font-size: 13px;
	}

	.list__act {
		gap: 2px;
		padding: 10px 12px
	}

	.act__name,
	.list__act-name {
		font-size: 13px;
	}

	.act__time,
	.list__act-time {
		font-size: 10px;
		opacity: 0.8;
	}

	.act__info {
		padding: 12px;
	}

	.timetable__content {
		position: relative;
		width: 100%;
	}

	/* Hide desktop button on mobile */
	.btn__second--desktop {
		display: none !important;
		visibility: hidden !important;
		opacity: 0 !important;
		position: absolute !important;
		left: -9999px !important;
		width: 0 !important;
		height: 0 !important;
		overflow: hidden !important;
	}

	/* Show mobile button on mobile */
	.btn__second--mobile {
		display: block !important;
		visibility: visible !important;
		opacity: 1 !important;
		position: relative !important;
		left: auto !important;
		width: auto !important;
		height: auto !important;
		overflow: visible !important;
	}

	.timetable__nav--currentday-text {
		width: 50%;
	}

	.timetable__nav--currentday-content {
		display: flex;
			flex-direction: row;
			align-content: center;
			align-items: flex-start;
			justify-content: space-between;
	}

}

