.bnex-events-app {
	--bnex-accent: #14B8A6;
	--bnex-bg: #F5F7F8;
	--bnex-dark: #27272A;
	--bnex-white: #ffffff;
	--bnex-radius: 10px;

	font-family: 'Inter', sans-serif;
	color: var(--bnex-dark);
	background: var(--bnex-bg);
	padding: 32px clamp(16px, 4vw, 48px);
	border-radius: var(--bnex-radius);
	box-sizing: border-box;
}

.bnex-events-app *,
.bnex-events-app *::before,
.bnex-events-app *::after {
	box-sizing: border-box;
}

.bnex-events-app h1,
.bnex-events-app h2,
.bnex-events-app h3,
.bnex-events-app h4 {
	font-family: 'Cormorant Garamond', serif;
	font-weight: 600;
	color: var(--bnex-dark);
	margin: 0 0 16px;
	line-height: 1.2;
}

.bnex-events-app p {
	margin: 0 0 12px;
	line-height: 1.6;
}

.bnex-panel-title {
	font-size: clamp(1.6rem, 3vw, 2.2rem);
	text-align: center;
}

/* Loading / error / empty states */
.bnex-state {
	text-align: center;
	padding: 48px 16px;
	font-size: 1rem;
	color: var(--bnex-dark);
	opacity: 0.7;
}

.bnex-state.bnex-error {
	color: #b3261e;
	opacity: 1;
}

/* Back button */
.bnex-back {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: none;
	border: none;
	color: var(--bnex-accent);
	font-family: 'Inter', sans-serif;
	font-weight: 600;
	font-size: 0.95rem;
	cursor: pointer;
	padding: 8px 0;
	margin-bottom: 16px;
}

.bnex-back:hover {
	text-decoration: underline;
}

.bnex-back::before {
	content: '\2190';
}

.bnex-region-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
	max-width: 640px;
	margin: 24px auto 0;
}

.bnex-region-item {
	background: var(--bnex-white);
	border-radius: var(--bnex-radius);
	padding: 18px 24px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px 16px;
	cursor: pointer;
	border: 1px solid rgba(39, 39, 42, 0.08);
	border-left: 4px solid transparent;
	transition: transform 0.15s ease, box-shadow 0.15s ease, border-left-color 0.15s ease;
}

.bnex-region-item:hover,
.bnex-region-item:focus-visible {
	transform: translateX(4px);
	box-shadow: 0 8px 18px rgba(39, 39, 42, 0.08);
	border-left-color: var(--bnex-accent);
	outline: none;
}

.bnex-region-item::after {
	content: '\2192';
	color: var(--bnex-accent);
	font-size: 1.2rem;
	margin-left: auto;
}

.bnex-region-name {
	font-family: 'Cormorant Garamond', serif;
	font-weight: 600;
	font-size: 1.4rem;
}

.bnex-region-item .bnex-count {
	color: var(--bnex-accent);
	font-weight: 600;
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	white-space: nowrap;
}

/* Events grouped by date */
.bnex-event-groups {
	max-width: 720px;
	margin: 24px auto 0;
}

.bnex-event-group {
	margin-bottom: 28px;
}

.bnex-date-heading {
	font-size: 1.25rem;
	text-transform: capitalize;
	color: var(--bnex-accent);
	border-bottom: 2px solid rgba(20, 184, 166, 0.25);
	padding-bottom: 8px;
	margin-bottom: 12px;
}

.bnex-event-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.bnex-event-item {
	background: var(--bnex-white);
	border-radius: var(--bnex-radius);
	padding: 16px 20px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 6px 16px;
	cursor: pointer;
	border: 1px solid rgba(39, 39, 42, 0.08);
	border-left: 4px solid transparent;
	transition: transform 0.15s ease, box-shadow 0.15s ease, border-left-color 0.15s ease;
}

.bnex-event-item:hover,
.bnex-event-item:focus-visible {
	transform: translateX(4px);
	box-shadow: 0 8px 18px rgba(39, 39, 42, 0.08);
	border-left-color: var(--bnex-accent);
	outline: none;
}

.bnex-event-item::after {
	content: '\2192';
	color: var(--bnex-accent);
	font-size: 1.1rem;
	margin-left: auto;
}

.bnex-event-item-main {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.bnex-event-title {
	font-family: 'Cormorant Garamond', serif;
	font-weight: 600;
	font-size: 1.3rem;
}

.bnex-event-meta {
	font-size: 0.85rem;
	color: var(--bnex-dark);
	opacity: 0.75;
}

.bnex-meta-row {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 16px;
	font-size: 0.9rem;
	color: var(--bnex-dark);
	opacity: 0.85;
	margin-bottom: 6px;
}

.bnex-meta-row span {
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

/* Event detail */
.bnex-detail {
	background: var(--bnex-white);
	border-radius: var(--bnex-radius);
	padding: clamp(20px, 4vw, 40px);
	max-width: 880px;
	margin: 0 auto;
}

.bnex-detail h2 {
	font-size: clamp(1.8rem, 4vw, 2.4rem);
}

.bnex-detail .bnex-meta-row {
	font-size: 1rem;
	margin-bottom: 18px;
}

.bnex-detail .bnex-content {
	margin-bottom: 24px;
}

.bnex-map-wrap {
	position: relative;
	width: 100%;
	padding-top: 45%;
	border-radius: var(--bnex-radius);
	overflow: hidden;
	margin-bottom: 28px;
	background: var(--bnex-bg);
}

.bnex-map-wrap iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

/* Interest form */
.bnex-interest {
	border-top: 1px solid rgba(39, 39, 42, 0.1);
	padding-top: 24px;
}

.bnex-interest h3 {
	font-size: 1.6rem;
}

.bnex-form-row {
	margin-bottom: 14px;
}

.bnex-form-row label {
	display: block;
	font-size: 0.85rem;
	font-weight: 600;
	margin-bottom: 6px;
}

.bnex-form-row input,
.bnex-form-row textarea {
	width: 100%;
	font-family: 'Inter', sans-serif;
	font-size: 0.95rem;
	padding: 10px 12px;
	border: 1px solid rgba(39, 39, 42, 0.2);
	border-radius: 6px;
	background: var(--bnex-bg);
	color: var(--bnex-dark);
}

.bnex-form-row input:focus,
.bnex-form-row textarea:focus {
	outline: 2px solid var(--bnex-accent);
	outline-offset: 1px;
}

.bnex-form-row textarea {
	min-height: 90px;
	resize: vertical;
}

.bnex-honeypot {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.bnex-btn {
	display: inline-block;
	background: var(--bnex-accent);
	color: var(--bnex-white);
	font-family: 'Inter', sans-serif;
	font-weight: 600;
	font-size: 0.95rem;
	border: none;
	border-radius: 6px;
	padding: 12px 28px;
	cursor: pointer;
	transition: opacity 0.15s ease;
}

.bnex-btn:hover {
	opacity: 0.9;
}

.bnex-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.bnex-form-message {
	margin-top: 14px;
	font-weight: 600;
}

.bnex-form-message.bnex-success {
	color: #0f7a5a;
}

.bnex-form-message.bnex-error {
	color: #b3261e;
}

/* On narrow screens the app should hug the full width of its container
   rather than keep the desktop side padding and centered max-widths. */
@media (max-width: 600px) {
	.bnex-events-app {
		width: 100%;
		padding: 20px 16px;
		border-radius: 0;
	}

	.bnex-region-list,
	.bnex-event-groups,
	.bnex-detail {
		max-width: 100%;
	}

	.bnex-detail {
		padding: 20px 16px;
	}
}

