/* ============================================================
   Luontoliitto Events — events.css
   Matches the red date / divider / content card design shown
   in the reference screenshot.
   ============================================================ */

/* ---------- Card list ---------- */
.ll-events-list {
	display: flex;
	flex-direction: column;
	gap: 0;
}

/* ---------- Single card ---------- */
.ll-event-card {
	border-bottom: 1px solid #e0ddd6;
	padding: 1.5rem 0;
}

.ll-event-card:first-child {
	border-top: 1px solid #e0ddd6;
}

.ll-event-card__inner {
	display: flex;
	align-items: flex-start;
	gap: 1.5rem;
	text-decoration: none;
	color: inherit;
}

.ll-event-card__inner:hover .ll-event-card__title {
	text-decoration: underline;
}

/* Date block */
.ll-event-card__date {
	display: flex;
	flex-direction: column;
	align-items: center;
	min-width: 3.5rem;
	line-height: 1;
	flex-shrink: 0;
}

.ll-event-card__day {
	font-size: 2.25rem;
	font-weight: 700;
	color: #c0392b;     /* match screenshot red */
	line-height: 1;
}

.ll-event-card__month {
	font-size: 0.85rem;
	font-weight: 600;
	color: #c0392b;
	text-transform: lowercase;
	margin-top: 0.1rem;
}

/* Vertical divider */
.ll-event-card__divider {
	width: 1px;
	align-self: stretch;
	background: #c0c0b8;
	flex-shrink: 0;
}

/* Content */
.ll-event-card__content {
	flex: 1;
	min-width: 0;
}

body h3.ll-event-card__title {
	font-size: 1.25rem;
	line-height: 1.2em;
	font-weight: 700;
	margin: 0 0 0.5rem;
	color: #1a1a1a;
}

.ll-event-card__excerpt {
	font-size: 0.95rem;
	line-height: 1.6;
	color: #2c2c2c;
	margin: 0 0 0.5rem;
}

.ll-event-card__location {
	display: block;
	font-size: 0.8rem;
	color: #666;
	margin-top: 0.35rem;
}

/* ---------- Load more ---------- */
.ll-load-more-wrap {
	text-align: center;
	padding: 2rem 0 1rem;
}

.ll-load-more {
	display: inline-block;
	padding: 0.6rem 1.75rem;
	background: #c0392b;
	color: #fff;
	border: none;
	border-radius: 3px;
	font-size: 0.9rem;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.2s;
}

.ll-load-more:hover {
	background: #a93226;
}

.ll-load-more:disabled {
	opacity: 0.5;
	cursor: default;
}

/* ---------- Filters ---------- */
.ll-events-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 1.5rem;
	align-items: flex-end;
	padding: 1.5rem 0;
}

.ll-filter {
	position: relative;
	flex: 1 1 160px;
}

.ll-filter__label {
	display: block;
	font-size: 0.8rem;
	font-weight: 600;
	color: #333;
	margin-bottom: 0.35rem;
	letter-spacing: 0.01em;
}

[type=button].ll-filter__trigger {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	background: transparent;
	border: none;
	border-bottom: 1.5px solid #aaa;
	padding: 0.35rem 0;
	font-size: 0.9rem;
	color: #555;
	cursor: pointer;
	text-align: left;
	gap: 0.5rem;
	border-radius: 0;
}

[type=button].ll-filter__trigger:hover {
	background: rgba(0,0,0,0.2);
	color: #000;
}

[type=button].ll-filter__trigger:focus-visible {
	outline: 2px solid #c0392b;
	outline-offset: 2px;
}

.ll-filter__trigger-label {
	flex: 1;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.ll-filter__arrow {
	font-size: 0.65rem;
	transition: transform 0.2s;
}

.ll-filter--open .ll-filter__arrow {
	transform: rotate(180deg);
}

/* Dropdown panels */
.ll-filter__dropdown-wrap {
	position: relative;
}

.ll-filter__panel {
	position: absolute;
	top: calc(100% + 4px);
	left: 0;
	min-width: 220px;
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 4px;
	box-shadow: 0 4px 16px rgba(0,0,0,0.10);
	z-index: 200;
	padding: 0.75rem;
}

.ll-filter__panel[hidden] {
	display: none;
}

/* Checkbox panel */
.ll-filter__checkbox-label {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.875rem;
	padding: 0.3rem 0;
	cursor: pointer;
	color: #222;
}

.ll-filter__checkbox-label input[type="checkbox"] {
	accent-color: #c0392b;
	width: 1rem;
	height: 1rem;
	flex-shrink: 0;
}

/* Calendar panel */
.ll-filter__panel--calendar {
	min-width: 280px;
}

/* Clear button */
.ll-filter__clear {
	display: block;
	margin-top: 0.5rem;
	background: none;
	border: none;
	font-size: 0.78rem;
	color: #c0392b;
	cursor: pointer;
	padding: 0;
	text-decoration: underline;
}

/* ---------- Inline calendar ---------- */
.ll-calendar {
	font-size: 0.875rem;
}

.ll-calendar__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 0.5rem;
}

.ll-calendar__nav {
	background: none;
	border: none;
	cursor: pointer;
	font-size: 1rem;
	padding: 0.2rem 0.4rem;
	color: #333;
}

.ll-calendar__month-label {
	font-weight: 600;
	font-size: 0.85rem;
}

.ll-calendar__grid {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 2px;
}

.ll-calendar__weekday {
	text-align: center;
	font-size: 0.7rem;
	color: #888;
	padding: 0.2rem 0;
	font-weight: 600;
}

.ll-calendar__day {
	text-align: center;
	padding: 0.3rem 0;
	border-radius: 3px;
	cursor: pointer;
	font-size: 0.8rem;
	color: #222;
	border: 1px solid transparent;
}

.ll-calendar__day:hover {
	background: #f5e5e3;
}

.ll-calendar__day--selected-week {
	background: #f5e5e3;
	color: #c0392b;
	font-weight: 600;
}

.ll-calendar__day--today {
	border-color: #c0392b;
}

.ll-calendar__day--other-month {
	color: #ccc;
}

.ll-calendar__day--empty {
	cursor: default;
}
