/* Hallmark · custom run · Lys Martagon · genre: editorial · direction: custom, palette drawn from the photographs (cold snow light, pine, larch) with the lys martagon's rose as the single accent · signature: the terrace view full-bleed with the date picker on it
   critique: the interior photos are low resolution, so they are set small in a mosaic and never stretched; the hero carries the one HD photograph */

:root {
  --snow: #EEF1F2;
  --snow-2: #E2E8EA;
  --paper: #F8FAFA;
  --pine: #1C2A2B;
  --pine-2: #2E3E3F;
  --slate: #4F5F62;
  --glacier: #5C7A88;
  --larch: #7A4A2E;
  --lys: #9C3D63;
  --lys-deep: #7E2E4E;
  --lys-tint: #F3E3EA;
  --line: #CBD5D8;
  --busy: #D9DFE1;
  --white: #FBFCFC;
  --shade: rgba(16, 26, 27, 0.62);

  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  --step-3: clamp(2rem, 1.4rem + 2.4vw, 3.1rem);
  --step-4: clamp(2.6rem, 1.6rem + 4.4vw, 5.4rem);

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: clamp(4.5rem, 3rem + 6vw, 8rem);

  --wrap: 1200px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --r-sm: 6px;
  --r-md: 10px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-io: cubic-bezier(0.77, 0, 0.175, 1);
  --mist: #A9B9BC;
  --mist-2: #C3D0D2;
  --mute: #8FA1A4;
  --past: #A3AEB1;
  --busy-ink: #56636A;
  --rose-light: #F0B9CE;
  --rose-err: #E07A9F;
  --placeholder: #7D8A8D;
  --shade-soft: rgba(16,26,27,0.35);
  --shade-none: rgba(16,26,27,0);
  --shadow-deep: rgba(16,26,27,0.55);
  --shadow-soft: rgba(16,26,27,0.25);
  --strike: rgba(79,95,98,0.5);
  --lys-ring: rgba(156,61,99,0.45);
  --err-ring: rgba(224,122,159,0.3);
  --line-dark: rgba(203,213,216,0.25);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--snow);
  color: var(--pine);
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
svg { display: block; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
::selection { background: var(--lys); color: var(--white); }
:focus-visible { outline: 2px solid var(--lys); outline-offset: 3px; transition: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, p, dl, dd, figure, blockquote { margin: 0; }
sup { line-height: 0; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.section { padding-block: var(--space-6); }
[id] { scroll-margin-top: 72px; }
.skip { position: absolute; left: var(--space-2); top: -4rem; z-index: 50; background: var(--pine); color: var(--snow); padding: var(--space-1) var(--space-2); border-radius: var(--r-sm); }
.skip:focus-visible { top: var(--space-2); }

.h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: var(--step-3);
  line-height: 1.08;
  letter-spacing: -0.015em;
  text-wrap: balance;
  overflow-wrap: break-word;
  min-width: 0;
  max-width: 18ch;
}
.h3 { font-family: var(--serif); font-weight: 500; font-size: var(--step-2); line-height: 1.2; margin-bottom: var(--space-2); }
.lead { font-size: var(--step-1); line-height: 1.55; color: var(--pine-2); max-width: 42ch; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-1);
  min-height: 48px; padding: 0 1.4rem;
  border: 1px solid transparent; border-radius: var(--r-sm);
  font-weight: 600; font-size: var(--step-0); text-decoration: none; cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease, transform 120ms var(--ease-out), opacity 160ms ease;
}
.btn:active:not(:disabled) { transform: scale(0.97); }
.btn--primary { background: var(--lys); color: var(--white); }
.btn--primary:hover:not(:disabled) { background: var(--lys-deep); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn--sm { min-height: 40px; padding: 0 var(--space-2); font-size: var(--step--1); }
.btn--block { width: 100%; }
.btn[aria-busy="true"] { opacity: 0.7; cursor: progress; }

.iconbtn {
  width: 44px; height: 44px; display: grid; place-items: center;
  border: 1px solid var(--line); background: var(--paper); border-radius: 50%; cursor: pointer;
  transition: background-color 160ms ease, transform 120ms var(--ease-out);
}
.iconbtn:hover { background: var(--snow-2); }
.iconbtn:active { transform: scale(0.94); }
.iconbtn:disabled { opacity: 0.35; cursor: not-allowed; }
.iconbtn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

/* Nav */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 30; color: var(--white); transition: background-color 240ms ease, color 240ms ease, box-shadow 240ms ease; }
.nav__in { display: flex; align-items: center; gap: var(--space-3); height: 72px; }
.nav.is-solid { background: var(--paper); color: var(--pine); box-shadow: 0 1px 0 var(--line); }
.wordmark { display: inline-flex; align-items: center; gap: 0.55rem; text-decoration: none; font-family: var(--serif); font-size: 1.35rem; font-weight: 500; letter-spacing: -0.01em; }
.wordmark__mark { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.nav__links { display: flex; gap: var(--space-3); margin-left: auto; }
.nav__links a { text-decoration: none; font-size: var(--step--1); font-weight: 500; opacity: 0.88; transition: opacity 160ms ease; }
.nav__links a:hover { opacity: 1; text-decoration: underline; }

/* Hero */
.hero { position: relative; min-height: max(640px, 100svh); display: flex; align-items: flex-end; color: var(--white); isolation: isolate; }
.hero__media, .hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__media { z-index: -2; overflow: hidden; }
.hero__media img { object-fit: cover; object-position: 50% 40%; }
.hero__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, var(--shade-soft) 0%, var(--shade-none) 28%, var(--shade-none) 45%, var(--shade) 100%); }
.hero__in { display: grid; gap: var(--space-4); padding-block: 8rem var(--space-4); }
.hero__title { font-family: var(--serif); font-weight: 300; font-size: var(--step-4); line-height: 0.98; letter-spacing: -0.03em; max-width: 13ch; text-wrap: balance; overflow-wrap: break-word; min-width: 0; text-shadow: 0 2px 30px var(--shade-soft); }
.hero__title .line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.hero__title .line > span { display: inline-block; }
.hero__lede { margin-top: var(--space-2); font-size: var(--step-1); max-width: 36ch; color: var(--snow); }

.quick {
  display: grid; grid-template-columns: 1fr 1fr 0.7fr auto; gap: 1px;
  background: var(--line); border-radius: var(--r-md); overflow: hidden;
  max-width: 820px; color: var(--pine);
  box-shadow: 0 18px 40px -18px var(--shadow-deep);
}
.quick__field { display: grid; gap: 2px; background: var(--paper); padding: 0.7rem var(--space-2); min-width: 0; }
.quick__field span { font-size: var(--step--1); color: var(--slate); }
.quick__field input, .quick__field select { border: 0; background: transparent; padding: 0; min-height: 28px; width: 100%; font-weight: 600; }
.quick__field input:focus-visible, .quick__field select:focus-visible { outline-offset: 6px; }
.quick .btn { border-radius: 0; height: 100%; }

/* Facts */
.facts { background: var(--pine); color: var(--snow); }
.facts__in { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding-block: var(--space-4); gap: var(--space-3); }
.facts dt { font-size: var(--step--1); color: var(--mist); }
.facts dd { font-family: var(--serif); font-size: var(--step-2); line-height: 1.15; }

/* Apartment */
.apt__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--space-5); align-items: start; }
.apt__text .lead { margin-top: var(--space-3); }
.amen { list-style: none; padding: 0; margin: var(--space-4) 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.9rem var(--space-3); }
.amen li { display: flex; gap: 0.7rem; align-items: flex-start; font-size: var(--step--1); line-height: 1.45; }
.amen svg, .rows svg, .switch svg { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--larch); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.amen svg { margin-top: 1px; }

.apt__photos { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); grid-template-rows: auto auto; gap: var(--space-2); }
.ph { position: relative; }
.ph img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--r-sm); background: var(--snow-2); }
.ph figcaption { margin-top: 0.4rem; font-size: var(--step--1); color: var(--slate); }
.ph--kitchen { grid-row: span 2; }
.ph--kitchen img { aspect-ratio: 3 / 4; }
.ph--table img { aspect-ratio: 4 / 5; object-position: 50% 30%; }
.ph--salon img { aspect-ratio: 4 / 5; }

/* View */
.view { background: var(--paper); padding-block: var(--space-6); border-block: 1px solid var(--line); }
.view__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-5); align-items: center; }
.view__photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--r-sm); }
.view__photo figcaption { margin-top: var(--space-1); font-size: var(--step--1); color: var(--slate); }
.view__text p { margin-top: var(--space-3); max-width: 44ch; }
.view__note { color: var(--slate); font-size: var(--step--1); }

/* Seasons */
.seasons__head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-3); flex-wrap: wrap; margin-bottom: var(--space-4); }
.switch { display: inline-flex; padding: 4px; background: var(--snow-2); border-radius: 999px; position: relative; }
.switch button {
  display: inline-flex; align-items: center; gap: var(--space-1);
  border: 0; background: transparent; padding: 0.6rem 1.2rem; min-height: 44px; border-radius: 999px; cursor: pointer; font-weight: 600;
  transition: background-color 200ms var(--ease-out), color 200ms ease, box-shadow 200ms ease;
}
.switch button[aria-selected="true"] { background: var(--paper); box-shadow: 0 2px 8px -2px var(--shadow-soft); }
.switch button:not([aria-selected="true"]):hover { color: var(--larch); }
.panel { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: var(--space-5); align-items: start; }
.panel[hidden] { display: none; }
.panel.is-entering { animation: panel-in 380ms var(--ease-out); }
@keyframes panel-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.panel__photo img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--r-sm); }
.panel__body .lead { margin-bottom: var(--space-4); }

.rows { display: grid; }
.rows > div { display: grid; grid-template-columns: minmax(0, 13rem) minmax(0, 1fr); gap: var(--space-2); padding-block: 1.1rem; border-top: 1px solid var(--line); }
.rows > div:last-child { border-bottom: 1px solid var(--line); }
.rows dt { display: flex; gap: 0.6rem; align-items: flex-start; font-weight: 600; line-height: 1.4; }
.rows dd { color: var(--pine-2); line-height: 1.55; max-width: 52ch; }

/* Booking */
.book { background: var(--pine); color: var(--snow); }
.book__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-4); align-items: end; margin-bottom: var(--space-4); }
.book__head p { color: var(--mist-2); max-width: 46ch; }
.book__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4.3fr); gap: var(--space-3); align-items: start; }

.cal { background: var(--paper); color: var(--pine); border-radius: var(--r-md); padding: var(--space-3); }
.cal__bar { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); margin-bottom: var(--space-2); }
.cal__status { font-size: var(--step--1); color: var(--slate); text-align: center; }
.cal__months { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); }
.month h3 { font-family: var(--serif); font-weight: 500; font-size: var(--step-1); margin-bottom: 0.6rem; text-transform: none; }
.month__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; }
.month__dow { font-size: 0.78rem; color: var(--slate); text-align: center; padding-block: 0.3rem; }
.day {
  position: relative; aspect-ratio: 1; min-height: 38px; border: 0; padding: 0; background: transparent;
  border-radius: var(--r-sm); font-size: 0.92rem; font-variant-numeric: tabular-nums; cursor: pointer;
  transition: background-color 120ms ease, color 120ms ease;
}
.day:hover:not(:disabled):not(.is-in):not(.is-start):not(.is-end) { background: var(--lys-tint); }
.day:disabled { cursor: not-allowed; }
.day.is-past { color: var(--past); }
.day.is-busy { background: var(--busy); color: var(--busy-ink); text-decoration: line-through; text-decoration-color: var(--strike); }
.day.is-checkout-only { background: linear-gradient(135deg, var(--busy) 50%, transparent 50%); }
.day.is-in { background: var(--lys-tint); color: var(--lys-deep); border-radius: 0; }
.day.is-start, .day.is-end { background: var(--lys); color: var(--white); font-weight: 600; }
.day.is-start { border-radius: var(--r-sm) 0 0 var(--r-sm); }
.day.is-end { border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.day.is-start.is-end { border-radius: var(--r-sm); }
.day.is-today::after { content: ""; position: absolute; left: 50%; bottom: 5px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: currentColor; }
.day.is-hover-range { background: var(--lys-tint); border-radius: 0; }
.cal__legend { list-style: none; padding: 0; margin: var(--space-3) 0 0; display: flex; flex-wrap: wrap; gap: var(--space-3); font-size: var(--step--1); color: var(--slate); }
.cal__legend li { display: inline-flex; align-items: center; gap: 0.45rem; }
.sw { width: 14px; height: 14px; border-radius: 3px; border: 1px solid var(--line); }
.sw--free { background: var(--paper); }
.sw--busy { background: var(--busy); }
.sw--sel { background: var(--lys); border-color: var(--lys); }

.req { background: var(--pine-2); border-radius: var(--r-md); padding: var(--space-3); display: grid; gap: var(--space-3); }
.req__summary { background: var(--pine); border-radius: var(--r-sm); padding: var(--space-2) var(--space-3); min-height: 5.5rem; }
.req__empty { color: var(--mist); font-size: var(--step--1); padding-block: 0.4rem; }
.sum__dates { font-family: var(--serif); font-size: var(--step-1); line-height: 1.3; }
.sum__dates span { white-space: nowrap; }
.sum__meta { font-size: var(--step--1); color: var(--mist); margin-top: 0.2rem; }
.sum__lines { margin-top: var(--space-2); display: grid; gap: 0.3rem; font-size: var(--step--1); font-variant-numeric: tabular-nums; }
.sum__lines div { display: flex; justify-content: space-between; gap: var(--space-2); }
.sum__lines dt { color: var(--mist-2); }
.sum__total { padding-top: var(--space-1); margin-top: 0.3rem; border-top: 1px solid var(--line-dark); font-weight: 600; font-size: var(--step-0); }
.sum__total dt { color: var(--snow) !important; }
.sum__warn { margin-top: var(--space-1); font-size: var(--step--1); color: var(--rose-light); }

.req__fields { display: grid; gap: var(--space-2); }
.field { display: grid; gap: 0.35rem; min-width: 0; }
.field span { font-size: var(--step--1); color: var(--mist-2); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 46px; padding: 0.6rem 0.8rem;
  background: var(--paper); color: var(--pine); border: 1px solid transparent; border-radius: var(--r-sm);
  transition: border-color 140ms ease;
}
.field textarea { resize: vertical; min-height: 84px; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: none; border-color: var(--lys); box-shadow: 0 0 0 3px var(--lys-ring); }
.field input[aria-invalid="true"] { border-color: var(--rose-err); box-shadow: 0 0 0 3px var(--err-ring); }
.field input::placeholder, .field textarea::placeholder { color: var(--placeholder); }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-2); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.req__error { color: var(--rose-light); font-size: var(--step--1); }
.req__fine { font-size: 0.8rem; color: var(--mist); line-height: 1.5; }
.req__alt { font-size: var(--step--1); color: var(--mist-2); }
.req__alt:empty { display: none; }
.req__alt a { color: var(--snow); }
.req__done { text-align: left; display: grid; gap: var(--space-2); padding-block: var(--space-2); }
.req__done h3 { font-family: var(--serif); font-weight: 400; font-size: var(--step-2); }
.req__done p { color: var(--mist-2); }

/* Hosts */
.hosts__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--space-5); align-items: center; }
.hosts__photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-sm); }
.quote { margin: var(--space-3) 0; padding: 0; }
.quote p { font-family: var(--serif); font-size: var(--step-2); font-weight: 300; line-height: 1.3; color: var(--pine); max-width: 30ch; }
.hosts__grid > div > p { max-width: 50ch; color: var(--pine-2); }

/* Info */
.info { background: var(--paper); border-top: 1px solid var(--line); }
.info .h2 { margin-bottom: var(--space-4); }
.info__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4) var(--space-5); }
.info .rows > div { grid-template-columns: minmax(0, 1fr); gap: 0.3rem; }
.info__map { grid-column: 1 / -1; }
.info__map iframe { width: 100%; height: 340px; border: 0; border-radius: var(--r-md); filter: saturate(0.6); background: var(--snow-2); }
.info__map figcaption { margin-top: var(--space-1); font-size: var(--step--1); color: var(--slate); }

/* Footer */
.foot { background: var(--pine); color: var(--snow); padding-block: var(--space-5); }
.foot__in { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto; gap: var(--space-3); align-items: end; }
.wordmark--foot { font-size: 1.6rem; }
.foot__addr { color: var(--mist); font-size: var(--step--1); margin-top: 0.4rem; }
.foot__links { display: grid; gap: 0.4rem; font-size: var(--step--1); }
.foot__links a { text-decoration: none; }
.foot__links a:hover { text-decoration: underline; }
.foot__links a[hidden] { display: none; }
.foot__credit { font-size: 0.8rem; color: var(--mute); }

/* The one orchestrated moment: the hero settles on load */
.js .hero__media img { transform: scale(1.06); transition: transform 2.4s var(--ease-out); }
.js .hero__title .line > span { transform: translateY(105%); transition: transform 1s var(--ease-out); }
.js .hero__lede, .js .quick { opacity: 0; transform: translateY(12px); transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out); }
.js.is-loaded .hero__media img { transform: scale(1); }
.js.is-loaded .hero__title .line > span { transform: none; }
.js.is-loaded .hero__title .line:nth-child(2) > span { transition-delay: 0.08s; }
.js.is-loaded .hero__lede { opacity: 1; transform: none; transition-delay: 0.35s; }
.js.is-loaded .quick { opacity: 1; transform: none; transition-delay: 0.5s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .hero__media img, .js .hero__title .line > span, .js .hero__lede, .js .quick { transform: none !important; opacity: 1 !important; transition: none !important; }
  .panel.is-entering { animation: none; }
  .btn, .iconbtn, .day, .switch button, .nav { transition: none; }
}

/* Responsive */
@media (max-width: 1000px) {
  .apt__grid, .view__grid, .hosts__grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-4); }
  .book__grid { grid-template-columns: minmax(0, 1fr); }
  .book__head { grid-template-columns: minmax(0, 1fr); gap: var(--space-2); }
  .panel { grid-template-columns: minmax(0, 1fr); gap: var(--space-4); }
  .panel__photo img { aspect-ratio: 16 / 10; object-position: 50% 45%; }
  .facts__in { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .nav__links { display: none; }
  .nav .btn { margin-left: auto; }
  .hero { min-height: 100svh; }
  .hero__in { padding-block: 7rem var(--space-3); gap: var(--space-3); }
  .quick { grid-template-columns: 1fr 1fr; }
  .quick__field--sm { grid-column: 1 / -1; }
  .quick .btn { grid-column: 1 / -1; min-height: 52px; }
  .amen { grid-template-columns: minmax(0, 1fr); }
  .apt__photos { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .ph--kitchen { grid-row: auto; grid-column: 1 / -1; }
  .ph--kitchen img { aspect-ratio: 4 / 3; object-position: 50% 60%; }
  .cal { padding: var(--space-2); }
  .cal__months { grid-template-columns: minmax(0, 1fr); gap: var(--space-3); }
  .cal__months .month:nth-child(2) { display: none; }
  .rows > div { grid-template-columns: minmax(0, 1fr); gap: 0.3rem; }
  .info__grid { grid-template-columns: minmax(0, 1fr); }
  .info__map iframe { height: 260px; }
  .foot__in { grid-template-columns: minmax(0, 1fr); align-items: start; }
}
