/*
Theme Name: The Petrichor
Description: Custom theme for The Petrichor outdoor community. Mobile-first; activities and bookings come from the petrichor-events plugin.
Version: 0.1.0
Requires PHP: 8.1
Text Domain: petrichor
*/

/* ---------- Tokens ---------- */
:root {
	--ink: #1d1d1b;
	--ink-soft: #55534e;
	--paper: #fbfaf7;
	--sand: #f1ede5;
	--line: #e2ddd2;
	--sage: #a4bcbc;
	--sage-deep: #5f7c7c;
	--plum: #7c587f;
	--plum-deep: #5e3f61;

	--d-pink: #d9578f;
	--d-green: #3f8a4c;
	--d-orange: #d27519;
	--d-purple: #7c587f;

	--font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--radius: 14px;
	--gap: clamp(16px, 4vw, 32px);
	--wrap: 1180px;
	--shadow: 0 1px 2px rgb(0 0 0 / .05), 0 8px 24px rgb(0 0 0 / .06);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font: 400 17px/1.6 var(--font);
	text-rendering: optimizeLegibility;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--plum); text-underline-offset: .15em; }
a:hover { color: var(--plum-deep); }
:focus-visible { outline: 3px solid var(--plum); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(30px, 6vw, 52px); font-weight: 800; }
h2 { font-size: clamp(22px, 3.5vw, 30px); font-weight: 750; }
h3 { font-size: 19px; font-weight: 700; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gap); }
.wrap--narrow { max-width: 780px; padding-top: var(--gap); padding-bottom: calc(var(--gap) * 2); }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; }
.skip-link:focus { top: 8px; color: #fff; }

.button {
	display: inline-flex; align-items: center; justify-content: center; gap: .4em;
	min-height: 48px; padding: 0 22px; border: 2px solid var(--plum); border-radius: 999px;
	background: var(--plum); color: #fff; font: 700 16px/1 var(--font); text-decoration: none; cursor: pointer;
}
.button:hover { background: var(--plum-deep); border-color: var(--plum-deep); color: #fff; }
.button--ghost { background: transparent; color: var(--plum); }
.button--ghost:hover { background: var(--plum); color: #fff; }

.eyebrow { margin: 0 0 .5em; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--sage-deep); }
.eyebrow a { color: inherit; text-decoration: none; }
.eyebrow a:hover { text-decoration: underline; }

.notice { margin: 0; padding: 12px 14px; border-radius: 10px; background: var(--sand); color: var(--ink-soft); font-size: 15px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgb(251 250 247 / .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.admin-bar .site-header { top: 46px; }
@media (min-width: 783px) { .admin-bar .site-header { top: 32px; } }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; }
.site-logo { display: block; color: var(--ink); text-decoration: none; }
.site-logo__img { height: 44px; width: auto; }
.site-logo__text { font-weight: 800; font-size: 20px; letter-spacing: .04em; }

.nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; margin-right: -12px; border: 0; background: none; cursor: pointer; color: var(--ink); }
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after { display: block; width: 22px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .2s; }
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -7px; }
.nav-toggle__bars::after { top: 7px; }
.nav-open .nav-toggle__bars { background: transparent; }
.nav-open .nav-toggle__bars::before { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle__bars::after { transform: translateY(-7px) rotate(-45deg); }

.site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); max-height: calc(100vh - 64px); overflow-y: auto; }
.nav-open .site-nav { display: block; }
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav__list { padding: 8px var(--gap) 16px; }
.site-nav a { display: block; padding: 12px 0; color: var(--ink); font-weight: 650; text-decoration: none; border-bottom: 1px solid var(--line); }
.site-nav .sub-menu a { padding-left: 16px; font-weight: 500; }
.site-nav .current-menu-item > a, .site-nav .current-menu-ancestor > a, .site-nav a:hover { color: var(--plum); }

@media (min-width: 900px) {
	.nav-toggle { display: none; }
	.site-nav { display: block; position: static; background: none; border: 0; box-shadow: none; max-height: none; overflow: visible; }
	.site-nav__list { display: flex; gap: 4px; padding: 0; }
	.site-nav__list > li { position: relative; }
	.site-nav__list > li > a { padding: 10px 12px; border: 0; border-radius: 999px; }
	.site-nav__list > li > a:hover { background: var(--sand); }
	.site-nav .sub-menu { display: none; position: absolute; top: 100%; left: 0; min-width: 210px; padding: 8px; background: #fff; border-radius: 12px; box-shadow: var(--shadow); }
	.site-nav li:hover > .sub-menu, .site-nav li:focus-within > .sub-menu { display: block; }
	.site-nav .sub-menu a { padding: 8px 12px; border: 0; border-radius: 8px; }
	.site-nav .sub-menu a:hover { background: var(--sand); }
}

/* ---------- Footer ---------- */
.site-footer { margin-top: 64px; background: var(--ink); color: #e9e6df; padding: 40px 0 24px; font-size: 15px; }
.site-footer a { color: #fff; }
.site-footer__inner { display: grid; gap: 24px; }
.site-footer__name { font-weight: 800; font-size: 18px; margin: 0; letter-spacing: .04em; }
.site-footer__tagline { color: var(--sage); margin-bottom: .75em; }
.site-footer__menu { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer__legal { margin-top: 24px; padding-top: 16px; border-top: 1px solid rgb(255 255 255 / .12); color: #a9a59c; font-size: 13px; }
@media (min-width: 700px) { .site-footer__inner { grid-template-columns: 1fr auto; } }

/* ---------- Generic content ---------- */
.entry-header { padding-top: var(--gap); }
.entry-meta { color: var(--ink-soft); font-size: 14px; }
.entry-thumb { margin: 0 0 24px; }
.entry-thumb img { border-radius: var(--radius); }
.entry-content > * { max-width: 100%; }
.entry-content img { border-radius: 10px; }
.entry-content .alignwide, .entry-content .alignfull { max-width: 100%; }
.post-list { padding-left: 1.2em; }

/* ---------- Difficulty badge ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 8px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 13px; font-weight: 650; line-height: 1.3; color: var(--ink); white-space: nowrap; }
.badge__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--d, var(--ink-soft)); }
.badge__grade { color: var(--ink-soft); font-weight: 500; }
.badge--pink { --d: var(--d-pink); }
.badge--green { --d: var(--d-green); }
.badge--orange { --d: var(--d-orange); }
.badge--purple { --d: var(--d-purple); }

/* ---------- Activity: single ---------- */
.activity-hero { background: var(--sand); }
.activity-hero__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (min-width: 700px) { .activity-hero__img { aspect-ratio: 21 / 8; max-height: 560px; } }

.activity-head { padding-top: 24px; padding-bottom: 8px; }
.activity-head__title { margin-bottom: .35em; }
.activity-head__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; font-weight: 650; }
.activity-head__date { font-size: 18px; }

.activity-layout { display: grid; gap: 28px; padding-top: 12px; padding-bottom: 96px; }
@media (min-width: 960px) {
	.activity-layout { grid-template-columns: minmax(0, 1fr) 360px; gap: 48px; align-items: start; padding-bottom: 48px; }
	.activity-aside { position: sticky; top: 96px; }
}
/* Booking card comes right after the facts on mobile. */
@media (max-width: 959px) {
	.activity-layout { display: flex; flex-direction: column; }
	.activity-main { display: contents; }
	.facts { order: 1; }
	.activity-aside { order: 2; }
	.activity-lead, .activity-main .entry-content, .activity-main .info-block, .included { order: 3; }
	.activity-main > .info-block, .included .info-block:first-child { margin-top: 0; }
}
.entry-content:empty { display: none; }

.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin: 0; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 700px) { .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.facts__item { background: #fff; padding: 12px 14px; }
.facts dt { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }
.facts dd { margin: 2px 0 0; font-weight: 650; }

.activity-lead { font-size: 19px; color: var(--ink-soft); margin: 8px 0 0; }

.info-block { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.info-block h2 { font-size: 21px; }
.info-block--links ul { margin: 0; padding-left: 1.2em; }
.included { display: grid; gap: 0 32px; }
@media (min-width: 700px) { .included { grid-template-columns: 1fr 1fr; } }

.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li { position: relative; padding: 4px 0 4px 28px; }
.checklist li::before { position: absolute; left: 0; top: 4px; font-weight: 800; }
.checklist--yes li::before { content: "✓"; color: var(--d-green); }
.checklist--no li::before { content: "✕"; color: var(--ink-soft); }

/* Booking card */
.book-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; border-top: 6px solid var(--plum); }
.difficulty-pink .book-card { border-top-color: var(--d-pink); }
.difficulty-green .book-card { border-top-color: var(--d-green); }
.difficulty-orange .book-card { border-top-color: var(--d-orange); }
.book-card__title { font-size: 21px; }
.book-card__note { font-size: 13px; color: var(--ink-soft); margin: 8px 0 16px; }
.prices { list-style: none; margin: 0; padding: 0; }
.prices__row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.prices__label small { display: block; font-size: 13px; color: var(--ink-soft); }
.prices__amount { font-weight: 800; font-size: 19px; white-space: nowrap; }
.prices__row--gone { color: var(--ink-soft); }
.prices__row--gone .prices__amount { text-decoration: line-through; font-weight: 600; }

/* Sticky mobile booking bar */
.book-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px var(--gap) calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgb(0 0 0 / .06); }
.book-bar__price { font-weight: 800; font-size: 18px; }
@media (min-width: 960px) { .book-bar { display: none; } }

/* ---------- Activity: archive & cards ---------- */
.archive { padding-top: var(--gap); }
.archive__head { margin-bottom: 20px; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.chip { flex: none; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); font-weight: 650; font-size: 15px; text-decoration: none; }
.chip:hover { border-color: var(--plum); color: var(--plum); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }

.cards { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) { .card, .card:hover { transition: none; transform: none; } }
.card__media { position: relative; aspect-ratio: 3 / 2; background: var(--sand); }
.card__img { width: 100%; height: 100%; object-fit: cover; }
.card__flag { position: absolute; left: 12px; top: 12px; padding: 4px 10px; border-radius: 999px; background: var(--plum); color: #fff; font-size: 13px; font-weight: 700; }
.card__body { display: flex; flex-direction: column; gap: 6px; padding: 16px; flex: 1; }
.card__date { margin: 0; font-size: 14px; font-weight: 700; color: var(--sage-deep); }
.card__title { margin: 0; font-size: 20px; }
.card__link { color: var(--ink); text-decoration: none; }
.card__link::after { content: ""; position: absolute; inset: 0; }
.card__link:focus-visible { outline: none; }
.card:has(.card__link:focus-visible) { outline: 3px solid var(--plum); outline-offset: 2px; }
.card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0; color: var(--ink-soft); font-size: 14px; }
.card__price { margin: auto 0 0; padding-top: 8px; font-weight: 800; font-size: 18px; }
.cards--past .card { opacity: .82; }
.cards--past .card:hover { opacity: 1; }

.empty { padding: 32px 20px; text-align: center; background: var(--sand); border-radius: var(--radius); }
.past { margin-top: 56px; }

/* ---------- Booking form ---------- */
.booking-form { margin-top: 16px; }
.participant { margin: 0 0 16px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.participant legend { display: flex; justify-content: space-between; align-items: center; gap: 8px; width: 100%; padding: 0 4px; font-weight: 750; }
.participant__remove { border: 0; background: none; color: var(--plum); font: 600 14px/1 var(--font); text-decoration: underline; cursor: pointer; padding: 6px; }
.field { margin: 0 0 12px; }
.field label { display: block; margin-bottom: 4px; font-size: 14px; font-weight: 650; }
.field input[type=text], .field input[type=email], .field input[type=tel], .field select {
	width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid #c9c3b6; border-radius: 10px;
	background: #fff; color: var(--ink); font: 400 16px/1.3 var(--font);
}
.field input:focus, .field select:focus { border-color: var(--plum); outline: 2px solid var(--plum); outline-offset: 0; }
.field [aria-invalid=true] { border-color: #b3261e; background: #fff8f7; }
.field__error { display: block; margin-top: 4px; color: #b3261e; font-size: 14px; font-weight: 600; }
.field--hp { position: absolute; left: -9999px; }
.field--check { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; font-size: 14px; }
.field--check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--plum); }
.field--check label { font-weight: 400; margin: 0; }
.field--check .field__error { grid-column: 2; }
.booking-form__add { width: 100%; margin-bottom: 16px; }
.booking-form__total { margin: 4px 0 12px; padding: 10px 12px; border-radius: 10px; background: var(--sand); font-weight: 800; font-size: 18px; text-align: center; }
.booking-form__submit { width: 100%; }
.booking-form__submit[disabled] { opacity: .6; cursor: progress; }
.booking-form__secure { margin: 10px 0 0; font-size: 13px; color: var(--ink-soft); text-align: center; }
.booking-form__test { margin: 8px 0 0; padding: 6px 10px; border-radius: 8px; background: #fcf0c3; font-size: 13px; text-align: center; }

.booking-notice { margin: 0 0 16px; padding: 14px 16px; border-radius: 12px; border-left: 5px solid; font-size: 15px; }
.booking-notice p { margin: 0; }
.booking-notice__title { font-weight: 800; margin-bottom: 4px !important; }
.booking-notice--success { background: #eaf5ec; border-color: var(--d-green); }
.booking-notice--info { background: #eef3f3; border-color: var(--sage-deep); }
.booking-notice--warning { background: #fdf3e6; border-color: var(--d-orange); }
.booking-notice--error { background: #fdeceb; border-color: #b3261e; }
.booking-notice:focus { outline: none; }

/* =========================================================
   Pages: hero + block layouts
   ========================================================= */
.hero { position: relative; background: var(--sand); }
.hero__inner { position: relative; padding-top: clamp(40px, 8vw, 88px); padding-bottom: clamp(32px, 6vw, 64px); }
.hero__title { margin: 0 0 .3em; max-width: 18ch; }
.hero__text { margin: 0; max-width: 46ch; font-size: clamp(18px, 2.4vw, 22px); color: var(--ink-soft); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 0; }
.hero--image { min-height: clamp(320px, 56vw, 520px); display: flex; align-items: flex-end; color: #fff; background: var(--ink); }
.hero--image .hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero--image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(0 0 0 / 0) 25%, rgb(0 0 0 / .62) 100%); }
.hero--image .hero__inner { z-index: 1; }
.hero--image .hero__text { color: rgb(255 255 255 / .9); }
.hero--front { min-height: min(88svh, 760px); }
.hero--front .hero__title { font-size: clamp(36px, 8vw, 72px); }
.button--light { background: transparent; border-color: #fff; color: #fff; }
.button--light:hover { background: #fff; border-color: #fff; color: var(--ink); }

/* Block content: readable text column, wider sections */
.page-content { padding-bottom: 24px; }
.page-content > * { max-width: 780px; margin-left: auto; margin-right: auto; padding-left: var(--gap); padding-right: var(--gap); }
.page-content > .wp-block-group { max-width: none; padding: 0; }
.wp-block-group.is-style-section { max-width: var(--wrap) !important; margin: clamp(40px, 7vw, 72px) auto; padding: 0 var(--gap) !important; }
.wp-block-group.is-style-section > * { max-width: none !important; margin-left: 0 !important; margin-right: 0 !important; }
.wp-block-group.is-style-section > p, .wp-block-group.is-style-section > ul.wp-block-list, .wp-block-group.is-style-section > h2 { max-width: 70ch !important; }
.wp-block-group.is-style-section > h2 { margin-bottom: .6em; }
.wp-block-group.is-style-band { margin: clamp(40px, 7vw, 72px) 0; padding: clamp(36px, 6vw, 64px) var(--gap) !important; background: var(--sand); }
.wp-block-group.is-style-band > * { max-width: 780px !important; margin-left: auto !important; margin-right: auto !important; }
.wp-block-group.is-style-quiet { padding: 32px var(--gap) 8px !important; text-align: center; color: var(--ink-soft); }
.page-content h2 { margin-top: 0; }
.page-content h3 { margin-top: 0; }
.page-content h4 { margin: 0 0 8px; font-size: 15px; letter-spacing: .06em; text-transform: uppercase; color: var(--sage-deep); }

.is-style-lead { font-size: clamp(18px, 2.2vw, 21px); color: var(--ink-soft); }
.is-style-definition { font-size: 18px; margin-bottom: .4em; }
.is-style-note { font-size: 14px; color: var(--ink-soft); }
.more-link { margin-top: 12px; font-weight: 700; }
.more-link a { text-decoration: none; }

/* Core buttons → theme buttons */
.wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin: 20px 0 0; }
.wp-block-button__link {
	display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; border: 2px solid var(--plum); border-radius: 999px;
	background: var(--plum); color: #fff; font: 700 16px/1 var(--font); text-decoration: none;
}
.wp-block-button__link:hover { background: var(--plum-deep); border-color: var(--plum-deep); color: #fff; }
.wp-block-button.is-style-outline .wp-block-button__link { background: transparent; color: var(--plum); }
.wp-block-button.is-style-outline .wp-block-button__link:hover { background: var(--plum); color: #fff; }

/* Columns: cards / split */
.wp-block-columns { display: grid !important; gap: 20px; margin: 24px 0; }
@media (min-width: 782px) { .wp-block-columns { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 28px; } }
.wp-block-column { min-width: 0; }
.wp-block-columns.is-style-cards { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.wp-block-columns.is-style-cards > .wp-block-column { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; overflow: hidden; }
.wp-block-columns.is-style-cards > .wp-block-column > :last-child { margin-bottom: 0; }
.wp-block-columns.is-style-cards ul { padding-left: 1.1em; margin: 0; }
.wp-block-columns.is-style-cards li + li { margin-top: 6px; }
.wp-block-columns.is-style-split { align-items: center; gap: clamp(24px, 5vw, 56px); }
@media (min-width: 782px) { .wp-block-columns.is-style-split { grid-template-columns: 1fr 1fr; } }

.wp-block-image { margin: 0 0 16px; }
.wp-block-image img { border-radius: var(--radius); }
.wp-block-image.is-style-rounded img { border-radius: 24px; aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.wp-block-image.is-style-card-image { margin: -20px -20px 16px; }
.wp-block-image.is-style-card-image img { border-radius: 0; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }

/* Lists */
.wp-block-list.is-style-checklist { list-style: none; padding: 0; margin: 0 0 12px; }
.wp-block-list.is-style-checklist li { position: relative; padding: 3px 0 3px 26px; }
.wp-block-list.is-style-checklist li::before { content: "✓"; position: absolute; left: 0; top: 3px; color: var(--d-green); font-weight: 800; }
.wp-block-list.is-style-pills { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 12px 0 20px; }
.wp-block-list.is-style-pills li { padding: 6px 12px; border-radius: 999px; background: var(--sand); font-size: 14px; font-weight: 650; }

/* Accordions (core Details block) */
.wp-block-details { margin: 0 0 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); border-left: 6px solid var(--acc, var(--sage)); scroll-margin-top: 90px; }
.wp-block-details > summary { position: relative; list-style: none; cursor: pointer; padding: 18px 52px 18px 20px; font-weight: 750; font-size: 18px; }
.wp-block-details > summary::-webkit-details-marker { display: none; }
.wp-block-details > summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 10px; height: 10px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.wp-block-details[open] > summary::after { transform: translateY(-30%) rotate(-135deg); }
.wp-block-details > summary:hover { color: var(--plum); }
.wp-block-details > :not(summary) { margin-left: 20px; margin-right: 20px; }
.wp-block-details > :last-child { margin-bottom: 20px; }
.wp-block-details[open] { box-shadow: var(--shadow); }
.wp-block-details#pink { --acc: var(--d-pink); }
.wp-block-details#green { --acc: var(--d-green); }
.wp-block-details#orange { --acc: var(--d-orange); }
.wp-block-details#purple { --acc: var(--d-purple); }
.wp-block-details .wp-block-columns { margin-top: 8px; }
.wp-block-details.is-highlighted { animation: pe-flash 1.6s ease-out 1; }
@keyframes pe-flash { from { box-shadow: 0 0 0 4px var(--acc, var(--plum)); } to { box-shadow: var(--shadow); } }
@media (prefers-reduced-motion: reduce) { .wp-block-details > summary::after { transition: none; } .wp-block-details.is-highlighted { animation: none; } }

/* Carousels: core Gallery "Carousel" style + rows of cards */
.wp-block-gallery.is-style-carousel, .cards--row {
	display: flex !important; flex-wrap: nowrap !important; gap: 14px !important; overflow-x: auto; overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory; scroll-padding: 0 var(--gap); scrollbar-width: none; padding-bottom: 4px; margin: 20px 0 0;
}
.wp-block-gallery.is-style-carousel::-webkit-scrollbar, .cards--row::-webkit-scrollbar { display: none; }
.wp-block-gallery.is-style-carousel > .wp-block-image {
	flex: 0 0 82% !important; width: auto !important; margin: 0 !important; scroll-snap-align: start;
}
@media (min-width: 700px) { .wp-block-gallery.is-style-carousel > .wp-block-image { flex-basis: 46% !important; } }
@media (min-width: 1000px) { .wp-block-gallery.is-style-carousel > .wp-block-image { flex-basis: 31.5% !important; } }
.wp-block-gallery.is-style-carousel > .wp-block-image img { background: var(--sand); width: 100% !important; height: auto !important; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.cards--row > .card { flex: 0 0 82%; scroll-snap-align: start; }
@media (min-width: 700px) { .cards--row > .card { flex-basis: 46%; } }
@media (min-width: 1000px) { .cards--row > .card { flex-basis: 31.5%; } }

.carousel-nav { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }
.carousel-nav[hidden] { display: none; }
.carousel-nav button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--ink); font-size: 20px; line-height: 1; cursor: pointer; }
.carousel-nav button:hover:not(:disabled) { border-color: var(--plum); color: var(--plum); }
.carousel-nav button:disabled { opacity: .35; cursor: default; }

/* Activity type tiles */
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
@media (min-width: 782px) { .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; } }
.tile { position: relative; display: block; aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; background: var(--sage); color: #fff; text-decoration: none; }
.tile__img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(0 0 0 / 0) 40%, rgb(0 0 0 / .6)); }
.tile__label { position: absolute; left: 14px; bottom: 12px; z-index: 1; font-size: 20px; font-weight: 800; }
.tile:hover { color: #fff; }
.tile:hover .tile__img { transform: scale(1.05); }
@media (prefers-reduced-motion: reduce) { .tile__img { transition: none; } .tile:hover .tile__img { transform: none; } }

/* Difficulty grades */
.grades { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 782px) { .grades { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.grades__item a, .grades__item > span { display: flex; flex-direction: column; gap: 2px; height: 100%; padding: 16px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); border-top: 6px solid var(--g); color: var(--ink); text-decoration: none; }
.grades__item a:hover { box-shadow: var(--shadow); color: var(--ink); }
.grades__name { font-weight: 800; font-size: 19px; color: var(--g); }
.grades__label { color: var(--ink-soft); font-size: 14px; }
.grades__item--pink { --g: var(--d-pink); }
.grades__item--green { --g: var(--d-green); }
.grades__item--orange { --g: var(--d-orange); }
.grades__item--purple { --g: var(--d-purple); }
.badge-link { text-decoration: none; }
.badge-link:hover .badge { border-color: var(--plum); }

/* Enquiry form */
.enquiry-form { margin-top: 20px; }
.enquiry-form__grid { display: grid; gap: 0 16px; }
@media (min-width: 700px) { .enquiry-form__grid { grid-template-columns: 1fr 1fr; } }
.field textarea { width: 100%; padding: 10px 12px; border: 1px solid #c9c3b6; border-radius: 10px; background: #fff; color: var(--ink); font: 400 16px/1.5 var(--font); }
.field textarea:focus { border-color: var(--plum); outline: 2px solid var(--plum); outline-offset: 0; }
.field input[type=date], .field input[type=number] { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid #c9c3b6; border-radius: 10px; background: #fff; font: 400 16px/1.3 var(--font); }

/* Payment step (embedded Stripe Checkout) */
.payment-step__title { margin: 0 0 6px; font-weight: 800; }
.payment-step__people { list-style: none; margin: 0; padding: 0; }
.payment-step__people li, .payment-step__total { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.payment-step__people small { display: block; color: var(--ink-soft); font-size: 13px; }
.payment-step__total { margin: 0; border-bottom: 0; font-weight: 800; font-size: 18px; }
.payment-step__edit { margin: 0 0 12px; }
.payment-step__edit .button-link { border: 0; background: none; padding: 6px 0; color: var(--plum); font: 600 14px/1 var(--font); text-decoration: underline; cursor: pointer; }
.payment-step__checkout { min-height: 120px; margin: 0 -8px; }
.payment-step__loading { padding: 24px 8px; color: var(--ink-soft); text-align: center; }
/* Give the payment form more room on desktop. */
@media (min-width: 960px) { .activity-layout:has(.payment-step) { grid-template-columns: minmax(0, 1fr) 440px; } }
.book-card:has(.payment-step) .prices, .book-card:has(.payment-step) .book-card__note { display: none; }
.wp-block-columns.is-style-cards ul.is-style-checklist { padding-left: 0; }
.wp-block-columns.is-style-cards h4 { margin-top: 18px; }

/* Meet the crew */
.crew-initial { display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; margin: 0 0 12px; border-radius: 50%; background: var(--sage); color: var(--ink); font-size: 24px; font-weight: 800; }
.wp-block-column:nth-child(2) > .crew-initial { background: var(--plum); color: #fff; }
.wp-block-columns.is-style-cards .wp-block-details { margin: 8px 0 0; border-left-width: 1px; box-shadow: none; }
.wp-block-columns.is-style-cards .wp-block-details > summary { padding: 12px 44px 12px 14px; font-size: 15px; }
.wp-block-columns.is-style-cards .wp-block-details > :not(summary) { margin-left: 14px; margin-right: 14px; font-size: 15px; }
.wp-block-columns.is-style-cards .wp-block-details ul { padding-left: 1.1em; }
