/* Nezná Events — basic functional styling. Iteration target. */

.nezna-events-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 2rem 1.25rem;
}

.nezna-events-header {
	margin-bottom: 2rem;
}

.nezna-events-title {
	font-size: clamp(1.75rem, 3vw, 2.5rem);
	margin: 0 0 1rem;
	font-weight: 700;
}

.nezna-events-subtitle {
	margin: 0 0 1rem;
}

/* Day tabs */
.nezna-day-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
	margin: 0 0 1.25rem;
}

.nezna-day-tab {
	display: inline-flex;
	align-items: center;
	padding: .45rem .9rem;
	border-radius: 999px;
	background: #f1f1f1;
	color: #111;
	text-decoration: none;
	font-size: .9rem;
	font-weight: 500;
	transition: background .15s, color .15s;
}

.nezna-day-tab:hover { background: #e2e2e2; }

.nezna-day-tab.is-active {
	background: #111;
	color: #fff;
}

/* Filter bar */
.nezna-filter-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: end;
	gap: 1rem;
	padding: 1rem;
	background: #fafafa;
	border-radius: 12px;
}

.nezna-filter {
	display: flex;
	flex-direction: column;
	gap: .25rem;
	font-size: .85rem;
}

.nezna-filter__label {
	font-weight: 600;
	color: #444;
}

.nezna-filter select {
	min-width: 160px;
	padding: .45rem .6rem;
	border-radius: 8px;
	border: 1px solid #d0d0d0;
	background: #fff;
}

.nezna-filter--toggle {
	flex-direction: row;
	align-items: center;
	gap: .5rem;
	padding-bottom: .45rem;
}

.nezna-filter__link {
	margin-left: auto;
	font-weight: 600;
	color: #111;
	text-decoration: none;
	padding: .45rem .9rem;
	border-radius: 8px;
	border: 1px solid #111;
}

.nezna-filter__link:hover { background: #111; color: #fff; }

/* Event list & venue groups */
.nezna-events-list {
	display: flex;
	flex-direction: column;
	gap: 2.5rem;
}

.nezna-venue-group__header {
	margin-bottom: 1rem;
	padding-bottom: .5rem;
	border-bottom: 2px solid #111;
}

.nezna-venue-group__title {
	margin: 0;
	font-size: 1.25rem;
	font-weight: 700;
}

.nezna-venue-group__meta {
	margin-top: .25rem;
	color: #555;
	font-size: .85rem;
}

.nezna-venue-group.is-empty,
.nezna-timeline__row.is-empty,
.nezna-timeline.is-empty { display: none; }

.nezna-event-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 1rem;
}

/* Event card */
.nezna-event-card {
	position: relative;
	padding: 1rem 1.1rem 1.1rem;
	background: #1a3aa0;
	color: #fff;
	border-radius: 12px;
	min-height: 140px;
	display: flex;
	flex-direction: column;
	gap: .5rem;
	transition: transform .15s;
}

.nezna-event-card:hover { transform: translateY(-2px); }

.nezna-event-card.is-hidden-by-fav { display: none; }

/* Favorites page: hide everything by default, JS reveals favorited cards via .is-fav-shown */
.nezna-event-grid--favorites .nezna-event-card { display: none; }
.nezna-event-grid--favorites .nezna-event-card.is-fav-shown { display: flex; }

.nezna-event-card__time {
	display: inline-block;
	padding: .2rem .55rem;
	background: rgba(255,255,255,.18);
	border-radius: 6px;
	font-size: .8rem;
	font-weight: 600;
	align-self: flex-start;
}

.nezna-event-card__title {
	margin: 0;
	font-size: 1rem;
	line-height: 1.3;
	font-weight: 600;
}

.nezna-event-card__title a {
	color: inherit;
	text-decoration: none;
}

.nezna-event-card__title a:hover { text-decoration: underline; }

.nezna-event-card__venue {
	margin-top: auto;
	font-size: .8rem;
	opacity: .85;
}

/* Favorite button */
.nezna-fav-btn {
	position: absolute;
	top: .65rem;
	right: .65rem;
	background: transparent;
	border: 0;
	color: #fff;
	cursor: pointer;
	padding: .25rem;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: background .15s;
}

.nezna-fav-btn:hover { background: rgba(255,255,255,.15); }

.nezna-fav-btn.is-active svg path {
	fill: #ff4365;
	stroke: #ff4365;
}

.nezna-fav-btn--large {
	position: static;
	padding: .6rem 1rem;
	border-radius: 8px;
	border: 1px solid #111;
	color: #111;
	display: inline-flex;
	gap: .5rem;
	font-weight: 600;
}

.nezna-fav-btn--large:hover { background: #111; color: #fff; }
.nezna-fav-btn--large:hover svg path { stroke: #fff; }

.nezna-fav-btn--large.is-active {
	background: #ff4365;
	border-color: #ff4365;
	color: #fff;
}

.nezna-fav-btn--large.is-active svg path { stroke: #fff; fill: #fff; }

/* Generic buttons */
.nezna-btn {
	display: inline-block;
	padding: .65rem 1.1rem;
	border-radius: 8px;
	border: 1px solid #111;
	background: #fff;
	color: #111;
	text-decoration: none;
	font-weight: 600;
	cursor: pointer;
	transition: background .15s, color .15s;
}

.nezna-btn--primary {
	background: #111;
	color: #fff;
}

.nezna-btn--primary:hover { background: #333; }
.nezna-btn--primary:disabled { background: #999; border-color: #999; cursor: not-allowed; }

.nezna-btn--secondary:hover { background: #111; color: #fff; }

/* Single event */
.nezna-event-single__back {
	display: inline-block;
	margin-bottom: 1.25rem;
	color: #555;
	text-decoration: none;
}

.nezna-event-single__back:hover { color: #111; }

.nezna-event-single__header {
	margin-bottom: 2rem;
	padding-bottom: 1.5rem;
	border-bottom: 1px solid #e4e4e4;
}

.nezna-event-single__date {
	font-size: .95rem;
	color: #555;
	margin-bottom: .5rem;
	font-weight: 500;
}

.nezna-event-single__title {
	margin: 0 0 1rem;
	font-size: clamp(1.75rem, 3.5vw, 2.5rem);
	font-weight: 700;
}

.nezna-event-single__venue {
	display: flex;
	flex-wrap: wrap;
	gap: .35rem .75rem;
	margin-bottom: 1.5rem;
	color: #333;
}

.nezna-event-single__venue strong { font-weight: 700; }

.nezna-event-single__actions {
	display: flex;
	flex-wrap: wrap;
	gap: .75rem;
	align-items: center;
}

.nezna-event-single__image { margin: 1.5rem 0; }
.nezna-event-single__image img { width: 100%; height: auto; border-radius: 12px; }

.nezna-event-single__content {
	max-width: 720px;
	line-height: 1.7;
}

/* Favorites page */
.nezna-favorites__actions {
	display: flex;
	gap: 1rem;
	align-items: center;
	margin-top: 1rem;
}

.nezna-favorites__count {
	color: #555;
	font-size: .9rem;
}

.nezna-favorites__empty {
	padding: 2rem;
	text-align: center;
	background: #fafafa;
	border-radius: 12px;
	color: #555;
}

.nezna-events-empty {
	padding: 2rem;
	text-align: center;
	color: #555;
}

[data-events-timeline].is-loading {
	opacity: .55;
	pointer-events: none;
	transition: opacity .15s;
}

/* ===== Timeline view ===== */
.nezna-timeline {
	--label-width: 180px;
	--lane-height: 110px;
	--lane-gap: 8px;
	margin: 0 0 2rem;
	font-family: inherit;
}

.nezna-timeline__day {
	margin-bottom: .75rem;
}

.nezna-timeline__date {
	margin: 0;
	font-size: 1.1rem;
	font-weight: 700;
	color: #111;
}

.nezna-timeline__scroll {
	overflow-x: auto;
	overflow-y: hidden;
	padding-bottom: .5rem;
	-webkit-overflow-scrolling: touch;
}

.nezna-timeline__inner {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: var(--lane-gap);
	min-width: 100%;
}

/* Hour scale row */
.nezna-timeline__scale {
	position: relative;
	display: flex;
	height: 28px;
	border-bottom: 1px solid #e4e4e4;
	margin-bottom: .25rem;
}

.nezna-timeline__label-spacer {
	flex: 0 0 var(--label-width);
}

.nezna-timeline__hours {
	position: relative;
	flex: 1 1 auto;
	min-width: 0;
}

.nezna-timeline__hour {
	position: absolute;
	top: 6px;
	font-size: .78rem;
	font-weight: 600;
	color: #555;
	background: #f1f1f1;
	padding: .15rem .55rem;
	border-radius: 999px;
	transform: translateX(-50%);
	white-space: nowrap;
}

/* Venue rows */
.nezna-timeline__row {
	position: relative;
	display: flex;
	min-height: calc(
		var(--lane-height) * var(--venue-lanes, 1) +
		var(--lane-gap) * max(0, var(--venue-lanes, 1) - 1)
	);
}

.nezna-timeline__venue {
	flex: 0 0 var(--label-width);
	padding-right: .75rem;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: .15rem;
	font-size: .85rem;
	color: #111;
	border-right: 1px solid #e4e4e4;
	background: #fff;
	position: sticky;
	left: 0;
	z-index: 2;
	align-self: stretch;
}

.nezna-timeline__venue strong {
	font-weight: 700;
	font-size: .95rem;
}

.nezna-timeline__venue small {
	font-size: .75rem;
	color: #666;
}

.nezna-timeline__lanes {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	gap: var(--lane-gap);
	min-width: 0;
}

.nezna-timeline__lane {
	position: relative;
	height: var(--lane-height);
	flex-shrink: 0;
	background: #fff;
	border-radius: 8px;
}

.nezna-timeline__gridline {
	display: none;
}

/* Timeline event card */
.nezna-event-card--timeline {
	position: absolute;
	top: 8px;
	bottom: 8px;
	min-height: 0;
	padding: .55rem .65rem .6rem;
	background: #1a3aa0;
	color: #fff;
	border-radius: 10px;
	display: flex;
	flex-direction: column;
	gap: .25rem;
	overflow: hidden;
	box-shadow: 0 1px 0 rgba(0,0,0,.05);
}

.nezna-event-card--timeline:hover { transform: none; box-shadow: 0 4px 14px rgba(26,58,160,.25); }

.nezna-event-card--timeline .nezna-event-card__time {
	font-size: .72rem;
	padding: .15rem .45rem;
	background: rgba(255,255,255,.18);
	align-self: flex-start;
}

.nezna-event-card--timeline .nezna-event-card__title {
	font-size: .82rem;
	line-height: 1.2;
	margin: 0;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.nezna-event-card--timeline .nezna-fav-btn {
	top: .35rem;
	right: .35rem;
	padding: .15rem;
}

/* Mobile: shrink the label column so cards have room */
@media (max-width: 640px) {
	.nezna-timeline { --label-width: 110px; --lane-height: 96px; }
	.nezna-timeline__venue strong { font-size: .85rem; }
	.nezna-timeline__venue small { display: none; }
}
