/* Party Package Rentals page: season toggle + side-by-side comparison chart. Loaded only on that category. */

.bb-pk {
	--pk-col: 156px;
	--pk-label: 148px;
	margin: 8px 0 clamp(32px, 5vw, 64px);
	color: var(--bb-text);
}
/* Seasons / styles that aren't open. Only applies when scripts run (see bb_party_js_flag); otherwise everything shows. */
.bb-js .bb-pk .is-off { display: none !important; }
/* The toggle and pills need scripts, so they only show when scripts run. */
.bb-pk__toggle, .bb-pk__styles { display: none; }
.bb-js .bb-pk__toggle { display: grid; }
.bb-js .bb-pk__styles { display: flex; }

/* Sizes below (44px targets) include padding, whatever the theme's global setting is. */
.bb-pk, .bb-pk *, .bb-pk *::before, .bb-pk *::after { box-sizing: border-box; }

/* ---- Intro ---- */
.bb-pk__intro { text-align: center; max-width: 640px; margin: 0 auto 24px; }
.bb-pk__title { margin: 0 0 8px; font-size: clamp(2rem, 4.5vw, 3rem); }
.bb-pk__intro p { margin: 0; color: var(--bb-muted); font-size: 1.05rem; }

/* ---- Season toggle (big segmented pill) ---- */
.bb-pk__radio { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }

.bb-pk__toggle {
	--n: 2; /* number of options, set inline */
	position: relative;
	grid-template-columns: repeat(var(--n), 1fr);
	width: min(100%, calc(180px * var(--n)));
	margin: 0 auto 28px;
	padding: 5px;
	background: var(--bb-tint);
	border-radius: 999px;
	box-shadow: inset 0 0 0 1px var(--bb-border);
}
.bb-pk__toggle label {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 48px;
	padding: 12px 14px;
	border-radius: 999px;
	font-family: var(--bb-heading-font);
	font-size: 1.35rem;
	font-weight: 600;
	letter-spacing: .02em;
	line-height: 1;
	color: var(--bb-purple-dark);
	cursor: pointer;
	transition: color .25s;
}
.bb-pk__thumb {
	position: absolute;
	top: 5px; bottom: 5px; left: 5px;
	width: calc((100% - 10px) / var(--n));
	border-radius: 999px;
	background: var(--bb-purple);
	box-shadow: 0 2px 8px rgba(42, 22, 48, .25);
	transition: transform .3s cubic-bezier(.4, 0, .2, 1);
}
/* The thumb slides to the checked option; the checked label turns white. (Up to 6 options.) */
.bb-pk__toggle .bb-pk__radio:nth-of-type(2):checked ~ .bb-pk__thumb { transform: translateX(100%); }
.bb-pk__toggle .bb-pk__radio:nth-of-type(3):checked ~ .bb-pk__thumb { transform: translateX(200%); }
.bb-pk__toggle .bb-pk__radio:nth-of-type(4):checked ~ .bb-pk__thumb { transform: translateX(300%); }
.bb-pk__toggle .bb-pk__radio:nth-of-type(5):checked ~ .bb-pk__thumb { transform: translateX(400%); }
.bb-pk__toggle .bb-pk__radio:nth-of-type(6):checked ~ .bb-pk__thumb { transform: translateX(500%); }
.bb-pk__toggle .bb-pk__radio:nth-of-type(1):checked ~ label:nth-of-type(1),
.bb-pk__toggle .bb-pk__radio:nth-of-type(2):checked ~ label:nth-of-type(2),
.bb-pk__toggle .bb-pk__radio:nth-of-type(3):checked ~ label:nth-of-type(3),
.bb-pk__toggle .bb-pk__radio:nth-of-type(4):checked ~ label:nth-of-type(4),
.bb-pk__toggle .bb-pk__radio:nth-of-type(5):checked ~ label:nth-of-type(5),
.bb-pk__toggle .bb-pk__radio:nth-of-type(6):checked ~ label:nth-of-type(6) { color: #fff; }
.bb-pk__toggle:has(.bb-pk__radio:focus-visible) { outline: 3px solid var(--bb-purple); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
	.bb-pk__thumb, .bb-pk__toggle label { transition: none; }
}

/* ---- Panel ---- */
.bb-pk__panel-head { text-align: center; margin-bottom: 18px; }
.bb-pk__panel-head h3 { margin: 0 0 4px; font-size: clamp(1.5rem, 3vw, 2rem); }
.bb-pk__panel-head p { margin: 0; color: var(--bb-muted); }

/* Package-style pills (Summer: pole tent / frame tent / tables only) */
.bb-pk__styles { flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0 0 22px; }
.bb-pk__styles label {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	padding: 9px 20px;
	border: 2px solid var(--bb-border);
	border-radius: 999px;
	background: var(--bb-white);
	font-weight: 700;
	line-height: 1.2;
	color: var(--bb-night);
	cursor: pointer;
	transition: border-color .2s, background-color .2s, color .2s;
}
.bb-pk__styles label small { font-weight: 500; font-size: .78rem; color: var(--bb-muted); }
.bb-pk__styles label:hover { border-color: var(--bb-purple); }
.bb-pk__styles .bb-pk__radio:checked + label { border-color: var(--bb-purple); background: var(--bb-purple); color: #fff; }
.bb-pk__styles .bb-pk__radio:checked + label small { color: rgba(255, 255, 255, .85); }
.bb-pk__styles .bb-pk__radio:focus-visible + label { outline: 3px solid var(--bb-purple); outline-offset: 3px; }

.bb-pk__group-title { margin: 0 0 10px; font-size: 1.3rem; }
.bb-js .bb-pk__group-title { display: none; } /* the pills already say which style is open */
.bb-pk__panel { margin-bottom: 40px; }
.bb-js .bb-pk__panel { margin-bottom: 0; }

/* ---- Comparison chart ---- */
.bb-pk__scroll {
	position: relative;
	overflow-x: auto;
	border: 1px solid var(--bb-border);
	border-radius: var(--bb-radius-lg);
	background: var(--bb-white);
	box-shadow: var(--bb-shadow);
	-webkit-overflow-scrolling: touch;
}
.bb-pk__scroll:focus-visible { outline: 3px solid var(--bb-purple); outline-offset: 3px; }

.bb-pk__table {
	width: 100%;
	min-width: calc(var(--pk-label) + var(--pk-col) * 2);
	margin: 0;
	border-collapse: separate;
	border-spacing: 0;
	table-layout: fixed;
	font-size: .95rem;
}
.bb-pk__table th, .bb-pk__table td { padding: 12px 10px; border: 0; text-align: center; vertical-align: middle; background: transparent; }
.bb-pk__table col, .bb-pk__table thead th { width: var(--pk-col); }
.bb-pk__table thead .bb-pk__corner { width: var(--pk-label); }

/* Sticky label column */
.bb-pk__table tbody th, .bb-pk__corner {
	position: sticky;
	left: 0;
	z-index: 2;
	width: var(--pk-label);
	text-align: left;
	background: var(--bb-cream);
}
.bb-pk__table tbody th {
	padding-left: 18px;
	font-size: .8rem;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--bb-purple-dark);
	border-right: 1px solid var(--bb-border);
}
.bb-pk__corner { vertical-align: bottom !important; border-right: 1px solid var(--bb-border); }

/* Column heads: the package cards */
.bb-pk__head {
	padding: 16px 10px 18px !important;
	border-left: 1px solid var(--bb-tint);
	vertical-align: top !important;
}
.bb-pk__head > * { display: block; }
.bb-pk__photo { margin: 0 auto 10px; width: 100%; max-width: 136px; aspect-ratio: 4 / 3; border-radius: var(--bb-radius); overflow: hidden; background: var(--bb-tint); }
.bb-pk__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bb-pk__guests { font-family: var(--bb-heading-font); font-size: 1.05rem; color: var(--bb-muted); line-height: 1.1; }
.bb-pk__guests strong { display: block; font-size: 2.3rem; font-weight: 700; color: var(--bb-night); letter-spacing: .01em; }
.bb-pk__guests--text strong { font-size: 1.7rem; line-height: 1.05; min-height: 2.1em; display: flex; align-items: center; justify-content: center; }
.bb-pk__style { margin: 4px 0 8px; font-size: .8rem; font-weight: 600; color: var(--bb-muted); min-height: 2.4em; }
.bb-pk__price { font-family: var(--bb-heading-font); font-size: 1.7rem; font-weight: 700; color: var(--bb-purple-dark); line-height: 1.1; margin-bottom: 10px; }
.bb-pk__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	min-width: 44px;
	padding: 9px 22px;
	border-radius: 999px;
	background: var(--bb-yellow);
	color: var(--bb-night);
	font-weight: 700;
	font-size: .95rem;
	text-decoration: none;
	box-shadow: 0 1px 0 rgba(42, 22, 48, .18);
	transition: background-color .2s, color .2s, transform .15s;
}
.bb-pk__btn:hover, .bb-pk__btn:focus-visible { background: var(--bb-purple); color: #fff; }
.bb-pk__btn:active { transform: translateY(1px); }

/* Body */
.bb-pk__table tbody td { border-top: 1px solid var(--bb-tint); border-left: 1px solid var(--bb-tint); line-height: 1.3; }
.bb-pk__table tbody tr:nth-child(even) td { background: rgba(236, 230, 238, .28); }
.bb-pk__table tbody tr:first-child th, .bb-pk__table tbody tr:first-child td { border-top: 1px solid var(--bb-border); }
.bb-pk__table tbody th { border-top: 1px solid var(--bb-tint); }
.bb-pk__size { font-size: 1.05rem; color: var(--bb-night); white-space: nowrap; }
.bb-pk__line { display: block; }
.bb-pk__line + .bb-pk__line { margin-top: 4px; }
.bb-pk__line strong { color: var(--bb-purple-dark); font-size: 1.05rem; }
.bb-pk__line span { color: var(--bb-text); }
/* Items are links (to the product when it is clear, else to its category): underlined so they don't rely on color. */
/* Padding on an inline link grows its tap area to 44px without moving the text. */
.bb-pk__link { padding: 14px 0; color: inherit; cursor: help; text-decoration: underline; text-decoration-style: dotted; text-decoration-color: var(--bb-border); text-decoration-thickness: 1px; text-underline-offset: .22em; }
.bb-pk__link:hover, .bb-pk__link:focus-visible { color: var(--bb-purple-dark); text-decoration-color: currentColor; }
.bb-pk__check { color: var(--bb-purple); vertical-align: -3px; margin-right: 2px; }
.bb-pk__none { color: var(--bb-border); font-size: 1.1rem; }
.bb-pk__perguest td { font-weight: 700; color: var(--bb-purple-dark); font-size: 1.05rem; }
.bb-pk__perguest th { font-size: .75rem !important; }


/* ---- Add-ons ---- */
.bb-pk__addons { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.bb-pk__addons li {
	display: inline-flex; align-items: center; gap: 10px;
	min-height: 44px;
	padding: 0 16px;
	border: 1px dashed var(--bb-purple);
	border-radius: 999px;
	background: var(--bb-cream);
	font-size: .95rem;
}
.bb-pk__addon-tag { font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--bb-purple-dark); }
.bb-pk__addons a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; color: var(--bb-night); text-decoration: underline; text-underline-offset: .18em; }
.bb-pk__addon-price { font-weight: 700; color: var(--bb-purple-dark); }

/* ---- More categories ---- */
.bb-pk__more { margin-top: clamp(32px, 5vw, 56px); text-align: center; }
.bb-pk__more h3 { font-size: 1.5rem; margin: 0 0 16px; }
.bb-pk__more ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.bb-pk__more li { margin: 0; width: min(100%, 340px); } /* wide enough that a name like "Wedding Party Package Rentals (56)" stays on one line */
@media (min-width: 380px) { .bb-pk__more a span { white-space: nowrap; } }
.bb-pk__more a {
	display: block;
	border: 1px solid var(--bb-border);
	border-radius: var(--bb-radius);
	overflow: hidden;
	background: var(--bb-white);
	color: var(--bb-night);
	font-weight: 700;
	text-decoration: none;
	transition: box-shadow .2s, transform .2s;
}
.bb-pk__more a:hover, .bb-pk__more a:focus-visible { box-shadow: var(--bb-shadow); transform: translateY(-2px); }
.bb-pk__more img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.bb-pk__more a span { display: block; padding: 12px 14px; }
.bb-pk__more small { font-weight: 500; color: var(--bb-muted); }
@media (prefers-reduced-motion: reduce) { .bb-pk__more a, .bb-pk__btn { transition: none; } }

/* ---- Phones ---- */
@media (max-width: 600px) {
	.bb-pk { --pk-col: 142px; --pk-label: 96px; }
	.bb-pk__table tbody th { padding-left: 10px; font-size: .75rem; letter-spacing: .02em; }
	.bb-pk__table th, .bb-pk__table td { padding: 10px 6px; }
	.bb-pk__toggle label { font-size: 1.1rem; padding: 12px 4px; gap: 5px; text-align: center; white-space: nowrap; min-width: 0; }
	.bb-pk__toggle svg { display: none; }
	.bb-pk__scroll { border-radius: var(--bb-radius); margin-inline: -6px; }
}

@media (max-width: 380px) {
	.bb-pk__toggle label { font-size: 1rem; padding: 10px 2px; white-space: normal; line-height: 1.1; }
}

/* ---------- Hover previews on the item links (assets/party-packages.js) ---------- */
.bb-pop {
	position: absolute;
	z-index: 100000;
	box-sizing: border-box;
	width: 300px;
	max-width: calc(100vw - 16px);
	padding: 12px;
	border: 1px solid var(--bb-border);
	border-radius: var(--bb-radius);
	background: #fff;
	box-shadow: 0 10px 30px rgba(42, 22, 48, .22);
	color: var(--bb-text);
	font-size: .95rem;
	line-height: 1.35;
	text-align: left;
}
.bb-pop[hidden] { display: none; }
.bb-pop--c { width: 340px; }
.bb-pop p { margin: 0; }
.bb-pop__row { display: flex; gap: 12px; align-items: center; }
.bb-pop__img { flex: 0 0 auto; display: block; border-radius: 8px; background: var(--bb-cream); object-fit: cover; }
.bb-pop__img--none { background: var(--bb-tint); }
.bb-pop__text { min-width: 0; }
.bb-pop__title { color: var(--bb-night); font-weight: 700; }
.bb-pop__price { color: var(--bb-purple-dark); font-weight: 700; }
.bb-pop__more { display: inline-block; margin-top: 6px; color: var(--bb-purple-dark); font-weight: 700; text-decoration: underline; text-underline-offset: .18em; }
.bb-pop__head { margin-bottom: 8px !important; color: var(--bb-night); font-weight: 700; }
.bb-pop__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0 0 4px; padding: 0; list-style: none; }
.bb-pop__grid li { margin: 0; }
.bb-pop__item { display: grid; gap: 4px; justify-items: center; color: inherit; font-size: .8rem; line-height: 1.2; text-align: center; text-decoration: none; }
.bb-pop__item:hover .bb-pop__name { color: var(--bb-purple-dark); text-decoration: underline; }
.bb-pop__name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (prefers-reduced-motion: no-preference) {
	.bb-pop:not([hidden]) { animation: bb-pop-in .12s ease-out; }
	@keyframes bb-pop-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
}
