/* ==========================================================================
   Sorelle Lofts — stylesheet v29
   One file, built on six colour tokens. Edit the tokens to re-theme the site.
   ========================================================================== */

/* ---------- Fonts (self-hosted, SIL Open Font License, see assets/fonts) --- */
@font-face {
  font-family: "Fraunces";
  src: url("assets/fonts/fraunces-var.woff2") format("woff2");
  font-weight: 300 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("assets/fonts/dm-sans-var.woff2") format("woff2");
  font-weight: 100 1000;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens -------------------------------------------------------- */
:root {
  /* The six colour tokens */
  --paper: #f7f2ea; /* page background */
  --sand: #ece3d6; /* alternate sections, cards */
  --ink: #2a2823; /* text, footer */
  --muted: #635c52; /* captions, fine print */
  --accent: #a14e2f; /* terracotta: the only accent */
  --olive: #5f6447; /* links, tags */

  /* Derived from the tokens (no new colours) */
  --line: color-mix(in oklab, var(--ink) 14%, transparent);
  --line-strong: color-mix(in oklab, var(--ink) 26%, transparent);
  --accent-hover: color-mix(in oklab, var(--accent) 82%, black);
  --accent-soft: color-mix(in oklab, var(--accent) 14%, var(--paper));
  --glass: color-mix(in oklab, var(--paper) 90%, transparent);

  /* Type */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  /* Shape */
  --r-sm: 12px;
  --r-lg: 20px;
  --r-pill: 999px;
  --shadow: 0 1px 2px rgb(42 40 35 / 0.06), 0 12px 32px -12px rgb(42 40 35 / 0.18);

  /* Layout */
  --header-h: 72px;
  --gutter: clamp(16px, 5vw, 48px);
  --max: 1240px;
  --section: clamp(64px, 9vw, 128px);
}
@media (max-width: 760px) {
  :root {
    --header-h: 64px;
  }
}

/* ---------- Base ---------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: inherit;
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
}
h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 350;
  font-optical-sizing: auto;
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 {
  font-size: clamp(44px, 6.2vw, 88px);
}
h2 {
  font-size: clamp(32px, 4.2vw, 54px);
}
h3 {
  font-size: clamp(22px, 2vw, 27px);
  line-height: 1.2;
  letter-spacing: -0.01em;
}
p {
  margin: 0 0 1.1em;
  max-width: 62ch;
  text-wrap: pretty;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
::selection {
  background: var(--accent-soft);
}
.container {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section {
  padding-block: var(--section);
}
.section-sand {
  background: var(--sand);
}
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 200;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 16px;
  border-radius: var(--r-sm);
}
.skip:focus {
  top: 12px;
}

/* ---------- Small type helpers ------------------------------------------- */
.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--olive);
  margin-bottom: 18px;
}
.lead {
  font-size: clamp(18px, 1.5vw, 20px);
  line-height: 1.55;
}
.fine {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
}
.fine a {
  color: var(--ink);
}
.photo-credit {
  font-size: 12px;
  color: var(--muted);
  margin-top: 14px;
}
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  font-size: 13px;
  line-height: 1.3;
  color: var(--ink);
  background: color-mix(in oklab, var(--paper) 60%, transparent);
}
.chip svg {
  width: 14px;
  height: 14px;
  flex: none;
  color: var(--olive);
}

/* ---------- Buttons & links ---------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 22px;
  border: 1px solid var(--accent);
  border-radius: var(--r-sm);
  background: var(--accent);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background-color 0.2s,
    border-color 0.2s,
    color 0.2s,
    transform 0.2s,
    box-shadow 0.2s;
}
.btn svg {
  width: 18px;
  height: 18px;
  flex: none;
}
.btn:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}
.btn:active {
  transform: translateY(1px);
}
.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-secondary:hover {
  background: color-mix(in oklab, var(--ink) 6%, transparent);
  border-color: var(--ink);
  color: var(--ink);
}
.btn-light {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--ink);
}
.btn-light:hover {
  background: #fff;
  border-color: #fff;
  color: var(--ink);
}
.btn-sm {
  min-height: 42px;
  padding: 9px 16px;
  font-size: 14px;
}
.btn-block {
  width: 100%;
}
.btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}
.link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  color: var(--olive);
  font-weight: 600;
  font-size: 15px;
  text-decoration: underline;
  text-decoration-color: color-mix(in oklab, var(--olive) 45%, transparent);
  text-underline-offset: 0.3em;
}
.link:hover {
  text-decoration-color: currentColor;
}
.link svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s;
}
.link:hover svg {
  transform: translateX(3px);
}
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin-top: 28px;
}

/* ---------- Header -------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: var(--glass);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
  transition:
    background-color 0.3s,
    border-color 0.3s,
    color 0.3s;
}
.site-header .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex: none;
}
.brand-mark {
  width: 52px;
  height: auto;
}
.brand-word {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 22px;
  letter-spacing: 0.2em;
  line-height: 1;
  color: var(--accent);
  transition: color 0.3s;
}
.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav > a:not(.btn) {
  padding: 10px 14px;
  border-radius: var(--r-sm);
  font-size: 15px;
  text-decoration: none;
}
.nav > a:not(.btn):hover,
.nav > a[aria-current="page"] {
  background: color-mix(in oklab, var(--ink) 6%, transparent);
}
.nav .btn {
  margin-left: 8px;
}
.menu-btn {
  display: none;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  background: transparent;
  font-size: 14px;
  font-weight: 600;
}
.menu-btn svg {
  width: 18px;
  height: 18px;
}

/* Homepage: header floats over the hero, then turns solid on scroll */
.has-overlay-header .site-header {
  position: fixed;
  inset: 0 0 auto 0;
  background: transparent;
  border-bottom-color: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  color: var(--paper);
}
.has-overlay-header .site-header .brand-word {
  color: var(--paper);
}
.has-overlay-header .site-header .menu-btn {
  border-color: color-mix(in oklab, var(--paper) 55%, transparent);
}
.has-overlay-header .site-header .nav > a:not(.btn):hover {
  background: color-mix(in oklab, var(--paper) 14%, transparent);
}
.has-overlay-header .site-header .btn {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--ink);
}
.has-overlay-header .site-header.is-solid {
  background: var(--glass);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom-color: var(--line);
  color: var(--ink);
}
.has-overlay-header .site-header.is-solid .brand-word {
  color: var(--accent);
}
.has-overlay-header .site-header.is-solid .menu-btn {
  border-color: var(--line-strong);
}
.has-overlay-header .site-header.is-solid .btn {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.has-overlay-header .site-header.is-solid .nav > a:not(.btn):hover {
  background: color-mix(in oklab, var(--ink) 6%, transparent);
}

/* Booking chooser (popover from the header button) */
.book-pop {
  position: fixed;
  inset: calc(var(--header-h) + 8px) var(--gutter) auto auto;
  margin: 0;
  width: min(380px, calc(100vw - 2 * var(--gutter)));
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--paper);
  color: var(--ink);
  box-shadow: var(--shadow);
}
.book-pop::backdrop {
  background: transparent;
}
.book-pop p {
  margin: 6px 10px 10px;
  font-size: 13px;
  color: var(--muted);
}
.book-option {
  display: grid;
  grid-template-columns: 76px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 8px;
  border-radius: var(--r-sm);
  text-decoration: none;
}
.book-option:hover {
  background: var(--sand);
}
.book-option img {
  width: 76px;
  height: 56px;
  object-fit: cover;
  border-radius: 8px;
}
.book-option strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 19px;
}
.book-option span {
  font-size: 13px;
  color: var(--muted);
}
.book-option svg {
  width: 18px;
  height: 18px;
  color: var(--accent);
}

/* Full-screen mobile menu */
.menu-sheet {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--paper);
  color: var(--ink);
}
.menu-sheet::backdrop {
  background: rgb(42 40 35 / 0.4);
}
.menu-sheet[open] {
  display: flex;
  flex-direction: column;
  animation: sheet-in 0.32s cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes sheet-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}
.menu-top {
  height: var(--header-h);
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: var(--gutter);
  border-bottom: 1px solid var(--line);
}
.menu-body {
  flex: 1;
  overflow-y: auto;
  padding: 28px var(--gutter) 40px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.menu-links {
  display: flex;
  flex-direction: column;
}
.menu-links a {
  font-family: var(--font-display);
  font-size: 36px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  padding: 8px 0;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.menu-lofts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.menu-loft {
  text-decoration: none;
}
.menu-loft img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--r-sm);
  margin-bottom: 8px;
}
.menu-loft strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 20px;
}
.menu-loft span {
  font-size: 13px;
  color: var(--accent);
  font-weight: 600;
}
.menu-contact {
  display: grid;
  gap: 10px;
}
.menu-contact a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  text-decoration: none;
  font-size: 15px;
}
.menu-contact svg {
  width: 18px;
  height: 18px;
  color: var(--olive);
  flex: none;
}

/* ---------- Homepage hero ------------------------------------------------- */
.hero {
  position: relative;
  min-height: max(640px, 100svh);
  display: flex;
  align-items: flex-end;
  color: var(--paper);
  isolation: isolate;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgb(28 24 18 / 0.45) 0%, rgb(28 24 18 / 0) 26%),
    linear-gradient(90deg, rgb(28 24 18 / 0.72) 0%, rgb(28 24 18 / 0.25) 62%, rgb(28 24 18 / 0.1) 100%),
    linear-gradient(0deg, rgb(28 24 18 / 0.55) 0%, rgb(28 24 18 / 0) 45%);
}
.hero-content {
  padding-top: calc(var(--header-h) + 48px);
  padding-bottom: clamp(32px, 6vh, 64px);
}
.hero .eyebrow {
  color: var(--paper);
  opacity: 0.9;
}
.hero h1 {
  max-width: 12ch;
  margin-bottom: 20px;
}
.hero .lead {
  max-width: 44ch;
  color: color-mix(in oklab, var(--paper) 92%, transparent);
  margin-bottom: 32px;
}
.hero-location {
  position: absolute;
  right: var(--gutter);
  top: calc(var(--header-h) + 20px);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.85;
}

/* Availability pill */
.pill-form {
  display: grid;
  grid-template-columns: auto minmax(150px, 1fr) minmax(150px, 1fr) minmax(96px, 0.6fr) auto;
  align-items: stretch;
  gap: 4px;
  max-width: 940px;
  padding: 8px;
  border: 1px solid color-mix(in oklab, var(--paper) 40%, transparent);
  border-radius: 24px;
  background: color-mix(in oklab, var(--paper) 90%, transparent);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  backdrop-filter: blur(16px) saturate(1.3);
  color: var(--ink);
  box-shadow: 0 24px 60px -24px rgb(0 0 0 / 0.5);
}
.pill-field {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 8px 16px;
  border-radius: 16px;
}
.pill-field + .pill-field::before {
  content: "";
  position: absolute;
  left: -2px;
  top: 14px;
  bottom: 14px;
  width: 1px;
  background: var(--line);
}
.pill-field:focus-within {
  background: #fff;
}
.pill-field input {
  width: 100%;
  min-width: 0;
  min-height: 32px;
  padding: 2px 0;
  border: 0;
  background: transparent;
  font-size: 16px;
  outline: none;
}
.pill-field input::-webkit-date-and-time-value {
  text-align: left;
}
.segmented {
  padding: 8px 12px 8px 8px;
}
.pill-label,
.pill-field label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.segmented .pill-label {
  padding-left: 8px;
  margin-bottom: 4px;
}
.segmented-options {
  display: inline-flex;
  align-self: flex-start;
  padding: 3px;
  border-radius: var(--r-pill);
  background: var(--sand);
}
.segmented input {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 0;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}
.segmented label {
  padding: 6px 14px;
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
  cursor: pointer;
  transition:
    background-color 0.2s,
    color 0.2s;
}
.segmented input:checked + label {
  background: var(--ink);
  color: var(--paper);
}
.segmented input:focus-visible + label {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.pill-form .btn {
  border-radius: 16px;
  min-height: 56px;
  padding-inline: 24px;
}
.pill-note {
  margin: 14px 0 0 4px;
  font-size: 14px;
  color: color-mix(in oklab, var(--paper) 88%, transparent);
}
.pill-error {
  grid-column: 1 / -1;
  margin: 0;
  padding: 4px 16px 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
}
.pill-error:empty {
  display: none;
}

/* ---------- Benefits strip ------------------------------------------------ */
.benefits {
  border-bottom: 1px solid var(--line);
}
.benefits ul {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
.benefits li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 22px 20px;
  font-size: 15px;
  line-height: 1.35;
}
.benefits li + li {
  border-left: 1px solid var(--line);
}
.benefits svg {
  width: 22px;
  height: 22px;
  flex: none;
  color: var(--accent);
}
.benefits strong {
  display: block;
  font-weight: 600;
}
.benefits span {
  color: var(--muted);
  font-size: 14px;
}

/* ---------- Split (image + copy) ----------------------------------------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(32px, 7vw, 112px);
}
.split.reverse > :first-child {
  order: 2;
}
.split-media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--r-lg);
}
.split-media.landscape img {
  aspect-ratio: 5 / 4;
}

/* ---------- Loft cards ---------------------------------------------------- */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(28px, 4vw, 48px);
}
.section-head h2,
.section-head p {
  margin-bottom: 0;
}
.cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 3vw, 36px);
}
.loft-card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
}
.loft-card-media {
  display: block;
  overflow: hidden;
  position: relative;
}
.loft-card-media img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.loft-card-media:hover img {
  transform: scale(1.03);
}
.loft-card-media .chip {
  position: absolute;
  left: 16px;
  top: 16px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-color: transparent;
}
.loft-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 24px clamp(20px, 2.4vw, 32px) 28px;
}
.loft-card-body h3 {
  margin-bottom: 8px;
}
.loft-card-body p {
  color: var(--muted);
  margin-bottom: 20px;
}
.loft-card-body .actions {
  margin-top: auto;
  gap: 10px;
}

/* ---------- Contact ------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(32px, 7vw, 112px);
  align-items: start;
}
.contact-list {
  display: grid;
  gap: 4px;
  margin: 28px 0;
  padding: 0;
  list-style: none;
}
.contact-list a,
.contact-list span {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.contact-list a:hover span {
  text-decoration: underline;
}
.contact-list svg {
  width: 18px;
  height: 18px;
  flex: none;
  color: var(--olive);
}
.ready-line {
  margin-top: 8px;
  padding: 18px 20px;
  border-radius: var(--r-sm);
  background: var(--paper);
  border: 1px solid var(--line);
  font-size: 15px;
}
.ready-line a {
  color: var(--accent);
  font-weight: 600;
}

/* ---------- Forms --------------------------------------------------------- */
.form-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(20px, 3vw, 36px);
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 16px;
}
.field {
  display: block;
  margin-bottom: 18px;
  font-size: 14px;
  font-weight: 600;
}
.field .optional {
  font-weight: 400;
  color: var(--muted);
}
.field input,
.field select,
.field textarea {
  display: block;
  width: 100%;
  min-height: 50px;
  margin-top: 6px;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: #fff;
  font-size: 16px;
  font-weight: 400;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.field textarea {
  resize: vertical;
  min-height: 112px;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23635c52' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
  padding-right: 42px;
}
.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
}
.form-actions .fine {
  margin: 0;
}

/* ---------- Footer -------------------------------------------------------- */
.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding-block: clamp(48px, 7vw, 88px) 28px;
  font-size: 15px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.2fr;
  gap: 32px;
}
.site-footer .brand-word {
  color: var(--paper);
}
.footer-brand p {
  margin-top: 18px;
  color: color-mix(in oklab, var(--paper) 72%, transparent);
  font-size: 14px;
  max-width: 30ch;
}
.footer-title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: color-mix(in oklab, var(--paper) 62%, transparent);
  margin-bottom: 14px;
}
.footer-list {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-list a,
.footer-list span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 36px;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.footer-list a:hover {
  text-decoration: underline;
}
.footer-list svg {
  width: 17px;
  height: 17px;
  flex: none;
  opacity: 0.85;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid color-mix(in oklab, var(--paper) 16%, transparent);
  font-size: 13px;
  color: color-mix(in oklab, var(--paper) 70%, transparent);
}

/* ---------- Loft page ----------------------------------------------------- */
.loft-head {
  padding-top: clamp(24px, 4vw, 48px);
  padding-bottom: 24px;
}
.breadcrumb {
  display: flex;
  gap: 8px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
  font-size: 14px;
  color: var(--muted);
}
.breadcrumb li + li::before {
  content: "/";
  margin-right: 8px;
  opacity: 0.6;
}
.breadcrumb a {
  text-decoration: none;
}
.breadcrumb a:hover {
  text-decoration: underline;
}
.loft-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.loft-head h1 {
  margin-bottom: 14px;
}

/* Bento gallery */
.bento {
  position: relative;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 8px;
  height: clamp(380px, 46vw, 600px);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.gallery-item {
  position: relative;
  display: block;
  padding: 0;
  border: 0;
  background: var(--sand);
  overflow: hidden;
  min-height: 0;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1),
    filter 0.3s;
}
.gallery-item:hover img {
  transform: scale(1.03);
  filter: brightness(1.04);
}
.bento .gallery-item:first-child {
  grid-row: 1 / span 2;
}
.bento .gallery-item:nth-child(n + 6) {
  display: none;
}
.bento-more {
  position: absolute;
  right: 16px;
  bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 16px;
  border: 0;
  border-radius: var(--r-pill);
  background: var(--glass);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--shadow);
}
.bento-more svg {
  width: 18px;
  height: 18px;
}
.bento-count {
  display: none;
}

/* Two-column loft layout with sticky booking card */
.loft-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
  padding-top: clamp(32px, 4vw, 56px);
  padding-bottom: var(--section);
}
.loft-main > section + section {
  margin-top: clamp(48px, 6vw, 80px);
  padding-top: clamp(48px, 6vw, 80px);
  border-top: 1px solid var(--line);
}
.loft-aside {
  align-self: stretch;
}
.book-card {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: var(--shadow);
}
.book-card h2 {
  font-size: 26px;
  margin-bottom: 4px;
}
.book-card .min-stay {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 18px;
}
.book-card-dates {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  margin-bottom: 14px;
  overflow: hidden;
}
.book-card-dates a {
  display: block;
  padding: 10px 14px;
  text-decoration: none;
}
.book-card-dates a + a {
  border-left: 1px solid var(--line-strong);
}
.book-card-dates small {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.book-card-dates strong {
  font-weight: 500;
  font-size: 15px;
}
.book-card-nights:empty {
  display: none;
}
.book-card-nights {
  margin: -4px 0 14px;
  font-size: 14px;
  color: var(--muted);
}
.book-card ul {
  display: grid;
  gap: 8px;
  margin: 18px 0 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
  font-size: 14px;
}
.book-card li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.book-card li svg {
  width: 18px;
  height: 18px;
  flex: none;
  margin-top: 1px;
  color: var(--olive);
}

/* Amenities */
.amenity-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 40px;
  margin-top: 24px;
}
.amenity-category summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0 10px;
  font-family: var(--font-display);
  font-size: 22px;
  list-style: none;
  cursor: default;
}
.amenity-category summary::-webkit-details-marker {
  display: none;
}
.amenity-category ul {
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}
.amenity-category li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.amenity-category li::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: var(--olive);
}

/* ---------- Booking calendar --------------------------------------------- */
.booking-intro p {
  margin-bottom: 0;
}
.cal {
  margin-top: 28px;
  padding: clamp(16px, 2.5vw, 28px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: #fff;
}
.cal-status {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: var(--r-sm);
  background: var(--sand);
  font-size: 14px;
  line-height: 1.5;
}
.cal-status:empty,
.cal-status[hidden] {
  display: none;
}
.cal-status.is-warning {
  background: var(--accent-soft);
}
.cal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.cal-nav button {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
}
.cal-nav button:hover:not(:disabled) {
  background: var(--sand);
}
.cal-nav button:disabled {
  opacity: 0.35;
  cursor: default;
}
.cal-nav svg {
  width: 18px;
  height: 18px;
}
.cal-months {
  display: grid;
  grid-template-columns: repeat(var(--cal-months, 2), minmax(0, 1fr));
  gap: 32px;
}
.cal-month h3 {
  margin: 0 0 12px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0;
  text-align: center;
}
.cal-week,
.cal-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}
.cal-week {
  margin-bottom: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-align: center;
}
.cal-days {
  row-gap: 4px;
}
.cal-day {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  min-height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  border-radius: 50%;
  isolation: isolate;
}
.cal-day:hover:not(:disabled) {
  box-shadow: inset 0 0 0 1.5px var(--ink);
}
.cal-day:disabled {
  cursor: default;
}
.cal-day.is-past {
  color: color-mix(in oklab, var(--ink) 28%, transparent);
}
.cal-day.is-booked {
  color: color-mix(in oklab, var(--ink) 42%, transparent);
  text-decoration: line-through;
  text-decoration-thickness: 1.5px;
  background: repeating-linear-gradient(
    -45deg,
    transparent 0 4px,
    color-mix(in oklab, var(--ink) 9%, transparent) 4px 6px
  );
  border-radius: 10px;
}
.cal-day.is-no-arrival {
  color: color-mix(in oklab, var(--ink) 55%, transparent);
}
.cal-day.is-no-arrival::after {
  content: "";
  position: absolute;
  bottom: 18%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
}
.cal-day.is-too-short {
  color: color-mix(in oklab, var(--ink) 35%, transparent);
}
.cal-day.in-range,
.cal-day.in-preview {
  border-radius: 0;
  background: var(--accent-soft);
}
.cal-day.in-preview {
  background: color-mix(in oklab, var(--accent) 8%, var(--paper));
}
.cal-day.is-start,
.cal-day.is-end {
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  background: transparent;
}
.cal-day.is-start::before,
.cal-day.is-end::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 50%;
  background: var(--accent);
}
.cal-day.is-start.has-range {
  background: linear-gradient(90deg, transparent 50%, var(--accent-soft) 50%);
}
.cal-day.is-end {
  background: linear-gradient(90deg, var(--accent-soft) 50%, transparent 50%);
}
.cal-day.is-today:not(.is-start):not(.is-end) {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.cal-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 20px 0 0;
  padding: 16px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
  font-size: 13px;
  color: var(--muted);
}
.cal-legend li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.cal-legend i {
  position: relative;
  display: inline-block;
  width: 18px;
  height: 18px;
  border-radius: 6px;
}
.cal-legend .lg-free {
  box-shadow: inset 0 0 0 1px var(--line-strong);
  border-radius: 50%;
}
.cal-legend .lg-booked {
  background: repeating-linear-gradient(
    -45deg,
    transparent 0 3px,
    color-mix(in oklab, var(--ink) 18%, transparent) 3px 5px
  );
}
.cal-legend .lg-no-arrival::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 7px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
}
.cal-legend .lg-selected {
  background: var(--accent);
  border-radius: 50%;
}
.cal-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: var(--r-sm);
  background: var(--sand);
}
.cal-summary-text {
  margin: 0;
  font-weight: 600;
}
.cal-summary-text span {
  display: block;
  font-weight: 400;
  font-size: 14px;
  color: var(--muted);
}
.cal-clear {
  min-height: 40px;
  padding: 6px 4px;
  border: 0;
  background: none;
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cal-clear[hidden] {
  display: none;
}
.cal-error {
  margin: 12px 0 0;
  padding: 12px 14px;
  border-left: 3px solid var(--accent);
  border-radius: 4px;
  background: var(--accent-soft);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}
.cal-error:empty {
  display: none;
}
.booking-form {
  margin-top: 20px;
}
.booking-form h3 {
  margin-bottom: 18px;
}

/* Mobile booking bar */
.mobile-bar {
  display: none;
}

/* ---------- Sister loft & stay banner ------------------------------------ */
.sister-card {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  align-items: center;
  gap: clamp(24px, 5vw, 72px);
}
.sister-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--r-lg);
}
.stay-banner {
  background: var(--accent);
  color: #fff;
  text-align: center;
}
.stay-banner h2 {
  margin-bottom: 10px;
}
.stay-banner p {
  margin-inline: auto;
  opacity: 0.9;
}

/* ---------- Photo viewer (full screen) ----------------------------------- */
.viewer {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: #141310;
  color: var(--paper);
  overflow: hidden;
}
.viewer[open] {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  grid-template-columns: minmax(0, 1fr);
}
.viewer::backdrop {
  background: #141310;
}
.viewer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px var(--gutter);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
.viewer-btn {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgb(255 255 255 / 0.22);
  border-radius: 50%;
  background: rgb(20 19 16 / 0.55);
  color: #fff;
}
.viewer-btn:hover {
  background: rgb(255 255 255 / 0.14);
}
.viewer-btn svg {
  width: 20px;
  height: 20px;
}
.viewer-stage {
  position: relative;
  min-height: 0;
  min-width: 0;
}
.viewer-track {
  display: flex;
  height: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  overscroll-behavior: contain;
  scrollbar-width: none;
}
.viewer-track::-webkit-scrollbar {
  display: none;
}
.viewer-slide {
  flex: 0 0 100%;
  height: 100%;
  padding: 0 clamp(0px, 6vw, 88px);
  scroll-snap-align: center;
  scroll-snap-stop: always;
}
.viewer-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.viewer-track:focus-visible {
  outline: none;
}
.viewer-prev,
.viewer-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}
.viewer-prev {
  left: var(--gutter);
}
.viewer-next {
  right: var(--gutter);
}
.viewer-thumbs {
  display: flex;
  justify-content: safe center;
  gap: 6px;
  padding: 12px var(--gutter) 16px;
  overflow-x: auto;
  scrollbar-width: thin;
}
.viewer-thumbs button {
  flex: none;
  width: 64px;
  height: 48px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 6px;
  background: none;
  overflow: hidden;
  opacity: 0.55;
  transition: opacity 0.2s;
}
.viewer-thumbs button[aria-current="true"] {
  border-color: var(--paper);
  opacity: 1;
}
.viewer-thumbs button:hover {
  opacity: 1;
}
.viewer-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Chania page --------------------------------------------------- */
.page-intro {
  text-align: center;
}
.page-intro h1 {
  margin-inline: auto;
}
.page-intro p {
  margin-inline: auto;
}
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}
.feature + .feature {
  margin-top: var(--section);
}
.feature.reverse .feature-media {
  order: 2;
}
.feature-media {
  position: relative;
  margin: 0;
}
.feature-media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--r-lg);
}
.feature-media figcaption {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: rgb(20 19 16 / 0.62);
  color: #fff;
  font-size: 12px;
}
.place-list {
  margin: 24px 0 0;
}
.place-list div {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.place-list dt {
  font-family: var(--font-display);
  font-size: 21px;
  line-height: 1.25;
  margin-bottom: 4px;
}
.place-list dd {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}
.ending {
  text-align: center;
}
.ending p {
  margin-inline: auto;
}
.ending .actions {
  justify-content: center;
}

/* ---------- Prose pages --------------------------------------------------- */
.prose {
  max-width: 760px;
  min-height: 60vh;
}
.prose h2 {
  font-size: clamp(24px, 2.4vw, 30px);
  margin-top: 1.6em;
}
.prose a:not(.btn) {
  color: var(--accent);
}
.prose .contact-list {
  margin: 12px 0;
}
.thanks-card {
  max-width: 640px;
  margin-inline: auto;
  text-align: center;
}
.thanks-card .mark {
  width: 88px;
  margin: 0 auto 28px;
}
.thanks-card p {
  margin-inline: auto;
}
.thanks-card .actions {
  justify-content: center;
}

/* ---------- Motion -------------------------------------------------------- */
.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.6s ease,
    transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}
@view-transition {
  navigation: auto;
}

/* ---------- Responsive ---------------------------------------------------- */
@media (max-width: 1080px) {
  .pill-form {
    grid-template-columns: 1fr 1fr minmax(110px, 0.6fr);
    border-radius: 22px;
  }
  .pill-form .segmented {
    grid-column: 1 / -1;
  }
  .pill-field + .pill-field::before {
    display: none;
  }
  .pill-form .pill-field:not(.segmented) {
    background: #fff;
  }
  .pill-form .btn {
    grid-column: 1 / -1;
  }
  .loft-layout {
    grid-template-columns: minmax(0, 1fr) 320px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  .nav {
    display: none;
  }
  .menu-btn {
    display: inline-flex;
  }
  .header-cta {
    display: inline-flex;
  }
  .loft-layout {
    grid-template-columns: 1fr;
  }
  .loft-aside {
    display: none;
  }
  .mobile-bar {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom));
    background: var(--glass);
    -webkit-backdrop-filter: blur(16px) saturate(1.3);
    backdrop-filter: blur(16px) saturate(1.3);
    border-top: 1px solid var(--line);
    transition:
      transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1),
      opacity 0.3s;
  }
  .mobile-bar.is-hidden {
    transform: translateY(110%);
    opacity: 0;
    pointer-events: none;
  }
  .mobile-bar strong {
    display: block;
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 18px;
    line-height: 1.2;
  }
  .mobile-bar span {
    font-size: 13px;
    color: var(--muted);
  }
  .has-mobile-bar .site-footer {
    padding-bottom: calc(28px + 76px + env(safe-area-inset-bottom));
  }
}

@media (max-width: 760px) {
  body {
    font-size: 16px;
  }
  .brand-mark {
    width: 44px;
  }
  .brand-word {
    font-size: 19px;
    letter-spacing: 0.18em;
  }
  .hero {
    min-height: max(600px, 100svh);
  }
  .hero-location {
    display: none;
  }
  .hero h1 {
    font-size: clamp(40px, 11vw, 52px);
  }
  .pill-form {
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    padding: 8px;
  }
  .pill-field {
    padding: 8px 12px;
  }
  .pill-form .guests-field {
    grid-column: 1 / -1;
  }
  .segmented {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .segmented .pill-label {
    margin: 0;
  }
  .benefits ul {
    grid-template-columns: 1fr;
  }
  .benefits li {
    padding: 14px 0;
  }
  .benefits li + li {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .loft-card-body .actions .btn {
    flex: 1 1 auto;
    padding-inline: 14px;
    font-size: 14px;
  }
  .split,
  .contact-grid,
  .feature,
  .sister-card,
  .cards {
    grid-template-columns: 1fr;
  }
  .split.reverse > :first-child,
  .feature.reverse .feature-media {
    order: 0;
  }
  .split-media img,
  .feature-media img {
    aspect-ratio: 4 / 3;
  }
  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .footer-bottom {
    flex-direction: column;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .loft-head {
    padding-bottom: 16px;
  }
  .loft-head .actions {
    display: none;
  }

  /* Gallery becomes a swipe carousel */
  .bento {
    display: flex;
    height: auto;
    margin-inline: calc(-1 * var(--gutter));
    padding-inline: var(--gutter);
    gap: 8px;
    border-radius: 0;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .bento::-webkit-scrollbar {
    display: none;
  }
  .bento .gallery-item,
  .bento .gallery-item:nth-child(n + 6) {
    display: block;
    flex: 0 0 88%;
    aspect-ratio: 4 / 3;
    border-radius: var(--r-sm);
    scroll-snap-align: start;
  }
  .bento-wrap {
    position: relative;
  }
  .bento-more {
    right: 12px;
    bottom: 12px;
  }
  .bento-count {
    display: inline;
  }

  .amenity-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .amenity-category {
    border-bottom: 1px solid var(--line);
  }
  .amenity-category summary {
    min-height: 56px;
    font-size: 20px;
    cursor: pointer;
  }
  .amenity-category summary::after {
    content: "+";
    font: 400 24px/1 var(--font-body);
    color: var(--accent);
  }
  .amenity-category[open] summary::after {
    content: "\2212";
  }
  .amenity-category li:last-child {
    border-bottom: 0;
  }
  .cal {
    padding: 14px;
    margin-inline: calc(-1 * min(var(--gutter), 8px));
  }
  .cal-months {
    gap: 24px;
  }
  .cal-day {
    min-height: 0;
    font-size: 15px;
  }
  .viewer-prev,
  .viewer-next,
  .viewer-thumbs {
    display: none;
  }
  .viewer-slide {
    padding: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
  @view-transition {
    navigation: none;
  }
}

/* Calendar navigation sits on the month-title row */
.cal-body {
  position: relative;
}
.cal-nav {
  position: absolute;
  inset: 0 0 auto 0;
  margin: 0;
  pointer-events: none;
}
.cal-nav button {
  pointer-events: auto;
}
.cal-month h3 {
  display: grid;
  place-items: center;
  height: 44px;
  margin-bottom: 8px;
}

/* When live availability is unavailable, hide the legend items that don't apply */
.cal.is-offline .cal-legend li:nth-child(2),
.cal.is-offline .cal-legend li:nth-child(3) {
  display: none;
}
.thanks-card h1 {
  font-size: clamp(40px, 5vw, 64px);
}

/* ==========================================================================
   v29.2 — Mobile hero: compact search bar + "Plan your stay" sheet
   ========================================================================== */
.search-trigger {
  display: none;
}
.search-sheet {
  width: min(520px, 100%);
  max-width: none;
  max-height: min(860px, 92dvh);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 24px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 -8px 40px rgb(0 0 0 / 0.25);
  overflow: hidden;
}
.search-sheet[open] {
  display: flex;
  flex-direction: column;
  animation: sheet-up 0.34s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.search-sheet::backdrop {
  background: rgb(20 19 16 / 0.5);
}
@keyframes sheet-up {
  from {
    transform: translateY(40px);
    opacity: 0;
  }
}
.sheet-head {
  display: grid;
  grid-template-columns: 48px 1fr 48px;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  flex: none;
}
.sheet-head h2 {
  margin: 0;
  font-size: 20px;
  text-align: center;
}
.sheet-close {
  border-color: var(--line);
  background: transparent;
  color: var(--ink);
  width: 44px;
  height: 44px;
}
.sheet-close:hover {
  background: var(--sand);
}
.sheet-clear {
  justify-self: end;
}
.sheet-body {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 4px 16px 20px;
}
.sheet-section {
  padding: 16px 0;
}
.sheet-section + .sheet-section {
  border-top: 1px solid var(--line);
}
.sheet-label {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.loft-choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.loft-choice {
  position: relative;
  display: block;
  padding: 6px;
  border: 1.5px solid var(--line);
  border-radius: 16px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.2s;
}
.loft-choice input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.loft-choice img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 11px;
}
.loft-choice span {
  display: block;
  padding: 8px 4px 2px;
  font-family: var(--font-display);
  font-size: 18px;
}
.loft-choice:has(input:checked) {
  border-color: var(--ink);
  box-shadow: 0 0 0 1px var(--ink);
}
.loft-choice:has(input:focus-visible) {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.sheet-dates {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
}
.sheet-section .cal-error {
  margin-top: 8px;
}
.cal.cal-sheet,
.cal.cal-stacked {
  margin: 12px 0 0;
  padding: 0;
  border: 0;
  background: transparent;
}
.cal-stacked .cal-legend {
  margin: 0 0 8px;
  padding: 0 0 12px;
  border-top: 0;
  border-bottom: 1px solid var(--line);
}
.cal-stacked .cal-months {
  grid-template-columns: 1fr;
  gap: 20px;
}
.cal-stacked .cal-month h3 {
  justify-items: start;
  height: auto;
  margin: 8px 0 10px;
  font-size: 17px;
}
.cal-stacked .cal-day {
  min-height: 0;
}
.sheet-guests {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.sheet-guests .sheet-label {
  margin: 0;
}
.stepper {
  display: inline-flex;
  align-items: center;
  gap: 16px;
}
.stepper button {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: #fff;
  font-size: 20px;
  line-height: 1;
}
.stepper button:disabled {
  opacity: 0.35;
  cursor: default;
}
.stepper output {
  min-width: 1.5ch;
  font-size: 18px;
  font-weight: 600;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.sheet-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: var(--paper);
  flex: none;
}
.sheet-foot p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

@media (max-width: 760px) {
  /* Less text, more photo */
  .hero {
    min-height: 88svh;
  }
  .hero-media img {
    object-position: 64% 50%;
  }
  .hero-media::after {
    background:
      linear-gradient(180deg, rgb(28 24 18 / 0.5) 0%, rgb(28 24 18 / 0) 22%),
      linear-gradient(0deg, rgb(28 24 18 / 0.78) 0%, rgb(28 24 18 / 0.35) 32%, rgb(28 24 18 / 0) 58%);
  }
  .hero .eyebrow,
  .hero .lead,
  .hero .pill-note,
  .hero .pill-form {
    display: none;
  }
  .hero h1 {
    margin-bottom: 18px;
    font-size: clamp(38px, 10.5vw, 46px);
  }
  .hero-content {
    padding-bottom: 20px;
  }
  /* The compact search bar */
  .search-trigger {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 8px 8px 8px 10px;
    border: 0;
    border-radius: var(--r-pill);
    background: var(--paper);
    color: var(--ink);
    text-align: left;
    box-shadow: 0 16px 40px -16px rgb(0 0 0 / 0.55);
  }
  .search-trigger-icon,
  .search-trigger-go {
    display: inline-grid;
    place-items: center;
    flex: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
  }
  .search-trigger-icon {
    background: var(--sand);
    color: var(--accent);
  }
  .search-trigger-go {
    width: 46px;
    height: 46px;
    background: var(--accent);
    color: #fff;
  }
  .search-trigger svg {
    width: 20px;
    height: 20px;
  }
  .search-trigger-text {
    flex: 1;
    min-width: 0;
  }
  .search-trigger-text strong {
    display: block;
    font-size: 15px;
    line-height: 1.25;
  }
  .search-trigger-text small {
    display: block;
    overflow: hidden;
    font-size: 13px;
    color: var(--muted);
    white-space: nowrap;
    text-overflow: ellipsis;
  }
  /* Bottom sheet on phones */
  .search-sheet {
    width: 100%;
    max-height: 94dvh;
    margin: auto 0 0;
    border-radius: 24px 24px 0 0;
  }
}

.sheet-foot-text strong {
  display: block;
  font-size: 15px;
  color: var(--ink);
}
.sheet-foot-text span {
  display: block;
  font-size: 13px;
}

.cal-sheet .cal-legend {
  margin-top: 12px;
}
.cal-sheet .cal-months {
  touch-action: pan-y;
}
.cal-days {
  touch-action: pan-y;
}

/* v31 — The same "Plan your stay" search on desktop (opens the live calendar) */
@media (min-width: 761px) {
  .search-trigger {
    display: flex;
    align-items: center;
    gap: 14px;
    width: min(560px, 100%);
    padding: 10px 10px 10px 12px;
    border: 0;
    border-radius: var(--r-pill);
    background: var(--paper);
    color: var(--ink);
    text-align: left;
    cursor: pointer;
    box-shadow: 0 24px 60px -24px rgb(0 0 0 / 0.55);
    transition:
      transform 0.2s,
      box-shadow 0.2s;
  }
  .search-trigger:hover {
    transform: translateY(-1px);
    box-shadow: 0 28px 64px -22px rgb(0 0 0 / 0.6);
  }
  .search-trigger-icon,
  .search-trigger-go {
    display: inline-grid;
    place-items: center;
    flex: none;
    border-radius: 50%;
  }
  .search-trigger-icon {
    width: 46px;
    height: 46px;
    background: var(--sand);
    color: var(--accent);
  }
  .search-trigger-go {
    width: 54px;
    height: 54px;
    background: var(--accent);
    color: #fff;
    transition: background-color 0.2s;
  }
  .search-trigger:hover .search-trigger-go {
    background: var(--accent-hover);
  }
  .search-trigger svg {
    width: 22px;
    height: 22px;
  }
  .search-trigger-text {
    flex: 1;
    min-width: 0;
  }
  .search-trigger-text strong {
    display: block;
    font-size: 17px;
    line-height: 1.25;
  }
  .search-trigger-text small {
    display: block;
    overflow: hidden;
    font-size: 14px;
    color: var(--muted);
    white-space: nowrap;
    text-overflow: ellipsis;
  }
  .hero .pill-note {
    margin-top: 16px;
  }
}

/* v32 — "How it works" steps above the booking calendar */
.how-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}
.how-steps li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: color-mix(in oklab, var(--sand) 55%, var(--paper));
}
.how-num {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1;
}
.how-steps strong {
  display: block;
  font-size: 15px;
  line-height: 1.3;
  margin-bottom: 4px;
}
.how-steps div span {
  display: block;
  font-size: 14px;
  line-height: 1.45;
  color: var(--muted);
}
@media (max-width: 760px) {
  .how-steps {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .how-steps li {
    padding: 12px 14px;
  }
}

/* v33 — Phones: steps as three short headers in one row (no descriptions) */
@media (max-width: 760px) {
  .how-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    margin-top: 18px;
  }
  .how-steps li {
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 0;
    border: 0;
    background: none;
    text-align: center;
  }
  .how-steps div span {
    display: none;
  }
  .how-steps strong {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
  }
  .how-num {
    width: 28px;
    height: 28px;
    font-size: 15px;
  }
}

/* v34 — Benefits strip: warm sand band; 2×2 grid on phones */
.benefits {
  background: var(--sand);
  border-bottom: 0;
}
.benefits li + li {
  border-left-color: var(--line-strong);
}
@media (max-width: 760px) {
  .benefits ul {
    grid-template-columns: 1fr 1fr;
  }
  .benefits li {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 18px 14px;
  }
  .benefits li + li {
    border-top: 0;
    border-left: 0;
  }
  .benefits li:nth-child(2n) {
    border-left: 1px solid var(--line-strong);
  }
  .benefits li:nth-child(n + 3) {
    border-top: 1px solid var(--line-strong);
  }
  .benefits strong {
    font-size: 14px;
    line-height: 1.3;
  }
  .benefits span {
    font-size: 13px;
    line-height: 1.35;
  }
  .benefits svg {
    width: 20px;
    height: 20px;
  }
}

/* v35 — Hide the benefits strip on phones */
@media (max-width: 760px) {
  .benefits {
    display: none;
  }
}
