/* Events Elementor Widget — frontend styles */

.ree-events-wrap * { box-sizing: border-box; }

.ree-events-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 28px;
}

.ree-card {
	background: #fff;
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 2px 10px rgba(20, 20, 43, 0.06);
	display: flex;
	flex-direction: column;
	transition: transform .25s ease, box-shadow .25s ease;
}

.ree-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 16px 30px rgba(20, 20, 43, 0.12);
}

.ree-card__media {
	position: relative;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: #eef0f6;
}

.ree-card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .4s ease;
}

.ree-card:hover .ree-card__img { transform: scale(1.06); }

.ree-card__img--placeholder {
	background: linear-gradient(135deg, #eef0f6, #dfe3ee);
}

.ree-card__badge {
	position: absolute;
	top: 12px;
	left: 12px;
	background: #5b3df6;
	color: #fff;
	border-radius: 10px;
	padding: 6px 10px;
	text-align: center;
	line-height: 1.1;
	box-shadow: 0 4px 10px rgba(0,0,0,.15);
}

.ree-card__badge-day { display: block; font-size: 18px; font-weight: 700; }
.ree-card__badge-month { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; }

.ree-card__price {
	position: absolute;
	bottom: 12px;
	right: 12px;
	background: rgba(0,0,0,.65);
	color: #fff;
	font-size: 12px;
	font-weight: 600;
	padding: 5px 10px;
	border-radius: 999px;
}

.ree-card__body {
	padding: 20px 20px 22px;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.ree-card__title {
	font-size: 19px;
	line-height: 1.3;
	margin: 0 0 10px;
	font-weight: 700;
	color: #1a1a1a;
}

.ree-card__meta {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 13.5px;
	color: #5f6368;
	margin-bottom: 6px;
}

.ree-card__meta svg { flex-shrink: 0; color: #5b3df6; }

.ree-card__excerpt {
	font-size: 14px;
	color: #5f6368;
	line-height: 1.6;
	margin: 10px 0 18px;
	flex: 1;
}

.ree-card__btn {
	appearance: none;
	border: 1px solid #5b3df6;
	background: #5b3df6;
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	padding: 10px 18px;
	border-radius: 8px;
	cursor: pointer;
	transition: opacity .2s ease, transform .2s ease;
	align-self: flex-start;
}

.ree-card__btn:hover { opacity: .88; transform: translateY(-1px); }

.ree-no-events {
	grid-column: 1 / -1;
	text-align: center;
	padding: 40px 20px;
	color: #888;
	background: #f7f7fb;
	border-radius: 12px;
}

/* Load more */
.ree-load-more-wrap {
	text-align: center;
	margin-top: 34px;
}

.ree-load-more {
	appearance: none;
	background: transparent;
	border: 2px solid #5b3df6;
	color: #5b3df6;
	font-weight: 700;
	font-size: 14px;
	padding: 12px 28px;
	border-radius: 999px;
	cursor: pointer;
	transition: background .2s ease, color .2s ease;
}

.ree-load-more:hover { background: #5b3df6; color: #fff; }

.ree-load-more[disabled] { opacity: .6; cursor: default; }

.ree-load-more.is-loading::after {
	content: "";
	display: inline-block;
	width: 12px;
	height: 12px;
	margin-left: 8px;
	border: 2px solid currentColor;
	border-right-color: transparent;
	border-radius: 50%;
	vertical-align: middle;
	animation: ree-spin .7s linear infinite;
}

@keyframes ree-spin { to { transform: rotate(360deg); } }

/* -------- View More modal -------- */
.ree-modal-portal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: none;
	align-items: flex-start;
	justify-content: center;
	padding: 4vh 16px;
	overflow-y: auto;
}

.ree-modal-portal.is-open { display: flex; }

.ree-modal__overlay {
	position: fixed;
	inset: 0;
	background: rgba(15, 15, 25, .6);
	backdrop-filter: blur(2px);
}

.ree-modal__panel {
	position: relative;
	background: #fff;
	width: 100%;
	max-width: 720px;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 30px 60px rgba(0,0,0,.3);
	animation: ree-pop .25s ease;
}

@keyframes ree-pop {
	from { opacity: 0; transform: translateY(14px) scale(.98); }
	to { opacity: 1; transform: translateY(0) scale(1); }
}

.ree-modal__close {
	position: absolute;
	top: 14px;
	right: 14px;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: rgba(255,255,255,.9);
	border: none;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	z-index: 2;
	box-shadow: 0 2px 8px rgba(0,0,0,.15);
}

.ree-modal__body {
	max-height: 88vh;
	overflow-y: auto;
}

.ree-modal__loading {
	padding: 80px 20px;
	text-align: center;
	color: #888;
}

.ree-detail__hero img {
	width: 100%;
	max-height: 320px;
	object-fit: cover;
	display: block;
}

.ree-detail__body { padding: 28px 30px 34px; }

.ree-detail__tags { margin-bottom: 10px; }

.ree-detail__tag {
	display: inline-block;
	background: #efeaff;
	color: #5b3df6;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .03em;
	padding: 4px 10px;
	border-radius: 999px;
	margin-right: 6px;
}

.ree-detail__title {
	font-size: 26px;
	line-height: 1.3;
	margin: 4px 0 20px;
	font-weight: 800;
	color: #1a1a1a;
}

.ree-detail__infogrid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 16px;
	background: #f7f7fb;
	border-radius: 12px;
	padding: 18px;
	margin-bottom: 24px;
}

.ree-detail__info { display: flex; flex-direction: column; gap: 4px; }

.ree-detail__info-label {
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: .05em;
	color: #8a8a99;
	font-weight: 700;
}

.ree-detail__info-value { font-size: 14.5px; color: #24242e; font-weight: 600; line-height: 1.4; }

.ree-detail__desc h4,
.ree-detail__gallery h4 {
	font-size: 15px;
	margin: 0 0 10px;
	color: #1a1a1a;
}

.ree-detail__desc {
	font-size: 15px;
	line-height: 1.75;
	color: #40404a;
	margin-bottom: 26px;
}

.ree-detail__gallery-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
	gap: 10px;
}

.ree-detail__gallery-grid img {
	width: 100%;
	height: 90px;
	object-fit: cover;
	border-radius: 8px;
}

@media (max-width: 600px) {
	.ree-events-grid { grid-template-columns: 1fr !important; }
	.ree-detail__title { font-size: 21px; }
}
