/* Sugarhill Farm Experiences — colours follow the Sugarhill mockup */
.shx, .shx-tickets, .shx-ticket-page {
	--shx-green: #2e6b1f;
	--shx-green-dark: #1f4d14;
	--shx-green-soft: #eef5ea;
	--shx-line: #e3e9df;
	--shx-ink: #1f2a1c;
	--shx-muted: #5d6b58;
	--shx-amber: #e39a14;
	--shx-red: #d0402f;
	--shx-radius: 14px;
	color: var(--shx-ink);
}

/* Themes don't always set this, and full-width buttons overflow without it. */
.shx *, .shx *::before, .shx *::after,
.shx-tickets *, .shx-ticket-page * { box-sizing: border-box; }

/* ---------- Hero ---------- */
.shx-hero {
	position: relative;
	display: flex;
	align-items: center;
	min-height: clamp(340px, 52vw, 520px);
	padding: clamp(28px, 6vw, 72px) clamp(20px, 5vw, 64px);
	overflow: hidden;
	background: var(--shx-green-dark);
	border-radius: var(--shx-radius);
	color: #fff;
}
.shx-hero.has-image {
	background: linear-gradient(90deg, rgba(14, 33, 9, .82) 0%, rgba(14, 33, 9, .55) 45%, rgba(14, 33, 9, .1) 100%), var(--shx-hero) center / cover no-repeat;
}
.shx-hero__inner { max-width: 560px; }
.shx-hero__title {
	margin: 0 0 14px;
	font-size: clamp(34px, 5.4vw, 58px);
	line-height: 1.05;
	font-weight: 800;
	letter-spacing: -.01em;
	color: #fff;
}
.shx-hero__text { margin: 0 0 26px; font-size: clamp(16px, 1.6vw, 18px); line-height: 1.55; color: rgba(255, 255, 255, .9); max-width: 44ch; }
.shx-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Buttons ---------- */
.shx-btn, .shx-btn:visited {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 12px 24px;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.2;
	color: #fff !important;
	text-decoration: none !important;
	background: var(--shx-green);
	border: 2px solid var(--shx-green);
	border-radius: 10px;
	cursor: pointer;
	transition: background-color .15s ease, border-color .15s ease;
}
.shx-btn:hover { background: var(--shx-green-dark); border-color: var(--shx-green-dark); }
.shx-btn--light, .shx-btn--light:visited { background: #fff; border-color: #fff; color: var(--shx-green) !important; }
.shx-btn--light:hover { background: var(--shx-green-soft); border-color: var(--shx-green-soft); }
.shx-btn--ghost, .shx-btn--ghost:visited { background: transparent; color: var(--shx-green) !important; }
.shx-btn--ghost:hover { background: var(--shx-green-soft); }
.shx-btn--block { width: 100%; }
.shx-btn:disabled { background: #b8c4b3; border-color: #b8c4b3; cursor: not-allowed; }
.shx-btn:focus-visible, .shx-icon-btn:focus-visible, .shx-option:focus-visible, .shx-day:focus-visible, .shx-round:focus-visible, .shx-step-title:focus-visible {
	outline: 3px solid var(--shx-amber);
	outline-offset: 2px;
}
.shx-step-title:focus { outline: none; }

/* ---------- Experience cards ---------- */
.shx-list { margin: clamp(32px, 5vw, 56px) 0; }
.shx-list__title { margin: 0 0 24px; font-size: clamp(24px, 2.6vw, 30px); font-weight: 800; color: var(--shx-green); text-align: center; }
.shx-cards { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; }
.shx-card {
	display: flex;
	flex: 0 1 360px;
	flex-direction: column;
	min-width: 260px;
	overflow: hidden;
	background: #fff;
	border: 1px solid var(--shx-line);
	border-radius: var(--shx-radius);
}
/* Every photo is cropped to the same shape, whatever size was uploaded. */
.shx-card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--shx-green-soft); }
.shx-card__media img {
	position: absolute;
	inset: 0;
	display: block;
	width: 100% !important;
	height: 100% !important;
	max-width: none;
	object-fit: cover;
}
.shx-card__body { display: flex; flex: 1; flex-direction: column; padding: 18px 18px 20px; }
.shx-card__body h3 { margin: 0 0 6px; font-size: 19px; font-weight: 800; color: var(--shx-ink); }
.shx-card__body p { margin: 0 0 12px; font-size: 14.5px; line-height: 1.5; color: var(--shx-muted); }
.shx-card__body .shx-card__price { margin-top: auto; margin-bottom: 14px; font-weight: 800; color: var(--shx-green); }

/* ---------- Booking modal ---------- */
html.shx-lock { overflow: hidden; }
.shx-modal { position: fixed; inset: 0; z-index: 999999; display: flex; align-items: center; justify-content: center; }
.shx-modal[hidden] { display: none; }
.shx-modal__backdrop { position: absolute; inset: 0; background: rgba(15, 30, 10, .55); opacity: 0; transition: opacity .2s ease; }
.shx-modal__panel {
	position: relative;
	display: flex;
	flex-direction: column;
	width: 100%;
	max-width: 460px;
	height: min(760px, calc(100vh - 40px));
	background: #fff;
	border-radius: 20px;
	box-shadow: 0 30px 80px rgba(0, 0, 0, .3);
	opacity: 0;
	transform: translateY(14px);
	transition: opacity .2s ease, transform .2s ease;
	overflow: hidden;
}
.shx-modal.is-open .shx-modal__backdrop { opacity: 1; }
.shx-modal.is-open .shx-modal__panel { opacity: 1; transform: none; }
.shx-modal__head { display: flex; align-items: center; gap: 8px; padding: 10px 10px 8px; }
.shx-modal__crumb { flex: 1; margin: 0; font-size: 14px; font-weight: 600; color: var(--shx-muted); text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shx-icon-btn {
	display: inline-grid;
	place-items: center;
	width: 40px;
	height: 40px;
	padding: 0;
	font-size: 22px;
	line-height: 1;
	color: var(--shx-ink);
	background: transparent;
	border: 0;
	border-radius: 50%;
	cursor: pointer;
}
.shx-icon-btn:hover:not(:disabled) { background: var(--shx-green-soft); }
.shx-icon-btn:disabled { opacity: .3; cursor: default; }
.shx-progress { height: 3px; background: var(--shx-line); }
.shx-progress span { display: block; height: 100%; width: 0; background: var(--shx-green); transition: width .25s ease; }
.shx-modal__body { flex: 1; overflow-y: auto; padding: 20px 22px 12px; overscroll-behavior: contain; }
.shx-modal__foot { padding: 12px 22px calc(16px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--shx-line); }
.shx-modal__foot:empty { display: none; }

.shx-step-title { margin: 0 0 8px; font-size: 23px; line-height: 1.2; font-weight: 800; color: var(--shx-ink); }
.shx-muted { margin: 0 0 14px; font-size: 14px; line-height: 1.5; color: var(--shx-muted); }
.shx-center { text-align: center; }
.shx-label { margin: 18px 0 10px; font-size: 14px; font-weight: 700; color: var(--shx-ink); }
.shx-when { margin: 0 0 14px; font-size: 14px; line-height: 1.45; font-weight: 600; color: var(--shx-green); }
.shx-step-img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; margin: 10px 0 4px; }
.shx-alert { margin: 12px 0; padding: 12px 14px; font-size: 14px; line-height: 1.45; color: #7a1f14; background: #fdeeea; border-radius: 10px; }

/* Options (crops and time slots) */
.shx-options { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.shx-option {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	padding: 10px 12px;
	font: inherit;
	text-align: left;
	color: var(--shx-ink);
	background: #fff;
	border: 1.5px solid var(--shx-line);
	border-radius: 12px;
	cursor: pointer;
	transition: border-color .15s ease, background-color .15s ease;
}
.shx-option:hover:not(:disabled) { border-color: var(--shx-green); }
.shx-option img, .shx-option__ph { flex: none; width: 56px; height: 56px; object-fit: cover; border-radius: 9px; background: var(--shx-green-soft); }
.shx-option__text { display: flex; flex: 1; flex-direction: column; gap: 2px; min-width: 0; }
.shx-option__text strong { font-size: 15.5px; }
.shx-option__text span { font-size: 13.5px; color: var(--shx-muted); }
.shx-chev { flex: none; color: var(--shx-muted); }
.shx-option--slot { padding: 14px 16px; }
.shx-option--slot.is-few .shx-option__text span { color: #9a6200; }
.shx-option--slot:disabled { cursor: not-allowed; background: #f6f7f5; }
.shx-option--slot:disabled .shx-option__text strong { color: #8b9686; }
.shx-option.is-selected { border-color: var(--shx-green); background: var(--shx-green-soft); }
.shx-tick { flex: none; width: 22px; height: 22px; border: 1.5px solid var(--shx-line); border-radius: 50%; }
.shx-option.is-selected .shx-tick {
	border-color: var(--shx-green);
	background: var(--shx-green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
}
.shx-option--slot:disabled .shx-tick { visibility: hidden; }

/* Calendar */
.shx-cal { padding: 10px; border: 1px solid var(--shx-line); border-radius: 14px; }
.shx-cal__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.shx-cal__month { margin: 0; font-weight: 700; }
.shx-cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.shx-cal__dow { padding: 4px 0; font-size: 12px; font-weight: 600; text-align: center; color: var(--shx-muted); }
.shx-day {
	position: relative;
	aspect-ratio: 1;
	min-height: 38px;
	padding: 0;
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	color: var(--shx-ink);
	background: transparent;
	border: 0;
	border-radius: 50%;
	cursor: pointer;
}
.shx-day::after { content: ""; position: absolute; left: 50%; bottom: 4px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; }
.shx-day.is-open::after { background: var(--shx-green); }
.shx-day.is-few::after { background: var(--shx-amber); }
.shx-day.is-full::after { background: var(--shx-red); }
.shx-day:hover:not(:disabled) { background: var(--shx-green-soft); }
.shx-day:disabled { color: #b5beb1; cursor: default; }
.shx-day.is-full:disabled { text-decoration: line-through; }
.shx-day.is-loading { color: #c9d0c6; }
.shx-day.is-range { background: var(--shx-green-soft); border-radius: 8px; }
.shx-day.is-selected, .shx-day.is-selected:hover { color: #fff; background: var(--shx-green); }
.shx-day.is-selected::after { background: #fff; }
.shx-legend { display: flex; flex-wrap: wrap; gap: 14px; margin: 10px 2px 0; font-size: 12.5px; color: var(--shx-muted); }
.shx-legend span::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; vertical-align: 1px; }
.shx-legend .is-open::before { background: var(--shx-green); }
.shx-legend .is-few::before { background: var(--shx-amber); }
.shx-legend .is-full::before { background: var(--shx-red); }
.shx-selected { min-height: 2.9em; margin: 14px 0 0; font-size: 14px; line-height: 1.45; color: var(--shx-muted); }
.shx-selected strong { color: var(--shx-ink); }

/* People */
.shx-counter { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--shx-line); }
.shx-counter > div:first-child { display: flex; flex-direction: column; gap: 2px; }
.shx-counter > div:first-child span { font-size: 13.5px; color: var(--shx-muted); }
.shx-counter__ctrl { display: flex; align-items: center; gap: 14px; }
.shx-counter output { min-width: 1.6em; font-size: 20px; font-weight: 800; text-align: center; }
.shx-round {
	width: 42px;
	height: 42px;
	padding: 0;
	font-size: 22px;
	line-height: 1;
	color: var(--shx-green);
	background: #fff;
	border: 1.5px solid var(--shx-line);
	border-radius: 50%;
	cursor: pointer;
}
.shx-round:hover:not(:disabled) { border-color: var(--shx-green); }
.shx-round:disabled { color: #c3cbbf; cursor: not-allowed; }
.shx-counter + .shx-muted { margin-top: 16px; }

/* Summary */
.shx-sum__head { display: flex; align-items: center; gap: 12px; margin: 6px 0 14px; }
.shx-sum__head img { width: 60px; height: 60px; object-fit: cover; border-radius: 10px; }
.shx-sum__head div { display: flex; flex-direction: column; }
.shx-sum__head span { font-size: 13.5px; color: var(--shx-muted); }
.shx-sum { margin: 0 0 12px; padding: 4px 0; border-top: 1px solid var(--shx-line); }
.shx-sum > div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--shx-line); }
.shx-sum dt { display: flex; flex-direction: column; font-size: 14px; color: var(--shx-muted); }
.shx-sum dt small { font-size: 12.5px; }
.shx-sum dd { margin: 0; font-size: 14px; font-weight: 600; text-align: right; }
.shx-sum--total > div.is-strong dt, .shx-sum--total > div.is-strong dd { font-size: 17px; font-weight: 800; color: var(--shx-ink); }

/* ---------- Tickets (thank-you page, My Account, ticket link) ---------- */
.shx-tickets { margin: 32px 0; }
.shx-tickets h2 { margin-bottom: 14px; }
.shx-ticket-page { max-width: 520px; margin: 40px auto; padding: 0 16px; }
.shx-ticket { margin-bottom: 18px; overflow: hidden; background: #fff; border: 1px solid var(--shx-line); border-radius: 16px; }
.shx-ticket__head { padding: 18px 20px; background: var(--shx-green); color: #fff; }
.shx-ticket__head h3 { margin: 6px 0 0; font-size: 20px; color: #fff; }
.shx-ticket__badge { display: inline-block; padding: 3px 10px; font-size: 13px; font-weight: 700; color: var(--shx-green); background: #fff; border-radius: 999px; }
.shx-ticket__badge.is-wait { color: #7a4b00; background: #ffe9b8; }
.shx-ticket.is-pending .shx-ticket__head { background: #5f6b5a; }
.shx-ticket__body { display: flex; flex-wrap: wrap; gap: 20px; padding: 18px 20px; }
.shx-ticket__body dl { flex: 1 1 220px; display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; font-size: 14px; }
.shx-ticket__body dt { color: #5d6b58; }
.shx-ticket__body dd { margin: 0; font-weight: 600; }
.shx-ticket__qr { flex: 0 0 170px; margin: 0 auto; text-align: center; }
.shx-ticket__qr p { margin: 6px 0 0; font-size: 12.5px; color: #5d6b58; }
.shx-qr { width: 170px; height: 170px; }
.shx-qr svg { display: block; width: 100%; height: 100%; }
.shx-ticket__note { margin: 0; font-size: 14px; color: #5d6b58; }
.shx-ticket__foot { margin: 0; padding: 12px 20px; font-size: 13.5px; border-top: 1px solid var(--shx-line); color: #5d6b58; }

/* ---------- Small screens ---------- */
@media (max-width: 560px) {
	.shx-card { flex-basis: 100%; }
	.shx-modal { align-items: stretch; }
	.shx-modal__panel { max-width: none; height: 100%; border-radius: 0; }
	.shx-hero__actions .shx-btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
	.shx-modal__backdrop, .shx-modal__panel, .shx-progress span { transition: none; }
}
