/* The public booking page: the V1 design (Claude Design project f08bbbcf, imported 2026-09-19; T-CW-1011 E2l).
 *
 * Direction B's layout and booking behaviour (the Shorebirds mirror, E2d) carrying Direction A's identity on a white
 * page. Every value below comes from the design's tokens/*.css. Colours were sampled from the house itself: the
 * peacock painting, the pool-step mosaic, the living-room wall and two sunsets. Ratios in the token comments are
 * measured, so do not lighten a token that carries one.
 *
 * Three faces, three jobs: Marcellus for display (three sizes only), Hanken Grotesk for everything read, Martian Mono
 * for anything a guest could check - labels, eyebrows, dates, calendar cells. All SIL OFL, self-hosted: the CSP in
 * src/safety.ts forbids a runtime font service, inline style and inline script, and everything here works without
 * JavaScript - the gallery opens with :target, the menus are <details>, the forms are plain POSTs.
 *
 * Motifs, two per screen: the tile rule under every section heading, and the stay band in the calendar.
 */

@font-face { font-family: "Marcellus"; src: url("/fonts/marcellus-regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("/fonts/hanken-grotesk-variable.woff2") format("woff2-variations"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Martian Mono"; src: url("/fonts/martian-mono-variable.woff2") format("woff2-variations"); font-weight: 100 800; font-stretch: 75% 112.5%; font-display: swap; }

:root {
  /* surfaces */
  --paper: #ffffff;
  --sand: #efe9dc;          /* chips, bands, the footer */
  --line: #d8d2c4;          /* card borders and hairlines */
  --line-soft: #eae4d6;     /* section dividers */
  /* ink */
  --ink: #1d2745;           /* all primary text. 14.9:1 on paper */
  --ink-muted: #4e6a73;     /* secondary text only. 5.8:1 on paper, 4.8:1 on sand */
  --deep-water: #1a3b55;    /* hover */
  /* blues */
  --blue: #2a5d8d;          /* links, primary buttons. 6.3:1 on paper */
  --tile: #3d87b4;          /* the light chip of the tile rule. Non-text */
  --teal: #3d7c7f;          /* borders and strokes only. 3.9:1 */
  /* accents */
  --wall-green: #455747;    /* confirmation */
  --confirm-wash: #e8ede7;
  --ochre: #c39e79;         /* the focus ring only. 2.1:1, never text */
  --danger: #8c3a2e;        /* refusals and field errors. 6.6:1 on paper */
  --danger-wash: #fbf2f0;
  /* the evening ramp: one band per page */
  --dusk-ramp: linear-gradient(90deg, #e39a84, #c18187, #927086, #6b5c76);
  /* the calendar */
  --night-booked: #f3dfd8;
  /* type */
  --font-display: "Marcellus", Georgia, serif;
  --font-sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Martian Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  /* shape and space */
  --max: 1120px;
  --gut: 24px;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --shadow-card: 0 10px 30px rgba(29, 39, 69, 0.08);
  --shadow-bar: 0 -8px 24px rgba(29, 39, 69, 0.10);
  --tile-rule: linear-gradient(90deg, var(--blue) 0 50%, var(--tile) 50% 100%);
}

* { box-sizing: border-box; }
html { scroll-padding-top: 80px; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; color: var(--ink); }
h1 { font-size: clamp(40px, 5.4vw, 68px); line-height: 1.03; letter-spacing: -0.01em; margin: 0 0 14px; }
h2 { font-size: clamp(26px, 2.7vw, 34px); line-height: 1.18; margin: 0 0 12px; }
h3 { font-size: 18px; line-height: 1.3; margin: 0 0 4px; }
p { margin: 0 0 16px; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--deep-water); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--ochre);
  outline-offset: 2px;
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }

/* The one label style: mono, uppercase, tracked. Form labels, eyebrows, the header nav, every button. */
.area, .date-pair label, .field label, .site-nav a, .button {
  font-family: var(--font-mono);
  text-transform: uppercase;
}

/* ---- the site bar (T-CW-1090a) -------------------------------------------- */
/* ONE bar on every page of the public site, stuck to the top while the page scrolls. Dominic, 2026-10-02: "the main
 * nav disappears as I scroll down and I lose the ability to navigate across to other pages". It replaces the header
 * that scrolled away, the sticky section menu and the phone's fixed booking bar. Values are the approved design's
 * (2026-10-02): 64px tall on white, one hairline under it, 12px mono labels, every target at least 44px.
 *
 *   wide       the mark and the name . The area . About . Contact . More info . [Request dates]
 *   <= 940px   the same, tracked tighter (measured from the font files, the full set needs about 922px)
 *   <= 860px   the name steps out and the mark stays, as on the phone (with the name it needs about 842px)
 *   <= 700px   the mark . [Request dates] [Menu]; the menu is a <details> that drops a panel over the page
 *   <= 374px   the two buttons narrow (font-stretch), so a 320px phone does not scroll sideways
 */
.site-bar { position: sticky; top: 0; z-index: 30; background: var(--paper); border-bottom: 1px solid var(--line); }
.site-bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.wordmark { display: flex; align-items: center; gap: 10px; min-height: 44px; min-width: 0; text-decoration: none; color: var(--ink); font-family: var(--font-display); font-size: 19px; line-height: 1.15; letter-spacing: 0.01em; }
.wordmark img { display: block; width: 38px; height: 33px; flex: none; }
.bar-actions { display: flex; align-items: center; gap: 6px; }
.site-nav { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
/* `>`: only the bar's own links. The More info panel's links sit inside this nav and read as sentences. */
.site-nav > a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; font-size: 12px; line-height: 16px; letter-spacing: 0.16em; text-decoration: none; color: var(--blue); }
.site-nav > a:hover { color: var(--deep-water); }
/* The page being shown: ink, underlined in the tile blue, so the mark does not rest on colour alone. */
.site-nav > a[aria-current="page"], .more-info summary[aria-current="page"] { color: var(--ink); text-decoration: underline; text-decoration-color: var(--tile); text-decoration-thickness: 2px; text-underline-offset: 6px; }
/* The one call to action, at every width. It sits after the nav, never inside it, so no nav link colour reaches it. */
.bar-book { margin-left: 10px; font-size: 12px; line-height: 16px; white-space: nowrap; }
.icon { display: block; flex: none; }

/* Every button is a pill; nothing else is. Solid blue, white mono label, 44px minimum; hover deepens, no press
   transform. */
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 22px; border: 1px solid var(--blue); border-radius: 999px;
  background: var(--blue); color: #fff; font-size: 12px; font-weight: 400;
  letter-spacing: 0.14em; text-indent: 0.14em; text-decoration: none; cursor: pointer;
  transition: background-color 120ms ease, border-color 120ms ease;
}
.button:hover { background: var(--deep-water); border-color: var(--deep-water); color: #fff; }
.button-ghost { background: var(--paper); color: var(--blue); }
.button-ghost:hover { background: var(--sand); color: var(--deep-water); }
.button-wide { display: flex; width: 100%; min-height: 48px; }

/* ---- the section bar (T-CW-1099 item 8) ---------------------------------- */
/* The booking page's in-page bar, back by the owner's ruling of 2026-10-03 (note D): stuck DIRECTLY under the site bar
 * (64px and its hairline) on desktop and phone, the same mono label style, the section being read underlined in the
 * tile blue (public/sections.js), every link a 44px target. On a phone the row scrolls sideways inside itself: it never
 * wraps onto two lines and never widens the page. A jump lands with its heading clear of BOTH bars (scroll-padding
 * below), and the booking card sticks below both.
 * CENTRED WHEN IT FITS (owner, 2026-10-03): the row is as wide as its links (max-content) and centred by auto margins,
 * capped at the column (max-width: 100%). When the links do not fit, the cap wins, the row is the full column and it
 * scrolls from its first link, so the start is never clipped (plain justify-content: center would clip it). The first
 * and last links drop their outer padding so the visible labels sit evenly between the gutters. */
.section-bar { position: sticky; top: 65px; z-index: 25; background: var(--paper); border-bottom: 1px solid var(--line); }
.section-bar ul { list-style: none; display: flex; gap: 4px; width: max-content; max-width: 100%; margin: 0 auto; padding: 0; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; white-space: nowrap; }
.section-bar ul::-webkit-scrollbar { display: none; }
.section-bar li { flex: none; }
.section-bar a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; font-family: var(--font-mono); font-size: 12px; line-height: 16px; letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none; color: var(--blue); }
.section-bar li:first-child a { padding-left: 0; }
.section-bar li:last-child a { padding-right: 0; }
.section-bar a:hover { color: var(--deep-water); }
.section-bar a[aria-current="true"] { color: var(--ink); text-decoration: underline; text-decoration-color: var(--tile); text-decoration-thickness: 2px; text-underline-offset: 6px; }
/* the two stuck bars together: 65px + 45px, and room to breathe */
html:has(.section-bar) { scroll-padding-top: 124px; }
/* T-CW-1099 wave 2 S1 (owner, 2026-10-03: option A). On a phone the links are TWO ROWS OF THREE instead of a row that
 * scrolls sideways: equal columns, centred labels, 40px rows, thin line-soft dividers between the cells, and 11px labels
 * tracked .1em so the longest ("Availability") fits a column at 375px. Nothing scrolls. A divider under a cell is drawn
 * only when a cell sits below it (three or more links after it), so five links leave no stray rule. The bar is now
 * 65px + 2 x 40px + the divider + its hairline, so a jump needs more room above it: 156px. Desktop keeps the one row. */
@media (max-width: 600px) {
  .section-bar ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; overflow: visible; white-space: normal; gap: 0; }
  .section-bar li:first-child a, .section-bar li:last-child a { padding: 0 2px; }
  .section-bar a { display: flex; width: 100%; justify-content: center; text-align: center; min-height: 40px; padding: 0 2px; font-size: 11px; letter-spacing: 0.1em; }
  .section-bar li:nth-child(-n+3):nth-last-child(n+4) { border-bottom: 1px solid var(--line-soft); }
  .section-bar li:not(:nth-child(3n)) { border-right: 1px solid var(--line-soft); }
  html:has(.section-bar) { scroll-padding-top: 156px; }
}
/* Below 340px (owner, 2026-10-03, round 5) a column is too narrow for "AVAILABILITY" at .1em: the tracking drops to 0
 * and the cell's side padding to 1px, so the longest label fits its cell at 320px. Measured in a real browser at 320px:
 * the cell's link is 95px; at .1em the label was 105.6px wide, at 0 it is 92.4px inside 93px of content. */
@media (max-width: 340px) {
  .section-bar a { padding: 0 1px; letter-spacing: 0; }
}

/* ---- the name and the fact chips ----------------------------------------- */
.listing-head { padding-block: 26px 22px; }
.area { margin: 0 0 8px; font-size: 12px; letter-spacing: 0.16em; color: var(--ink-muted); }
/* Facts as sand pills: one approved fact each, never a link, never a claim. */
.fact-strip { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.fact-strip li { background: var(--sand); color: var(--ink); border-radius: 999px; padding: 5px 13px; font-size: 13.5px; line-height: 1.4; }

/* ---- the gallery -------------------------------------------------------- */
/* A FIXED container height, and every image filling its cell. The first attempt let the images carry both
 * aspect-ratio and height:100% inside auto-sized rows; on a phone the lead grew without bound and overlapped the
 * page below it. Nothing here depends on an image's own proportions. */
.gallery { position: relative; display: grid; grid-template-columns: 1.45fr 1fr; gap: 6px; height: 430px; border-radius: var(--r-md); overflow: hidden; }
.gallery-lead { min-width: 0; min-height: 0; }
.gallery-mosaic { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 6px; min-width: 0; min-height: 0; }
.gallery-mosaic > li { min-width: 0; min-height: 0; }
/* ONLY the photograph links fill their cell. This selector used to be `.gallery a`, which also caught the
 * View all photos button: it beat .button on specificity, so the button became a full-height block with its
 * label in the top-left corner - a white box a thousand pixels tall on a phone. */
.gallery-lead a, .gallery-mosaic a, .gallery picture { display: block; width: 100%; height: 100%; }
.gallery-all .button { height: auto; }
.gallery img { display: block; width: 100%; height: 100%; object-fit: cover; background: var(--sand); }
.gallery-all { position: absolute; right: 12px; bottom: 12px; margin: 0; }
.gallery-all .button { background: rgba(255, 255, 255, 0.95); color: var(--blue); border-color: var(--blue); }
.gallery-all .button:hover { background: var(--sand); color: var(--deep-water); border-color: var(--deep-water); }

/* ---- the two-column body ------------------------------------------------- */
.listing-body { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; align-items: start; padding-block: 36px 64px; }
.listing-block { padding: 0 0 34px; }
.listing-block + .listing-block { border-top: 1px solid var(--line-soft); padding-top: 30px; }
/* The tile rule: a 56x4 band, blue then tile, from the pool's glazed mosaic, under every section heading in place
   of a hairline. Drawn by the stylesheet, so a heading from the database never needs markup for it. */
.listing-block h2::after { content: ""; display: block; width: 56px; height: 4px; margin: 12px 0 4px; border-radius: 2px; background: var(--tile-rule); }
[data-section-id] + [data-section-id] { margin-top: 36px; }
.listing-block p { text-wrap: pretty; }

/* ---- the request column (T-CW-1090, owner 2026-10-04) ----------------------
 * "Request your dates" and the booking card are one block: the heading is the first child of the card's container, so
 * on a wide screen the pair is the right-hand column and sticks below both bars TOGETHER (the column sticks, the card
 * inside it does not), and at 900px and below the pair moves as one to the foot of the page. */
.request-col { position: sticky; top: 126px; }
.request-col > h2 { margin: 0 0 14px; }
.request-col > h2::after { content: ""; display: block; width: 56px; height: 4px; margin: 12px 0 4px; border-radius: 2px; background: var(--tile-rule); }
.request-col > .booking-card { position: static; }

/* ---- the booking card ---------------------------------------------------- */
.booking-card form { position: relative; }
.booking-card { position: sticky; top: 126px; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; background: var(--paper); box-shadow: var(--shadow-card); }
.booking-card .from { margin: 0 0 2px; color: var(--ink); font-family: var(--font-display); font-size: 26px; line-height: 1.2; }
.booking-card .hint { margin: 0 0 16px; font-size: 14px; color: var(--ink-muted); }
.date-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0 0 12px; }
.date-pair p { margin: 0; }
.date-pair label, .field label { display: block; font-size: 12px; letter-spacing: 0.12em; color: var(--ink-muted); margin: 0 0 6px; }
input, textarea {
  width: 100%; min-width: 0; min-height: 44px; padding: 10px 12px; font: inherit; font-size: 16px; line-height: 1.4;
  border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--paper); color: var(--ink);
}
.quote { margin: 16px 0 0; padding: 14px 0 0; border-top: 1px solid var(--line); font-size: 14.5px; }
.quote-line { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; }
.quote-total { color: var(--ink); font-weight: 600; border-top: 1px solid var(--line); margin-top: 6px; padding-top: 9px; }
.quote-note { margin: 12px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--ink-muted); }
/* T-CW-1099 part S1 (OG-01): "Estimated price" over the estimate's lines, so every amount under it reads as one. */
.quote-heading { margin: 0 0 6px; font-size: 14.5px; font-weight: 600; color: var(--ink); }
.quote-refused { color: var(--danger); background: var(--danger-wash); border-top: 0; border-left: 3px solid var(--danger); border-radius: var(--r-sm); padding: 12px 14px; }

/* ---- content blocks ------------------------------------------------------ */
.rooms, .amenity-group ul, .review-list { list-style: none; margin: 0; padding: 0; }
.rooms { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.room { border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px 16px; transition: border-color 120ms ease; }
.room:hover { border-color: var(--teal); }
.room p { margin: 2px 0 0; color: var(--ink-muted); font-size: 15px; }
.amenity-groups { columns: 3 190px; column-gap: 32px; }
.amenity-group { break-inside: avoid; margin: 0 0 20px; }
/* T-CW-1090 (owner, 2026-10-04): the group titles blended into their lists, so each is bold and underlined in ink, at
 * its old size. Still an <h3>, so a screen reader still lists them as headings. */
.amenity-group h3 { font-size: 17px; font-weight: 700; color: var(--ink); text-decoration: underline; text-decoration-color: var(--ink); text-underline-offset: 3px; }
.amenity-group li { padding: 1px 0; font-size: 15.5px; }
/* T-CW-1099 items 6 and 9: the policy cards, on the booking page and on the Policies page. Native <details>, closed by
 * default: a paper card on the line border, the title and a chevron in a 52px header (a 44px+ target), the chevron
 * turning when the card is open. The house rules inside are a list (item 7) spaced exactly as the Cancellation list:
 * both are .body-list. */
.policy-cards { display: grid; gap: 12px; }
.policy-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); }
.policy-card-head { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 0 18px; color: var(--ink); }
.policy-card-head::-webkit-details-marker { display: none; }
.policy-card-head h3 { margin: 0; font-size: 18px; line-height: 1.3; }
.policy-card-head .icon { color: var(--blue); transition: transform 120ms ease; }
.policy-card[open] > .policy-card-head .icon { transform: rotate(180deg); }
.policy-card-head:hover h3 { color: var(--deep-water); }
.policy-card-body { padding: 0 18px 16px; border-top: 1px solid var(--line-soft); }
.policy-card-body > :first-child { margin-top: 14px; }
/* A policy's own sub-headings (part 3b, the Accessibility card): small mono capitals under the card's title, as the mock. */
.policy-card-body h4 { margin: 18px 0 4px; font-family: var(--font-mono); font-weight: 500; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-muted); }
.policy-cards .policy-card-body p, .policy-cards .policy-card-body .body-list li { font-size: 15.5px; line-height: 1.65; }
.policy-card-link { margin: 4px 0 0; }
.policy-card-link a { display: inline-flex; align-items: center; min-height: 44px; }
/* an anchor that lands on a card leaves it clear of the stuck bars */
.policy-card[id] { scroll-margin-top: 80px; }

/* ---- availability: six months and the stay band -------------------------- */
.months { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 22px; }
.month { border-collapse: collapse; width: 100%; font-family: var(--font-mono); font-size: 12px; }
.month caption { text-align: left; font-family: var(--font-display); font-size: 17px; color: var(--ink); padding: 0 0 8px; }
.month th { font-size: 12px; letter-spacing: 0.1em; color: var(--ink-muted); font-weight: 400; padding: 3px 0; }
.month td { text-align: center; padding: 0; height: 44px; font-size: 14px; color: var(--ink); }
/* T-CW-1090c: two months at a time once the script runs, paged by two 44px buttons. */
.months-pager { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 8px; }
.pager-button { width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--ink); font-size: 22px; line-height: 1; cursor: pointer; }
.pager-button:disabled { opacity: 0.4; cursor: default; }
.pager-button:focus-visible { outline: 3px solid var(--ochre); outline-offset: 2px; }
.month[hidden] { display: none; }
.day-past { color: var(--ink-muted); opacity: 0.6; }
/* A booked stay is one continuous band, cut on the diagonal at arrival and departure and square where it wraps a
   week. Booked text keeps its ink; the strike is the cue that does not depend on colour. */
.day-taken { background: linear-gradient(var(--night-booked), var(--night-booked)) center / 100% var(--disc) no-repeat; text-decoration: line-through; text-decoration-color: rgba(29, 39, 69, 0.45); }
/* T-CW-1099 wave 2 S3 (owner, 2026-10-03): the booked band is exactly as tall as the selected band, --disc, centred in
 * the cell, so booked nights and a chosen range line up with the top and bottom of the date circles. The slanted ends
 * keep their 108deg cut at that height. Where a booked band meets a chosen date's circle, see the rules after the
 * selection's own, below. */
/* The two halves of a changeover (E2u): the first night of a stay is free until the afternoon, and the day
 * after its last night is booked only until the morning - that second one is a FREE day, and clickable. */
.day-taken[data-band="start"] { background: linear-gradient(108deg, rgba(243, 223, 216, 0) 0 40%, var(--night-booked) 40%) center / 100% var(--disc) no-repeat; }
.day[data-band="out"] { background: linear-gradient(108deg, var(--night-booked) 0 40%, rgba(243, 223, 216, 0) 40%) center / 100% var(--disc) no-repeat; }
.cal-legend { list-style: none; display: flex; flex-wrap: wrap; gap: 20px; margin: 16px 0 0; padding: 0; font-size: 14px; color: var(--ink-muted); }
/* T-CW-1099 part S1 (OG-01): the one line under "Tentative availability". */
.cal-lede { max-width: 640px; margin: 0 0 18px; font-size: 15.5px; line-height: 1.6; color: var(--ink-muted); }
.cal-legend li { display: flex; align-items: center; gap: 7px; }
.swatch { display: inline-block; width: 13px; height: 13px; border: 1px solid var(--line); border-radius: 3px; }
.swatch-taken { width: 30px; border: 0; border-radius: 0; background: var(--night-booked); }
.swatch-changeover { width: 30px; border: 0; border-radius: 0; background: linear-gradient(108deg, var(--night-booked) 0 45%, rgba(243, 223, 216, 0) 45%); }

/* ---- the request form ---------------------------------------------------- */
.field { margin: 0 0 14px; }
.field-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
.hint-inline { font-family: var(--font-sans); text-transform: none; letter-spacing: 0; color: var(--ink-muted); }
#request form .button, #request-form .button { min-height: 48px; padding: 0 30px; }
/* T-CW-1099 part S1 (OG-04): "A child under 6 is in our party". A real checkbox at 22px inside a 44px label, which is
 * the whole tap target; the page-wide input rule (full width, padding, 44px tall) is undone for the box itself. */
.field-check { margin: 0 0 18px; }
.field-check label { display: flex; align-items: center; gap: 12px; min-height: 44px; font-size: 16px; line-height: 1.4; color: var(--ink); cursor: pointer; }
.field-check input[type="checkbox"] { flex: none; width: 22px; height: 22px; min-height: 0; margin: 0; padding: 0; accent-color: var(--blue); cursor: pointer; }
.field-check input[type="checkbox"]:focus-visible { outline: 3px solid var(--ochre); outline-offset: 2px; }

/* ---- the request page, /request (T-CW-1099 items 10 and 11) --------------- */
/* The booking page's grid, but ONE column of content (owner, 2026-10-03): the dates-only card (no rate, no fee, no
 * estimate) sits directly above the form at every width, exactly as wide as the form's fields. The card's fields belong
 * to the form by their form attribute, so the popover hangs from the box around them. */
.request-head .lede { max-width: 640px; font-size: 19px; line-height: 1.7; margin: 0; color: var(--ink); }
.booking-card [data-pop-anchor] { position: relative; }
.request-card .date-pair { margin: 0; }
.request-card .quote-refused { margin-top: 14px; }
/* The card comes FIRST in the source, so with both in the first track it is above the form at every width. The first
 * track is the form's own (the grid's 1fr beside the booking page's 340px card track), so the form keeps the width it
 * had and the card takes exactly that width; nothing is placed in the second track. On a phone the grid has one track
 * and this rule changes nothing. The card scrolls with the page: above the form, a stuck card would cover it. */
.request-body { row-gap: 28px; }
.request-body > main, .request-body > .request-card { grid-column: 1; }
.request-body > .request-card { position: static; }
#request-form .button:disabled { opacity: 0.45; cursor: not-allowed; }
#request-form .button:disabled:hover { background: var(--blue); border-color: var(--blue); }
/* Adults and Children: two pill steppers. 44px round buttons either side of a mono count. */
.party { border: 0; margin: 0 0 14px; padding: 0; min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
.party legend { padding: 0; margin: 0 0 6px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-muted); }
.stepper label { display: block; margin: 0 0 6px; font-family: var(--font-sans); font-size: 15px; letter-spacing: 0; text-transform: none; color: var(--ink); }
.stepper-pill { display: flex; align-items: center; justify-content: space-between; gap: 6px; min-height: 52px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); }
.stepper-button { width: 44px; height: 44px; flex: none; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--blue); font-size: 22px; line-height: 1; cursor: pointer; }
.stepper-button:hover { border-color: var(--blue); }
.stepper-button:disabled { opacity: 0.35; cursor: default; }
.stepper-button:focus-visible { outline: 3px solid var(--ochre); outline-offset: 2px; }
.stepper-pill input.stepper-count { width: 100%; min-width: 0; min-height: 44px; border: 0; padding: 0; text-align: center; font-family: var(--font-mono); font-size: 18px; background: transparent; }
.stepper-pill input.stepper-count[readonly] { background: transparent; }
/* read by a screen reader, never seen */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
/* Callouts: a confirmation or a refusal; nothing else earns a coloured ground. */
.message { border-left: 3px solid var(--wall-green); border-radius: var(--r-sm); padding: 12px 16px; margin: 0 0 18px; background: var(--confirm-wash); }
.message.bad { border-left-color: var(--danger); background: var(--danger-wash); }
.message.bad p:first-child { color: var(--danger); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---- photographs, room by room ------------------------------------------- */
/* Each room leads with one large photograph and continues in a five-up row. No printed caption: the description
   is the alt text, by the owner's ruling. */
.photo-rooms { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 26px 16px; }
.photo-room { margin: 0; min-width: 0; }
.photo-room[data-room="pool"] { grid-column: span 2; display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; align-content: start; }
.photo-room[data-room="pool"] h3 { grid-column: 1 / -1; }
.photo-room[data-room="pool"] .photo-grid { grid-template-columns: 1fr; }
.photo-room[data-room="pool"] .photo-thumb-frame img { height: 250px; object-fit: cover; border-radius: 10px; }
.photos-all { margin: 24px 0 0; }
.photo-room h3 { font-size: 18px; line-height: 24px; margin: 0 0 10px; }
.photo-lead { margin: 0 0 6px; }
.photo-lead-frame img { display: block; width: 100%; height: 250px; object-fit: cover; border-radius: 10px; background: var(--sand); }
.photo-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.photo-grid > li { min-width: 0; }
.photo-open { display: block; text-decoration: none; transition: opacity 120ms ease; }
.photo-open:hover { opacity: 0.9; }
.photo-thumb-frame { display: block; }
.photo-thumb-frame img { display: block; width: 100%; height: 104px; object-fit: cover; border-radius: var(--r-sm); background: var(--sand); }

.photo-box { display: none; position: fixed; inset: 0; z-index: 60; background: rgba(29, 39, 69, 0.96); padding: 18px; overflow: auto; }
.photo-box:target { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.photo-box img { display: block; max-width: 100%; max-height: 82vh; width: auto; border-radius: var(--r-sm); }
/* Walking the photographs: 44px targets, on the overlay rather than on the photograph, so a tall picture is
 * never covered by them. Focus is visible because these are ordinary links. (E2s) */
.photo-box-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; display: flex; align-items: center; justify-content: center; color: #fff; text-decoration: none; font-size: 34px; line-height: 1; background: rgba(239, 233, 220, 0.18); border-radius: 999px; }
.photo-box-nav:hover { background: rgba(239, 233, 220, 0.32); }
.photo-box-prev { left: 12px; }
.photo-box-next { right: 12px; }
.photo-box-counter { position: absolute; top: 18px; left: 18px; margin: 0; color: #fff; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em; }
@media (max-width: 640px) {
  .photo-box-nav { width: 44px; height: 44px; font-size: 28px; }
  .photo-box-prev { left: 4px; }
  .photo-box-next { right: 4px; }
}
.photo-box-dismiss { position: absolute; top: 12px; right: 12px; min-width: 44px; min-height: 44px; display: flex; align-items: center; justify-content: center; color: #fff; text-decoration: none; font-size: 26px; background: rgba(239, 233, 220, 0.18); border-radius: 999px; }

/* ---- the peacock band, the dusk rule, the footer ------------------------- */
.peacock-band { position: relative; height: 380px; overflow: hidden; background: var(--ink); }
.peacock-band picture, .peacock-band img { display: block; width: 100%; height: 100%; }
.peacock-band img { object-fit: cover; }
/* The evening ramp: a sunset, not a brand gradient. Once, as the rule above the footer. */
.dusk-rule { height: 8px; background: var(--dusk-ramp); }
.site-foot { background: var(--sand); padding: 26px 0 34px; color: var(--ink-muted); font-size: 15px; }
.site-foot p { margin: 0; }
.site-foot a { color: var(--blue); }

/* ---- picking dates on the calendar (E2t) --------------------------------- */
/* Only the picker adds these classes, so with no script the calendar looks exactly as it did. */
.day[tabindex='0'] { cursor: pointer; }
/* T-CW-1099 item 4: the selection is DRAWN, never the whole cell. A circle of --disc across, centred in its cell, at
 * each end; between them a band exactly --disc tall, centred on the same line, so its top and bottom meet the circles'
 * top and bottom. When the range has two ends (has-range, set by the picker), the band also runs behind the inner half
 * of each end circle - right half of the check-in, left half of the check-out - so it meets them with no gap. A cell
 * is filled edge to edge, so a range that wraps a week ends flush at the row edges. One night: two circles joined by
 * the two half bands between them, and nothing outside them. --disc is set per surface and never exceeds the
 * narrowest cell it is drawn in (page calendar 40px: columns are at least 40px from 320px up; popover below). */
.months { --disc: 40px; --band: #e8f0f8; }
.day.in-range, .day.is-hover-range { background: linear-gradient(var(--band), var(--band)) center / 100% var(--disc) no-repeat; }
.day.is-start, .day.is-end, .day.is-hover-end { color: #fff; font-weight: 600; background: radial-gradient(circle closest-side, var(--blue) calc(100% - 1px), transparent 100%) center / var(--disc) var(--disc) no-repeat; }
.day.is-start.has-range { background: radial-gradient(circle closest-side, var(--blue) calc(100% - 1px), transparent 100%) center / var(--disc) var(--disc) no-repeat, linear-gradient(var(--band), var(--band)) right center / 50% var(--disc) no-repeat; }
.day.is-end.has-range, .day.is-hover-end.has-range { background: radial-gradient(circle closest-side, var(--blue) calc(100% - 1px), transparent 100%) center / var(--disc) var(--disc) no-repeat, linear-gradient(var(--band), var(--band)) left center / 50% var(--disc) no-repeat; }
.day.is-hover-end, .day.is-hover-range { opacity: 0.75; }
/* T-CW-1099 wave 2 S3 (owner, 2026-10-03): where a booked band meets a chosen date's circle, the booked colour runs to
 * the circle's middle, so there is no white gap between them. A changeover day (out: a stay leaves that morning) chosen
 * as the CHECK-IN carries the booked half on its LEFT, and the range's band on its right when there is a range. A booked
 * first night (start: free until the afternoon) chosen as the CHECK-OUT carries the booked half on its RIGHT, and the
 * band on its left. Same height as both bands. After the selection's rules, so these win where both match. */
.day.is-start[data-band="out"] { background: radial-gradient(circle closest-side, var(--blue) calc(100% - 1px), transparent 100%) center / var(--disc) var(--disc) no-repeat, linear-gradient(var(--night-booked), var(--night-booked)) left center / 50% var(--disc) no-repeat; }
.day.is-start.has-range[data-band="out"] { background: radial-gradient(circle closest-side, var(--blue) calc(100% - 1px), transparent 100%) center / var(--disc) var(--disc) no-repeat, linear-gradient(var(--band), var(--band)) right center / 50% var(--disc) no-repeat, linear-gradient(var(--night-booked), var(--night-booked)) left center / 50% var(--disc) no-repeat; }
.day.is-end[data-band="start"], .day.is-hover-end[data-band="start"] { background: radial-gradient(circle closest-side, var(--blue) calc(100% - 1px), transparent 100%) center / var(--disc) var(--disc) no-repeat, linear-gradient(var(--night-booked), var(--night-booked)) right center / 50% var(--disc) no-repeat; }
.day.is-end.has-range[data-band="start"], .day.is-hover-end.has-range[data-band="start"] { background: radial-gradient(circle closest-side, var(--blue) calc(100% - 1px), transparent 100%) center / var(--disc) var(--disc) no-repeat, linear-gradient(var(--band), var(--band)) left center / 50% var(--disc) no-repeat, linear-gradient(var(--night-booked), var(--night-booked)) right center / 50% var(--disc) no-repeat; }
.day[aria-disabled='true'] { cursor: default; }
.months .day:focus-visible { outline: 3px solid var(--ochre); outline-offset: -3px; }
/* The popover: the same calendar, hanging under the date fields. T-CW-1099 item 1: it spans the full width of the card's
 * form (left and right pinned to the form, which is position: relative), padded 16px, and the month table fills that
 * width in seven equal columns, so two-digit days no longer run together. It grows with its two months instead of
 * scrolling inside a 320px box: on a wide screen, where the card is stuck below the bars, it scrolls only where it would
 * run past the bottom of the screen; at 900px and below the card scrolls with the page and the popover is full height. */
.date-pop { position: absolute; left: 0; right: 0; z-index: 50; max-height: calc(100vh - 300px); overflow: auto; margin-top: 6px; padding: 16px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-card); }
.date-pop[hidden] { display: none; }
/* A popover column is about 37px on the card at 375px and at 1280px, and about 29px on a 320px phone. */
.months-compact { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; --disc: 34px; }
.months-compact table { width: 100%; table-layout: fixed; font-size: 12px; }
.months-compact td { height: 40px; font-size: 15px; }
.months-compact caption { font-size: 13px; }
@media (max-width: 360px) {
  .months-compact { --disc: 28px; }
}

/* ---- the site around the booking page (E2n) ------------------------------ */
/* The bar's More info menu (E2w): a <details>, so it opens with no script. */
.more-info { position: relative; }
.more-info summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 10px; font-family: var(--font-mono); font-size: 12px; line-height: 16px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--blue); }
.more-info summary::-webkit-details-marker { display: none; }
.more-info summary:hover, .more-info[open] summary { color: var(--deep-water); }
.more-info[open] summary .icon { transform: rotate(180deg); }
/* Hangs from just under the bar's hairline: the summary sits 10px down a 64px bar. */
.more-info-panel { position: absolute; right: 0; top: 55px; z-index: 60; width: 240px; padding: 8px 14px 12px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-card); }
.more-info-panel ul { list-style: none; margin: 0; padding: 0; }
/* These links sit inside .site-nav, so the label style above reaches them at equal specificity and only
   source order keeps them out of it. Escaping it means undoing ALL THREE of its properties - the face as
   well as the case and the tracking. They are menu items, not labels: they read as sentences. */
.more-info-panel a { display: flex; align-items: center; min-height: 44px; padding: 0; color: var(--ink); text-decoration: none; font-family: var(--font-sans); font-size: 15px; letter-spacing: 0; text-transform: none; }
.more-info-panel a:hover, .more-info-panel a[aria-current="page"] { color: var(--blue); }

/* The phone menu: a <details>, so it opens and closes with no script. Hidden where the bar's own links show. */
.site-menu { display: none; }
.menu-toggle { list-style: none; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--ink); font-family: var(--font-mono); font-size: 12px; line-height: 16px; letter-spacing: 0.14em; text-transform: uppercase; white-space: nowrap; }
.menu-toggle::-webkit-details-marker { display: none; }
.menu-toggle > span { display: inline-flex; align-items: center; gap: 8px; }
.menu-toggle .when-open { display: none; }
.site-menu[open] .menu-toggle { border-color: var(--blue); }
.site-menu[open] .menu-toggle .when-closed { display: none; }
.site-menu[open] .menu-toggle .when-open { display: inline-flex; }
/* The dimmed page under the open panel is part of the summary, so a tap anywhere on it closes the menu - still
 * with no script. It starts under the bar (64px and its hairline), so the bar itself is never dimmed. */
.site-menu[open] .menu-toggle::before { content: ""; position: fixed; top: 65px; right: 0; bottom: 0; left: 0; z-index: 10; background: rgba(29, 39, 69, 0.55); cursor: default; }
/* The panel spans the screen from just under the bar: positioned against the bar itself, which is sticky. */
.site-menu-panel { position: absolute; top: calc(100% + 1px); right: 0; left: 0; z-index: 20; max-height: calc(100vh - 65px); max-height: calc(100dvh - 65px); overflow-y: auto; overscroll-behavior: contain; padding: 4px 16px 20px; background: var(--paper); border-radius: 0 0 var(--r-lg) var(--r-lg); box-shadow: var(--shadow-card); }
.menu-group { margin: 0; padding: 16px 0 4px; font-family: var(--font-mono); font-size: 12px; line-height: 16px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-muted); }
.site-menu-panel ul + .menu-group { padding-top: 20px; }
.site-menu-panel ul { list-style: none; margin: 0; padding: 0; }
.site-menu-panel li { border-bottom: 1px solid var(--line-soft); }
.site-menu-panel li a { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; font-size: 17px; line-height: 24px; text-decoration: none; color: var(--ink); }
.site-menu-panel li a:hover { color: var(--blue); }
.site-menu-panel li a[aria-current="page"] { color: var(--blue); font-weight: 600; }
.menu-go { display: flex; color: var(--ink-muted); }
.menu-here { font-family: var(--font-mono); font-size: 12px; line-height: 16px; font-weight: 400; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-muted); }
.menu-pin { margin: 16px 0 0; }
.menu-pin a { display: inline-flex; align-items: center; min-height: 44px; font-size: 16px; line-height: 24px; color: var(--blue); }

.page { max-width: 760px; padding-block: 44px 64px; }
.page h1 { margin: 0 0 14px; }
.page h1::after { content: ""; display: block; width: 56px; height: 4px; margin: 14px 0 0; border-radius: 2px; background: var(--tile-rule); }
.crumb { margin: 0 0 10px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-muted); }
.crumb a { color: var(--ink-muted); }
.page-body { margin-top: 28px; }
.page-body p { margin: 0 0 18px; font-size: 17px; line-height: 1.75; color: var(--ink); }
.page-body p.lede { font-size: 19px; line-height: 1.7; margin-bottom: 28px; }
.body-list { margin: 0 0 18px; padding-left: 22px; }
.body-list li { margin: 0 0 6px; font-size: 17px; line-height: 1.7; color: var(--ink); }
.body-list li::marker { color: var(--teal); }
.page-body h2 { margin: 36px 0 12px; font-family: var(--font-display); font-weight: 400; font-size: 26px; line-height: 1.2; color: var(--ink); }
.page-body > h2:first-child, .page-body > section:first-child > h2 { margin-top: 0; }
.page-photo img { display: block; width: 100%; height: 280px; object-fit: cover; border-radius: var(--r-md); background: var(--sand); margin: 0 0 24px; }
.place-group { margin: 0 0 26px; }
.page-body h2.place-group-head { margin: 0 0 8px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-muted); }
.places { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.place { background: var(--sand); border-radius: var(--r-md); padding: 16px 20px; }
.page-body .place p { margin: 0; font-size: 16px; line-height: 1.6; }
.page-body .place-name { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; font-weight: 600; }
.dist { font-family: var(--font-mono); font-weight: 400; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-muted); background: var(--paper); border-radius: 999px; padding: 3px 10px; }
.page-body .place-addr { font-size: 14px; color: var(--ink-muted); }
/* T-CW-1099 wave 2 part 3b: the price chip beside the distance, $ to $$$$ (places.price_level); its meaning is the tooltip. */
.price { font-family: var(--font-mono); font-weight: 600; font-size: 12px; letter-spacing: 0.08em; color: var(--wall-green); background: var(--confirm-wash); border-radius: 999px; padding: 3px 10px; cursor: help; }
.note-band { margin: 28px 0 0; background: var(--sand); border-radius: var(--r-md); padding: 18px 22px; }
.page-body .note-band p { margin: 0; font-size: 15.5px; line-height: 1.6; }
/* The Village of Palmetto Bay rules notice under the house rules (T-CW-1089): a sand band like the payment note, with
 * its own heading and the tile rule at its head, so a guest can tell the Village's rules from the owner's own. */
.page-body .village-notice { margin-top: 36px; border-top: 4px solid transparent; border-image: var(--tile-rule) 1; border-radius: 0 0 var(--r-md) var(--r-md); }
.page-body .village-notice h2 { margin: 0 0 10px; font-size: 22px; }
.page-body .village-notice .body-list { margin: 12px 0 0; }
.page-body .village-notice .body-list li { font-size: 15.5px; line-height: 1.6; }
.kicker { display: inline-block; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--wall-green); background: var(--confirm-wash); border-radius: 999px; padding: 5px 12px; }
.page-body p.kicker { font-size: 12px; line-height: 1.4; margin-bottom: 18px; }
.page-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
/* T-CW-1099 item 5: the Contact page's Request dates button, where its lead line used to be. */
.page-body p.page-cta { margin: 0 0 28px; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 0 0 14px; }
/* T-CW-1099 part S1 (OG-17): the Certificate of Use line, last in the footer. */
.site-foot .foot-licence { margin: 12px 0 0; font-size: 14px; overflow-wrap: anywhere; }
/* T-CW-1099 part S1 (OG-02): the About page's Licences and certificates block. A name and its number (or Pending) per row,
 * wrapping onto two lines on a phone rather than pushing the page sideways. */
.page-licences { margin-top: 40px; }
.licence-list { margin: 0; padding: 0; border-top: 1px solid var(--line-soft); }
.licence-list .licence { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 18px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.licence-list dt { margin: 0; font-size: 16px; line-height: 1.5; color: var(--ink); }
.licence-list dd { margin: 0; font-family: var(--font-mono); font-size: 14px; color: var(--ink); overflow-wrap: anywhere; }
.licence-list [data-licence-state="pending"] { color: var(--ink-muted); }
.foot-nav a { display: inline-flex; align-items: center; min-height: 44px; }

/* ---- the request-sent page (T-CW-1099 wave 2 S4, approved 2026-10-03) ------------------------------------ */
/* "Thank you.", a small Request sent label, one line; then the request on a card: two sand date tiles (the day with its
 * weekday, never wrapping on a phone, and the house's time under it in mono bold), the nights and the party, and the
 * "Request different times" form inside a <details> whose summary is a ghost button. No price anywhere on it. */
.sent-body { margin-top: 18px; }
.page-body .sent-intro p.kicker { margin: 0 0 10px; }
.page-body .sent-intro p.lede { margin-bottom: 0; }
.sent-card { margin: 26px 0 30px; max-width: 560px; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; background: var(--paper); box-shadow: var(--shadow-card); }
.page-body p.sent-card-label { margin: 0 0 12px; font-family: var(--font-mono); font-size: 12px; line-height: 1.4; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-muted); }
.sent-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; }
.sent-tile { background: var(--sand); border-radius: var(--r-md); padding: 12px 14px; min-width: 0; }
.sent-tile dt { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-muted); }
.sent-tile dd { margin: 4px 0 0; font-family: var(--font-display); font-size: 19px; line-height: 1.25; color: var(--ink); }
.t-day { display: block; white-space: nowrap; }
.t-time { display: block; margin-top: 4px; font-family: var(--font-mono); font-weight: 700; font-size: 15px; letter-spacing: 0.02em; color: var(--ink); }
.t-req { display: block; margin-top: 2px; font-family: var(--font-sans); font-weight: 500; font-size: 12px; line-height: 1.4; color: var(--wall-green); }
.page-body p.sent-meta { margin: 14px 0 0; font-size: 17px; color: var(--ink); }
.page-body p.times-sent { margin: 14px 0 0; padding: 12px 14px; border-radius: var(--r-sm); background: var(--confirm-wash); color: var(--wall-green); font-size: 16px; line-height: 1.5; }
.page-body p.times-error { margin: 14px 0 0; padding: 12px 14px; border-left: 3px solid var(--danger); border-radius: var(--r-sm); background: var(--danger-wash); color: var(--danger); font-size: 16px; line-height: 1.5; }
.times { margin-top: 16px; }
.times-btn { list-style: none; width: 100%; }
.times-btn::-webkit-details-marker { display: none; }
.times-form { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line-soft); }
.page-body p.times-lead { margin: 0 0 6px; font-size: 16px; line-height: 1.6; }
.times-hint { display: block; font-size: 14px; color: var(--ink-muted); }
.times-form .field { margin: 12px 0 0; }
.times-form label { display: block; margin: 0 0 6px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-muted); }
.times-form .hint-inline { font-size: 13px; }
.times-form select { width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--paper); font-family: var(--font-sans); font-size: 17px; line-height: 1.4; color: var(--ink); }
.times-form select:focus-visible { outline: 3px solid var(--ochre); outline-offset: 2px; }
.times-form .button { margin-top: 16px; width: 100%; min-height: 48px; }
.sent-next h2 { margin: 0 0 12px; }
.sent-steps { margin: 0 0 28px; padding-left: 22px; max-width: 640px; }
.page-body .sent-steps li { margin-bottom: 10px; font-size: 17px; line-height: 1.6; }

/* ---- the area page's sort and filters (T-CW-1099 wave 2 S5, approved 2026-10-03) ---------------------------- */
/* A tools card under the opening: Sort by (a segmented pair) and its direction, Show (category buttons, any number),
 * a Distance slider and a count. Hidden until public/area.js switches it on: with no script the page is the plain list.
 * Each card carries its categories as small green tags. Buttons are 36-38px pills inside a card whose rows wrap. */
.area-tools { margin: 4px 0 26px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--paper); box-shadow: var(--shadow-card); }
.area-tools[hidden], .area-empty[hidden] { display: none; }
.tool-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 12px; }
.tool-label { flex: 0 0 72px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-muted); }
.seg { display: inline-flex; border: 1px solid var(--blue); border-radius: 999px; overflow: hidden; }
.seg-btn { min-height: 38px; padding: 0 16px; border: 0; background: var(--paper); color: var(--blue); font-family: var(--font-mono); font-size: 12px; font-weight: 500; line-height: 1; letter-spacing: 0.12em; text-transform: uppercase; cursor: pointer; }
.seg-btn + .seg-btn { border-left: 1px solid var(--blue); }
.seg-btn[aria-pressed="true"] { background: var(--blue); color: #fff; }
.dir-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--ink); font-family: var(--font-sans); font-size: 14px; font-weight: 500; line-height: 1; cursor: pointer; }
.dir-btn:hover { border-color: var(--blue); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; flex: 1 1 240px; }
.chip { min-height: 36px; padding: 0 14px; border: 1px solid var(--blue); border-radius: 999px; background: var(--paper); color: var(--blue); font-family: var(--font-mono); font-size: 12px; font-weight: 500; line-height: 1; letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--blue); color: #fff; }
.seg-btn:focus-visible, .dir-btn:focus-visible, .chip:focus-visible, .tool-range input:focus-visible { outline: 3px solid var(--ochre); outline-offset: 2px; }
.tool-range input { flex: 1 1 160px; min-height: 36px; padding: 0; border: 0; accent-color: var(--blue); }
.mi-v { flex: 0 0 auto; min-width: 116px; font-family: var(--font-sans); font-size: 14px; font-weight: 500; line-height: 1; color: var(--ink); }
.page-body p.area-count { margin: 2px 0 0; font-size: 14px; line-height: 1.5; color: var(--ink-muted); }
.page-body .place p.place-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; }
.place-tag { font-family: var(--font-mono); font-size: 12px; line-height: 1.4; letter-spacing: 0.1em; text-transform: uppercase; color: var(--wall-green); background: var(--confirm-wash); border-radius: 999px; padding: 2px 9px; }
.area-empty { padding: 18px 0 30px; }
.page-body .area-empty p { margin: 0 0 12px; }
@media (max-width: 600px) {
  .tool-label { flex-basis: 100%; }
  .area-tools { padding: 14px; }
}

/* ---- narrower screens ---------------------------------------------------- */
@media (max-width: 900px) {
  .listing-body { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .booking-card { position: static; }
  /* T-CW-1099 wave 2 S2 (owner, 2026-10-03): the booking page's Request section is its heading alone (its button went,
   * the card below does that job), so the card follows the heading closely: a 16px row gap, no margin on the card, and
   * nothing under the heading but its tile rule - about 20px from the rule to the card. The request page keeps its own
   * 28px between the date card and the form (the second rule, after the first, so it still wins there). */
  .listing-body { row-gap: 16px; }
  .request-body { row-gap: 28px; }
  .listing-body > .booking-card { margin-top: 0; }
  /* T-CW-1090: the heading and the card are one column now, at the foot of the page; the column scrolls with the page,
   * and the 16px that used to be the row gap between them is the heading's own margin. */
  .listing-body #request { position: static; margin-bottom: 0; padding-bottom: 0; }
  .listing-body #request h2 { margin-bottom: 16px; }
  /* the card scrolls with the page here, so its popover can grow to its full height (T-CW-1099 item 1) */
  .date-pop { max-height: none; overflow: visible; }
  /* An answer the visitor asked for belongs above the listing, not under it: with a quote or a refusal on the page
   * the card is first in the single column. Source order is unchanged, so the reading order for a screen reader
   * still follows the DOM. (E2p) */
  .quote-first .listing-body { display: flex; flex-direction: column; }
  .quote-first .booking-card { order: -1; }
  /* on the booking page the card sits inside the request column, so the column (heading and card together) goes first */
  .quote-first .request-col { order: -1; }
  .amenity-groups { columns: 2 160px; }
}
/* The site bar's widths (the table at the top of its block). */
@media (max-width: 940px) {
  .site-nav > a, .more-info summary { padding: 0 6px; letter-spacing: 0.1em; }
  .bar-book { margin-left: 6px; padding: 0 16px; }
}
@media (max-width: 860px) {
  /* out of sight, not out of the accessibility tree: the link is still named for the house */
  .wordmark-name { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
}
@media (max-width: 700px) {
  .site-bar .wrap { gap: 8px; }
  .site-nav { display: none; }
  .site-menu { display: block; }
  .bar-actions { gap: 8px; }
  .bar-book { margin-left: 0; }
  .wordmark { justify-content: center; width: 44px; height: 44px; margin-left: -3px; }
  /* the page under an open menu stays put */
  body:has(.site-menu[open]) { overflow: hidden; }
}
@media (max-width: 374px) {
  .site-bar .wrap, .bar-actions { gap: 6px; }
  .bar-book, .menu-toggle { letter-spacing: 0.08em; font-stretch: 87.5%; }
  .bar-book { padding: 0 12px; }
  .menu-toggle { padding: 0 10px; }
  .menu-toggle > span { gap: 6px; }
}
@media (max-width: 640px) {
  :root { --gut: 16px; }
  h1 { font-size: 40px; line-height: 44px; }
  h2 { font-size: 26px; line-height: 32px; }
  .photo-room[data-room="pool"] { grid-column: auto; }
  .gallery { display: block; height: auto; border-radius: var(--r-md); }
  .gallery-lead { height: 235px; }
  .gallery-mosaic { grid-template-columns: repeat(4, 1fr); grid-template-rows: none; gap: 4px; margin-top: 4px; }
  .gallery-mosaic > li { height: 68px; }
  .gallery-all { position: static; margin-top: 12px; }
  .gallery-all .button { width: 100%; }
  .photo-lead-frame img { height: 200px; }
  .photo-grid { grid-template-columns: repeat(3, 1fr); }
  .photo-thumb-frame img { height: 84px; }
  .amenity-groups { columns: 1; }
  .field-pair { grid-template-columns: 1fr; }
  .peacock-band { height: 260px; }
  .page { padding-block: 28px 48px; }
  .page-photo img { height: 200px; }
  .place { padding: 14px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .photo-open, .button, .room, .policy-card-head .icon { transition: none; }
  .photo-open:hover { opacity: 1; }
  html { scroll-behavior: auto; }
}

/* ---- one booking flow (T-CW-1090d): the steps in the card, and the request form's dates read-only ---------- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0 0 16px; padding: 0; counter-reset: step; }
.step { border-top: 4px solid var(--line); padding-top: 6px; font-family: var(--font-mono); font-size: 12px; line-height: 16px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); }
.step.done, .step.current { border-top-color: var(--blue); }
.step.current { color: var(--ink); font-weight: 500; }
.step a { color: inherit; }
.request-dates-note { font-size: 14px; color: var(--ink-muted); }
.field input[readonly] { background: var(--sand); }

/* ---- the rental agreement (T-CW-1090e): contents beside the text on wide screens, print without the chrome ---- */
.agreement { display: grid; grid-template-columns: 260px minmax(0, 760px); gap: 12px 56px; align-items: start; margin-top: 28px; }
.agreement-tools { grid-column: 1 / -1; display: flex; justify-content: flex-end; }
.toc { position: sticky; top: 88px; max-height: calc(100vh - 112px); overflow-y: auto; border: 1px solid var(--line); border-radius: var(--r-md); padding: 4px 14px 10px; }
.toc summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink); }
.toc ol { list-style: none; margin: 0; padding: 0; }
.toc a { display: flex; align-items: center; min-height: 40px; font-size: 15px; line-height: 20px; text-decoration: none; color: var(--ink); }
.toc a:hover { color: var(--blue); }
.agreement-body { margin-top: 0; }
.agreement-body .anchor { display: block; position: relative; top: -88px; visibility: hidden; }
.to-top a { display: inline-flex; align-items: center; min-height: 44px; }
@media (max-width: 900px) {
  .agreement { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; max-height: none; }
}
@media print {
  .site-bar, .site-foot, .toc, .agreement-tools, .to-top, .peacock-band, .dusk-rule { display: none !important; }
  .agreement { display: block; }
  .agreement-body p, .agreement-body li { font-size: 12pt; line-height: 1.5; }
  .agreement-body h2 { break-after: avoid; page-break-after: avoid; }
}

/* Date inputs on a phone (ruling 5 of 2026-10-04, the same fix as the admin's): no iOS intrinsic width, value on the
   left, the box exactly its column. */
input[type="date"], input[type="time"], input[type="datetime-local"] {
  display: block; box-sizing: border-box; max-width: 100%; text-align: left; -webkit-appearance: none; appearance: none; }
input[type="date"]::-webkit-date-and-time-value, input[type="time"]::-webkit-date-and-time-value,
input[type="datetime-local"]::-webkit-date-and-time-value { margin: 0; text-align: left; }
