.neo-event-calendar {
	--neo-bg: #08090c;
	--neo-panel: #0d0f14;
	--neo-panel-border: #262a36;
	--neo-card: #0e1015;
	--neo-card-border: #1e2129;
	--neo-input: #101319;
	--neo-blue: #4f7fff;
	--neo-blue-light: #6fa0ff;
	--neo-text: #f4f5f7;
	--neo-muted: #8b93a3;
	--neo-muted-2: #5a6172;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: var(--neo-text);
	background: var(--neo-bg);
	padding: 28px;
	border-radius: 14px;
	box-sizing: border-box;
}
.neo-event-calendar * { box-sizing: border-box; }

/* ---- Isolation reset ----
   WordPress themes / page builders frequently ship global rules like
   "svg { position: absolute }" or "a { text-decoration: underline }"
   for their own icon systems or link styling. Those rules cascade into
   any widget on the page, including this one, and are what causes
   icons/buttons to visually detach from their card and "float" over
   other content. Everything below re-asserts sane defaults, scoped
   strictly to .neo-event-calendar, with !important so a theme's rule
   (which usually has no !important) can't win. */
.neo-event-calendar,
.neo-event-calendar *,
.neo-event-calendar *::before,
.neo-event-calendar *::after {
	position: static;
	float: none;
	list-style: none;
}
.neo-event-calendar { isolation: isolate; }
.neo-event-calendar svg {
	position: static !important;
	float: none !important;
	display: inline-block !important;
	vertical-align: middle !important;
	flex-shrink: 0 !important;
	max-width: none !important;
	margin: 0 !important;
	top: auto !important;
	left: auto !important;
}
.neo-event-calendar h3,
.neo-event-calendar h4,
.neo-event-calendar p {
	font-family: inherit !important;
	background: none !important;
	border: none !important;
}
.neo-event-calendar a {
	text-decoration: none !important;
	box-shadow: none !important;
	border-bottom: none !important;
}
.neo-event-calendar button,
.neo-event-calendar input {
	font-family: inherit !important;
	-webkit-appearance: none;
	appearance: none;
	box-shadow: none !important;
	line-height: normal;
}

.neo-ec-layout {
	display: grid;
	grid-template-columns: 400px 1fr;
	gap: 32px;
	align-items: start;
}
@media (max-width: 920px) {
	.neo-ec-layout { grid-template-columns: 1fr; }
	/* In the stacked single-column layout the calendar and list share
	   the same column, so a sticky calendar would overlap the list as
	   it scrolls past underneath. Sticky only makes sense in the
	   two-column desktop layout, so it's turned off here. */
	.neo-ec-cal-panel { position: static; top: auto; }
}

/* ---- Calendar panel ---- */
.neo-ec-cal-panel {
	background: var(--neo-panel);
	border: 1px solid var(--neo-panel-border);
	border-radius: 14px;
	padding: 28px;
	position: sticky;
	top: 24px;
	z-index: 2;
}
.neo-ec-cal-panel h3 {
	margin: 0 0 8px;
	font-size: 24px;
	font-weight: 800;
	letter-spacing: -0.2px;
}
.neo-ec-cal-hint {
	color: var(--neo-muted);
	font-size: 13.5px;
	margin: 0 0 20px;
}
.neo-ec-cal-nav {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 20px;
}
.neo-ec-cal-nav button {
	background: var(--neo-input);
	border: 1px solid var(--neo-panel-border);
	color: var(--neo-text);
	width: 40px;
	height: 40px;
	border-radius: 8px;
	cursor: pointer;
	font-size: 17px;
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: border-color .15s ease, color .15s ease;
}
.neo-ec-cal-nav button:hover { border-color: var(--neo-blue); color: var(--neo-blue-light); }
.neo-ec-cal-month-label {
	flex: 1;
	text-align: center;
	background: var(--neo-input);
	border: 1px solid var(--neo-panel-border);
	border-radius: 8px;
	padding: 10px 12px;
	font-weight: 700;
	font-size: 15px;
	letter-spacing: 0.2px;
}

.neo-ec-weekdays,
.neo-ec-days {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 4px;
}
.neo-ec-weekdays {
	margin-bottom: 10px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.6px;
	color: var(--neo-muted-2);
	text-transform: uppercase;
}
.neo-ec-weekdays div { text-align: center; padding: 4px 0; }

.neo-ec-day {
	position: relative;
	text-align: center;
	padding: 11px 0 13px;
	border-radius: 8px;
	cursor: pointer;
	font-size: 14.5px;
	color: var(--neo-text);
	background: transparent;
	border: 1px solid transparent;
	user-select: none;
	transition: background .12s ease, border-color .12s ease;
}
.neo-ec-day.is-outside { color: #363a45; cursor: default; }
.neo-ec-day.has-events:hover { background: rgba(79,127,255,0.1); }
.neo-ec-day.is-today { border-color: #3a3f4c; font-weight: 700; }
.neo-ec-day.is-selected {
	border-color: var(--neo-blue);
	background: rgba(79,127,255,0.14);
	font-weight: 700;
}
.neo-ec-day .dot {
	position: absolute;
	bottom: 4px;
	left: 50%;
	transform: translateX(-50%);
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: var(--neo-blue-light);
}
.neo-ec-day.is-outside .dot { background: #40465a; }

.neo-ec-clear-btn {
	margin-top: 18px;
	width: 100%;
	background: transparent;
	border: 1px solid var(--neo-panel-border);
	color: var(--neo-muted);
	padding: 10px;
	border-radius: 8px;
	cursor: pointer;
	font-size: 13px;
	font-weight: 600;
	transition: color .15s ease, border-color .15s ease;
}
.neo-ec-clear-btn:hover { color: var(--neo-text); border-color: var(--neo-blue); }

/* ---- List panel ---- */
.neo-ec-list-panel { min-width: 0; }

.neo-ec-search {
	position: relative;
	margin-bottom: 10px;
}
.neo-ec-search input {
	width: 100%;
	background: var(--neo-input);
	border: 1px solid var(--neo-panel-border);
	border-radius: 10px;
	color: var(--neo-text);
	padding: 15px 16px 15px 46px;
	font-size: 15px;
	font-family: inherit;
	transition: border-color .15s ease;
}
.neo-ec-search input::placeholder { color: var(--neo-muted); }
.neo-ec-search input:focus { outline: none; border-color: var(--neo-blue); }
.neo-ec-search-icon {
	position: absolute;
	left: 16px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--neo-muted);
	pointer-events: none;
	display: flex;
}
.neo-ec-search-icon svg {
	width: 18px !important;
	height: 18px !important;
}
.neo-ec-search-hint {
	color: var(--neo-muted);
	font-size: 13.5px;
	margin: 0 0 26px;
}

.neo-ec-date-heading {
	color: var(--neo-blue-light);
	font-size: 15.5px;
	font-weight: 800;
	letter-spacing: 0.6px;
	text-transform: uppercase;
	margin: 30px 0 14px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--neo-panel-border);
}
.neo-ec-date-heading:first-of-type { margin-top: 0; }

.neo-ec-event-card {
	display: flex;
	align-items: center;
	gap: 20px;
	background: var(--neo-card);
	border: 1px solid var(--neo-card-border);
	border-radius: 12px;
	padding: 16px;
	margin-bottom: 16px;
	transition: border-color .15s ease;
}
.neo-ec-event-card:hover { border-color: #33384a; }
@media (max-width: 680px) {
	.neo-ec-event-card { flex-wrap: wrap; }
	.neo-ec-event-actions { width: 100%; flex-direction: row; margin-left: 0; }
	.neo-ec-btn { flex: 1; }
}

.neo-ec-event-img {
	width: 104px;
	height: 104px;
	border-radius: 8px;
	object-fit: cover;
	flex: 0 0 auto;
	background: #1a1c24;
}
.neo-ec-event-img.placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--neo-muted);
	font-size: 11px;
	text-align: center;
	padding: 6px;
}

.neo-ec-event-info { flex: 1; min-width: 0; }
.neo-ec-event-title {
	font-size: 19px;
	font-weight: 800;
	margin: 0 0 8px;
	line-height: 1.3;
	letter-spacing: -0.1px;
}
.neo-ec-event-desc {
	color: var(--neo-muted);
	font-size: 13.5px;
	margin: 0 0 12px;
	line-height: 1.55;
	max-width: 620px;
}
.neo-ec-event-meta {
	display: flex;
	align-items: center;
	gap: 9px;
	font-size: 13.5px;
	color: #d3d6dc;
	margin-bottom: 5px;
}
.neo-ec-event-meta svg {
	width: 14px !important;
	height: 14px !important;
	flex: 0 0 auto;
	color: var(--neo-blue-light);
	opacity: 0.9;
}
.neo-ec-event-price {
	font-weight: 700;
	font-size: 14.5px;
	margin-top: 8px;
	letter-spacing: 0.2px;
}
.neo-ec-event-price .amount { color: var(--neo-blue-light); font-size: 15.5px; }

.neo-ec-event-actions {
	display: flex;
	flex-direction: column;
	gap: 10px;
	flex: 0 0 auto;
	margin-left: auto;
	min-width: 160px;
}
.neo-ec-btn {
	display: block;
	text-align: center;
	padding: 12px 22px;
	border-radius: 8px;
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 0.5px;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	border: none;
	transition: filter .15s ease, transform .1s ease;
}
.neo-ec-btn:hover { filter: brightness(1.08); }
.neo-ec-btn:active { transform: translateY(1px); }
.neo-ec-btn-outline {
	background: #ffffff;
	color: #0d0f14;
}
.neo-ec-btn-solid {
	background: var(--neo-blue);
	color: #fff;
}

.neo-ec-empty,
.neo-ec-loading {
	color: var(--neo-muted);
	padding: 50px 0;
	text-align: center;
	font-size: 14px;
}

/* ---- Single event detail page (shown when VIEW DETAILS is clicked) ---- */
.neo-ec-single {
	max-width: 760px;
	margin: 0 auto;
	padding: 32px;
}
.neo-ec-single-back {
	display: inline-block;
	color: var(--neo-blue-light) !important;
	font-size: 13.5px;
	font-weight: 700;
	margin-bottom: 20px;
}
.neo-ec-single-hero {
	border-radius: 12px;
	overflow: hidden;
	margin-bottom: 24px;
	line-height: 0;
}
.neo-ec-single-hero img {
	width: 100% !important;
	height: auto !important;
	max-width: 100% !important;
	display: block;
	border-radius: 12px;
}
.neo-ec-single-title {
	font-size: 32px !important;
	font-weight: 800 !important;
	line-height: 1.25 !important;
	margin: 0 0 18px !important;
	letter-spacing: -0.3px;
}
.neo-ec-single-meta-row {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	margin-bottom: 14px;
}
.neo-ec-single-meta {
	display: flex;
	align-items: center;
	gap: 9px;
	font-size: 15px;
	color: #d3d6dc;
}
.neo-ec-single-meta svg {
	width: 17px !important;
	height: 17px !important;
	color: var(--neo-blue-light);
}
.neo-ec-single-price {
	font-weight: 700;
	font-size: 16px;
	margin-bottom: 22px;
}
.neo-ec-single-price .amount { color: var(--neo-blue-light); font-size: 18px; }
.neo-ec-single-cta {
	display: inline-block !important;
	margin-bottom: 32px;
	padding: 14px 34px;
}
.neo-ec-single-description {
	border-top: 1px solid var(--neo-panel-border);
	padding-top: 28px;
	font-size: 15.5px;
	line-height: 1.75;
	color: #d3d6dc;
}
.neo-ec-single-description p { margin: 0 0 18px !important; }
.neo-ec-single-description p:last-child { margin-bottom: 0 !important; }
