/* Event calendar – month view */
.event__calendar .ids-month-calendar {
	max-width: 100%;
	margin-top: 2rem;
}

.event__calendar .calendar-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 1rem;
	gap: 1rem;
}

.event__calendar .calendar-title {
	font-size: 1.5rem;
	font-weight: 400;
	margin: 0;
}

.event__calendar .calendar-nav {
	background: #E81B35;
	color: #fff;
	border: 2px solid #E81B35;
	border-radius: 8px;
	padding: 8px 16px;
	font-size: 1.25rem;
	cursor: pointer;
	transition: background .2s, border-color .2s;
}

.event__calendar .calendar-nav:hover {
	background: #363636;
	border-color: #363636;
}

.event__calendar .calendar-weekdays {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 2px;
	margin-bottom: 4px;
	text-align: center;
	font-size: 0.75rem;
	font-weight: 600;
	color: var(--font-color-base, #0A0A0A);
}

.event__calendar .calendar-grid {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 2px;
	min-height: 400px;
}

.event__calendar .calendar-cell {
	background: #F1F1F1;
	border-radius: 8px;
	min-height: 100px;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	position: relative;
}

.event__calendar .calendar-cell--empty {
	background: #f8f8f8;
}

.event__calendar .calendar-cell__date {
	font-size: 0.875rem;
	font-weight: 500;
	padding: 6px 8px;
	flex-shrink: 0;
}

.event__calendar .calendar-cell__content {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 6px;
	min-height: 115px;
}

/* Single event: full-width/full-height image in cell */
.event__calendar .calendar-cell--single .calendar-cell__content {
	position: relative;
	padding: 0;
	align-items: stretch;
}

.event__calendar .calendar-cell--single .calendar-event-image-wrap {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.event__calendar .calendar-cell--single .calendar-event-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	cursor: pointer;
}

.event__calendar .calendar-cell--single .calendar-event-placeholder {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #ddd;
	color: #333;
	font-weight: 600;
	font-size: 1.25rem;
}

/* Tooltip: light grey, scrollable, title + arrow, date/time, venue, address */
.event__calendar .calendar-cell--single,
.event__calendar .calendar-cell--multi {
	overflow: visible;
}

.event__calendar .calendar-cell__content {
	overflow: hidden;
}

.event__calendar .calendar-cell__tooltip {
	position: absolute;
	left: 100%;
	margin-left: 8px;
	top: 0;
	z-index: 20;
	min-width: 280px;
	max-width: 340px;
	max-height: 70vh;
	background: #e8e8e8;
	border-radius: 8px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
	padding: 12px 0;
	opacity: 0;
	visibility: hidden;
	transition: opacity .2s, visibility .2s;
	overflow: hidden;
}

.event__calendar .calendar-cell--single:hover .calendar-cell__tooltip,
.event__calendar .calendar-cell--multi:hover .calendar-cell__tooltip,
.event__calendar .calendar-cell__tooltip.is-visible {
	opacity: 1;
	visibility: visible;
}

.event__calendar .calendar-tooltip__scroll {
	max-height: 65vh;
	overflow-y: auto;
	padding: 0 14px;
}

.event__calendar .calendar-tooltip-event {
	padding: 12px 0;
	border-bottom: 1px solid rgba(0, 0, 0, 0.12);
	font-size: 14px;
	line-height: 1.4;
	color: #0A0A0A;
}

.event__calendar .calendar-tooltip-event:last-child {
	border-bottom: none;
}

.event__calendar .event-tooltip-title {
	font-weight: 700;
	font-size: 15px;
	margin: 0 0 6px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}

.event__calendar .event-tooltip-title .title-text {
	flex: 1;
}

.event__calendar .event-tooltip-title .title-arrow {
	flex-shrink: 0;
	color: #0A0A0A;
	font-size: 1em;
}

.event__calendar .event-tooltip-datetime {
	margin: 0 0 6px;
	font-size: 13px;
	color: #333;
}

.event__calendar .event-tooltip-venue {
	font-weight: 600;
	margin: 0 0 4px;
	font-size: 13px;
}

.event__calendar .event-tooltip-address {
	margin: 0;
	font-size: 13px;
	color: #555;
	white-space: pre-line;
}

/* Multiple events: list */
.event__calendar .calendar-cell--multi .calendar-cell__content {
	flex-direction: column;
	align-items: stretch;
	justify-content: flex-start;
	overflow-y: auto;
	max-height: 140px;
}

.event__calendar .calendar-event-item {
	padding: 8px 6px;
	border-bottom: 1px solid rgba(0,0,0,.06);
	font-size: 0.75rem;
	line-height: 1.35;
}

.event__calendar .calendar-event-item:last-child {
	border-bottom: none;
}

.event__calendar .calendar-event-item .event-item-title {
	font-weight: 600;
	margin: 0 0 4px;
	display: block;
}

.event__calendar .calendar-event-item .event-item-time,
.event__calendar .calendar-event-item .event-item-venue {
	color: var(--font-color-secondary, #666);
	margin: 0;
}

.event__calendar .calendar-event-item a {
	color: inherit;
}

.event__calendar .calendar-event-item a:hover {
	color: #E81B35;
}

.event__calendar .calendar-loading {
	text-align: center;
	padding: 2rem;
	color: var(--font-color-secondary, #666);
}

.event__calendar .calendar-loading.is-hidden {
	display: none;
}

/* Upcoming events list pagination */
.event__list__wrap .event__list__pagination {
	margin-top: 2rem;
}

.event__list__wrap .pagination__list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 1rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.event__list__wrap .pagination__item {
	margin: 0;
}

.event__list__wrap .pagination__info .pagination__label {
	font-size: 0.9375rem;
	color: var(--font-color-base, #0A0A0A);
}

.event__list__wrap .pagination__disabled {
	opacity: 0.5;
	cursor: not-allowed;
	font-size: 16px;
}
