/* Event Management — frontend shortcode (matches appointment service cards) */

.rnt-evt-wrap {
	width: 100%;
	max-width: none;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	color: #111827;
	--rnt-evt-accent: var(--rd-site-accent, #8d6e63);
	--rnt-evt-border: #e5e7eb;
	--rnt-evt-radius: 12px;
	--rnt-evt-muted: #6b7280;
	--rnt-evt-bg: #ffffff;
	--rnt-evt-shadow: 0 1px 3px rgba(0, 0, 0, 0.07), 0 4px 12px rgba(0, 0, 0, 0.06);
}

.rnt-evt-wrap * {
	box-sizing: border-box;
}

/* Toolbar / view toggle */
.rnt-evt-toolbar {
	display: flex;
	justify-content: flex-end;
	margin-bottom: 24px;
}

.rnt-evt-view-toggle {
	display: inline-flex;
	border: 1px solid var(--rnt-evt-border);
	border-radius: 10px;
	overflow: hidden;
	background: #fff;
}

.rnt-evt-view-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 14px;
	border: none;
	background: transparent;
	color: var(--rnt-evt-muted);
	font-size: 13px;
	font-weight: 500;
	cursor: pointer;
	transition: background 0.15s, color 0.15s;
}

.rnt-evt-view-btn + .rnt-evt-view-btn {
	border-left: 1px solid var(--rnt-evt-border);
}

.rnt-evt-view-btn.is-active {
	background: var(--rnt-evt-accent);
	color: #fff;
}

.rnt-evt-view-btn:focus-visible {
	outline: 2px solid var(--rnt-evt-accent);
	outline-offset: 2px;
}

.rnt-evt-empty {
	text-align: center;
	padding: 48px 24px;
	color: var(--rnt-evt-muted);
}

.rnt-evt-month-section {
	margin-bottom: 40px;
}

.rnt-evt-month-title {
	font-size: clamp(1.35rem, 2.5vw, 1.75rem);
	font-weight: 700;
	margin: 0 0 20px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--rnt-evt-border);
	color: #111827;
}

/* Cards container — list (default) */
.rnt-evt-cards--list {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.rnt-evt-cards--list .rnt-evt-card {
	flex-direction: row;
	align-items: stretch;
}

.rnt-evt-cards--list .rnt-evt-card-img-wrap {
	width: min(220px, 34%);
	flex-shrink: 0;
}

.rnt-evt-cards--list .rnt-evt-card-img {
	height: 100%;
	min-height: 150px;
	border-radius: var(--rnt-evt-radius) 0 0 var(--rnt-evt-radius);
}

.rnt-evt-cards--list .rnt-evt-card-body {
	padding: 16px 20px;
}

/* Cards container — grid (4 columns on desktop, like appointment services) */
.rnt-evt-cards--grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
}

@media (max-width: 768px) {
	.rnt-evt-cards--grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.rnt-evt-cards--list .rnt-evt-card {
		flex-direction: column;
	}

	.rnt-evt-cards--list .rnt-evt-card-img-wrap {
		width: 100%;
	}

	.rnt-evt-cards--list .rnt-evt-card-img {
		min-height: 160px;
		border-radius: var(--rnt-evt-radius) var(--rnt-evt-radius) 0 0;
	}
}

@media (max-width: 480px) {
	.rnt-evt-cards--grid {
		grid-template-columns: 1fr;
	}
}

/* Single card */
.rnt-evt-card {
	background: var(--rnt-evt-bg);
	border: 1px solid var(--rnt-evt-border);
	border-radius: var(--rnt-evt-radius);
	overflow: hidden;
	cursor: pointer;
	transition: box-shadow 0.18s, border-color 0.18s, transform 0.15s;
	outline: none;
	display: flex;
	flex-direction: column;
}

.rnt-evt-card:hover,
.rnt-evt-card:focus-visible {
	box-shadow: var(--rnt-evt-shadow);
	border-color: var(--rnt-evt-accent);
	transform: translateY(-2px);
}

.rnt-evt-card--sold-out {
	opacity: 0.72;
}

.rnt-evt-card-img-wrap {
	position: relative;
	flex-shrink: 0;
}

.rnt-evt-card-badge {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 2;
	padding: 5px 11px;
	border-radius: 999px;
	background: rgba(17, 24, 39, 0.72);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	color: #fff;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.2;
	pointer-events: none;
	max-width: calc(100% - 20px);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.rnt-evt-card-img {
	height: 160px;
	background-size: cover;
	background-position: center;
	background-color: #f9fafb;
}

.rnt-evt-card-img--logo-fallback {
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
}

.rnt-evt-card-logo {
	display: block;
	width: 200px;
	max-width: calc(100% - 32px);
	height: auto;
	object-fit: contain;
	flex-shrink: 0;
}

.rnt-evt-card-img--placeholder {
	background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
}

.rnt-evt-card-body {
	padding: 14px 16px 16px;
	flex: 1;
	display: flex;
	flex-direction: column;
	min-width: 0;
	min-height: 0;
}

.rnt-evt-card-title {
	margin: 0 0 5px;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.35;
	color: #111827;
}

.rnt-evt-card-desc {
	margin: 0 0 8px;
	font-size: 13px;
	color: var(--rnt-evt-muted);
	line-height: 1.45;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	flex: 1;
}

.rnt-evt-card-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 14px;
	font-size: 12px;
	color: #9ca3af;
	margin-bottom: 10px;
}

.rnt-evt-card-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: auto;
	padding-top: 2px;
}

.rnt-evt-card-price {
	font-size: 15px;
	font-weight: 700;
	color: var(--rnt-evt-accent);
	flex-shrink: 0;
}

.rnt-evt-card-price--free {
	font-weight: 600;
}

.rnt-evt-card-book {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 8px 16px;
	border: none;
	border-radius: 999px;
	background: var(--rnt-evt-accent);
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	transition: filter 0.15s, opacity 0.15s;
}

.rnt-evt-card-book:hover:not(:disabled) {
	filter: brightness(0.92);
}

.rnt-evt-card-book:disabled {
	opacity: 0.55;
	cursor: not-allowed;
}

.rnt-evt-card-book:focus-visible {
	outline: 2px solid var(--rnt-evt-accent);
	outline-offset: 2px;
}

/* Modal */
.rnt-evt-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.2s ease, visibility 0.2s ease;
}

.rnt-evt-modal.is-open {
	opacity: 1;
	visibility: visible;
}

.rnt-evt-modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.55);
	backdrop-filter: blur(4px);
}

.rnt-evt-modal-panel {
	position: relative;
	background: #fff;
	border-radius: 16px;
	width: 100%;
	max-width: 520px;
	max-height: 90vh;
	overflow: hidden;
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
	display: flex;
	flex-direction: column;
}

.rnt-evt-modal-close {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 2;
	width: 36px;
	height: 36px;
	border: 2px solid var(--rnt-evt-accent);
	border-radius: 8px;
	background: #fff;
	color: var(--rnt-evt-accent);
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}

.rnt-evt-modal-scroll {
	overflow-y: auto;
	padding: 0;
}

.rnt-evt-modal-img {
	width: 100%;
	max-width: none;
	display: block;
	margin: 0 0 16px;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	vertical-align: top;
}

.rnt-evt-modal-panel .rnt-evt-modal-img {
	max-width: none !important;
}

.rnt-evt-modal-img-empty {
	width: 100%;
	max-width: none;
	margin: 0 0 16px;
	aspect-ratio: 16 / 10;
	background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
	display: flex;
	align-items: center;
	justify-content: center;
	color: #9ca3af;
}

.rnt-evt-modal-logo {
	display: block;
	width: min(220px, 70%);
	height: auto;
	object-fit: contain;
}

.rnt-evt-modal-title {
	font-size: 1.5rem;
	font-weight: 700;
	margin: 0 20px 12px;
	padding-top: 20px;
	color: #1e3a5f;
	line-height: 1.25;
}

.rnt-evt-modal-img + .rnt-evt-modal-title,
.rnt-evt-modal-img-empty + .rnt-evt-modal-title {
	padding-top: 0;
}

.rnt-evt-modal-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 20px 16px;
}

.rnt-evt-modal-chip {
	display: inline-block;
	padding: 4px 12px;
	border: 1px solid #d1d5db;
	border-radius: 999px;
	font-size: 0.8125rem;
	color: #374151;
	background: #fff;
}

.rnt-evt-modal-chip--price {
	border-color: #9ca3af;
	font-weight: 600;
}

.rnt-evt-price-eb {
	color: var(--rnt-evt-accent);
}

.rnt-evt-price-was {
	font-weight: 400;
	font-size: 0.8125rem;
	color: #9ca3af;
	text-decoration: line-through;
	margin-left: 4px;
}

.rnt-evt-modal-desc {
	font-size: 0.9375rem;
	line-height: 1.6;
	color: #4b5563;
	margin: 0 20px 20px;
}

.rnt-evt-modal-desc p:first-child {
	margin-top: 0;
}

.rnt-evt-modal-book {
	display: block;
	width: calc(100% - 40px);
	margin: 0 20px 20px;
	padding: 14px 24px;
	border: none;
	border-radius: 10px;
	background: var(--rd-site-accent);
	color: #fff;
	font-size: 0.9375rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	cursor: pointer;
	transition: filter 0.15s ease, opacity 0.15s ease;
}

.rnt-evt-modal-book:hover:not(:disabled) {
	filter: brightness(0.92);
}

.rnt-evt-modal-book:disabled {
	opacity: 0.55;
	cursor: not-allowed;
}
