/* =============================================================
   PRZEDSZKOLE MANAGER — CALENDAR STYLES
   v1.1 — Elementor priority, centered popup, badge fix
   ============================================================= */

/* ---- Reset & base ---- */
.pm-calendar-wrap *,
.pm-calendar-wrap *::before,
.pm-calendar-wrap *::after {
	box-sizing: border-box;
}

.pm-calendar-wrap {
	position: relative;
	width: 100%;
	font-family: inherit;
	font-size: inherit;
	color: inherit;
	line-height: inherit;
}

/* ---- Inner wrapper ---- */
.pm-calendar-inner {
	width: 100%;
	background: #ffffff;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 10px 40px rgba(255, 107, 157, 0.12);
}

/* =============================================================
   NAVIGATION BAR
   Wysokie specificity — override Elementora na buttonach
   ============================================================= */
.pm-calendar-wrap .pm-cal-nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: #FF6B9D;
	padding: 18px 24px;
	gap: 12px;
}

.pm-calendar-wrap .pm-cal-month-title {
	margin: 0 !important;
	padding: 0 !important;
	font-family: inherit !important;
	font-size: 22px !important;
	font-weight: 700 !important;
	color: #ffffff !important;
	text-align: center;
	flex: 1;
	letter-spacing: 0.02em;
	line-height: 1.2 !important;
	border: none !important;
	background: none !important;
}

.pm-cal-year {
	display: inline-block;
	font-weight: 400;
	opacity: 0.8;
	margin-left: 8px;
	font-size: 0.82em;
}

/* Wysokie specificity dla przycisków — Elementor override */
.pm-calendar-wrap .pm-cal-nav .pm-cal-prev,
.pm-calendar-wrap .pm-cal-nav .pm-cal-next {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 40px !important;
	height: 40px !important;
	min-height: auto !important;
	background: rgba(255, 255, 255, 0.2) !important;
	border: none !important;
	border-radius: 50% !important;
	color: #ffffff !important;
	cursor: pointer !important;
	transition: background 0.2s ease, transform 0.2s ease !important;
	flex-shrink: 0;
	padding: 0 !important;
	margin: 0 !important;
	box-shadow: none !important;
	text-decoration: none !important;
	line-height: 1 !important;
	font-size: 0 !important;
}

.pm-calendar-wrap .pm-cal-nav .pm-cal-prev:hover,
.pm-calendar-wrap .pm-cal-nav .pm-cal-next:hover {
	background: rgba(255, 255, 255, 0.35) !important;
	transform: scale(1.08) !important;
	color: #ffffff !important;
}

.pm-calendar-wrap .pm-cal-nav .pm-cal-prev:active,
.pm-calendar-wrap .pm-cal-nav .pm-cal-next:active {
	transform: scale(0.95) !important;
}

.pm-calendar-wrap .pm-cal-nav .pm-cal-prev svg,
.pm-calendar-wrap .pm-cal-nav .pm-cal-next svg {
	width: 20px !important;
	height: 20px !important;
	display: block !important;
}

/* =============================================================
   CALENDAR GRID
   ============================================================= */
.pm-cal-grid {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	border-left: 1px solid #FFE4F0;
	border-top: 1px solid #FFE4F0;
}

/* ---- Header cells (days of week) ---- */
.pm-cal-header-cell {
	background: #FFF0F6;
	color: #FF6B9D;
	font-family: inherit;
	font-size: 13px;
	font-weight: 600;
	text-align: center;
	padding: 10px 5px;
	border-right: 1px solid #FFE4F0;
	border-bottom: 1px solid #FFE4F0;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	user-select: none;
}

/* ---- Day cells ---- */
.pm-cal-cell {
	position: relative;
	background: #ffffff;
	border-right: 1px solid #FFE4F0;
	border-bottom: 1px solid #FFE4F0;
	padding: 8px;
	min-height: 90px;
	vertical-align: top;
	transition: background 0.15s ease;
	cursor: default;
}

.pm-cal-cell.pm-cal-empty {
	background: #fafafa;
}

.pm-cal-cell.pm-cal-has-events {
	cursor: pointer;
}

.pm-cal-cell.pm-cal-has-events:hover {
	background: #fff8fb;
}

.pm-cal-cell.pm-cal-today {
	background: #FFF0F6;
	border-color: #FF6B9D;
	box-shadow: inset 0 0 0 2px #FF6B9D;
}

.pm-cal-cell.pm-cal-saturday,
.pm-cal-cell.pm-cal-sunday {
	background: #FFF8FC;
}

/* ---- Day number ---- */
.pm-cal-day-num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-family: inherit;
	font-size: 15px;
	font-weight: 600;
	color: #444444;
	line-height: 1;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	transition: background 0.15s ease, color 0.15s ease;
}

/* Wyższe specificity — Elementor nie nadpisze */
.pm-cal-cell.pm-cal-today .pm-cal-day-num {
	background: #FF6B9D !important;
	color: #ffffff !important;
}

.pm-cal-cell.pm-cal-saturday .pm-cal-day-num,
.pm-cal-cell.pm-cal-sunday .pm-cal-day-num {
	color: #c0a0b0;
}

/* =============================================================
   EVENT BADGES — solidny kolor, biały tekst (czytelność)
   ============================================================= */
.pm-cal-events-list {
	display: flex;
	flex-direction: column;
	gap: 3px;
	margin-top: 5px;
}

/* Wysokie specificity — override Elementor button styles */
.pm-calendar-wrap .pm-cal-event-badge {
	display: flex !important;
	align-items: center !important;
	gap: 5px !important;
	width: 100% !important;
	padding: 3px 8px 3px 6px !important;
	background-color: var(--evt-color, #FF6B9D) !important;
	border: none !important;
	border-radius: 20px !important;
	cursor: pointer !important;
	text-align: left !important;
	transition: transform 0.15s ease, filter 0.15s ease !important;
	font-family: inherit !important;
	box-shadow: none !important;
	margin: 0 !important;
	outline: none !important;
	min-height: auto !important;
}

.pm-calendar-wrap .pm-cal-event-badge:hover {
	filter: brightness(1.12) !important;
	transform: scale(1.03) !important;
}

.pm-badge-dot {
	display: block;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background-color: rgba(255, 255, 255, 0.6);
	flex-shrink: 0;
}

.pm-badge-title {
	font-family: inherit;
	font-size: 11px;
	font-weight: 600;
	color: #ffffff;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 100%;
	line-height: 1.3;
}

/* =============================================================
   LOADER
   ============================================================= */
.pm-cal-loader {
	position: absolute;
	inset: 0;
	background: rgba(255, 255, 255, 0.75);
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 16px;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.2s ease;
	z-index: 10;
}

.pm-cal-loader.is-loading {
	opacity: 1;
	pointer-events: all;
}

.pm-loader-spinner {
	width: 36px;
	height: 36px;
	border: 3px solid #FFE4F0;
	border-top-color: #FF6B9D;
	border-radius: 50%;
	animation: pm-spin 0.7s linear infinite;
}

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

/* =============================================================
   POPUP OVERLAY (backdrop)
   ============================================================= */
.pm-popup-overlay {
	position: fixed;
	inset: 0;
	z-index: 99997;
	background: rgba(0, 0, 0, 0.55);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.25s ease;
	backdrop-filter: blur(2px);
	-webkit-backdrop-filter: blur(2px);
}

.pm-popup-overlay.pm-overlay-visible {
	opacity: 1;
	pointer-events: all;
}

/* =============================================================
   POPUP (tooltip) — zawsze wycentrowany na ekranie
   ============================================================= */
.pm-tooltip {
	position: fixed;
	z-index: 99999;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%) scale(0.94);
	width: min(480px, calc(100vw - 32px));
	max-height: 82vh;
	background: #ffffff;
	border: 1px solid #FFE4F0;
	border-radius: 20px;
	box-shadow:
		0 24px 80px rgba(0, 0, 0, 0.22),
		0 4px 16px rgba(255, 107, 157, 0.12);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
	font-family: inherit;
}

.pm-tooltip.pm-tooltip-visible {
	opacity: 1;
	pointer-events: all;
	transform: translate(-50%, -50%) scale(1);
}

/* ---- Hero wrapper — trzyma color-bar + zdjęcie + przycisk zamknięcia ---- */
.pm-tooltip-hero {
	position: relative;
	flex-shrink: 0;
	width: 100%;
}

/* ---- Kolor bar na górze ---- */
.pm-tooltip-color-bar {
	height: 6px;
	width: 100%;
}

/* ---- Zdjęcie ---- */
.pm-tooltip-img-wrap {
	position: relative;
	width: 100%;
	height: 200px;
	overflow: hidden;
}

.pm-tooltip-img {
	width: 100%;
	height: 200px;
	object-fit: cover;
	display: block;
}

.pm-tooltip-img-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(to bottom, rgba(0,0,0,0) 40%, rgba(0,0,0,0.45) 100%);
}

/* ---- Przycisk zamknięcia — na hero (zdjęciu lub pasku) ---- */
.pm-tooltip-close {
	position: absolute !important;
	top: 10px !important;
	right: 10px !important;
	width: 34px !important;
	height: 34px !important;
	min-height: auto !important;
	border-radius: 50% !important;
	background: rgba(0, 0, 0, 0.40) !important;
	border: none !important;
	color: #ffffff !important;
	cursor: pointer !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	font-size: 18px !important;
	line-height: 1 !important;
	transition: background 0.15s ease, transform 0.15s ease !important;
	z-index: 20 !important;
	padding: 0 !important;
	margin: 0 !important;
	font-family: inherit !important;
	box-shadow: 0 2px 10px rgba(0,0,0,0.35) !important;
	text-decoration: none !important;
}

.pm-tooltip-close:hover {
	background: rgba(0, 0, 0, 0.65) !important;
	transform: scale(1.1) !important;
	color: #ffffff !important;
}

.pm-tooltip-close:focus {
	outline: 2px solid rgba(255,255,255,0.7) !important;
	outline-offset: 2px !important;
}

/* Jeśli brak zdjęcia — hero to tylko kolorowy pasek, daj mu min-height ---- */
.pm-tooltip.pm-no-image .pm-tooltip-hero {
	min-height: 58px;
}

.pm-tooltip.pm-no-image .pm-tooltip-color-bar {
	height: 100%;
	min-height: 58px;
}

/* ---- Scrollowalny content ---- */
.pm-tooltip-scroll {
	overflow-y: auto;
	flex: 1;
	min-height: 0;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior: contain;
}

.pm-tooltip-scroll::-webkit-scrollbar {
	width: 4px;
}
.pm-tooltip-scroll::-webkit-scrollbar-track {
	background: #f9f9f9;
}
.pm-tooltip-scroll::-webkit-scrollbar-thumb {
	background: #FFB3CF;
	border-radius: 2px;
}

/* ---- Tooltip body ---- */
.pm-tooltip-body {
	padding: 18px 22px 4px;
}

.pm-tooltip-meta {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
	margin-bottom: 10px;
}

.pm-tooltip-date {
	font-family: inherit;
	font-size: 12px;
	font-weight: 600;
	color: #FF6B9D;
	display: flex;
	align-items: center;
	gap: 5px;
	line-height: 1;
}

.pm-tooltip-date svg { flex-shrink: 0; }

.pm-tooltip-cats {
	display: flex;
	gap: 4px;
	flex-wrap: wrap;
}

.pm-tooltip-cat {
	font-family: inherit;
	font-size: 11px;
	font-weight: 600;
	color: #FF6B9D;
	background: #FFF0F6;
	padding: 2px 9px;
	border-radius: 20px;
	line-height: 1.5;
}

.pm-tooltip-title {
	margin: 0 0 10px !important;
	padding: 0 !important;
	font-family: inherit !important;
	font-size: 18px !important;
	font-weight: 700 !important;
	color: #222222 !important;
	line-height: 1.35 !important;
}

.pm-tooltip-excerpt {
	font-family: inherit;
	font-size: 14px;
	font-weight: 400;
	color: #555555;
	line-height: 1.65;
	margin: 0 0 14px;
}

.pm-tooltip-excerpt p { margin: 0 0 8px; }
.pm-tooltip-excerpt ul,
.pm-tooltip-excerpt ol { margin: 0 0 8px; padding-left: 18px; }
.pm-tooltip-excerpt li { margin-bottom: 4px; }

/* ---- Mini galeria (Fancybox) ---- */
.pm-tooltip-gallery {
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
	padding: 0 22px 18px;
}

.pm-tooltip-thumb-wrap {
	display: inline-block;
	border-radius: 10px;
	overflow: hidden;
	flex-shrink: 0;
	border: 2px solid transparent;
	transition: border-color 0.15s ease, transform 0.15s ease;
	cursor: pointer;
	text-decoration: none !important;
	line-height: 0;
}

.pm-tooltip-thumb-wrap:hover {
	border-color: #FF6B9D;
	transform: scale(1.06);
}

.pm-tooltip-thumb {
	width: 62px;
	height: 62px;
	border-radius: 8px;
	object-fit: cover;
	display: block;
	pointer-events: none;
}

/* ---- No image: padding adjustment ---- */
.pm-tooltip.pm-no-image .pm-tooltip-body {
	padding-top: 22px;
}

/* =============================================================
   FANCYBOX v5 — reset tylko Elementor background/color
   Reszta (rozmiar, layout) zarządza sam Fancybox.
   ============================================================= */
.fancybox__container {
	z-index: 999999 !important;
}

.fancybox__container .f-button {
	background-color: transparent !important;
	background-image: none !important;
	border: 0 none !important;
	box-shadow: none !important;
	color: rgba(255, 255, 255, 0.85) !important;
}

.fancybox__container .f-button:hover {
	background-color: rgba(255, 255, 255, 0.15) !important;
	background-image: none !important;
	color: #ffffff !important;
}

.fancybox__container .f-button.is-close-btn {
	background-color: rgba(0, 0, 0, 0.50) !important;
	background-image: none !important;
	color: #ffffff !important;
}

.fancybox__container .f-button.is-close-btn:hover {
	background-color: rgba(0, 0, 0, 0.75) !important;
	color: #ffffff !important;
}

/* =============================================================
   ANIMATIONS
   ============================================================= */
.pm-animations .pm-cal-cell {
	animation: pm-cell-in 0.4s ease both;
}

.pm-animations .pm-cal-cell:nth-child(7n+1) { animation-delay: 0.02s; }
.pm-animations .pm-cal-cell:nth-child(7n+2) { animation-delay: 0.04s; }
.pm-animations .pm-cal-cell:nth-child(7n+3) { animation-delay: 0.06s; }
.pm-animations .pm-cal-cell:nth-child(7n+4) { animation-delay: 0.08s; }
.pm-animations .pm-cal-cell:nth-child(7n+5) { animation-delay: 0.10s; }
.pm-animations .pm-cal-cell:nth-child(7n+6) { animation-delay: 0.12s; }
.pm-animations .pm-cal-cell:nth-child(7n+0) { animation-delay: 0.14s; }

@keyframes pm-cell-in {
	from { opacity: 0; transform: translateY(6px) scale(0.97); }
	to   { opacity: 1; transform: translateY(0) scale(1); }
}

.pm-animations .pm-cal-event-badge {
	animation: pm-badge-pop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) both !important;
}

@keyframes pm-badge-pop {
	from { opacity: 0; transform: scale(0.7); }
	to   { opacity: 1; transform: scale(1); }
}

.pm-cal-nav-slide-left .pm-cal-grid {
	animation: pm-slide-left 0.28s ease both;
}
.pm-cal-nav-slide-right .pm-cal-grid {
	animation: pm-slide-right 0.28s ease both;
}

@keyframes pm-slide-left {
	from { opacity: 0; transform: translateX(30px); }
	to   { opacity: 1; transform: translateX(0); }
}
@keyframes pm-slide-right {
	from { opacity: 0; transform: translateX(-30px); }
	to   { opacity: 1; transform: translateX(0); }
}

.pm-animations .pm-cal-cell.pm-cal-has-events:hover .pm-cal-day-num {
	background: #FF6B9D;
	color: #ffffff;
}

/* =============================================================
   RESPONSIVE — TABLET  (≤ 1024px)
   ============================================================= */
@media (max-width: 1024px) {
	.pm-cal-cell {
		min-height: 72px;
		padding: 6px;
	}

	.pm-cal-day-num {
		font-size: 13px;
		width: 24px;
		height: 24px;
	}

	.pm-badge-title {
		font-size: 10px;
	}

	.pm-cal-month-title {
		font-size: 18px !important;
	}

	.pm-multi-popup {
		width: min(600px, calc(100vw - 28px));
	}

	.pm-card-img-wrap,
	.pm-card-img {
		height: 120px;
	}
}

/* =============================================================
   RESPONSIVE — MOBILE LANDSCAPE  (≤ 768px)
   Popup: 97vw × max 97vh, wycentrowany
   ============================================================= */
@media (max-width: 768px) {
	.pm-cal-nav {
		padding: 14px 16px;
	}

	.pm-calendar-wrap .pm-cal-nav .pm-cal-prev,
	.pm-calendar-wrap .pm-cal-nav .pm-cal-next {
		width: 34px !important;
		height: 34px !important;
	}

	.pm-cal-cell {
		min-height: 52px;
		padding: 5px 4px;
	}

	.pm-cal-header-cell {
		font-size: 11px;
		padding: 7px 3px;
	}

	.pm-badge-title {
		display: none;
	}

	.pm-badge-dot {
		width: 8px;
		height: 8px;
	}

	.pm-calendar-wrap .pm-cal-event-badge {
		padding: 4px !important;
		width: 16px !important;
		height: 16px !important;
		border-radius: 50% !important;
		justify-content: center !important;
	}

	.pm-cal-events-list {
		flex-direction: row;
		flex-wrap: wrap;
		gap: 3px;
		margin-top: 4px;
	}

	/* Popup na mobile: prawie pełny ekran */
	.pm-tooltip {
		width: 97vw !important;
		max-height: 94vh !important;
		border-radius: 18px;
	}

	.pm-tooltip-img-wrap,
	.pm-tooltip-img {
		height: 160px;
	}

	/* Multi-popup mobile landscape */
	.pm-multi-popup {
		width: 97vw !important;
		max-height: 92vh !important;
		border-radius: 18px;
	}

	.pm-multi-swiper {
		padding: 6px 14px 34px !important;
	}

	.pm-card-img-wrap,
	.pm-card-img {
		height: 110px;
	}
}

/* =============================================================
   RESPONSIVE — MOBILE PORTRAIT  (≤ 480px)
   ============================================================= */
@media (max-width: 480px) {
	.pm-cal-cell {
		min-height: 44px;
		padding: 3px 2px;
	}

	.pm-cal-day-num {
		font-size: 11px;
		width: 20px;
		height: 20px;
	}

	.pm-cal-month-title {
		font-size: 14px !important;
	}

	.pm-cal-year {
		display: none;
	}

	.pm-calendar-wrap .pm-cal-nav .pm-cal-prev,
	.pm-calendar-wrap .pm-cal-nav .pm-cal-next {
		width: 30px !important;
		height: 30px !important;
	}

	.pm-cal-prev svg,
	.pm-cal-next svg {
		width: 16px !important;
		height: 16px !important;
	}

	.pm-calendar-wrap .pm-cal-event-badge {
		width: 12px !important;
		height: 12px !important;
		padding: 0 !important;
	}

	.pm-badge-dot {
		width: 7px;
		height: 7px;
		margin: auto;
	}

	.pm-tooltip {
		width: 97vw !important;
		max-height: 97vh !important;
		border-radius: 16px;
	}

	.pm-tooltip-img-wrap,
	.pm-tooltip-img {
		height: 140px;
	}

	.pm-tooltip-body {
		padding: 14px 16px 4px;
	}

	.pm-tooltip-gallery {
		padding: 0 16px 14px;
	}

	.pm-tooltip-thumb {
		width: 52px;
		height: 52px;
	}

	/* Multi-popup mobile portrait */
	.pm-multi-popup {
		width: 97vw !important;
		max-height: 97vh !important;
		border-radius: 16px;
	}

	.pm-multi-header {
		padding: 13px 16px 11px;
	}

	.pm-multi-swiper {
		padding: 4px 12px 32px !important;
	}

	.pm-multi-heading {
		font-size: 13px;
	}

	.pm-card-img-wrap,
	.pm-card-img {
		height: 96px;
	}

	.pm-card-body {
		padding: 10px 12px 8px;
		gap: 4px;
	}

	.pm-card-footer {
		padding: 8px 12px 12px;
	}

	.pm-card-title {
		font-size: 13px;
	}
}

/* =============================================================
   MULTI-EVENT POPUP — Swiper carousel
   ============================================================= */

/* ---- Popup container ---- */
.pm-multi-popup {
	position: fixed;
	z-index: 99999;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%) scale(0.94);
	width: min(660px, calc(100vw - 32px));
	max-height: 85vh;
	background: #ffffff;
	border: 1px solid #FFE4F0;
	border-radius: 20px;
	box-shadow:
		0 24px 80px rgba(0, 0, 0, 0.22),
		0 4px 16px rgba(255, 107, 157, 0.12);
	display: flex;
	flex-direction: column;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
	font-family: inherit;
	overflow: hidden;
}

.pm-multi-popup.pm-multi-visible {
	opacity: 1;
	pointer-events: all;
	transform: translate(-50%, -50%) scale(1);
}

/* ---- Header ---- */
.pm-multi-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 20px 14px;
	border-bottom: 1px solid #FFE4F0;
	flex-shrink: 0;
	gap: 12px;
}

.pm-multi-heading {
	font-family: inherit;
	font-size: 15px;
	font-weight: 700;
	color: #333333;
	line-height: 1.3;
	flex: 1;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* Close button — same style as single popup close */
.pm-multi-close {
	position: relative !important;
	top: auto !important;
	right: auto !important;
	flex-shrink: 0;
	width: 32px !important;
	height: 32px !important;
	min-height: auto !important;
	border-radius: 50% !important;
	background: #f0f0f0 !important;
	background-color: #f0f0f0 !important;
	border: none !important;
	color: #555555 !important;
	cursor: pointer !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	font-size: 16px !important;
	line-height: 1 !important;
	transition: background 0.15s ease, color 0.15s ease !important;
	padding: 0 !important;
	margin: 0 !important;
	font-family: inherit !important;
	box-shadow: none !important;
	text-decoration: none !important;
	background-image: none !important;
}

.pm-multi-close:hover {
	background: #e0e0e0 !important;
	background-color: #e0e0e0 !important;
	color: #222222 !important;
}

.pm-multi-close:focus {
	outline: 2px solid #FF6B9D !important;
	outline-offset: 2px !important;
}

/* ---- Body — houses the Swiper ---- */
.pm-multi-body {
	padding: 20px 0 16px;
	flex: 1;
	min-height: 0;
	overflow: hidden;
}

/* ---- Swiper container ---- */
.pm-multi-swiper {
	width: 100%;
	padding: 6px 20px 36px !important;
	box-sizing: border-box;
}

/* swiper-slide height = auto so all cards stretch to tallest */
.pm-multi-swiper .swiper-slide {
	height: auto;
}

/* ---- Swiper pagination ---- */
.pm-multi-pagination {
	bottom: 6px !important;
	text-align: center;
}

/* ---- Loading state ---- */
.pm-multi-popup.pm-multi-loading .pm-multi-body::after {
	content: '';
	display: block;
	width: 36px;
	height: 36px;
	border: 3px solid #FFE4F0;
	border-top-color: #FF6B9D;
	border-radius: 50%;
	animation: pm-spin 0.7s linear infinite;
	margin: 40px auto;
}

.pm-multi-popup.pm-multi-loading .pm-multi-swiper {
	display: none;
}

/* =============================================================
   EVENT CARD (inside Swiper slide)
   ============================================================= */
.pm-event-card {
	background: #ffffff;
	border-radius: 16px;
	border: 1px solid #FFE4F0;
	box-shadow: 0 4px 18px rgba(0, 0, 0, 0.07);
	overflow: hidden;
	cursor: pointer;
	display: flex;
	flex-direction: column;
	height: 100%;
	transition: transform 0.18s ease, box-shadow 0.18s ease;
	font-family: inherit;
	outline: none;
	user-select: none;
}

.pm-event-card:hover,
.pm-event-card:focus {
	transform: translateY(-3px) scale(1.01);
	box-shadow:
		0 10px 32px rgba(0, 0, 0, 0.13),
		0 2px 8px rgba(255, 107, 157, 0.12);
}

.pm-event-card:focus-visible {
	outline: 2px solid #FF6B9D !important;
	outline-offset: 2px !important;
}

/* ---- Color strip on top of card ---- */
.pm-card-color-strip {
	height: 5px;
	width: 100%;
	flex-shrink: 0;
}

/* ---- Card image ---- */
.pm-card-img-wrap {
	width: 100%;
	height: 140px;
	overflow: hidden;
	flex-shrink: 0;
}

.pm-card-img {
	width: 100%;
	height: 140px;
	object-fit: cover;
	display: block;
	transition: transform 0.3s ease;
	pointer-events: none;
}

.pm-event-card:hover .pm-card-img {
	transform: scale(1.04);
}

/* ---- Card body ---- */
.pm-card-body {
	padding: 14px 16px 10px;
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.pm-card-date {
	display: flex;
	align-items: center;
	gap: 5px;
	font-family: inherit;
	font-size: 11px;
	font-weight: 600;
	color: #FF6B9D;
	line-height: 1;
}

.pm-card-date svg { flex-shrink: 0; }

.pm-card-title {
	font-family: inherit;
	font-size: 14px;
	font-weight: 700;
	color: #222222;
	line-height: 1.4;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.pm-card-excerpt {
	font-family: inherit;
	font-size: 12px;
	font-weight: 400;
	color: #666666;
	line-height: 1.55;
	margin: 0;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* ---- Card footer ---- */
.pm-card-footer {
	padding: 10px 16px 14px;
	border-top: 2px solid transparent;
	flex-shrink: 0;
}

.pm-card-cta {
	font-family: inherit;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.02em;
	line-height: 1;
	opacity: 0.85;
	transition: opacity 0.15s ease;
}

.pm-event-card:hover .pm-card-cta {
	opacity: 1;
}

/* =============================================================
   PREFER REDUCED MOTION
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
	.pm-animations .pm-cal-cell,
	.pm-animations .pm-cal-event-badge,
	.pm-cal-nav-slide-left .pm-cal-grid,
	.pm-cal-nav-slide-right .pm-cal-grid {
		animation: none !important;
	}

	.pm-tooltip,
	.pm-popup-overlay,
	.pm-multi-popup {
		transition: opacity 0.1s ease;
	}

	.pm-event-card {
		transition: none;
	}
}
