/**
 * Lime Reservations frontend styles.
 *
 * Everything is scoped under .lime-reservations — nothing here may reach the
 * host theme's own typography or chrome.
 *
 * The custom properties below are the defaults. When "use park theme" is on,
 * class-assets inlines overrides for the same names: the five colors the
 * portal API delivers, plus the surface tiers and on-colors Theme::tokens()
 * derives from them. Those derived text colors are contrast-clamped in PHP,
 * which is why they are not computed here with color-mix() — CSS has no way
 * to ask whether a pair is legible.
 *
 * Fonts resolve to a bundled woff2 when the park picked one of the four
 * families the hosted portal self-hosts, and otherwise fall back to the
 * theme's stack exactly as before.
 */

.lime-reservations {
	/* The park theme. class-assets overrides these per request when
	   "use park theme" is on; otherwise these defaults stand. */
	--lime-primary: #3b82f6;
	--lime-secondary: #47664b;
	--lime-tertiary: #00314f;
	--lime-cta: #fabd00;
	--lime-background: #fcf9f4;
	--lime-headline-font: inherit;
	--lime-body-font: inherit;

	/*
	 * Surface tiers and on-colors, mirroring the roles the hosted portal
	 * renders against. The values below are Theme::tokens() applied to the
	 * five colors above — ThemeTest asserts the two stay in step, so edit
	 * them together. With the park theme on, class-assets inlines the same
	 * properties derived from the park's own palette.
	 *
	 * Those surfaces are always light, whatever background a park picks: the
	 * plugin renders inside a WordPress theme whose page color it neither
	 * paints nor knows, so it cannot safely invert its own text. Every text
	 * token is then contrast-clamped in PHP against the worst of *all* the
	 * surfaces below, which is what keeps it legible on each of them rather
	 * than only on the one it was measured against.
	 */
	--lime-surface: #fcf9f4;
	--lime-surface-container-lowest: #ffffff;
	--lime-surface-container-low: #f4f4f4;
	--lime-surface-container: #edeff4;
	--lime-surface-container-high: #e3eaf4;
	--lime-surface-container-highest: #dae4f4;
	--lime-outline-variant: #c2d5f5;
	--lime-outline: #80adf5;
	--lime-on-surface: #1e2939;
	--lime-on-surface-variant: #5c6168;
	--lime-accent-text: #7d5f00;
	--lime-on-cta: #001d2f;
	--lime-primary-label: #261c00;
	--lime-secondary-label: #fcd766;

	/* Errors read the same in every park. */
	--lime-error: #b91c1c;
	--lime-error-container: #ffdad6;

	/* Availability colors are deliberately not themeable: the legend has to
	   mean the same thing on every park's site. */
	--lime-available: #dcfce7;
	--lime-available-text: #166534;
	--lime-booked: #fee2e2;
	--lime-booked-text: #991b1b;
	--lime-blocked: #e5e7eb;
	--lime-blocked-text: #4b5563;
	--lime-in-cart: #fef3c7;
	--lime-in-cart-text: #92400e;

	/* Shape and depth. The portal separates with background shifts and a soft
	   ambient shadow rather than hard rules; the ghost border is the hairline
	   it falls back on when a line is unavoidable. */
	--lime-radius-sm: 0.375rem;
	--lime-radius: 0.75rem;
	--lime-radius-lg: 1rem;
	--lime-radius-pill: 9999px;
	--lime-shadow-sm: 0 4px 12px rgba(28, 28, 25, 0.04);
	--lime-shadow: 0 20px 40px rgba(28, 28, 25, 0.06);
	--lime-ghost-border: 1px solid rgba(194, 200, 191, 0.2);

	/* Kept as aliases: theme template overrides may reference these names. */
	--lime-text: var(--lime-on-surface);
	--lime-muted: var(--lime-on-surface-variant);
	--lime-border: var(--lime-outline-variant);

	font-family: var(--lime-body-font), ui-sans-serif, system-ui, sans-serif;
	color: var(--lime-on-surface);
	line-height: 1.5;
}

.lime-reservations h2,
.lime-reservations h3 {
	font-family: var(--lime-headline-font), ui-sans-serif, system-ui, sans-serif;
	color: var(--lime-on-surface);
	font-weight: 800;
	letter-spacing: -0.025em;
}

/* Buttons */

/*
 * Pills, matching the portal's button set: a primary-filled pill whose label
 * is the park's CTA color (contrast-lifted by Theme::tokens so it stays
 * readable), and quieter outline/ghost variants for secondary actions.
 */

.lime-reservations .lime-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5em;
	padding: 0.5em 1.5em;
	border: 1px solid var(--lime-primary);
	border-radius: var(--lime-radius-pill);
	background: var(--lime-primary);
	color: var(--lime-primary-label);
	font: inherit;
	font-family: var(--lime-headline-font), ui-sans-serif, system-ui, sans-serif;
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition: filter 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.lime-reservations .lime-button:hover,
.lime-reservations .lime-button:focus {
	filter: brightness(1.05);
	color: var(--lime-primary-label);
}

.lime-reservations .lime-button:active {
	filter: brightness(0.95);
}

/* Themes underline content links from a selector that outranks a single
   scoped class (Astra's `.ast-single-post .entry-content a`, for one). A pill
   with an underlined label does not read as a button, so match that weight. */
.lime-reservations a.lime-button,
.lime-reservations a.lime-button:hover,
.lime-reservations a.lime-button:focus {
	text-decoration: none;
}

.lime-reservations .lime-button:focus-visible {
	outline: 2px solid var(--lime-cta);
	outline-offset: 2px;
}

.lime-reservations .lime-button[disabled],
.lime-reservations .lime-button[aria-disabled="true"] {
	opacity: 0.5;
	pointer-events: none;
}

.lime-reservations .lime-button--outline,
.lime-reservations .lime-button--ghost {
	border: var(--lime-ghost-border);
	background: transparent;
	color: var(--lime-on-surface);
	font-weight: 600;
}

.lime-reservations .lime-button--ghost {
	border-color: transparent;
}

.lime-reservations .lime-button--outline:hover,
.lime-reservations .lime-button--outline:focus,
.lime-reservations .lime-button--ghost:hover,
.lime-reservations .lime-button--ghost:focus {
	filter: none;
	background: var(--lime-surface-container);
	color: var(--lime-on-surface);
}

.lime-reservations .lime-button--secondary {
	border-color: var(--lime-secondary);
	background: var(--lime-secondary);
	color: var(--lime-secondary-label);
}

.lime-reservations .lime-button--secondary:hover,
.lime-reservations .lime-button--secondary:focus {
	color: var(--lime-secondary-label);
}

/* The loudest call to action: filled with the park's CTA color. --lime-on-cta
   is the park's tertiary darkened until it is readable on that fill. */
.lime-reservations .lime-button--primary {
	background: var(--lime-cta);
	border-color: var(--lime-cta);
	color: var(--lime-on-cta);
}

.lime-reservations .lime-button--primary:hover,
.lime-reservations .lime-button--primary:focus {
	color: var(--lime-on-cta);
}

/* Notices */

.lime-reservations .lime-setup-notice,
.lime-reservations .lime-admin-note {
	padding: 0.75em 1em;
	border-left: 4px solid #d63638;
	border-radius: var(--lime-radius-sm);
	background: #fcf0f1;
	color: #1f2937;
}

.lime-reservations .lime-fallback {
	padding: 1.5em;
	border: var(--lime-ghost-border);
	border-radius: var(--lime-radius-lg);
	background: var(--lime-surface-container-lowest);
	box-shadow: var(--lime-shadow-sm);
	text-align: center;
}

.lime-reservations .lime-empty {
	color: var(--lime-muted);
	font-style: italic;
}

/* Search form */

.lime-reservations .lime-search-form {
	padding: 1.5em;
	border: var(--lime-ghost-border);
	border-radius: var(--lime-radius-lg);
	background: var(--lime-surface-container-lowest);
	box-shadow: var(--lime-shadow);
	margin-bottom: 1.5em;
}

.lime-reservations .lime-search-form__fields {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75em 1em;
	align-items: flex-end;
}

.lime-reservations .lime-field {
	display: flex;
	flex-direction: column;
	gap: 0.25em;
	min-width: 9em;
}

.lime-reservations .lime-field label {
	font-size: 0.85em;
	font-weight: 600;
	color: var(--lime-on-surface);
}

.lime-reservations .lime-field input,
.lime-reservations .lime-field select {
	padding: 0.625em 1em;
	border: var(--lime-ghost-border);
	border-radius: var(--lime-radius);
	background: var(--lime-surface-container-highest);
	color: var(--lime-on-surface);
	font: inherit;
	/* Themes commonly pin form controls to a fixed height (Astra uses 40px)
	   with border-box sizing, which turns this padding into clipped
	   descenders. Let the padding decide the height instead. */
	height: auto;
	line-height: 1.4;
	transition: box-shadow 0.2s ease;
}

.lime-reservations .lime-field input:focus-visible,
.lime-reservations .lime-field select:focus-visible {
	outline: 2px solid var(--lime-cta);
	outline-offset: 1px;
}

/* Site list + cards */

.lime-reservations .lime-site-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
	gap: 1.25em;
}

.lime-reservations .lime-site-list__item {
	margin: 0;
}

.lime-reservations .lime-site-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	border: var(--lime-ghost-border);
	border-radius: var(--lime-radius-lg);
	overflow: hidden;
	background: var(--lime-surface-container-lowest);
	box-shadow: var(--lime-shadow-sm);
	transition: box-shadow 0.3s ease;
}

.lime-reservations .lime-site-card:hover,
.lime-reservations .lime-site-card:focus-within {
	box-shadow: var(--lime-shadow);
}

.lime-reservations .lime-site-card__media img {
	display: block;
	width: 100%;
	height: 11rem;
	object-fit: cover;
}

.lime-reservations .lime-site-card__body {
	display: flex;
	flex-direction: column;
	gap: 0.5em;
	padding: 1em;
	flex: 1;
}

.lime-reservations .lime-site-card__title {
	margin: 0;
	font-size: 1.15em;
}

.lime-reservations .lime-site-card__title a {
	color: var(--lime-on-surface);
	text-decoration: none;
}

.lime-reservations .lime-site-card__meta {
	margin: 0;
	color: var(--lime-muted);
	font-size: 0.9em;
}

.lime-reservations .lime-site-card__description {
	margin: 0;
	font-size: 0.95em;
}

.lime-reservations .lime-site-card__amenities {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.35em;
}

.lime-reservations .lime-site-card__amenities li {
	margin: 0;
	padding: 0.25em 0.625em;
	border-radius: var(--lime-radius-sm);
	background: var(--lime-surface-container);
	border: 0;
	font-size: 0.8em;
	color: var(--lime-on-surface-variant);
}

.lime-reservations .lime-site-card__footer {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 0.5em;
	margin-top: auto;
}

.lime-reservations .lime-site-card__price {
	font-weight: 700;
	color: var(--lime-on-surface);
	white-space: nowrap;
}

/* A pill is wider than the rectangle it replaced, and card columns are narrow.
   Trim the padding here so the price and the button still share a line. */
.lime-reservations .lime-site-card__footer .lime-button {
	padding: 0.45em 1.1em;
	font-size: 0.95em;
}

/* Site detail */

.lime-reservations .lime-site-detail__title {
	margin-top: 0;
}

.lime-reservations .lime-site-detail__meta {
	color: var(--lime-muted);
}

.lime-reservations .lime-site-detail__price {
	color: var(--lime-on-surface);
	font-weight: 700;
}

/* Gallery: main photo + side tiles, mirroring the hosted portal. Every photo
   is in the DOM; only `is-enhanced` (added by frontend.js) trims the grid to
   five and reveals the "+N" badge, so with scripting off this stays a
   complete, honest gallery instead of a truncated one. */

.lime-reservations .lime-site-detail__gallery {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
	gap: 0.5em;
	margin-bottom: 1.25em;
}

.lime-reservations .lime-site-detail__gallery-item {
	position: relative;
	margin: 0;
	min-width: 0;
}

.lime-reservations .lime-site-detail__gallery img {
	display: block;
	width: 100%;
	height: 10rem;
	object-fit: cover;
	border-radius: var(--lime-radius);
}

.lime-reservations .lime-site-detail__gallery-more {
	display: none;
}

@media (min-width: 601px) {
	.lime-reservations .lime-site-detail__gallery.is-enhanced {
		grid-template-columns: repeat(4, 1fr);
		grid-auto-rows: 6rem;
	}

	.lime-reservations .lime-site-detail__gallery.is-enhanced .lime-site-detail__gallery-item--main {
		grid-column: span 2;
		grid-row: span 2;
	}

	.lime-reservations .lime-site-detail__gallery.is-enhanced .lime-site-detail__gallery-item img {
		height: 100%;
	}
}

.lime-reservations .lime-site-detail__gallery.is-enhanced .lime-site-detail__gallery-item--overflow {
	display: none;
}

.lime-reservations .lime-site-detail__gallery.is-enhanced .lime-site-detail__gallery-more {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: var(--lime-radius);
	background: rgba(0, 0, 0, 0.5);
	color: #fff;
	font-weight: 700;
}

.lime-reservations .lime-site-detail__gallery-item[role="button"] {
	cursor: pointer;
}

.lime-reservations .lime-site-detail__gallery-item[role="button"]:focus-visible {
	outline: 2px solid var(--lime-primary);
	outline-offset: 2px;
}

/* Lightbox — appended to <body> inside its own .lime-reservations wrapper so
   the stylesheet and the inlined park theme both still apply to it. */

.lime-reservations .lime-lightbox {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.9);
}

.lime-reservations .lime-lightbox[hidden] {
	display: none;
}

.lime-reservations .lime-lightbox img {
	max-height: 85vh;
	max-width: 90vw;
	object-fit: contain;
}

.lime-reservations .lime-lightbox button {
	position: absolute;
	padding: 0.4em 0.7em;
	border: 0;
	border-radius: var(--lime-radius-pill);
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
	font-size: 1.5em;
	line-height: 1;
	cursor: pointer;
}

.lime-reservations .lime-lightbox button:hover,
.lime-reservations .lime-lightbox button:focus-visible {
	background: rgba(255, 255, 255, 0.28);
}

.lime-reservations .lime-lightbox button[disabled] {
	opacity: 0.35;
	cursor: default;
}

.lime-reservations .lime-lightbox__close {
	top: 1rem;
	right: 1rem;
}

.lime-reservations .lime-lightbox__prev {
	left: 1rem;
}

.lime-reservations .lime-lightbox__next {
	right: 1rem;
}

.lime-reservations .lime-lightbox__counter {
	position: absolute;
	bottom: 1rem;
	margin: 0;
	color: #fff;
	font-size: 0.9em;
}

/* Rates */

.lime-reservations .lime-rate-table {
	width: 100%;
	border-collapse: collapse;
	margin: 0 0 1em;
	font-size: 0.95em;
}

.lime-reservations .lime-rate-table th,
.lime-reservations .lime-rate-table td {
	padding: 0.5em;
	border-bottom: var(--lime-ghost-border);
	text-align: left;
}

.lime-reservations .lime-rate-table__amount {
	text-align: right;
	white-space: nowrap;
}

.lime-reservations .lime-site-detail__columns {
	display: grid;
	grid-template-columns: minmax(0, 3fr) minmax(18rem, 2fr);
	gap: 1.5em;
	align-items: start;
}

@media (max-width: 782px) {
	.lime-reservations .lime-site-detail__columns {
		grid-template-columns: 1fr;
	}
}

.lime-reservations .lime-site-detail__facts,
.lime-reservations .lime-site-detail__amenities {
	list-style: none;
	margin: 0 0 1em;
	padding: 0;
}

.lime-reservations .lime-site-detail__amenities {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35em;
}

.lime-reservations .lime-site-detail__amenities li {
	display: inline-flex;
	align-items: center;
	gap: 0.3em;
	padding: 0.25em 0.625em;
	border-radius: var(--lime-radius-sm);
	background: var(--lime-surface-container);
	border: 0;
	font-size: 0.85em;
	color: var(--lime-on-surface-variant);
}

.lime-reservations .lime-icon {
	flex: none;
	width: 1.15em;
	height: 1.15em;
}

/* Booking widget */

.lime-reservations .lime-booking-widget {
	padding: 1.5em;
	border: var(--lime-ghost-border);
	border-radius: var(--lime-radius-lg);
	background: var(--lime-surface-container-lowest);
	box-shadow: var(--lime-shadow);
	display: flex;
	flex-direction: column;
	gap: 0.75em;
	margin-top: 1em;
}

.lime-reservations .lime-booking-widget__form {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75em;
	align-items: flex-end;
}

.lime-reservations .lime-booking-widget__note {
	margin: 0;
	font-size: 0.85em;
	color: var(--lime-muted);
}

.lime-reservations .lime-reserve-link {
	text-align: center;
	font-size: 1.05em;
}

/* Quote */

.lime-reservations .lime-quote__table {
	width: 100%;
	border-collapse: collapse;
}

.lime-reservations .lime-quote__table th,
.lime-reservations .lime-quote__table td {
	padding: 0.35em 0;
	text-align: left;
	font-weight: 400;
	border: 0;
}

.lime-reservations .lime-quote__table td {
	text-align: right;
}

.lime-reservations .lime-quote__total th,
.lime-reservations .lime-quote__total td {
	border-top: var(--lime-ghost-border);
	font-weight: 700;
}

.lime-reservations .lime-quote__rate-name {
	display: block;
	font-size: 0.85em;
	color: var(--lime-muted);
}

.lime-reservations .lime-quote__hint,
.lime-reservations .lime-quote__error {
	margin: 0;
	color: var(--lime-muted);
	font-size: 0.95em;
}

/* Availability calendar */

.lime-reservations .lime-calendar__header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 0.5em;
}

.lime-reservations .lime-calendar__title {
	margin: 0;
	font-size: 1.05em;
}

.lime-reservations .lime-calendar__nav {
	padding: 0.15em 0.7em;
	border: var(--lime-ghost-border);
	border-radius: var(--lime-radius-pill);
	background: var(--lime-surface-container-lowest);
	color: var(--lime-on-surface);
	text-decoration: none;
	font-size: 1.1em;
	line-height: 1.4;
}

.lime-reservations .lime-calendar__grid {
	width: 100%;
	border-collapse: collapse;
	table-layout: fixed;
	margin-top: 0.5em;
}

.lime-reservations .lime-calendar__grid th {
	padding: 0.3em 0;
	font-size: 0.8em;
	color: var(--lime-muted);
	text-align: center;
	border: 0;
}

.lime-reservations .lime-calendar__day {
	padding: 0;
	text-align: center;
	border: var(--lime-ghost-border);
	border-radius: 0.5rem;
	height: 2.4em;
	font-size: 0.9em;
}

.lime-reservations .lime-calendar__day:focus {
	outline: 2px solid var(--lime-cta);
	outline-offset: -2px;
}

.lime-reservations .lime-calendar__day--blank {
	border: 0;
}

.lime-reservations .lime-calendar__day.is-available {
	background: var(--lime-available);
	color: var(--lime-available-text);
	cursor: pointer;
}

.lime-reservations .lime-calendar__day.is-booked,
.lime-reservations .lime-availability-grid__day.is-booked {
	background: var(--lime-booked);
	color: var(--lime-booked-text);
}

/* The visitor's own hold. Distinct from booked on purpose: those nights are
   theirs for the next few minutes, and telling them apart is the point. */
.lime-reservations .lime-calendar__day.is-in_cart,
.lime-reservations .lime-availability-grid__day.is-in_cart {
	background: var(--lime-in-cart);
	color: var(--lime-in-cart-text);
}

.lime-reservations .lime-calendar__day.is-blocked,
.lime-reservations .lime-calendar__day.is-unknown,
.lime-reservations .lime-availability-grid__day.is-blocked {
	background: var(--lime-blocked);
	color: var(--lime-blocked-text);
}

.lime-reservations .lime-calendar__day.is-past {
	opacity: 0.55;
	cursor: default;
}

/* Range selection. The two `background` declarations are deliberate: engines
   without color-mix() keep the solid fallback and drop the line below it. */

.lime-reservations .lime-calendar__day.is-in-range {
	background: var(--lime-available);
	background: color-mix(in srgb, var(--lime-cta) 40%, transparent);
	color: var(--lime-text);
	font-weight: 700;
}

.lime-reservations .lime-calendar__day.is-selected-start,
.lime-reservations .lime-calendar__day.is-selected-end {
	background: var(--lime-cta);
	color: var(--lime-on-cta);
	font-weight: 700;
	outline: 2px solid var(--lime-cta);
	outline-offset: -1px;
	opacity: 1;
}

.lime-reservations .lime-calendar__day.is-selectable {
	cursor: pointer;
}

.lime-reservations .lime-calendar__prompt {
	margin: 0 0 0.5em;
	color: var(--lime-accent-text);
	font-weight: 600;
	font-size: 0.9em;
}

/* Advisory only — it never blocks a submit, so it reads as a tinted panel
   rather than bare red text, the way the portal draws its own error panels. */
.lime-reservations .lime-calendar__notice {
	margin: 0.5em 0 0;
	padding: 0.5em 0.75em;
	border-radius: var(--lime-radius);
	background: var(--lime-error-container);
	color: var(--lime-error);
	font-size: 0.9em;
}

.lime-reservations .lime-calendar__prompt[hidden],
.lime-reservations .lime-calendar__notice[hidden] {
	display: none;
}

.lime-reservations .lime-calendar__error {
	color: var(--lime-muted);
	font-style: italic;
}

.lime-reservations .lime-calendar__legend {
	display: flex;
	gap: 1em;
	margin: 0.5em 0 0;
	font-size: 0.8em;
	color: var(--lime-muted);
}

.lime-reservations .lime-calendar__legend-item::before {
	content: "";
	display: inline-block;
	width: 0.8em;
	height: 0.8em;
	margin-right: 0.35em;
	border: var(--lime-ghost-border);
	border-radius: 0.2em;
	vertical-align: baseline;
}

.lime-reservations .lime-calendar__legend-item.is-available::before {
	background: var(--lime-available);
}

.lime-reservations .lime-calendar__legend-item.is-booked::before {
	background: var(--lime-booked);
}

.lime-reservations .lime-calendar__legend-item.is-blocked::before {
	background: var(--lime-blocked);
}

.lime-reservations .lime-calendar__legend-item.is-in_cart::before {
	background: var(--lime-in-cart);
}

/* Availability grid (across sites) */

.lime-reservations .lime-availability-grid-wrap {
	overflow-x: auto;
}

.lime-reservations .lime-availability-grid {
	border-collapse: collapse;
	min-width: 100%;
}

.lime-reservations .lime-availability-grid th,
.lime-reservations .lime-availability-grid td {
	border: var(--lime-ghost-border);
	padding: 0.35em 0.5em;
	text-align: left;
	font-size: 0.85em;
}

.lime-reservations .lime-availability-grid__day {
	min-width: 2em;
}

/* The availability colors are fixed, so their text has to be fixed too — park
   ink is derived for the park's own surfaces and would not be legible here. */
.lime-reservations .lime-availability-grid__day.is-available {
	background: var(--lime-available);
	color: var(--lime-available-text);
}

.lime-reservations .lime-availability-grid__class,
.lime-reservations .lime-availability-grid__price {
	display: block;
	font-size: 0.85em;
	font-weight: 400;
	color: var(--lime-muted);
}

/* Cart */

.lime-reservations .lime-booking-widget__party {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 0.5em;
}

.lime-reservations .lime-booking-widget__cart {
	display: flex;
	flex-direction: column;
	gap: 0.4em;
}

/* The rule above outranks the UA sheet's `[hidden] { display: none }`, so
   without this the add-to-booking control shows for a visitor with JavaScript
   off — a button that cannot do anything, next to the Reserve link that can. */
.lime-reservations .lime-booking-widget__cart[hidden] {
	display: none;
}

.lime-reservations .lime-field-error {
	color: var(--lime-error);
	font-size: 0.9em;
	margin: 0.2em 0 0;
}

.lime-reservations .lime-cart__hold {
	display: flex;
	align-items: baseline;
	gap: 0.4em;
	margin: 0 0 1em;
	color: var(--lime-muted);
}

.lime-reservations .lime-cart__countdown {
	font-variant-numeric: tabular-nums;
	font-weight: 700;
	color: var(--lime-text);
}

.lime-reservations .lime-cart__countdown.is-low,
.lime-reservations .lime-cart__countdown.is-expired {
	color: var(--lime-error);
}

.lime-reservations .lime-cart__item {
	display: flex;
	gap: 1em;
	padding: 1em 0;
	border-top: var(--lime-ghost-border);
}

.lime-reservations .lime-cart__item-photo {
	width: 96px;
	height: 72px;
	object-fit: cover;
	border-radius: var(--lime-radius);
	flex: none;
}

.lime-reservations .lime-cart__item-body {
	flex: 1 1 auto;
}

.lime-reservations .lime-cart__item-name {
	margin: 0;
	font-weight: 700;
}

.lime-reservations .lime-cart__item-dates,
.lime-reservations .lime-cart__item-party {
	margin: 0.15em 0 0;
	color: var(--lime-muted);
	font-size: 0.95em;
}

.lime-reservations .lime-cart__item-price {
	font-weight: 700;
	white-space: nowrap;
}

/* An inner tile inside the cart row, one tier up from the card it sits on —
   the portal's way of grouping without drawing a box. */
.lime-reservations .lime-cart__item-addons {
	margin: 0.4em 0 0;
	padding: 0.5em 0.75em;
	border-radius: var(--lime-radius);
	background: var(--lime-surface-container-low);
	list-style: none;
	font-size: 0.95em;
}

.lime-reservations .lime-cart__addon-remove,
.lime-reservations .lime-cart__item-remove {
	background: none;
	border: 0;
	padding: 0;
	color: var(--lime-muted);
	text-decoration: underline;
	cursor: pointer;
	font-size: 0.9em;
}

.lime-reservations .lime-cart__addons {
	margin-top: 1.5em;
}

.lime-reservations .lime-cart__addon {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 1em;
	padding: 0.5em 0;
	border-top: var(--lime-ghost-border);
}

.lime-reservations .lime-cart__summary {
	margin-top: 1.5em;
	border-top: 1px solid var(--lime-outline-variant);
	padding-top: 0.75em;
}

.lime-reservations .lime-cart__summary-row {
	display: flex;
	justify-content: space-between;
	gap: 1em;
	padding: 0.2em 0;
}

.lime-reservations .lime-cart__summary-row.is-total {
	font-weight: 700;
	font-size: 1.1em;
	border-top: var(--lime-ghost-border);
	margin-top: 0.4em;
	padding-top: 0.5em;
}

.lime-reservations .lime-cart__checkout {
	margin-top: 1em;
	display: inline-block;
}

/* Same trap as the add-to-booking control: an explicit `display` here would
   beat the UA sheet's `[hidden]`, leaving an empty badge on every page until
   JavaScript fills it in — and forever if there is none. */
.lime-reservations .lime-cart-link__count[hidden] {
	display: none;
}

.lime-reservations .lime-cart-link__count {
	display: inline-block;
	min-width: 1.5em;
	padding: 0 0.35em;
	margin-left: 0.35em;
	border-radius: var(--lime-radius-pill);
	background: var(--lime-cta);
	color: var(--lime-on-cta);
	font-size: 0.8em;
	font-weight: 700;
	text-align: center;
}

/* Account (RES-124) */

/* Every rule below that sets `display` needs its own [hidden] guard: a class
   selector under .lime-reservations outranks the UA sheet's
   `[hidden] { display: none }`, so without these the sign-in forms would show
   for a visitor with JavaScript off — a form that cannot submit, next to the
   portal link that works. Same trap the add-to-booking control fell into. */

.lime-reservations .lime-account {
	display: grid;
	gap: 1.5em;
}

.lime-reservations .lime-account__signed-out {
	display: grid;
	gap: 1.5em;
}

.lime-reservations .lime-account__signed-out[hidden] {
	display: none;
}

.lime-reservations .lime-account__signed-in {
	display: grid;
	gap: 1.5em;
}

.lime-reservations .lime-account__signed-in[hidden] {
	display: none;
}

.lime-reservations .lime-account__panel {
	padding: 1.25em;
	border: 1px solid var(--lime-border);
	border-radius: 12px;
	/* The card tier, not the raw park background: this is the only panel that
	   ever painted an unclamped color, and the ink is derived for the tiers. */
	background: var(--lime-surface-container-lowest);
}

.lime-reservations .lime-account__panel-head,
.lime-reservations .lime-account__head,
.lime-reservations .lime-account__detail-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75em;
	margin-bottom: 0.75em;
}

.lime-reservations .lime-account__title {
	margin: 0;
	font-family: var(--lime-headline-font);
	font-size: 1.25em;
}

.lime-reservations .lime-account__subtitle {
	margin: 0 0 0.5em;
	font-family: var(--lime-headline-font);
	font-size: 1em;
}

.lime-reservations .lime-account__lede {
	margin: 0 0 1em;
	color: var(--lime-muted);
}

.lime-reservations .lime-account__hint {
	display: block;
	margin-top: 0.25em;
	color: var(--lime-muted);
	font-size: 0.85em;
}

.lime-reservations .lime-account__error {
	margin: 0.75em 0;
	color: var(--lime-error);
	font-size: 0.9em;
}

.lime-reservations .lime-account__error[hidden] {
	display: none;
}

.lime-reservations .lime-account__address {
	display: grid;
	gap: 0.75em;
	margin-top: 0.75em;
}

.lime-reservations .lime-account__address[hidden] {
	display: none;
}

.lime-reservations .lime-account__address-toggle {
	padding: 0;
	border: 0;
	background: none;
	color: var(--lime-accent-text);
	font: inherit;
	cursor: pointer;
	text-decoration: underline;
}

.lime-reservations .lime-account__actions {
	display: flex;
	gap: 0.75em;
	margin-top: 1em;
}

.lime-reservations .lime-account__facts {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 0.75em;
	margin: 0;
}

.lime-reservations .lime-account__fact dt {
	color: var(--lime-muted);
	font-size: 0.8em;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.lime-reservations .lime-account__fact dd {
	margin: 0.15em 0 0;
}

/* Stay list */

.lime-reservations .lime-account__stay-group + .lime-account__stay-group {
	margin-top: 1.25em;
}

.lime-reservations .lime-account__stay {
	display: flex;
	align-items: center;
	gap: 0.75em;
	width: 100%;
	margin-bottom: 0.5em;
	padding: 0.75em;
	border: 1px solid var(--lime-border);
	border-radius: 10px;
	background: none;
	font: inherit;
	text-align: left;
	cursor: pointer;
}

.lime-reservations .lime-account__stay-photo {
	flex: 0 0 auto;
	width: 72px;
	height: 54px;
	overflow: hidden;
	border-radius: 8px;
	background: var(--lime-border);
}

.lime-reservations .lime-account__stay-photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.lime-reservations .lime-account__stay-body {
	flex: 1 1 auto;
	min-width: 0;
}

.lime-reservations .lime-account__stay-head {
	display: flex;
	align-items: center;
	gap: 0.5em;
}

.lime-reservations .lime-account__stay-unit {
	font-weight: 700;
}

.lime-reservations .lime-account__stay-dates {
	display: block;
	color: var(--lime-muted);
	font-size: 0.9em;
}

/* Checkout (RES-123) */

.lime-reservations .lime-checkout__section {
	margin: 0 0 1.5rem;
	padding: 1rem 1.25rem;
	border: 1px solid var(--lime-border);
	border-radius: 8px;
}

.lime-reservations .lime-checkout__section legend {
	padding: 0 0.5rem;
	font-family: var(--lime-headline-font);
	font-weight: 600;
}

.lime-reservations .lime-field {
	margin: 0 0 1rem;
}

.lime-reservations .lime-field label {
	display: block;
	margin-bottom: 0.25rem;
	font-weight: 600;
}

.lime-reservations .lime-field input,
.lime-reservations .lime-field select {
	width: 100%;
	max-width: 26rem;
	padding: 0.5rem 0.75rem;
	border: 1px solid var(--lime-border);
	border-radius: 6px;
}

.lime-reservations .lime-field--check {
	display: flex;
	gap: 0.5rem;
	align-items: flex-start;
}

.lime-reservations .lime-field--check input {
	width: auto;
	margin-top: 0.25rem;
}

.lime-reservations .lime-field--check label {
	margin: 0;
	font-weight: 400;
}

/* Square's SDK sizes its own iframes; this only reserves the space so the
   form does not jump when they arrive. */
.lime-reservations .lime-checkout__card {
	min-height: 90px;
}

.lime-reservations .lime-checkout__card-note,
.lime-reservations .lime-checkout__policy-summary {
	margin: 0.5rem 0 0;
	color: var(--lime-muted);
	font-size: 0.9em;
}

.lime-reservations .lime-account__stay-total {
	flex: 0 0 auto;
	font-weight: 700;
}

/* Status pills — the colours the ticket names. */

.lime-reservations .lime-account__pill {
	padding: 0.15em 0.6em;
	border-radius: 999px;
	font-size: 0.75em;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	white-space: nowrap;
}

.lime-reservations .lime-account__pill.is-confirmed {
	background: #dcfce7;
	color: #166534;
}

.lime-reservations .lime-account__pill.is-pending {
	background: #fef9c3;
	color: #854d0e;
}

.lime-reservations .lime-account__pill.is-checked-in {
	background: #dbeafe;
	color: #1e40af;
}

.lime-reservations .lime-account__pill.is-checked-out,
.lime-reservations .lime-account__pill.is-neutral {
	background: #f3f4f6;
	color: #374151;
}

.lime-reservations .lime-account__pill.is-cancelled {
	background: #fee2e2;
	color: #991b1b;
}

/* Stay detail */

.lime-reservations .lime-account__detail-block {
	margin-top: 1em;
}

.lime-reservations .lime-account__line {
	margin: 0.25em 0;
	color: var(--lime-muted);
}

.lime-reservations .lime-account__order {
	margin: 0 0 0.75em;
	color: var(--lime-muted);
	font-size: 0.9em;
}

.lime-reservations .lime-account__back {
	margin-bottom: 0.75em;
}

.lime-reservations .lime-account__empty {
	color: var(--lime-muted);
}

.lime-reservations .lime-checkout__summary-row {
	display: flex;
	justify-content: space-between;
	padding: 0.35rem 0;
}

.lime-reservations .lime-checkout__summary-row.is-total {
	border-top: 1px solid var(--lime-border);
	margin-top: 0.5rem;
	padding-top: 0.75rem;
	font-weight: 700;
}

.lime-reservations .lime-checkout__error {
	margin: 1rem 0;
	padding: 0.75rem 1rem;
	border-radius: 6px;
	background: #fdecea;
	color: #8a1c12;
}

/* Confirmation (RES-123) */

.lime-reservations .lime-confirmation__title {
	font-family: var(--lime-headline-font);
}

.lime-reservations .lime-confirmation__section {
	margin: 1.5rem 0;
	padding-top: 1rem;
	border-top: 1px solid var(--lime-border);
}

.lime-reservations .lime-confirmation__row {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.25rem 0;
}

.lime-reservations .lime-confirmation__label {
	color: var(--lime-muted);
}

.lime-reservations .lime-confirmation__value {
	font-weight: 600;
}

.lime-reservations .lime-confirmation__stay {
	margin: 1rem 0;
	padding: 1rem;
	border: 1px solid var(--lime-border);
	border-radius: 8px;
}

.lime-reservations .lime-confirmation__stay-photo {
	width: 100%;
	max-width: 12rem;
	height: auto;
	border-radius: 6px;
}

.lime-reservations .lime-confirmation__stay-name {
	margin: 0.5rem 0;
	font-family: var(--lime-headline-font);
}

.lime-reservations .lime-confirmation__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: 1.5rem;
}

/* A confirmation is something guests print and bring with them, so the page
   furniture around it goes away and the receipt itself stays whole. */
@media print {
	.lime-reservations .lime-confirmation__actions,
	.lime-reservations .lime-confirmation__status,
	.lime-reservations .lime-confirmation__noscript {
		display: none;
	}

	.lime-reservations .lime-confirmation__stay,
	.lime-reservations .lime-confirmation__section {
		break-inside: avoid;
		page-break-inside: avoid;
	}

	.lime-reservations .lime-confirmation {
		color: #000;
		font-size: 12pt;
	}

	.lime-reservations .lime-confirmation__stay-photo {
		max-width: 8rem;
	}
}

/* The new hover and focus polish is decoration; honour a reduced-motion request. */

@media (prefers-reduced-motion: reduce) {
	.lime-reservations .lime-button,
	.lime-reservations .lime-site-card,
	.lime-reservations .lime-field input,
	.lime-reservations .lime-field select {
		transition: none;
	}
}

/* Screen-reader helper (some themes strip WP's default) */

.lime-reservations .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	border: 0;
	white-space: nowrap;
}
