/*
 * CruiseOomph — Sailings with perks: the hub (/sailings-with-perks/) and one
 * sailing (Eric, 2026-09-29). No Figma frame exists for either; both are
 * composed from the catalog's pieces (catalog.css: header band, sections,
 * value cards, advisor band; the plugin's catalog-cards.css: the cards).
 * This file adds only what those lack: the filter form, the facts row, the
 * perk box, the shore events and the sailing-type mark. Tokens from theme.json.
 */

/* ---------------------------------------------------------------- */
/* Hub: filters                                                      */
/* ---------------------------------------------------------------- */

.co-perks-filters {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
	gap: 1rem;
	align-items: end;
	margin: 0 0 1.5rem;
	padding: 1.25rem;
	background: var(--wp--preset--color--surface);
	border: var(--wp--custom--border--hairline);
	border-radius: var(--wp--custom--radius--md);
}

.co-perks-filters__field {
	display: flex;
	flex-direction: column;
	gap: 0.375rem;
	min-width: 0;
}

.co-perks-filters__label {
	font-size: 0.8125rem;
	font-weight: 500;
	color: var(--wp--preset--color--blue);
}

.co-perks-filters__select {
	box-sizing: border-box;
	width: 100%;
	min-height: 2.75rem;
	padding: 0.5rem 0.75rem;
	border: 1px solid var(--wp--preset--color--muted);
	border-radius: var(--wp--custom--radius--md);
	background: var(--wp--preset--color--field);
	color: var(--wp--preset--color--blue);
	font: inherit;
	font-size: 0.9375rem;
}

.co-perks-filters__select:focus-visible { outline: var(--wp--custom--state--button--focus-ring); outline-offset: 2px; }

.co-perks-filters__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem 1rem;
}

/* With JavaScript the form submits on change; the button stays for keyboard and screen-reader users. */
.co-perks-filters__submit { min-height: 2.75rem; margin-top: 0; border: 0; cursor: pointer; font-family: inherit; }

.co-perks__count {
	margin: 0 0 1.25rem;
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--muted);
}

.co-perks__grid { margin-bottom: 2rem; }

.co-perks__pages .page-numbers {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 0 0 1.5rem;
	padding: 0;
	list-style: none;
}

.co-perks__pages a.page-numbers,
.co-perks__pages span.page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.75rem;
	min-height: 2.75rem;
	padding: 0 0.875rem;
	border: var(--wp--custom--border--hairline);
	border-radius: var(--wp--custom--radius--pill);
	color: var(--wp--preset--color--blue);
	font-size: 0.9375rem;
	text-decoration: none;
}

.co-perks__pages span.current { background: var(--wp--preset--color--blue); border-color: var(--wp--preset--color--blue); color: #fff; }
.co-perks__pages a.page-numbers:hover { border-color: var(--wp--preset--color--blue); }
.co-perks__pages a.page-numbers:focus-visible { outline: var(--wp--custom--state--button--focus-ring); outline-offset: 2px; }

/* ---------------------------------------------------------------- */
/* Cards: the sailing-type mark and the perk line                    */
/* ---------------------------------------------------------------- */

.co-card__mark {
	align-self: flex-start;
	padding: 0.1875rem 0.625rem;
	border-radius: var(--wp--custom--radius--pill);
	background: var(--wp--preset--color--surface-2);
	color: var(--wp--preset--color--blue);
	font-size: 0.75rem;
	font-weight: 500;
}

.co-card--dv .co-card__mark { background: var(--wp--preset--color--champagne); }

.co-card__perk {
	font-size: var(--wp--preset--font-size--small);
	font-weight: 500;
	line-height: 1.45;
	color: var(--wp--preset--color--blue);
}

/* ---------------------------------------------------------------- */
/* One sailing                                                       */
/* ---------------------------------------------------------------- */

.co-perk__title { font-size: 3rem; }
.co-perk__title .co-line__tagline { margin-top: 0.5rem; font-size: 1.5rem; }

.co-perk__facts {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr));
	gap: 1rem 1.5rem;
	margin: 0 0 2rem;
	padding: 1.25rem 1.5rem;
	background: var(--wp--preset--color--field);
	border: var(--wp--custom--border--hairline);
	border-radius: var(--wp--custom--radius--md);
}

.co-perk__fact dt {
	margin: 0 0 0.25rem;
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: var(--wp--custom--letter-spacing--eyebrow);
	text-transform: uppercase;
	color: var(--wp--preset--color--gold-text);
}

.co-perk__fact dd { margin: 0; font-size: 0.9375rem; line-height: 1.45; }

.co-perk__lead {
	max-width: var(--wp--custom--measure--prose, 70ch);
	margin: 0 0 2rem;
	font-size: 1.125rem;
	line-height: var(--wp--custom--line-height--prose);
}

.co-perk__box {
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	max-width: 52rem;
	padding: 2rem;
	background: var(--wp--preset--color--field);
	border: 2px solid var(--wp--preset--color--champagne);
	border-radius: var(--wp--custom--radius--lg);
}

.co-perk__box-label {
	margin: 0;
	font-size: 0.8125rem;
	font-weight: 500;
	letter-spacing: var(--wp--custom--letter-spacing--eyebrow);
	text-transform: uppercase;
	color: var(--wp--preset--color--gold-text);
}

.co-perk__box-title {
	margin: 0;
	font-family: var(--wp--preset--font-family--fraunces);
	font-variation-settings: var(--wp--custom--font-variation--fraunces);
	font-weight: 400;
	font-size: 1.875rem;
	line-height: 1.2;
	text-wrap: balance;
}

.co-perk__box-detail { margin: 0; line-height: var(--wp--custom--line-height--prose); }

.co-perk__box-terms {
	margin: 0.25rem 0 0;
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.5;
	color: var(--wp--preset--color--muted);
}

.co-perk__event-list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr));
	gap: 1.25rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.co-perk__event {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	padding: 1.5rem;
	background: var(--wp--preset--color--surface-2);
	border-radius: var(--wp--custom--radius--sm);
}

.co-perk__event p { margin: 0; }

.co-perk__event-kind {
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: var(--wp--custom--letter-spacing--eyebrow);
	text-transform: uppercase;
	color: var(--wp--preset--color--gold-text);
}

.co-perk__event-name {
	margin: 0;
	font-family: var(--wp--preset--font-family--fraunces);
	font-variation-settings: var(--wp--custom--font-variation--fraunces);
	font-weight: 400;
	font-size: 1.375rem;
	line-height: 1.2;
}

.co-perk__event-when { font-weight: 500; }

.co-perk__event-how,
.co-perk__event-note { font-size: 0.9375rem; line-height: 1.5; color: var(--wp--preset--color--muted); }

.co-perk__pick {
	max-width: 65rem;
	margin: -0.75rem 0 1.5rem;
	padding: 0.875rem 1.125rem;
	border-left: 3px solid var(--wp--preset--color--champagne);
	background: var(--wp--preset--color--field);
	font-weight: 500;
}

.co-perk__more .co-cards__grid,
.co-line__perks .co-cards__grid { margin-bottom: 0.5rem; }

@media (max-width: 1023px) {
	.co-perks-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.co-perks-filters__actions { grid-column: 1 / -1; }
}

@media (max-width: 767px) {
	.co-perks-filters { grid-template-columns: minmax(0, 1fr); padding: 1rem; }
	.co-perk__title { font-size: 2.125rem; }
	.co-perk__title .co-line__tagline { font-size: 1.125rem; }
	.co-perk__box { padding: 1.5rem; }
	.co-perk__box-title { font-size: 1.5rem; }
	.co-perk__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 1rem; }
}

/* ---------------------------------------------------------------- */
/* Ports of call and the line note (SEO plan, Phase 2)               */
/* ---------------------------------------------------------------- */

.co-perk__fact--wide { grid-column: 1 / -1; }

.co-perk__line-note {
	max-width: var(--wp--custom--measure--prose, 70ch);
	margin: 2rem 0 0;
	padding: 1.25rem 1.5rem;
	border-left: 3px solid var(--wp--preset--color--champagne);
	background: var(--wp--preset--color--field);
}

.co-perk__line-note p { margin: 0 0 0.5rem; font-size: 0.9375rem; line-height: 1.5; }
.co-perk__line-note p:last-child { margin-bottom: 0; }

.co-perk__line-note-label {
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: var(--wp--custom--letter-spacing--eyebrow);
	text-transform: uppercase;
	color: var(--wp--preset--color--gold-text);
}

.co-perk__line-note-tagline {
	font-family: var(--wp--preset--font-family--fraunces);
	font-variation-settings: var(--wp--custom--font-variation--fraunces);
	font-size: 1.25rem !important;
	line-height: 1.3 !important;
}

.co-perk__line-note-body { color: var(--wp--preset--color--muted); }
