/* The room-by-room site. One stylesheet, no outside fonts or files. */

:root {
  --paper: #f6f1e6;
  --card: #fffdf7;
  --tint: #ede6d6;
  --ink: #1c2a23;
  --muted: #56625a;
  --line: #d9cfba;
  --pine: #24523c;
  --berry: #9a1b47;
  --berry-deep: #78133a;
  --good: #1f6b45;
  --accent: var(--pine);

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(28, 42, 35, .06), 0 8px 24px rgba(28, 42, 35, .08);
}

/* Each room carries the colour of its own walls. */
.accent-teal { --accent: #1c8a87; }
.accent-raspberry { --accent: #a01d4b; }
.accent-goldenrod { --accent: #b98816; }
.accent-oak { --accent: #8a5b2c; }
.accent-pine { --accent: #2c5e45; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.6 var(--sans);
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--pine); text-underline-offset: 3px; }
a:hover { color: var(--berry); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0; letter-spacing: -.01em; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--pine); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: clamp(18px, 4vw, 40px); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--card); padding: 8px 14px; border-radius: 6px; z-index: 50; }
.skip:focus { left: 8px; }

.eyebrow { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: .9em; }
.lede { font-size: 1.15rem; color: #2c3a33; }
.notice { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 6px; padding: 14px 18px; font-size: .95rem; }
.notice p:last-child { margin-bottom: 0; }

.ribbon { margin: 0; padding: 7px 16px; background: var(--ink); color: #f6f1e6; font-size: .85rem; text-align: center; }

/* --- buttons and fields -------------------------------------------------- */
.button {
  display: inline-block; border: 0; border-radius: 8px; cursor: pointer;
  background: var(--berry); color: #fff; font: 600 1rem/1.2 var(--sans);
  padding: 13px 20px; text-decoration: none; text-align: center;
  transition: background .15s ease, transform .15s ease;
}
.button:hover { background: var(--berry-deep); color: #fff; }
.button:active { transform: translateY(1px); }
.button[disabled] { opacity: .6; cursor: progress; }
.button-wide { width: 100%; }
.link-button { border: 0; background: none; padding: 0; font: inherit; color: var(--pine); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.link-button:hover { color: var(--berry); }

.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.field label { font-size: .74rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.field input, .field select {
  width: 100%; min-height: 46px; padding: 9px 11px; border: 1px solid #b9ae96; border-radius: 8px;
  background: #fff; color: var(--ink); font: 1rem var(--sans); appearance: none; -webkit-appearance: none;
}
.field select {
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) 20px, calc(100% - 13px) 20px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 32px;
}
.field input:focus, .field select:focus { outline: 3px solid color-mix(in srgb, var(--pine) 45%, transparent); outline-offset: 0; border-color: var(--pine); }
.field-hint { margin: 0; font-size: .82rem; color: var(--muted); }
.field-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* --- masthead and footer -------------------------------------------------- */
.masthead { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.masthead-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 64px; }
.wordmark { font: 600 1.3rem var(--serif); color: var(--ink); text-decoration: none; letter-spacing: -.01em; margin: 0; white-space: nowrap; }
.wordmark span { text-decoration: underline wavy #1c8a87 1.5px; text-underline-offset: 6px; }
.wordmark:hover { color: var(--ink); }
.masthead nav { display: flex; gap: clamp(14px, 2.4vw, 30px); font-size: .95rem; }
.masthead nav a { color: var(--ink); text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.masthead nav a:hover { border-bottom-color: var(--berry); }

.footer { border-top: 1px solid var(--line); margin-top: 0; padding: 36px 0 44px; font-size: .95rem; color: var(--muted); }
.footer-row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 10px 30px; }
.footer p { margin: 0; }
.footer-small { font-size: .85rem; }

/* --- sections ---------------------------------------------------------------- */
.section { padding-block: clamp(48px, 7vw, 88px); }
.section-tint { background: var(--tint); border-block: 1px solid var(--line); }
.section-head { max-width: 62ch; margin-bottom: 28px; }
.section-head h2 { margin-bottom: 12px; }
.section-head p { color: var(--muted); margin: 0; }

/* --- photos -------------------------------------------------------------------- */
.shot { display: block; position: relative; overflow: hidden; border-radius: var(--radius); background: var(--tint); cursor: zoom-in; }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.shot:hover img { transform: scale(1.03); }
.fit-tall { object-position: 50% 68%; }

.gallery { position: relative; display: grid; gap: 10px; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: repeat(2, minmax(0, 1fr)); aspect-ratio: 2.3 / 1; }
.gallery .shot:first-child { grid-row: span 2; }
.gallery-more {
  position: absolute; right: 14px; bottom: 14px; border: 1px solid var(--ink); border-radius: 8px;
  background: var(--card); color: var(--ink); font: 600 .9rem var(--sans); padding: 9px 14px; cursor: pointer; box-shadow: var(--shadow);
}
.gallery-more:hover { background: var(--ink); color: var(--card); }

.strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-bottom: 14px; }
.strip .shot { aspect-ratio: 1; border-radius: 8px; }

/* --- home: hero --------------------------------------------------------------- */
.hero { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: clamp(28px, 5vw, 64px); align-items: center; padding-block: clamp(36px, 6vw, 76px) clamp(44px, 7vw, 92px); }
.hero h1 { margin-bottom: .45em; }
.hero .lede { max-width: 54ch; margin-bottom: 1.6em; }
.hero-photos { position: relative; padding-bottom: 8%; padding-left: 6%; }
.hero-main .shot { aspect-ratio: 4 / 3.3; box-shadow: var(--shadow); }
.hero-inset { position: absolute; left: 0; bottom: 0; width: 40%; transform: rotate(-2.5deg); }
.hero-inset .shot { aspect-ratio: 4 / 3; border: 7px solid var(--card); border-radius: 6px; box-shadow: 0 10px 30px rgba(28, 42, 35, .22); }

.search { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: end; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px; box-shadow: var(--shadow); }
.search .button { min-height: 46px; white-space: nowrap; }
.search-error { grid-column: 1 / -1; margin: 0; font-size: .95rem; color: var(--berry); }
.search-result { margin: 0 0 20px; padding: 12px 16px; border-left: 4px solid var(--good); border-radius: 6px; background: var(--card); font-weight: 600; }
.search-result.is-none { border-left-color: var(--berry); }
.search-error:empty, .search-result:empty { display: none; }

/* --- cards ------------------------------------------------------------------------ */
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.card { position: relative; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-top: 5px solid var(--accent); border-radius: var(--radius); overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; }
.card:hover, .house-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card-photo { aspect-ratio: 4 / 3; overflow: hidden; background: var(--tint); }
.card-photo img, .house-card-photo img { width: 100%; height: 100%; object-fit: cover; }
.card-body { display: flex; flex-direction: column; flex: 1; padding: 16px 18px 18px; }
.card-name { font-size: 1.35rem; margin-bottom: 6px; }
.card-name a { color: var(--ink); text-decoration: none; }
.card-name a::after { content: ""; position: absolute; inset: 0; }
.card-name a:hover { color: var(--accent); }
.card-tagline { margin-bottom: 10px; font-size: .97rem; }
.card-facts { font-size: .85rem; color: var(--muted); margin-bottom: 14px; }
.card-price { margin: auto 0 0; padding-top: 12px; border-top: 1px solid var(--line); font-size: .95rem; color: var(--muted); }
.card-price strong { font: 600 1.45rem var(--serif); color: var(--ink); }
.card-avail { display: block; font-size: .9rem; font-weight: 600; margin-top: 4px; }
.card-avail:empty { display: none; }
.card-avail.is-free { color: var(--good); }
.card-avail.is-taken { color: var(--muted); font-weight: 400; }
[data-unit].is-taken .card-photo img, [data-unit].is-taken .house-card-photo img { filter: grayscale(.85); opacity: .7; }

.house-card { position: relative; display: grid; grid-template-columns: 1.15fr 1fr; margin-top: 20px; background: var(--card); border: 1px solid var(--line); border-top: 5px solid var(--accent); border-radius: var(--radius); overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; }
.house-card-photo { position: relative; min-height: 320px; background: var(--tint); }
.house-card-photo img { position: absolute; inset: 0; }
.house-card-body { display: flex; flex-direction: column; justify-content: center; padding: clamp(22px, 4vw, 44px); }
.house-card .card-name { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-bottom: 12px; }
.house-card .card-price { margin-top: 8px; }

/* --- amenities, steps, rules --------------------------------------------------- */
.amenities { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 36px; margin-top: 36px; }
.amenities h3 { font: 600 .78rem var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.amenities li { padding: 9px 0; border-top: 1px solid var(--line); }
.amenities-tight { margin-top: 22px; gap: 18px 26px; font-size: .95rem; }

.booking-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.steps { counter-reset: step; display: grid; gap: 22px; }
.steps li { counter-increment: step; position: relative; padding-left: 64px; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: -4px; width: 44px; height: 44px; display: grid; place-items: center; border: 1.5px solid var(--ink); border-radius: 50%; font: 600 1.25rem var(--serif); background: var(--card); }
.steps h3 { margin-bottom: 4px; }
.steps p { margin: 0; color: #33423a; }
.rules { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 28px; }
.rules h2 { font-size: 1.4rem; margin-bottom: 14px; }
.rules li, .plain li { padding: 10px 0; border-top: 1px solid var(--line); }
.rules ul { margin-bottom: 16px; }
.rules p { margin: 0; font-size: .95rem; color: var(--muted); }

/* --- room page ---------------------------------------------------------------------- */
.crumb { margin: 22px 0 14px; font-size: .95rem; }
.crumb a { text-decoration: none; }
.room-head { margin-bottom: 22px; }
.room-head h1 { display: inline; background: linear-gradient(transparent 82%, color-mix(in srgb, var(--accent) 38%, transparent) 82%); }
.room-facts { margin: 12px 0 0; color: var(--muted); }

.mosaic { position: relative; display: grid; gap: 10px; }
.mosaic-5 { grid-template-columns: 2fr 1fr 1fr; grid-template-rows: repeat(2, minmax(0, 1fr)); aspect-ratio: 2.2 / 1; }
.mosaic-5 .shot:first-child { grid-row: span 2; }
.mosaic-3 { grid-template-columns: 1.9fr 1fr; grid-template-rows: repeat(2, minmax(0, 1fr)); aspect-ratio: 2.1 / 1; }
.mosaic-3 .shot:first-child { grid-row: span 2; }
.mosaic-2 { grid-template-columns: 1fr 1fr; aspect-ratio: 2.5 / 1; }
.mosaic-1 { aspect-ratio: 2.2 / 1; }
/* One upright photo: show all of it, framed, instead of cropping it to a strip. */
.mosaic-1.mosaic-tall { aspect-ratio: auto; justify-items: center; padding: clamp(18px, 3vw, 34px); border-radius: var(--radius); background: color-mix(in srgb, var(--accent) 16%, var(--paper)); }
.mosaic-1.mosaic-tall .shot { width: min(100%, 420px); border: 8px solid var(--card); border-radius: 6px; box-shadow: 0 12px 34px rgba(28, 42, 35, .22); }
.mosaic-1.mosaic-tall .shot img { object-fit: contain; }

.room-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(28px, 5vw, 68px); align-items: start; padding-block: clamp(30px, 5vw, 52px) clamp(48px, 7vw, 84px); }
.room-text section + section { margin-top: 38px; padding-top: 34px; border-top: 1px solid var(--line); }
.room-text h2 { font-size: 1.5rem; margin-bottom: 16px; }
.room-text p { max-width: 64ch; }
.ticks li { position: relative; padding: 9px 0 9px 30px; border-top: 1px solid var(--line); }
.ticks li:first-child, .plain li:first-child { border-top: 0; }
.ticks li::before { content: ""; position: absolute; left: 4px; top: 17px; width: 12px; height: 7px; border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: rotate(-45deg); }

.room-side { position: sticky; top: 88px; }
.reserve { display: grid; gap: 14px; background: var(--card); border: 1px solid var(--line); border-top: 5px solid var(--accent); border-radius: 14px; padding: 22px; box-shadow: var(--shadow); }
.reserve-price { margin: 0; color: var(--muted); }
.reserve-price strong { font: 600 2rem var(--serif); color: var(--ink); }
.reserve-includes { margin: -10px 0 4px; font-size: .88rem; color: var(--muted); }
.reserve-dates { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.reserve-result:empty { display: none; }
.reserve-result { border-radius: 8px; padding: 12px 14px; font-size: .95rem; background: var(--tint); }
.reserve-result.is-free { background: color-mix(in srgb, var(--good) 11%, var(--card)); border: 1px solid color-mix(in srgb, var(--good) 35%, transparent); }
.reserve-result.is-taken { background: color-mix(in srgb, var(--berry) 8%, var(--card)); border: 1px solid color-mix(in srgb, var(--berry) 30%, transparent); }
.reserve-result p { margin: 0; }
.reserve-result .sum { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; padding-top: 8px; border-top: 1px solid color-mix(in srgb, var(--good) 30%, transparent); }
.reserve-result .sum strong { font: 600 1.15rem var(--serif); }
.reserve-result .state { font-weight: 600; }
.reserve-result.is-free .state { color: var(--good); }
.reserve-ask { display: grid; gap: 12px; }
.reserve-note { margin: 0; font-size: .85rem; color: var(--muted); text-align: center; }

.bottom-bar { display: none; }

/* --- booking page ---------------------------------------------------------------- */
.booking-page { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; padding-block: clamp(36px, 6vw, 72px); }
.booking-page h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: .4em; }
.status { display: inline-block; margin-bottom: 16px; padding: 5px 12px; border-radius: 999px; font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.status-held { background: #f3e2b3; color: #5b4300; }
.status-confirmed { background: #cfe6d6; color: #124a2c; }
.summary { margin: 26px 0; border-top: 1px solid var(--line); }
.summary div { display: grid; grid-template-columns: 130px 1fr; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.summary dt { color: var(--muted); font-size: .9rem; }
.summary dd { margin: 0; }
.code { font: 600 1.15rem ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .12em; }
.booking-photo { border-radius: var(--radius); overflow: hidden; border-top: 5px solid var(--accent); box-shadow: var(--shadow); }
.booking-photo img { width: 100%; }

.missing { padding-block: clamp(60px, 12vw, 140px); max-width: 760px; }
.missing h1 { margin-bottom: .5em; }

/* --- photo viewer ------------------------------------------------------------------ */
.viewer { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #12170f; color: #f1ece0; }
.viewer::backdrop { background: #12170f; }
.viewer[open] { display: grid; grid-template-rows: auto minmax(0, 1fr); }
.viewer-bar { display: flex; align-items: center; justify-content: space-between; padding: 12px 18px; }
.viewer-count { margin: 0; font-size: .9rem; opacity: .8; }
.viewer-close, .viewer-step { border: 1px solid rgba(241, 236, 224, .4); border-radius: 8px; background: rgba(18, 23, 15, .6); color: inherit; font: 600 .95rem var(--sans); padding: 9px 14px; cursor: pointer; }
.viewer-close:hover, .viewer-step:hover { background: #f1ece0; color: #12170f; }
.viewer-stage { margin: 0; min-height: 0; display: grid; grid-template-rows: minmax(0, 1fr) auto; justify-items: center; padding: 0 clamp(12px, 7vw, 96px) 18px; }
.viewer-stage img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 6px; align-self: center; }
.viewer-stage figcaption { padding-top: 12px; font-size: .95rem; text-align: center; opacity: .9; }
.viewer-step { position: absolute; top: 50%; transform: translateY(-50%); font-size: 1.2rem; padding: 12px 15px; }
.viewer-prev { left: 14px; }
.viewer-next { right: 14px; }

/* --- narrower screens ------------------------------------------------------------- */
@media (max-width: 1000px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .room-grid { grid-template-columns: minmax(0, 1fr) 340px; }
}

@media (max-width: 860px) {
  body { font-size: 16px; }
  .masthead nav a:nth-child(n+3) { display: none; }
  .hero, .booking-grid, .booking-page, .room-grid, .house-card { grid-template-columns: minmax(0, 1fr); }
  .hero-photos { order: -1; }
  .gallery, .mosaic-5, .mosaic-3 { grid-template-columns: 1fr 1fr; grid-template-rows: none; aspect-ratio: auto; }
  .gallery .shot, .mosaic-5 .shot, .mosaic-3 .shot { aspect-ratio: 4 / 3; }
  .gallery .shot:first-child, .mosaic-5 .shot:first-child, .mosaic-3 .shot:first-child { grid-column: 1 / -1; grid-row: auto; aspect-ratio: 3 / 2; }
  .mosaic-2, .mosaic-1 { aspect-ratio: 1.7 / 1; }
  .strip { grid-template-columns: repeat(3, 1fr); }
  .amenities { grid-template-columns: 1fr; gap: 22px; }
  .house-card-photo { min-height: 0; aspect-ratio: 3 / 2; }
  .room-side { position: static; }
  .booking-photo { order: -1; }
  .viewer-step { top: auto; bottom: 14px; transform: none; }
  .viewer-stage { padding-bottom: 70px; }

  .page-room { padding-bottom: 76px; }
  .bottom-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 15; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 18px calc(10px + env(safe-area-inset-bottom)); background: var(--card); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(28, 42, 35, .1); color: var(--muted); text-decoration: none; }
  .bottom-bar strong { font: 600 1.3rem var(--serif); color: var(--ink); }
  .bottom-bar .button { padding: 11px 18px; }
}

@media (max-width: 560px) {
  .cards { grid-template-columns: minmax(0, 1fr); }
  .masthead nav a:nth-child(n+2) { display: none; }
  .summary div { grid-template-columns: 1fr; gap: 2px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
