.sp-pricing-grid {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 24px;
}

.sp-pricing-card {
	flex: 0 0 auto;
	perspective: 900px;
}

.sp-pricing--cols-1 .sp-pricing-card { width: 100%; }
.sp-pricing--cols-2 .sp-pricing-card { width: calc(50% - 12px); }
.sp-pricing--cols-3 .sp-pricing-card { width: calc(33.333% - 16px); }
.sp-pricing--cols-4 .sp-pricing-card { width: calc(25% - 18px); }

.sp-pricing-card.is-hidden { display: none; }

/* ── Flip inner ──────────────────────────────────────────────────────────── */

/* ── Photo fade ──────────────────────────────────────────────────────────── */

.sp-pricing-card__photo-inner {
	display: grid;
}

.sp-pricing-card__photo-front,
.sp-pricing-card__photo-back {
	grid-area: 1 / 1;
	transition: opacity 0.4s ease;
}

.sp-pricing-card__photo-front {
	opacity: 1;
}

.sp-pricing-card__photo-back {
	opacity: 0;
	display: flex;
	flex-direction: column;
	font-size: 0.7rem;
	justify-content: center;
	padding: 28px 24px;
}

.sp-pricing-card:hover .sp-pricing-card__photo-back {
	opacity: 1;
}

/* ── Photo ───────────────────────────────────────────────────────────────── */

.sp-pricing-card__photo {
	width: 100%;
	aspect-ratio: 3 / 4;
	object-fit: cover;
	object-position: center;
	display: block;
}

/* ── Body (pricing only on front) ───────────────────────────────────────── */

.sp-pricing-card__body {
	flex: 1;
	display: flex;
	flex-direction: column;
	padding: 16px 20px 0;
}

/* ── Includes bar ────────────────────────────────────────────────────────── */

.sp-pricing-card__includes-bar {
	text-align: center;
	padding: 11px 16px;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.sp-pricing-card__level-icons {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 6px;
	margin-top: 10px;
}


/* ── Custom select dropdown (level filter with icons) ─────────────────────── */

.sp-filter-group--custom {
	position: relative;
}

.sp-custom-select__btn {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 12px 8px 16px;
	border: 2px solid var(--client-accent, #555);
	border-radius: var(--client-radius, 4px);
	background: transparent;
	color: var(--client-accent, #555);
	font-family: var(--client-font-primary, sans-serif);
	font-size: 0.875rem;
	font-weight: 600;
	cursor: pointer;
	white-space: nowrap;
}

.sp-custom-select__chevron {
	flex-shrink: 0;
	transition: transform 0.2s ease;
}

.sp-filter-group--custom.is-open .sp-custom-select__chevron {
	transform: rotate(180deg);
}

.sp-custom-select__panel {
	display: none;
	position: absolute;
	top: calc(100% + 4px);
	left: 0;
	z-index: 200;
	background: #fff;
	border: 2px solid var(--client-accent, #555);
	border-radius: var(--client-radius, 4px);
	list-style: none;
	margin: 0;
	padding: 4px 0 !important;
	min-width: 100%;
	box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.sp-filter-group--custom.is-open .sp-custom-select__panel {
	display: block;
}

.sp-custom-select__opt {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 14px;
	cursor: pointer;
	font-family: var(--client-font-primary, sans-serif);
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--client-accent, #555);
	white-space: nowrap;
}

.sp-custom-select__opt:hover,
.sp-custom-select__opt.is-active {
	background: var(--client-accent, #555);
	color: #fff;
}

.sp-custom-select__opt-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	flex-shrink: 0;
}

.sp-custom-select__opt-icon svg {
	height: 14px;
	width: auto;
}


.sp-pricing-card__desc {
	font-size: 0.9rem;
	margin: 0 0 12px;
	line-height: 1.5;
}

.sp-pricing-card__fine {
	font-size: 0.75rem;
	opacity: 0.7;
	margin: 0;
	line-height: 1.4;
}

.sp-pricing-controls {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 12px;
	margin-bottom: 28px;
}

.sp-filter-group {
	display: flex;
	align-items: center;
}

.sp-filter-btn {
	padding: 8px 20px;
	border: 2px solid var(--client-accent, #555);
	border-radius: var(--client-radius, 4px);
	background: transparent;
	color: var(--client-accent, #555);
	font-family: var(--client-font-primary, sans-serif);
	font-size: 0.875rem;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease;
}

.sp-filter-btn:hover,
.sp-filter-btn.is-active {
	background: var(--client-accent, #555);
	color: #fff;
}


.sp-filter-select {
	padding: 8px 32px 8px 16px;
	border: 2px solid var(--client-accent, #555);
	border-radius: var(--client-radius, 4px);
	background-color: transparent;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23555' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 10px center;
	background-size: 10px;
	color: var(--client-accent, #555);
	font-family: var(--client-font-primary, sans-serif);
	font-size: 0.875rem;
	font-weight: 600;
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
}

/* Hidden on desktop; accordion and reserve bar control visibility on mobile */
.sp-pricing-card__desc-mobile,
.sp-pricing-card__toggle {
	display: none;
}

/* Reserve Online bar — always visible on both desktop and mobile */
.sp-pricing-card__reserve-bar {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 12px 16px;
	text-decoration: none;
}


@media (max-width: 640px) {
	.sp-pricing--cols-2 .sp-pricing-card,
	.sp-pricing--cols-3 .sp-pricing-card,
	.sp-pricing--cols-4 .sp-pricing-card {
		width: 100%;
	}

	.sp-pricing-grid {
		padding: 0 16px;
	}

	/* Kill desktop hover flip on touch */
	.sp-pricing-card:hover .sp-pricing-card__photo-back {
		opacity: 0;
	}

	/* Header: accommodate toggle button */
	.sp-pricing-card__header {
		display: flex;
		align-items: center;
		gap: 12px;
		text-align: left;
	}

	.sp-pricing-card__header-text {
		flex: 1;
	}

	/* Toggle button */
	.sp-pricing-card__toggle {
		display: flex;
		flex-shrink: 0;
		align-items: center;
		justify-content: center;
		width: 34px;
		height: 34px;
		border: 2px solid rgba(255,255,255,0.7);
		border-radius: 50%;
		background: transparent;
		color: #fff;
		font-size: 1.4rem;
		line-height: 1;
		cursor: pointer;
		padding: 0;
		transition: background 0.2s ease;
	}

	.sp-pricing-card__toggle:hover {
		background: rgba(255,255,255,0.15);
	}

	/* Accordion: collapse photo and description; reserve bar stays visible */
	.sp-pricing-card__photo-wrap,
	.sp-pricing-card__desc-mobile {
		display: none;
	}

	.sp-pricing-card.is-expanded .sp-pricing-card__photo-wrap {
		display: block;
	}

	.sp-pricing-card.is-expanded .sp-pricing-card__desc-mobile {
		display: block;
		padding: 20px;
	}
}

@media (min-width: 641px) and (max-width: 900px) {
	.sp-pricing--cols-3 .sp-pricing-card,
	.sp-pricing--cols-4 .sp-pricing-card {
		width: calc(50% - 12px);
	}
}
