/* A home in Field: house preview styles.
   Tokens first, then base elements, then one block per page section. */

@font-face {
  font-family: "Newsreader";
  src: url(assets/fonts/newsreader-roman.woff2) format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url(assets/fonts/newsreader-italic.woff2) format("woff2");
  font-weight: 200 800;
  font-style: italic;
  font-display: swap;
}

:root {
  /* Colour */
  --paper: #fbfaf8;
  --surface: #f1efeb;
  --field: #ffffff;
  --ink: #1a2b24;
  --ink-2: #3b4640;
  --muted: #565e58;
  --line: #e4e1db;
  --line-strong: #8c867a;
  --accent: #9a3f23;
  --error: #8a3a22;
  --gold: #7d5618;
  --on-ink: #fbfaf5;
  /* Dark bands: the secondary suite and the footer, matching the liveinyoho.com placeholder. */
  --spruce: #1a2b24;
  --larch: #dfbe7d;
  --on-dark: #f6f2ea;
  --on-dark-muted: #c5cec7;
  --on-dark-line: rgb(246 242 234 / .16);
  --scrim: #14251f;

  /* Type */
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --fs-h1: clamp(2.75rem, 5.6vw, 5.25rem);
  --fs-h2: clamp(2.1rem, 3.6vw, 3.3rem);
  --fs-h3: clamp(1.5rem, 2.2vw, 1.85rem);
  --fs-lead: clamp(1.2rem, 1.6vw, 1.4rem);
  --fs-small: .875rem;
  --fs-caption: .75rem;
  --measure: 34rem;

  /* Space and shape */
  --gutter: clamp(20px, 5vw, 56px);
  --section: clamp(64px, 9vw, 120px);
  --r: 3px;
  --hair: 1px solid var(--line);
  --shadow: 0 1px 2px rgb(20 37 31 / .06), 0 12px 32px rgb(20 37 31 / .1);

  /* Motion */
  --ease: cubic-bezier(.2, .7, .2, 1);
  --fast: 150ms;
  --slow: 300ms;
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-2);
  font: 16px/1.65 var(--sans);
  font-optical-sizing: auto;
  overflow-x: clip; /* the hero photo bleeds to the right edge */
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body:has(dialog[open]) { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
button, a { -webkit-tap-highlight-color: transparent; }
:is(a, button, summary):focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
img { display: block; max-width: 100%; height: auto; }
figure, p, h1, h2, h3 { margin: 0; }
p { text-wrap: pretty; }
p + p { margin-top: 1em; }
[hidden] { display: none !important; }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; color: var(--ink); text-wrap: balance; }
h1 { font-size: var(--fs-h1); font-weight: 340; line-height: 1; letter-spacing: -.025em; }
h1 em { font-weight: 300; }
h2 { font-size: var(--fs-h2); font-weight: 380; line-height: 1.08; letter-spacing: -.018em; }
h3 { font-size: var(--fs-h3); line-height: 1.15; letter-spacing: -.01em; }
em { font-style: italic; font-weight: 400; }

.wrap { width: min(1240px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.section { padding-block: var(--section); }
.eyebrow {
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  line-height: 1.5;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
/* Section numbers: a serif numeral and a short rule, e.g. "02 —— A look around". */
.eyebrow .num { display: inline-flex; align-items: center; gap: 12px; margin-right: 12px; font: italic 400 15px/1 var(--serif); letter-spacing: 0; color: var(--accent); }
.eyebrow .num::after { content: ''; width: 20px; height: 1px; background: var(--line-strong); }
.skip { position: fixed; top: -100px; left: 20px; z-index: 10; background: var(--ink); color: var(--on-ink); padding: 12px 16px; }
.skip:focus { top: 10px; }

/* Icons: single-colour SVG files used as masks, so they take the text colour. */
.ico {
  display: inline-block;
  flex: none;
  width: 1em;
  height: 1em;
  background: currentColor;
  -webkit-mask: url(assets/icons/arrow.svg) center / contain no-repeat;
  mask: url(assets/icons/arrow.svg) center / contain no-repeat;
  transition: translate var(--fast) var(--ease);
}
.ico-down { rotate: 90deg; }
.ico-back { rotate: 180deg; }
.ico-out { rotate: -45deg; }
.ico-close { -webkit-mask-image: url(assets/icons/close.svg); mask-image: url(assets/icons/close.svg); }
.ico-check { -webkit-mask-image: url(assets/icons/check.svg); mask-image: url(assets/icons/check.svg); }

/* Buttons and links */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 50px;
  padding: 0 24px;
  background: var(--ink);
  color: var(--on-ink);
  border-radius: var(--r);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .01em;
  transition: background var(--fast) var(--ease);
}
.button .ico { font-size: 16px; }
.text-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0 3px;
  border-bottom: 1px solid var(--line-strong);
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
  transition: color var(--fast) var(--ease), border-color var(--fast) var(--ease);
}
.text-link::after { content: ''; position: absolute; inset: -9px 0; } /* 44px tap target */
.text-link .ico { font-size: 14px; }
.icon-button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--r);
  color: inherit;
  font-size: 18px;
  transition: background var(--fast) var(--ease);
}
@media (hover: hover) {
  .button:hover { background: #2c4238; }
  .button:hover .ico:not(.ico-down, .ico-out, .ico-check) { translate: 3px 0; }
  .text-link:hover, .site-header nav a:hover, .footer-link:hover { color: var(--accent); border-color: var(--accent); }
  .icon-button:hover { background: rgb(127 127 127 / .12); }
}

/* Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 88px;
  border-bottom: var(--hair);
}
.brand { display: flex; align-items: center; gap: 12px; font: 400 24px var(--serif); letter-spacing: -.015em; color: var(--ink); white-space: nowrap; }
.brand svg { width: 40px; stroke: var(--ink); stroke-width: 1.2; stroke-linejoin: round; }
.brand i { font-weight: 400; }
.site-header nav { display: flex; gap: 32px; font-size: 15px; }
.site-header nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink-2); transition: color var(--fast) var(--ease); }
.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  transition: background var(--fast) var(--ease), color var(--fast) var(--ease);
}
@media (hover: hover) { .header-cta:hover { background: var(--ink); color: var(--on-ink); border-color: var(--ink); } }

/* Hero */
.hero { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(32px, 5vw, 72px); align-items: center; padding: 56px 0 64px; }
.hero-copy .eyebrow { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.dot { width: 24px; height: 1px; background: var(--accent); }
.intro { max-width: 40ch; margin-top: 24px; font-size: 17px; text-wrap: pretty; }
.hero .button { margin-top: 32px; }
.hero-photo { display: flex; flex-direction: column; align-self: stretch; min-height: 560px; }
.hero-photo > a { position: relative; flex: 1; display: block; overflow: hidden; border-radius: var(--r); background: var(--surface); }
.hero-photo .season { position: absolute; inset: 0; transition: opacity .7s var(--ease); }
.hero-photo .season:not(.is-active) { opacity: 0; }
.hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; }
.hero-photo .season-winter img { object-position: 50% 35%; }
.hero-photo .season-summer img { object-position: 50% 70%; }
/* Summer/winter switch under the hero photo. */
.seasons { display: inline-flex; gap: 2px; padding: 2px; margin-right: auto; border: 1px solid var(--line); border-radius: 999px; }
.seasons button { position: relative; min-height: 32px; padding: 0 14px; border-radius: 999px; font: 500 12px var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); transition: background var(--fast) var(--ease), color var(--fast) var(--ease); }
.seasons button::after { content: ''; position: absolute; inset: -6px 0; } /* 44px tap target */
.seasons button[aria-pressed=true] { background: var(--ink); color: var(--on-ink); }
@media (min-width: 901px) {
  .hero-photo { margin-right: calc(-1 * max(var(--gutter), (100vw - 1240px) / 2)); }
  .hero-photo > a { border-radius: var(--r) 0 0 var(--r); }
  .hero-photo figcaption { padding-right: var(--gutter); }
}
.hero-photo figcaption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  padding-top: 12px;
  font-size: var(--fs-caption);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}
.photo-marker { font-variant-numeric: tabular-nums; }
.hero h1 { font-size: clamp(2.25rem, 3.5vw, 3.4rem); line-height: 1.04; }

/* Facts strip */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); border-block: var(--hair); }
.facts > div { padding: 28px 28px 28px 0; }
.facts > div + div { padding-left: 28px; border-left: var(--hair); }
.facts strong { display: block; font: 400 26px/1.2 var(--serif); color: var(--ink); letter-spacing: -.01em; font-variant-numeric: lining-nums; }
.facts strong small { font-size: .7em; }
.facts > div > span { display: block; margin-top: 6px; font-size: 13px; line-height: 1.5; color: var(--muted); }
.star { font-size: .55em; color: var(--gold); vertical-align: .35em; }

/* Section headings */
.section-heading .eyebrow, .details-section .eyebrow, .setting .eyebrow { margin-bottom: 20px; }
.section-top { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: 32px; }
.section-top h2 { margin-top: 16px; }
.section-top > p { max-width: 34ch; font-size: 16px; color: var(--ink-2); }

/* 01 The home */
.home-section { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 4vw, 56px) clamp(40px, 7vw, 96px); padding-bottom: 64px; }
.home-section .pair { grid-column: 1 / -1; }
.home-copy { max-width: var(--measure); padding-top: 40px; }
.section-heading .lead { max-width: 24ch; margin-top: 28px; font: italic 300 var(--fs-lead)/1.4 var(--serif); color: var(--ink-2); }
.home-copy .text-link { margin-top: 24px; }

/* 02 Photos */
.photos-section { padding: clamp(32px, 5vw, 64px) 0 0; }
/* Photo figures. .pair: a wide photo beside a tall one cropped to the same height.
   .trio: three portrait photos. .trio-wide: three landscape ones. */
.ph { display: flex; flex-direction: column; min-width: 0; }
.ph a { position: relative; display: block; overflow: hidden; border-radius: var(--r); background: var(--surface); }
.ph img { width: 100%; height: auto; object-fit: cover; transition: scale var(--slow) var(--ease); }
.ph figcaption { padding-top: 10px; font: italic 400 15px/1.45 var(--serif); color: var(--muted); }
@media (hover: hover) { .ph a:hover img, .tile a:hover img { scale: 1.03; } .ph a:hover + figcaption { color: var(--ink); } }
.pair { display: grid; grid-template-columns: 3fr 2fr; gap: 20px; }
.pair > .ph:first-child img { aspect-ratio: 4 / 3; }
.ph-fill a { flex: 1; }
.ph-fill img { position: absolute; inset: 0; height: 100%; }
/* .pair-rev: tall photo first, then a wide one at its own 4:3 shape. */
.pair-rev { grid-template-columns: 2fr 3fr; }
.pair-rev > .ph:last-child img { aspect-ratio: 4 / 3; }
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.trio .ph img { aspect-ratio: 3 / 4; }
.trio-wide .ph img { aspect-ratio: 4 / 3; }
.looks { display: grid; gap: 48px; }
/* The way into photos.html: a full button and a lead-size line, so it reads as the next step, not a footnote. */
.gallery-foot { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-top: 40px; padding-top: 28px; border-top: var(--hair); }
.gallery-foot p { font: italic 400 var(--fs-lead)/1.35 var(--serif); color: var(--ink-2); }

/* 03 Details */
.details-section { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(40px, 7vw, 96px); }
.details-intro { max-width: 30ch; margin-top: 24px; }
.details-section .text-link { margin-top: 24px; }
@media (min-width: 761px) { .details-section > div:first-child { position: sticky; top: 32px; align-self: start; } }
.details-list details { border-top: var(--hair); }
.details-list details:last-of-type { border-bottom: var(--hair); }
summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 44px; padding: 22px 0; font: 400 var(--fs-h3)/1.2 var(--serif); color: var(--ink); }
summary::-webkit-details-marker { display: none; }
summary small { display: none; margin-right: 16px; font: 500 var(--fs-caption) var(--sans); letter-spacing: .1em; color: var(--muted); font-variant-numeric: tabular-nums; }
.toggle { position: relative; flex: none; width: 14px; height: 14px; }
.toggle::before, .toggle::after { content: ''; position: absolute; inset: 50% 0 auto; height: 1px; background: var(--ink); transition: rotate var(--slow) var(--ease); }
.toggle::after { rotate: 90deg; }
details[open] .toggle::after { rotate: 0deg; }
.detail-body { padding: 0 0 28px; }
.detail-body p { margin-bottom: 12px; font-size: 15px; }
.detail-body ul { margin: 0; padding: 0; list-style: none; columns: 2; column-gap: 32px; }
.detail-body li { break-inside: avoid; padding: 10px 0; border-top: var(--hair); font-size: 15px; line-height: 1.5; }
.fine-print { margin-top: 24px; font-size: 13px; line-height: 1.6; color: var(--muted); }

/* Guest suite band */
.suite-band { background: var(--spruce); color: var(--on-dark-muted); }
.suite-band :is(h2, .rating > div, .text-link) { color: var(--on-dark); }
.suite-band h2 em { color: var(--larch); }
.suite-band :is(.eyebrow, .rating p, small, figcaption) { color: var(--on-dark-muted); }
.suite-band .text-link { border-color: rgb(246 242 234 / .4); }
.suite-band :focus-visible { outline-color: var(--larch); }
@media (hover: hover) { .suite-band .text-link:hover { color: var(--larch); border-color: var(--larch); } }
.suite-band .rating { padding-right: clamp(0px, 4vw, 56px); border-right: 1px solid var(--on-dark-line); }
.suite-band-inner { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(40px, 6vw, 80px); align-items: center; padding-block: var(--section); }
.suite-photos { padding-bottom: var(--section); }
.suite-photos .text-link { margin-top: 28px; }
.rating > div { display: flex; align-items: center; gap: 20px; margin-top: 16px; font: 300 clamp(5rem, 10vw, 7.5rem)/1 var(--serif); letter-spacing: -.04em; color: var(--ink); font-variant-numeric: lining-nums; }
.rating-stars { font: 15px var(--sans); letter-spacing: 3px; color: var(--larch); }
.rating p { margin-top: 12px; font-size: 14px; color: var(--muted); }
.suite-band-copy > p { max-width: 42ch; margin-top: 20px; }
.suite-band-copy .text-link { margin-top: 24px; }
.suite-band-copy small { display: block; max-width: 48ch; margin-top: 24px; font-size: 13px; line-height: 1.6; color: var(--muted); }

/* 04 Setting */
.setting { display: grid; grid-template-columns: 1.45fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.setting-photos { display: grid; gap: 20px; }
.setting-photos > .ph img { aspect-ratio: 4 / 3; }
.suite-photos [data-photo="suite-dining"] img { object-position: 50% 30%; }
.setting p:not(.eyebrow) { max-width: var(--measure); margin-top: 20px; }
.setting .text-link { margin-top: 28px; }
.setting-distances { grid-column: 1 / -1; }
.setting-distances .spec { grid-template-columns: repeat(6, 1fr); column-gap: 24px; }
.setting .setting-distances .fine-print { max-width: none; margin-top: 4px; }


/* Viewing */
.viewing { padding-block: var(--section); border-top: var(--hair); text-align: center; }
.viewing h2 { margin: 20px 0; }
.viewing > p:not(.eyebrow) { color: var(--ink-2); }
.viewing .button { margin-top: 28px; }
.viewing-more { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 32px; margin-top: 40px; padding-top: 28px; border-top: var(--hair); }

/* Footer */
:is(.footer-row, footer.wrap) { display: flex; justify-content: space-between; align-items: center; gap: 8px 24px; padding-block: 32px; border-top: var(--hair); }
footer .brand { font-size: 20px; }
:is(.footer-row, footer.wrap) > span, .footer-link { font-size: 14px; color: var(--muted); }
.site-footer { background: var(--spruce); color: var(--on-dark); }
.site-footer :focus-visible { outline-color: var(--larch); }
.sign-off { padding: clamp(72px, 10vw, 136px) 0 clamp(40px, 6vw, 72px); }
.sign-off-title { font: 300 clamp(4rem, 12vw, 10.5rem)/.92 var(--serif); letter-spacing: -.04em; color: var(--on-dark); }
.sign-off-title em { font-weight: 300; color: var(--larch); }
.sign-off-place { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 28px; font-size: .6875rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--on-dark-muted); }
.site-footer .footer-row { border-top: 1px solid var(--on-dark-line); }
.site-footer .brand { color: var(--on-dark); }
.site-footer .footer-row > span, .site-footer .footer-link { color: var(--on-dark-muted); text-decoration-color: rgb(246 242 234 / .3); }
.footer-link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; text-decoration: underline 1px var(--line-strong); text-underline-offset: 4px; transition: color var(--fast) var(--ease); }

/* Mobile enquire bar: shown on phones once the hero has scrolled away (app.js). */
.mobile-bar { display: none; }

/* Dialogs */
dialog { border: 0; padding: 0; color: var(--ink-2); }
dialog::backdrop { background: rgb(20 37 31 / .72); }
.text-dialog { width: min(520px, 92vw); padding: 48px 40px 36px; background: var(--paper); border-radius: var(--r); box-shadow: var(--shadow); }
.text-dialog > .icon-button { position: absolute; top: 10px; right: 10px; color: var(--ink); }
.text-dialog h2 { margin: 14px 0 20px; font-size: var(--fs-h3); }
.text-dialog > p:not([class]) { font-size: 16px; }
.text-dialog > .button { margin-top: 24px; }

/* Gallery */
.gallery-dialog { width: min(1100px, 94vw); max-width: 94vw; background: transparent; color: var(--on-ink); overflow: visible; }
.gallery-dialog::backdrop { background: rgb(15 25 20 / .96); }
.dialog-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
#gallery-counter { font-size: var(--fs-caption); letter-spacing: .14em; font-variant-numeric: tabular-nums; color: rgb(251 250 245 / .75); }
.gallery-stage { position: relative; display: flex; align-items: center; justify-content: center; min-height: 160px; }
.gallery-stage img { max-width: calc(100% - 128px); max-height: 78vh; max-height: 78dvh; object-fit: contain; border-radius: var(--r); }
.gallery-stage .icon-button { position: absolute; z-index: 1; border: 1px solid rgb(255 255 255 / .3); }
.previous { left: 0; }
.next { right: 0; }
#gallery-caption { max-width: 700px; min-height: 3.2em; margin: 16px auto 0; padding: 0 16px; text-align: center; font-size: 15px; color: rgb(251 250 245 / .85); }

/* Enquiry form */
.enquiry-dialog { width: min(620px, 92vw); max-height: 90vh; max-height: 90dvh; overflow: auto; }
.enquiry-dialog h2 { margin: 12px 0 16px; }
.enquiry-intro { font-size: 16px; color: var(--ink-2); }
.enquiry-dialog form { margin-top: 24px; }
.enquiry-dialog label, .share-link-label { display: block; margin: 0 0 16px; font-size: 14px; font-weight: 500; line-height: 1.5; color: var(--ink); }
.enquiry-dialog :is(input, select, textarea), .share-link-label input {
  display: block;
  width: 100%;
  min-height: 48px;
  margin-top: 6px;
  padding: 11px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  background-color: var(--field);
  color: var(--ink);
  font: 400 15px/1.45 var(--sans);
  transition: border-color var(--fast) var(--ease), box-shadow var(--fast) var(--ease);
}
.enquiry-dialog ::placeholder { color: #6f776f; }
.enquiry-dialog textarea { resize: vertical; }
.enquiry-dialog :is(input, select, textarea):focus, .share-link-label input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgb(34 55 45 / .16); }
.enquiry-dialog [aria-invalid=true] { border-color: var(--accent); background-color: #fdf7f4; }
.enquiry-dialog [aria-invalid=true]:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgb(155 98 68 / .22); }
.enquiry-dialog .optional { font-weight: 400; color: var(--muted); }
/* Residency checkbox: a native box beside its sentence, not a full-width text field. */
.enquiry-dialog .check { display: flex; gap: 12px; align-items: flex-start; margin: 8px 0 4px; font-weight: 400; }
.enquiry-dialog .check input { flex: none; width: 20px; height: 20px; min-height: 0; margin: 2px 0 0; padding: 0; accent-color: var(--ink); }
.enquiry-dialog .check input:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; box-shadow: none; }
.enquiry-dialog .check input[aria-invalid=true] { outline: 2px solid var(--accent); outline-offset: 2px; box-shadow: none; }
.enquiry-dialog .check + .field-error { margin: 0 0 4px 32px; }
.field-help { margin: 0 0 16px 32px; font-size: 13px; line-height: 1.5; color: var(--muted); }
.field-help a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
/* Honeypot for bots: off screen, out of the tab order and hidden from screen readers. */
.enquiry-dialog .trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 0 0 12px; padding: 12px 16px; border-radius: var(--r); background: #fdf7f4; font-size: 14px; line-height: 1.5; color: var(--error); }
.form-note { margin: 0 0 4px; font-size: 13px; line-height: 1.5; color: var(--muted); }
.field-error { display: block; margin-top: 6px; font-size: 13px; font-weight: 400; color: var(--error); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 8px; }
.enquiry-dialog form[aria-busy=true] [type=submit] { opacity: .6; cursor: progress; }
.enquiry-dialog:has(#enquiry-success:not([hidden])) :is(.eyebrow, #contact-title, .enquiry-intro) { display: none; }
#enquiry-success h3 { margin: 16px 0 10px; }
#enquiry-success p { font-size: 16px; }
#enquiry-success .success-mark { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--ink); font-size: 18px; }
#enquiry-success .button { margin-top: 24px; }

/* Share */
.share-link-label { margin-top: 24px; }
#native-share { display: flex; width: max-content; margin-top: 16px; }
#share-status { margin-top: 10px; font-size: 14px; }
.qr-share { display: flex; align-items: center; gap: 20px; margin-top: 24px; padding-top: 24px; border-top: var(--hair); }
.qr-share img { width: 120px; flex-shrink: 0; padding: 8px; background: #fff; border: var(--hair); border-radius: var(--r); }
.qr-share strong { font: 400 20px var(--serif); color: var(--ink); }
.qr-share p { margin: 6px 0 10px; font-size: 14px; color: var(--muted); }

/* Photos page */
.photos-heading { max-width: 44rem; padding: 64px 0 32px; }
.photos-heading h1 { margin: 16px 0 16px; font-size: var(--fs-h2); }
.photos-heading p:not(.eyebrow) { font-size: 17px; }
.chapter-nav { position: sticky; top: 0; z-index: 4; display: flex; gap: 28px; margin-bottom: 8px; background: color-mix(in srgb, var(--paper) 96%, transparent); border-bottom: var(--hair); overflow-x: auto; scrollbar-width: none; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.chapter-nav::-webkit-scrollbar { display: none; }
.site-header nav a[aria-current=page] { color: var(--ink); box-shadow: inset 0 -1px 0 var(--ink); }
.chapter-nav a { display: inline-flex; align-items: center; gap: 6px; min-height: 48px; white-space: nowrap; font-size: 15px; font-weight: 500; color: var(--muted); transition: color var(--fast) var(--ease); }
.chapter-nav span { font-size: 12px; font-weight: 400; font-variant-numeric: tabular-nums; }
@media (hover: hover) { .chapter-nav a:hover { color: var(--ink); } }
.chapter { padding-top: 56px; scroll-margin-top: 48px; }
.chapter-head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 24px; padding-top: 16px; border-top: 1px solid var(--ink); }
.chapter-head h2 { font-size: var(--fs-h3); }
.chapter-number, .chapter-count { font-size: var(--fs-caption); font-weight: 600; letter-spacing: .12em; color: var(--muted); font-variant-numeric: tabular-nums; }
.chapter-number { font: italic 400 15px/1 var(--serif); letter-spacing: 0; color: var(--accent); }
.chapter-count { margin-left: auto; font-weight: 400; letter-spacing: .04em; }
/* Justified rows: photos.js sets --ar (width / height) on each tile. Growing and basing each tile on
   its own ratio gives every photo in a row the same height, uncropped, with both edges flush.
   ::after soaks up the spare width on the last row so it stays at --row height. */
.tiles { --row: clamp(180px, 21vw, 280px); display: flex; flex-wrap: wrap; gap: 20px; }
.tiles::after { content: ''; flex: 999 1 0; }
.tile { position: relative; flex: var(--ar, 1.333) 1 calc(var(--ar, 1.333) * var(--row)); min-width: 0; }
.tile a { display: block; overflow: hidden; border-radius: var(--r); background: var(--surface); }
.tile img { width: 100%; height: auto; transition: scale var(--slow) var(--ease); }
.tiles-few { --row: clamp(200px, 26vw, 360px); }
.ai-label { position: absolute; top: 8px; left: 8px; padding: 2px 8px; border-radius: var(--r); background: rgb(20 37 31 / .72); color: var(--on-ink); font-size: 11px; letter-spacing: .04em; }
.photos-fallback { padding: 32px 0; color: var(--muted); }
.photos-end { margin-top: 64px; padding-block: var(--section); border-top: var(--hair); text-align: center; }
.photos-end h2 { margin: 20px 0 28px; }
.photos-end-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 20px 32px; }
.photos-page footer { padding-bottom: 36px; }

/* Details page: details.html. Reuses the photos page heading, chapter nav and chapter heads. */
.details-page .chapter-count { font-weight: 600; letter-spacing: .08em; }
.rooms + .pair, .spec-list + .pair { margin-top: 48px; }
.spec { display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px; margin: 0; }
.spec > div { padding: 14px 0 16px; border-top: var(--hair); }
@media (min-width: 1101px) { .spec-glance { grid-template-columns: repeat(5, 1fr); } }
.spec dt { font-size: .6875rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.spec dd { margin: 6px 0 0; font: 400 19px/1.35 var(--serif); color: var(--ink); font-variant-numeric: lining-nums; }
.rooms { display: grid; gap: 36px; }
/* Room lists flow down then across, so a long list doesn't leave holes beside short ones. */
.rooms-3 { display: block; columns: 3; column-gap: clamp(28px, 4vw, 56px); }
.rooms-3 .room { break-inside: avoid; margin-bottom: 44px; }
.room h3 { margin-bottom: 12px; font-size: 1.25rem; }
.details-page .chapter { padding-top: clamp(56px, 7vw, 96px); }
.details-page .chapter-head { padding-top: 20px; margin-bottom: 32px; }
.details-page .chapter-head h2 { font-size: clamp(1.75rem, 2.6vw, 2.25rem); }
.room > p { padding-top: 10px; border-top: var(--hair); font-size: 15px; line-height: 1.5; }
.spec-list { margin: 0; padding: 0; list-style: none; }
.spec-list li { break-inside: avoid; padding: 10px 0; border-top: var(--hair); font-size: 15px; line-height: 1.5; }
.spec-list-2 { columns: 2; column-gap: 48px; }
.log { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.log :is(th, td) { padding: 12px 16px 12px 0; border-top: var(--hair); text-align: left; vertical-align: top; font-weight: 400; }
.log thead th { border-top: 0; padding-top: 0; font-size: .6875rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.log tbody th { color: var(--ink); }
.log td:last-child { padding-right: 0; white-space: nowrap; font-variant-numeric: tabular-nums; }
.photos-end > p:not(.eyebrow) { max-width: var(--measure); margin: -8px auto 28px; color: var(--ink-2); }
.details-page .fine-print { margin-top: 28px; }

/* Wide screens */
@media (min-width: 1500px) { .hero-photo { min-height: 640px; } }

/* Tablet */
@media (max-width: 1100px) {
  .setting-distances .spec { grid-template-columns: repeat(3, 1fr); }
  .site-header nav { gap: 22px; }
  .facts > div { padding-right: 20px; }
  .facts > div + div { padding-left: 20px; }
  .facts strong { font-size: 22px; }
  .rooms-3 { columns: 2; }
  .chapter-nav { gap: 20px; }
  .chapter-nav a { font-size: 14px; }
}

/* Stack the hero before the two columns get cramped. */
@media (max-width: 900px) {
  .hero { display: flex; flex-direction: column; align-items: stretch; gap: 28px; padding: 0 0 48px; }
  .hero-photo { order: -1; min-height: 0; margin-inline: calc(-1 * var(--gutter)); }
  .hero-photo > a { flex: none; aspect-ratio: 4 / 3; border-radius: 0; }
  .hero-photo figcaption { padding-inline: var(--gutter); }
  .hero-copy { max-width: 40rem; }
}

/* Phones */
@media (max-width: 760px) {
  .site-header { flex-wrap: wrap; height: auto; gap: 0 10px; padding-top: 14px; }
  .brand { font-size: 21px; gap: 10px; }
  .brand svg { width: 30px; }
  .site-header nav { order: 3; width: 100%; gap: 22px; margin-top: 2px; overflow-x: auto; scrollbar-width: none; white-space: nowrap; }
  .site-header nav::-webkit-scrollbar { display: none; }
  .site-header nav a:focus-visible { outline-offset: -3px; }
  .site-header .header-cta { display: none; }

  .hero-copy .eyebrow { margin-bottom: 16px; }
  .intro { margin-top: 16px; font-size: 16px; }
  .hero .button { width: 100%; margin-top: 24px; }
  .hero-photo figcaption > span { display: none; }
  .hero-photo figcaption { padding-top: 10px; }
  html { scroll-padding-bottom: 88px; }

  .facts { grid-template-columns: 1fr 1fr; gap: 0 20px; border: 0; }
  .facts > div, .facts > div + div { padding: 16px 0 20px; border: 0; border-top: var(--hair); }
  .facts strong { font-size: clamp(19px, 5.6vw, 22px); }

  .home-section, .details-section, .setting { grid-template-columns: 1fr; gap: 24px; }
  .setting-distances .spec { grid-template-columns: 1fr 1fr; column-gap: 20px; }
  .home-section { padding-bottom: 40px; }
  .home-copy { padding-top: 0; }
  .section-top { display: block; margin-bottom: 24px; }
  .section-top > p { margin-top: 12px; max-width: none; }


  .ph figcaption { padding-top: 8px; font-size: 14px; }
  .pair { grid-template-columns: 1fr; gap: 28px; }
  .ph-fill a { flex: none; aspect-ratio: 1; }
  .pair-rev { grid-template-columns: 2fr 3fr; gap: 12px; }
  .pair-rev .ph-fill a { flex: 1; aspect-ratio: auto; }
  .looks { gap: 28px; }
  /* Three-ups scroll sideways on phones, bleeding to the screen edge. */
  .trio { display: flex; gap: 12px; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none; }
  .trio::-webkit-scrollbar { display: none; }
  .trio > .ph { flex: 0 0 72%; scroll-snap-align: start; }
  .trio-wide > .ph { flex-basis: 84%; }
  .gallery-foot { flex-direction: column; align-items: stretch; gap: 16px; }

  .detail-body ul { columns: 1; }

  .suite-band-inner { grid-template-columns: 1fr; gap: 20px; }
  .suite-band .rating { padding: 0 0 24px; border-right: 0; border-bottom: 1px solid var(--on-dark-line); }

  .setting-photos { order: 1; gap: 28px; }


  .viewing { text-align: left; }
  .viewing .button { width: 100%; }
  .viewing-more { flex-direction: column; align-items: start; }

  :is(.footer-row, footer.wrap) { flex-wrap: wrap; padding: 28px 0 112px; }
  footer .brand { width: 100%; margin-bottom: 4px; }
  :is(.footer-row, footer.wrap) > div { margin-left: -10px; }

  .mobile-bar {
    position: fixed;
    inset: auto 0 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px var(--gutter) max(10px, env(safe-area-inset-bottom));
    background: var(--paper);
    border-top: var(--hair);
    box-shadow: 0 -6px 24px rgb(20 37 31 / .06);
    transition: transform var(--slow) var(--ease), visibility var(--slow);
  }
  .mobile-bar.is-hidden { transform: translateY(100%); visibility: hidden; }
  .mobile-bar > span { font: 400 18px/1.2 var(--serif); color: var(--ink); }
  .mobile-bar small { display: block; margin-top: 2px; font: 13px var(--sans); color: var(--muted); }
  .mobile-bar .button { min-height: 44px; padding: 0 18px; }

  /* Dialogs become sheets from the bottom of the screen. */
  .text-dialog { width: 100%; max-width: 100%; margin: auto 0 0; padding: 40px var(--gutter) max(28px, env(safe-area-inset-bottom)); border-radius: 12px 12px 0 0; }
  .text-dialog > .icon-button { top: 6px; right: 8px; }
  .enquiry-dialog { max-height: 94dvh; padding-top: 0; padding-bottom: 0; }
  .enquiry-dialog > .icon-button { position: sticky; top: 0; z-index: 2; margin: 6px -12px 0 auto; background: var(--paper); }
  .enquiry-dialog form { margin-top: 20px; }
  .enquiry-dialog :is(input, select, textarea), .share-link-label input { font-size: 16px; }
  .enquiry-dialog label { margin-bottom: 14px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .form-bottom {
    position: sticky;
    bottom: 0;
    z-index: 1;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin: 8px calc(-1 * var(--gutter)) 0;
    padding: 14px var(--gutter) max(16px, env(safe-area-inset-bottom));
    background: var(--paper);
    border-top: var(--hair);
  }
  #enquiry-success { padding-bottom: 32px; }
  #enquiry-success .button { width: 100%; }
  .qr-share { gap: 16px; }
  .qr-share img { width: 104px; }

  .gallery-dialog { width: 100%; max-width: 100%; height: 100dvh; max-height: 100dvh; margin: 0; background: var(--scrim); padding: 8px 12px max(16px, env(safe-area-inset-bottom)); }
  .gallery-dialog[open] { display: grid; grid-template-rows: auto 1fr auto; }
  .gallery-stage { flex-wrap: wrap; align-content: end; gap: 16px 0; }
  .gallery-stage img { order: -1; flex-basis: 100%; width: 100%; max-width: 100%; height: auto; max-height: 68dvh; }
  .gallery-stage .icon-button { position: static; }
  .previous { margin-right: auto; }
  .next { margin-left: auto; }
}

@media (max-width: 760px) {
  .photos-heading { padding: 28px 0 20px; }
  .photos-heading p:not(.eyebrow) { font-size: 16px; }
  .chapter-nav { gap: 22px; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
  .chapter { padding-top: 40px; }
  .tiles, .tiles-few { --row: 100px; gap: 10px; }
  .photos-end { margin-top: 40px; text-align: left; }
  .photos-end-actions { flex-direction: column; align-items: stretch; }
  .photos-end-actions .text-link { align-self: start; }

  .rooms + .pair, .spec-list + .pair { margin-top: 32px; }
  .rooms-3 { columns: 1; }
  .rooms-3 .room { margin-bottom: 32px; }
  :is(.details-page, .photos-page) .footer-row { padding-bottom: 36px; }
  .spec { column-gap: 20px; }
  .spec dd { font-size: 17px; }
  .spec-list-2 { columns: 1; }
  .log thead { display: none; }
  .log tr { display: grid; grid-template-columns: 1fr auto; column-gap: 16px; padding: 12px 0; border-top: var(--hair); }
  .log :is(th, td) { padding: 0; border: 0; }
  .log tbody th { grid-column: 1 / -1; margin-bottom: 2px; }
  .log td { font-size: 14px; color: var(--muted); }
  .photos-end > p:not(.eyebrow) { margin-inline: 0; }
}

/* Very narrow phones: keep all four nav links visible. */
@media (max-width: 360px) {
  .site-header nav { gap: 14px; font-size: 14px; }
}

/* Motion */
@media (prefers-reduced-motion: no-preference) {
  dialog[open] { animation: rise var(--slow) var(--ease); }
  @keyframes rise { from { opacity: 0; translate: 0 12px; } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
