/*
 * The public booking screens.
 *
 * The same visual language as the guest pages in assets/stay.css — near
 * black, one warm accent, Outfit for words and JetBrains Mono for
 * anything a person reads out loud or checks against their phone.
 *
 * THREE RULES THAT CAME OUT OF REVIEWING THE DRAWINGS
 * --------------------------------------------------
 * The Phase 3 screens were drawn in a design tool, where nothing stops
 * you setting 8.5px type or putting dark brown text on a near-black
 * card. Review measured both. So this file fixes them as rules rather
 * than leaving them to be fixed per element later:
 *
 *   1. NOTHING IS SMALLER THAN 11px. The smallest type on those screens
 *      was the price on each calendar square, at 8.5px — which is the
 *      one number the whole calendar exists to show, on a phone, often
 *      outdoors. --nxb-xs is the floor and it is 11px.
 *
 *   2. DARK PEACH IS A BACKGROUND, NEVER TEXT ON A DARK SURFACE.
 *      #8A4A20 on #1B1410 measures about 2.7:1. It was carrying two
 *      sentences that matter ("tell us you have paid and we will push
 *      the hold back"; "a late balance never cancels a booking"). On a
 *      dark surface, peach text is --nxb-peach. The dark peaches live
 *      only behind light text.
 *
 *   3. THE DIM GREY IS #8E9398, NOT #5F6367. The darker one measures
 *      3.3:1 on this background and was used eighteen times, including
 *      for "Nothing is held yet".
 *
 * The status colours are variables for the same reason: they were
 * literals in the drawings, which means every template that needs "this
 * is late" would otherwise invent its own red.
 */

:root {
	--nxb-ink: #0A0A0B;
	--nxb-surface: #141416;
	--nxb-surface-2: #1B1B1E;
	--nxb-surface-3: #26262B;
	--nxb-warm: #1B1410;

	--nxb-line: #242428;
	--nxb-line-2: #35353B;

	--nxb-paper: #F6F6F7;
	--nxb-white: #FFFFFF;
	--nxb-soft: #8E9398;
	--nxb-dim: #6B7074;

	--nxb-peach: #F09C72;
	--nxb-peach-deep: #8A4A20;
	--nxb-peach-deeper: #6B3415;
	--nxb-clay: #A9522C;

	/* Status. One set, named for what it means and not for its hue. */
	--nxb-good: #6FCF97;
	--nxb-good-bg: #12241A;
	--nxb-warn: #E8A857;
	--nxb-warn-bg: #241B10;
	--nxb-bad: #E8756B;
	--nxb-bad-bg: #24130F;

	--nxb-xs: 11px;
	--nxb-sm: 12.5px;
	--nxb-base: 15px;
	--nxb-lg: 18px;

	--nxb-display: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--nxb-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

	--nxb-gutter: 16px;
	--nxb-radius: 12px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

.nxb-body {
	margin: 0;
	background: var(--nxb-ink);
	color: var(--nxb-paper);
	font-family: var(--nxb-display);
	font-size: var(--nxb-base);
	line-height: 1.55;
	font-weight: 300;
	-webkit-font-smoothing: antialiased;
}

.nxb { max-width: 540px; margin: 0 auto; min-height: 100vh; display: flex; flex-direction: column; }

/* A list of houses is the one screen that earns a wider column. */
.nxb-body--wide .nxb { max-width: 720px; }

.nxb-skip {
	position: absolute; left: -9999px;
	background: var(--nxb-peach); color: var(--nxb-ink);
	padding: 10px 14px; border-radius: 0 0 var(--nxb-radius) 0; font-size: var(--nxb-sm);
}
.nxb-skip:focus { left: 0; top: 0; z-index: 10; }

/* ---------------------------------------------------------------- bar */

.nxb-bar {
	display: flex; align-items: center; justify-content: space-between;
	gap: 12px; padding: 14px var(--nxb-gutter);
	border-bottom: 1px solid var(--nxb-line);
}

.nxb-mark {
	font-family: var(--nxb-mono); font-size: var(--nxb-xs); font-weight: 600;
	letter-spacing: 0.18em; color: var(--nxb-paper); text-decoration: none;
}
.nxb-mark--dim { color: var(--nxb-soft); }
.nxb-mark:hover { color: var(--nxb-peach); }

.nxb-back {
	display: inline-flex; align-items: center; gap: 6px;
	color: var(--nxb-paper); text-decoration: none; font-size: var(--nxb-sm);
	min-height: 44px;
}
.nxb-back:hover { color: var(--nxb-peach); }

.nxb-main { flex: 1; padding: 20px var(--nxb-gutter) 32px; }

/* ------------------------------------------------------------- blocks */

.nxb-h1 {
	font-size: 26px; font-weight: 500; line-height: 1.2;
	margin: 0 0 6px; letter-spacing: -0.01em;
}
.nxb-h2 { font-size: var(--nxb-lg); font-weight: 500; margin: 28px 0 10px; }
.nxb-lede { color: var(--nxb-soft); font-size: var(--nxb-sm); margin: 0 0 20px; }

.nxb-card {
	background: var(--nxb-surface);
	border: 1px solid var(--nxb-line);
	border-radius: var(--nxb-radius);
	padding: 16px;
	margin: 0 0 14px;
}

.nxb-eyebrow {
	font-family: var(--nxb-mono); font-size: var(--nxb-xs); font-weight: 600;
	letter-spacing: 0.12em; text-transform: uppercase; color: var(--nxb-soft);
	margin: 0 0 8px;
}

/*
 * overflow-wrap, because one of these holds the booking's own URL — a
 * 32-character token with no space in it, which ran straight out of the
 * card and off the right of the phone. A guest cannot copy what they
 * cannot see, and that link is the only way back to the booking.
 */
.nxb-note {
	font-size: var(--nxb-xs); color: var(--nxb-soft); margin: 8px 0 0; line-height: 1.5;
	overflow-wrap: anywhere;
}

/* Peach text, and only ever the light one — see rule 2 at the top. */
.nxb-accent { color: var(--nxb-peach); }

.nxb-mono { font-family: var(--nxb-mono); font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------ buttons */

.nxb-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 48px; padding: 12px 20px; width: 100%;
	border: 1px solid var(--nxb-peach); border-radius: 10px;
	background: var(--nxb-peach); color: var(--nxb-ink);
	font-family: var(--nxb-display); font-size: var(--nxb-base); font-weight: 500;
	text-decoration: none; cursor: pointer;
}
.nxb-btn:hover { background: #F6AE88; border-color: #F6AE88; }
.nxb-btn[disabled] { opacity: 0.45; cursor: not-allowed; }

.nxb-btn--quiet {
	background: transparent; color: var(--nxb-paper); border-color: var(--nxb-line-2);
}
.nxb-btn--quiet:hover { background: var(--nxb-surface-2); border-color: var(--nxb-soft); }

/* ------------------------------------------------------------- fields */

.nxb-field { margin: 0 0 14px; }
.nxb-field label { display: block; font-size: var(--nxb-sm); margin: 0 0 6px; }
.nxb-field .nxb-hint { font-size: var(--nxb-xs); color: var(--nxb-soft); margin: 4px 0 0; }

.nxb-field input,
.nxb-field select,
.nxb-field textarea {
	width: 100%; min-height: 48px; padding: 11px 13px;
	background: var(--nxb-surface-2); color: var(--nxb-paper);
	border: 1px solid var(--nxb-line-2); border-radius: 10px;
	font-family: var(--nxb-display); font-size: 16px; /* 16px or iOS zooms on focus */
}
.nxb-field textarea { min-height: 84px; resize: vertical; line-height: 1.5; }
.nxb-field input:focus, .nxb-field select:focus, .nxb-field textarea:focus {
	outline: 2px solid var(--nxb-peach); outline-offset: 1px; border-color: var(--nxb-peach);
}

/* The honeypot. Off the screen rather than display:none — some scripts
   skip what is not rendered, and a password manager is less likely to
   fill something with no label it recognises. */
.nxb-trap {
	position: absolute !important; left: -9999px !important;
	width: 1px; height: 1px; overflow: hidden;
}

.nxb-row { display: flex; gap: 10px; }

/*
 * min-width: 0 is the whole fix for the search card running off the
 * right edge of a 375px screen. A flex item defaults to min-width:auto,
 * which refuses to shrink below the intrinsic width of its content —
 * and an <input type="date"> reports the width of dd/mm/yyyy plus the
 * browser's own calendar button. Two of those plus the gap came to
 * more than the screen, so the "Leaving" box was cut in half on the
 * first thing a guest ever sees.
 */
.nxb-row > * { flex: 1 1 0; min-width: 0; }
.nxb-row input { max-width: 100%; }

/* --------------------------------------------------------------- list */

.nxb-filter {
	background: var(--nxb-surface); border: 1px solid var(--nxb-line);
	border-radius: var(--nxb-radius); padding: 14px; margin: 0 0 18px;
}

.nxb-houses { display: flex; flex-direction: column; gap: 14px; margin: 0; padding: 0; list-style: none; }

.nxb-house {
	border: 1px solid var(--nxb-line); border-radius: var(--nxb-radius);
	background: var(--nxb-surface); overflow: hidden;
}
.nxb-house a { color: inherit; text-decoration: none; display: block; }
.nxb-house img { display: block; }
/*
 * Size only. The stand-in sets its own display:flex to centre the
 * glyph, and a `display: block` in here would beat it on specificity
 * and park the drawing in the top-left corner. It did, for one build.
 */
.nxb-house img,
.nxb-house .nxp-noshot { width: 100%; height: 190px; object-fit: cover; background: var(--nxb-surface-3); }
.nxb-house-body { padding: 14px 16px 16px; }
.nxb-house-name { font-size: var(--nxb-lg); font-weight: 500; margin: 0; }
.nxb-house-area { font-size: var(--nxb-sm); color: var(--nxb-soft); margin: 2px 0 10px; }
.nxb-house-price { font-family: var(--nxb-mono); font-size: var(--nxb-base); font-weight: 600; }
.nxb-house-spec { font-size: var(--nxb-xs); color: var(--nxb-soft); margin: 8px 0 0; }

.nxb-flag {
	display: inline-block; font-family: var(--nxb-mono); font-size: var(--nxb-xs);
	font-weight: 600; letter-spacing: 0.06em; padding: 4px 8px; border-radius: 6px;
	background: var(--nxb-good-bg); color: var(--nxb-good); margin: 0 0 8px;
}

.nxb-empty {
	border: 1px dashed var(--nxb-line-2); border-radius: var(--nxb-radius);
	padding: 24px 18px; text-align: center; color: var(--nxb-soft);
}

.nxb-pages { display: flex; gap: 8px; justify-content: center; margin: 20px 0 0; }
.nxb-pages a, .nxb-pages span {
	min-width: 40px; min-height: 40px; display: inline-flex; align-items: center; justify-content: center;
	border: 1px solid var(--nxb-line-2); border-radius: 8px; text-decoration: none;
	color: var(--nxb-paper); font-family: var(--nxb-mono); font-size: var(--nxb-sm);
}
.nxb-pages .is-here { background: var(--nxb-surface-3); border-color: var(--nxb-soft); }

/* ----------------------------------------------------------- calendar */

.nxb-cal { margin: 0 0 16px; }

.nxb-cal-month { margin: 0 0 6px; }

/*
 * The pager: month name in the middle, an arrow either side. One month
 * is on screen at a time, so the name belongs here and not repeated
 * inside each grid.
 */
.nxb-cal-pager {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin: 0 0 10px;
}

.nxb-cal-label {
	flex: 1 1 auto;
	margin: 0;
	text-align: center;
	font-size: var(--nxb-lg);
	font-weight: 500;
}

.nxb-cal-arrow {
	flex: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;

	/* 44px: a thumb target, not a glyph. */
	width: 44px;
	height: 44px;

	border: 1px solid var(--nxb-line);
	border-radius: 50%;
	background: var(--nxb-surface-2);
	color: var(--nxb-paper);
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
}

.nxb-cal-arrow:hover:not(:disabled) { border-color: var(--nxb-soft); }

/*
 * Dimmed, not removed. An arrow that disappears at the first month
 * moves the month's name sideways the moment you arrive.
 */
.nxb-cal-arrow:disabled { opacity: .3; cursor: default; }

.nxb-cal-dow {
	display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px;
	font-family: var(--nxb-mono); font-size: var(--nxb-xs); color: var(--nxb-soft);
	text-align: center; margin: 0 0 4px;
}

.nxb-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }

.nxb-cal-day {
	display: flex; flex-direction: column; align-items: center; justify-content: center;
	gap: 1px; min-height: 52px; padding: 4px 2px;
	background: var(--nxb-surface); border: 1px solid var(--nxb-line);
	border-radius: 8px; color: var(--nxb-paper);
	font-family: var(--nxb-display); cursor: pointer;
}
.nxb-cal-day .nxb-cal-num { font-size: var(--nxb-sm); font-weight: 500; line-height: 1; }
.nxb-cal-day .nxb-cal-cost {
	font-family: var(--nxb-mono); font-size: var(--nxb-xs); color: var(--nxb-soft);
	line-height: 1; font-variant-numeric: tabular-nums;
}
.nxb-cal-day:hover:not([disabled]) { border-color: var(--nxb-soft); }
.nxb-cal-day:focus-visible { outline: 2px solid var(--nxb-peach); outline-offset: 1px; }

.nxb-cal-day.is-gone {
	background: transparent; border-color: var(--nxb-line);
	color: var(--nxb-dim); cursor: default;
}
.nxb-cal-day.is-gone .nxb-cal-num { text-decoration: line-through; }
.nxb-cal-day.is-gone .nxb-cal-cost { visibility: hidden; }

/*
 * A night that is taken but whose DAY may still be a check-out. The
 * nights model gives same-day changeover for free — checkout day is
 * never claimed — and the drawings struck the 21st through so nobody
 * could end a stay on it, losing the 18th-to-21st booking. This is that
 * state: not sellable as a night, still tappable as a departure.
 */
.nxb-cal-day.is-out-only {
	background: linear-gradient(135deg, var(--nxb-surface) 50%, transparent 50%);
	cursor: pointer; color: var(--nxb-soft);
}

.nxb-cal-day.is-pick { background: var(--nxb-peach); border-color: var(--nxb-peach); color: var(--nxb-ink); }
.nxb-cal-day.is-pick .nxb-cal-cost { color: var(--nxb-peach-deeper); }

/*
 * The day they leave: outlined, never filled. It is inside the chosen
 * range but it is not a night anybody pays for, and a solid square
 * under a legend reading "Nights you pay for" said otherwise.
 */
.nxb-cal-day.is-leave {
	background: transparent;
	border-color: var(--nxb-peach);
	color: var(--nxb-paper);
}
.nxb-cal-day.is-leave .nxb-cal-cost {
	color: var(--nxb-peach);
	font-size: 9.5px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}
.nxb-cal-day.is-span { background: var(--nxb-peach-deeper); border-color: var(--nxb-peach-deep); color: var(--nxb-white); }
.nxb-cal-day.is-span .nxb-cal-cost { color: var(--nxb-peach); }

.nxb-cal-day.is-past { visibility: hidden; }

/*
 * The legend. Peach appears once in it, and only as the selection —
 * review found peach meaning three things at once on the drawn
 * calendar, with the swatch for "your dates" identical to the one for
 * "Christmas rate". A season is not a colour here; it is the price
 * printed on the square, which is the thing a guest can act on.
 */
.nxb-cal-key { display: flex; flex-wrap: wrap; gap: 12px; margin: 12px 0 0; }
.nxb-cal-key span { display: inline-flex; align-items: center; gap: 6px; font-size: var(--nxb-xs); color: var(--nxb-soft); }
.nxb-cal-key i { width: 11px; height: 11px; border-radius: 3px; display: inline-block; }
.nxb-cal-key .k-pick { background: var(--nxb-peach); }
.nxb-cal-key .k-gone { background: transparent; border: 1px solid var(--nxb-line-2); }
.nxb-cal-key .k-leave { background: transparent; border: 1px solid var(--nxb-peach); }
.nxb-cal-key .k-out { background: linear-gradient(135deg, var(--nxb-surface-3) 50%, transparent 50%); border: 1px solid var(--nxb-line-2); }

.nxb-cal-say {
	margin: 12px 0 0; padding: 10px 12px; border-radius: 8px;
	background: var(--nxb-warn-bg); color: var(--nxb-warn);
	font-size: var(--nxb-sm); line-height: 1.45;
}


/* -------------------------------------------------------------- quote */

.nxb-quote { margin: 0; padding: 0; }
.nxb-quote-line {
	display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
	padding: 9px 0; border-bottom: 1px solid var(--nxb-line);
}
.nxb-quote-line:last-of-type { border-bottom: 0; }
.nxb-quote-what { font-size: var(--nxb-sm); }
.nxb-quote-why { display: block; font-size: var(--nxb-xs); color: var(--nxb-soft); }
.nxb-quote-amt { font-family: var(--nxb-mono); font-size: var(--nxb-sm); font-variant-numeric: tabular-nums; white-space: nowrap; }
.nxb-quote-off .nxb-quote-amt { color: var(--nxb-good); }

.nxb-quote-total {
	display: flex; align-items: baseline; justify-content: space-between;
	margin: 12px 0 0; padding: 12px 0 0; border-top: 1px solid var(--nxb-line-2);
}
.nxb-quote-total b { font-size: var(--nxb-lg); font-weight: 500; }
.nxb-quote-total .nxb-quote-amt { font-size: var(--nxb-lg); font-weight: 600; }

.nxb-split {
	display: flex; gap: 10px; margin: 14px 0 0;
}
.nxb-split > div {
	flex: 1; background: var(--nxb-surface-2); border: 1px solid var(--nxb-line);
	border-radius: 10px; padding: 11px 12px;
}
.nxb-split dt { font-size: var(--nxb-xs); color: var(--nxb-soft); margin: 0 0 3px; }
.nxb-split dd { margin: 0; font-family: var(--nxb-mono); font-size: var(--nxb-base); font-weight: 600; }

/* ------------------------------------------------------------- states */

.nxb-state {
	border-radius: var(--nxb-radius); padding: 16px; margin: 0 0 16px;
	border: 1px solid transparent;
}
.nxb-state h1 { font-size: 22px; font-weight: 500; margin: 0 0 6px; line-height: 1.25; }
.nxb-state p { margin: 0 0 8px; font-size: var(--nxb-sm); line-height: 1.55; }
.nxb-state p:last-child { margin-bottom: 0; }

.nxb-state--held { background: var(--nxb-warm); border-color: var(--nxb-peach-deep); }
.nxb-state--held h1 { color: var(--nxb-peach); }
.nxb-state--good { background: var(--nxb-good-bg); border-color: #1F4733; }
.nxb-state--good h1 { color: var(--nxb-good); }
.nxb-state--warn { background: var(--nxb-warn-bg); border-color: #4A3415; }
.nxb-state--warn h1 { color: var(--nxb-warn); }
.nxb-state--bad { background: var(--nxb-bad-bg); border-color: #4A211C; }
.nxb-state--bad h1 { color: var(--nxb-bad); }

.nxb-deadline {
	font-family: var(--nxb-mono); font-size: 21px; font-weight: 600;
	color: var(--nxb-peach); margin: 10px 0 2px; line-height: 1.2;
}

.nxb-ref {
	font-family: var(--nxb-mono); font-size: var(--nxb-lg); font-weight: 600;
	letter-spacing: 0.04em; color: var(--nxb-white);
	background: var(--nxb-surface-3); border-radius: 8px;
	padding: 10px 14px; display: inline-block; margin: 4px 0;
	user-select: all;
}

.nxb-acct {
	border-top: 1px solid var(--nxb-line); padding: 11px 0;
}
.nxb-acct:first-of-type { border-top: 0; }
.nxb-acct-kind { font-size: var(--nxb-xs); color: var(--nxb-soft); }
.nxb-acct-num {
	font-family: var(--nxb-mono); font-size: var(--nxb-lg); font-weight: 600;
	user-select: all; display: block;
}
.nxb-acct-holder { font-size: var(--nxb-sm); }

.nxb-ways { display: flex; flex-direction: column; gap: 10px; margin: 18px 0 0; }

.nxb-alt {
	display: flex; align-items: center; justify-content: space-between; gap: 12px;
	padding: 12px 14px; border: 1px solid var(--nxb-line-2); border-radius: 10px;
	color: inherit; text-decoration: none; background: var(--nxb-surface);
}
.nxb-alt:hover { border-color: var(--nxb-peach); }
.nxb-alt b { font-weight: 500; font-size: var(--nxb-sm); }
.nxb-alt small { display: block; color: var(--nxb-soft); font-size: var(--nxb-xs); }

.nxb-rules { margin: 0; padding: 0; list-style: none; }
.nxb-rules li {
	font-size: var(--nxb-sm); padding: 7px 0 7px 18px; position: relative;
	border-bottom: 1px solid var(--nxb-line);
}
.nxb-rules li:last-child { border-bottom: 0; }
.nxb-rules li::before {
	content: ''; position: absolute; left: 2px; top: 15px;
	width: 5px; height: 5px; border-radius: 50%; background: var(--nxb-peach-deep);
}

/* ------------------------------------------------------------ gallery */

/*
 * One big photograph, a strip of small ones under it. The strip scrolls
 * sideways rather than wrapping, because a wrapping strip changes the
 * height of the page every time a row fills up, and the thing directly
 * underneath is the house's name.
 */

.nxb-gallery { margin: 0 0 18px; }

.nxb-gallery-big {
	display: block;
	border-radius: var(--nxb-radius);
	overflow: hidden;
	background: var(--nxb-surface-2);
}

/*
 * height: auto is load-bearing, not tidiness.
 *
 * WordPress writes width="1024" height="768" onto every image it
 * prints. Those attributes act as a presentational hint, and a hint
 * still counts as a set height — which makes `aspect-ratio` do
 * nothing. Without this line the hero rendered at its own 768px on a
 * 375px phone: one photograph, taller than the screen, with the
 * house's name somewhere below the fold.
 */
.nxb-gallery-big img,
.nxb-gallery-big .nxp-noshot {
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.nxb-gallery-strip {
	display: flex;
	gap: 8px;
	margin: 8px 0 0;
	padding: 0 0 2px;
	list-style: none;

	overflow-x: auto;
	scroll-snap-type: x proximity;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
}

.nxb-gallery-strip::-webkit-scrollbar { display: none; }

.nxb-gallery-thumb {
	flex: 0 0 23%;
	min-width: 76px;
	scroll-snap-align: start;

	border-radius: 10px;
	overflow: hidden;
	background: var(--nxb-surface-2);

	/*
	 * Transparent, not absent. A 2px border that appears on selection
	 * would move every other thumbnail sideways by 2px at the moment
	 * of the tap.
	 */
	border: 2px solid transparent;
}

.nxb-gallery-thumb img,
.nxb-gallery-thumb .nxp-noshot {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	opacity: .62;
}

.nxb-gallery-thumb.is-on { border-color: var(--nxb-peach); }
.nxb-gallery-thumb.is-on img { opacity: 1; }

/*
 * Only once the script has turned them into buttons. Until then a
 * pointer cursor promises something that will not happen.
 */
.nxb-gallery-thumb[role="button"] { cursor: pointer; }
.nxb-gallery-thumb[role="button"]:hover img { opacity: .85; }
.nxb-gallery-thumb:focus-visible { outline: 2px solid var(--nxb-peach); outline-offset: 2px; }

/* ------------------------------------------------- the stand-in panel */

/*
 * Printed by nxp_house_shot() wherever a photograph has not been
 * uploaded. It takes the size of the box it is dropped into — the
 * rules above and .nxb-house img set the height — so when the real
 * photograph arrives nothing on the page moves.
 */
.nxp-noshot {
	display: flex;
	align-items: center;
	justify-content: center;
	background:
		linear-gradient(135deg, var(--nxb-surface-3) 0%, var(--nxb-surface-2) 100%);
	/*
	 * Lighter than --nxb-line-2, which is a border colour and all but
	 * invisible against --nxb-surface-3. The glyph should be readable
	 * at arm's length in sunlight and still not compete with the
	 * house's name underneath it.
	 */
	color: #44444D;
}

/* --------------------------------------------------------------- foot */

.nxb-foot {
	border-top: 1px solid var(--nxb-line);
	padding: 20px var(--nxb-gutter) 28px;
}
.nxb-wa {
	display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
	color: var(--nxb-peach); text-decoration: none; font-size: var(--nxb-sm);
}
.nxb-wa:hover { text-decoration: underline; }
.nxb-foot-note { font-size: var(--nxb-xs); color: var(--nxb-soft); margin: 8px 0 14px; line-height: 1.55; }
.nxb-foot-mark {
	font-family: var(--nxb-mono); font-size: var(--nxb-xs); font-weight: 600;
	letter-spacing: 0.18em; color: var(--nxb-dim); margin: 0;
}

/* A sticky bar at the foot of the house page, so the price and the
   button stay reachable while somebody scrolls eighteen months. */
.nxb-sticky {
	position: sticky; bottom: 0; z-index: 5;
	background: rgba(10, 10, 11, 0.94);
	backdrop-filter: blur(8px);
	border-top: 1px solid var(--nxb-line-2);
	margin: 16px calc(-1 * var(--nxb-gutter)) calc(-1 * 32px);
	padding: 12px var(--nxb-gutter) max(12px, env(safe-area-inset-bottom));
	display: flex; align-items: center; gap: 12px;
}
.nxb-sticky-sum { flex: 1; min-width: 0; }
.nxb-sticky-sum b { display: block; font-family: var(--nxb-mono); font-size: var(--nxb-base); font-weight: 600; }
.nxb-sticky-sum small { display: block; font-size: var(--nxb-xs); color: var(--nxb-soft); }
.nxb-sticky .nxb-btn { width: auto; flex: 0 0 auto; padding: 12px 22px; }

@media (min-width: 560px) {
	:root { --nxb-gutter: 24px; }
	.nxb-cal-day { min-height: 58px; }
}

@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; animation: none !important; }
}

/* ------------------------------------------------------------- steps */

/*
 * Four marks under the top bar. Deliberately not numbered circles with
 * labels: at 375px that is either three lines of text or four truncated
 * words, and the heading underneath says where you are anyway.
 */
.nxb-steps {
	display: flex;
	gap: 6px;
	margin: 0 0 18px;
	padding: 0;
	list-style: none;
}

.nxb-step {
	flex: 1 1 0;
	height: 3px;
	border-radius: 2px;
	background: var(--nxb-line);
}

.nxb-step.is-done { background: var(--nxb-peach); }

/* Visible to a screen reader, never to an eye. */
.nxb-u-quiet {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
}

/* --------------------------------------------------- the price screen */

/* The stay, as four facts. */
.nxb-facts { margin: 0; }

.nxb-fact {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	padding: 11px 0;
	border-bottom: 1px solid var(--nxb-line);
}

.nxb-fact:last-child { border-bottom: 0; }
.nxb-fact dt { color: var(--nxb-soft); font-size: var(--nxb-sm); }

.nxb-fact dd {
	margin: 0;
	text-align: right;
	font-weight: 500;
}

.nxb-fact-sub {
	display: block;
	font-weight: 400;
	font-size: var(--nxb-xs);
	color: var(--nxb-soft);
}

.nxb-change { margin: 10px 0 24px; font-size: var(--nxb-sm); }
.nxb-change a { color: var(--nxb-peach); text-underline-offset: 3px; }

/*
 * Deposit and balance, in their own card rather than as two more rows
 * of the bill. They are not things the stay is made of; they are when
 * the money moves, and running them on from "Total" was how the two
 * came to be read as the same number.
 */
.nxb-card--split { border-color: var(--nxb-line-2); }
.nxb-split-now .nxb-quote-amt { color: var(--nxb-peach); }

/* How the money works. */
.nxb-steps-list {
	margin: 0 0 24px;
	padding: 0 0 0 20px;
	font-size: var(--nxb-sm);
	line-height: 1.6;
	color: var(--nxb-soft);
}

.nxb-steps-list li { margin: 0 0 10px; padding-left: 4px; }
.nxb-steps-list li::marker { color: var(--nxb-peach); font-family: var(--nxb-mono); }
.nxb-steps-list strong { color: var(--nxb-paper); font-weight: 500; }

/*
 * Sits under the sticky bar, so it needs the bar's height clear of it
 * or the last sentence on the page is permanently covered.
 */
.nxb-note--after { margin: 0 0 12px; }

/* Deposit and balance, each with when it is due. */
.nxb-split-when {
	margin: 2px 0 0;
	font-size: var(--nxb-xs);
	line-height: 1.45;
	color: var(--nxb-soft);
}

.nxb-note--lead { margin: 0 0 10px; }

/*
 * Who we are, in the footer of every booking screen. Quiet, but a real
 * size — this is the block a cautious guest goes looking for, and
 * setting it in 10px would say we would rather they did not read it.
 */
.nxb-foot-who {
	margin: 0 0 14px;
	font-size: var(--nxb-xs);
	line-height: 1.7;
	color: var(--nxb-soft);
}

.nxb-foot-who a { color: var(--nxb-soft); text-underline-offset: 3px; }
.nxb-foot-who a:hover { color: var(--nxb-paper); }

/* The who-we-are card above the final button. */
.nxb-card--who { border-color: var(--nxb-line-2); margin-bottom: 12px; }
