:root {
  --ink: #1d2433;
  --ink-soft: #4a5263;
  --paper: #f7f4ef;
  --paper-alt: #efe9e0;
  --accent: #b5643c;
  --line: rgba(29, 36, 51, 0.12);
  --radius: 14px;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2 { font-family: var(--serif); font-weight: 400; line-height: 1.1; margin: 0; letter-spacing: -0.01em; }

.wrap { width: min(1200px, 100% - 2.5rem); margin-inline: auto; }

.eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.5rem;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--ink);
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.btn:hover { transform: translateY(-1px); background: #2c364b; }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--small { padding: 0.55rem 1.1rem; font-size: 0.9rem; }
.btn--light { background: #fff; color: var(--ink); border-color: #fff; }
.btn--light:hover { background: var(--paper-alt); }

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 244, 239, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 64px; }
.brand { font-family: var(--serif); font-size: 1.35rem; text-decoration: none; }
.brand span,
.brand em { color: var(--accent); margin-left: 0.25rem; font-style: italic; }
.nav nav { display: flex; gap: 1.75rem; }
.nav nav a { text-decoration: none; font-size: 0.95rem; color: var(--ink-soft); }
.nav nav a:hover { color: var(--ink); }

/* Hero */
.hero { padding: clamp(2rem, 5vw, 4.5rem) 0 clamp(3rem, 6vw, 5rem); }
.hero__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero h1 { font-size: clamp(2.5rem, 5.6vw, 4.6rem); }
.hero h1 em { color: var(--accent); }
.lead { font-size: 1.12rem; color: var(--ink-soft); max-width: 34rem; margin: 1.5rem 0; }
.facts { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; padding: 0; margin: 0 0 2rem; }
.facts li {
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.92rem;
  background: #fff;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.rating { margin: 1.5rem 0 0; font-size: 0.92rem; color: var(--ink-soft); }
.rating span { color: var(--accent); }
.hero__media {
  border-radius: calc(var(--radius) * 1.5);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  max-height: calc(100vh - 120px);
  background: var(--paper-alt);
  box-shadow: 0 30px 60px -30px rgba(29, 36, 51, 0.45);
  justify-self: end;
  width: 100%;
}
.hero__media picture, .hero__media img { width: 100%; height: 100%; }
.hero__media img { object-fit: cover; object-position: center; }

/* Sections */
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section--alt { background: var(--paper-alt); }
.section__head { max-width: 44rem; margin-bottom: 2.5rem; }
.section__head h2, .location h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
.section__head p:last-child, .location p { color: var(--ink-soft); font-size: 1.05rem; margin: 1rem 0 0; }

/* Photo grid */
.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.6rem, 1.4vw, 1.1rem);
}
.tile { margin: 0; position: relative; display: flex; flex-direction: column; min-width: 0; }
.tile__btn {
  all: unset;
  cursor: zoom-in;
  display: block;
  flex: 1;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper-alt);
  aspect-ratio: 4 / 5;
  position: relative;
}
.section--alt .tile__btn { background: #e4ddd2; }
.tile__btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.tile picture { position: absolute; inset: 0; }
.tile img { width: 100%; height: 100%; }
.tile img { object-fit: cover; object-position: center; transition: transform 0.6s ease; }
.tile__btn:hover img { transform: scale(1.035); }
.tile figcaption {
  position: absolute;
  left: 0.75rem;
  bottom: 0.75rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: rgba(29, 36, 51, 0.72);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  pointer-events: none;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.tile--wide { grid-column: span 2; }
.tile--wide .tile__btn { aspect-ratio: auto; }
.tile--full { grid-column: 1 / -1; }
.tile--full .tile__btn { aspect-ratio: 2 / 1; }

/* Location */
.location { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.perks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.perks li {
  padding: 1rem 1.1rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
}
.perks li::before { content: "✦"; color: var(--accent); margin-right: 0.5rem; }

/* CTA */
.cta { background: var(--ink); color: #fff; padding: clamp(3rem, 6vw, 4.5rem) 0; }
.cta__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.cta h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); max-width: 30rem; }
.footer { padding: 1.5rem 0; font-size: 0.85rem; color: var(--ink-soft); }

/* Lightbox */
.lightbox {
  border: 0;
  padding: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-width: 100vw;
  max-height: 100vh;
  max-height: 100dvh;
  background: rgba(14, 17, 24, 0.94);
  color: #fff;
}
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox::backdrop { background: rgba(14, 17, 24, 0.94); }
.lightbox figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 0.75rem; max-width: calc(100vw - 7rem); }
.lightbox img { max-height: calc(100dvh - 7rem); max-width: 100%; width: auto; border-radius: 10px; object-fit: contain; }
.lightbox figcaption { font-size: 0.95rem; opacity: 0.85; }
.lightbox button {
  all: unset;
  cursor: pointer;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  font-size: 1.8rem;
  line-height: 1;
}
.lightbox button:hover { background: rgba(255, 255, 255, 0.24); }
.lightbox button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.lightbox__close { position: absolute; top: 1rem; right: 1rem; }
.lightbox__prev { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox__next { position: absolute; right: 1rem; top: 50%; transform: translateY(-50%); }

/* Tablet */
@media (max-width: 899px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { order: -1; max-height: none; aspect-ratio: 4 / 5; max-width: 560px; justify-self: center; }
  .location { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile--wide { grid-column: 1 / -1; }
  .tile--wide .tile__btn { aspect-ratio: 16 / 10; }
  .tile--full .tile__btn { aspect-ratio: 16 / 10; }
}

/* Mobile */
@media (max-width: 599px) {
  .wrap { width: calc(100% - 2rem); }
  .nav nav { display: none; }
  .hero { padding-top: 1rem; }
  .hero__media { aspect-ratio: 4 / 5; border-radius: var(--radius); }
  .hero__actions .btn { flex: 1 1 100%; }
  .tile figcaption { left: 0.5rem; bottom: 0.5rem; font-size: 0.72rem; padding: 0.25rem 0.55rem; }
  .perks { grid-template-columns: 1fr; }
  .cta__inner .btn { width: 100%; }
  .lightbox figure { max-width: 100vw; padding: 0 0.5rem; }
  .lightbox img { max-height: calc(100dvh - 9rem); }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 1rem; transform: none; }
  .lightbox__prev { left: calc(50% - 3.5rem); }
  .lightbox__next { right: calc(50% - 3.5rem); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tile img, .btn { transition: none; }
}

/* Booking: calendar + direct request form */
.booking { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(1rem, 2.5vw, 1.75rem); align-items: start; }
.cal, .booking__panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) * 1.3);
  padding: clamp(1.1rem, 2.4vw, 1.75rem);
  box-shadow: 0 24px 50px -36px rgba(29, 36, 51, 0.4);
}
.cal { position: relative; }
.cal__nav { position: absolute; top: clamp(0.9rem, 2.2vw, 1.5rem); left: clamp(0.8rem, 2vw, 1.4rem); right: clamp(0.8rem, 2vw, 1.4rem); display: flex; justify-content: space-between; pointer-events: none; }
.cal__arrow {
  pointer-events: auto;
  width: 2.4rem; height: 2.4rem;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  font: inherit; font-size: 1.4rem; line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.cal__arrow:hover:not(:disabled) { background: var(--ink); color: #fff; }
.cal__arrow:disabled { opacity: 0.3; cursor: default; }
.cal__months { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: clamp(1.25rem, 3vw, 2.5rem); }
.cal__title { margin: 0.35rem 0 1rem; text-align: center; font-family: var(--serif); font-size: 1.3rem; text-transform: capitalize; }
.cal__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); row-gap: 0.2rem; }
.cal__wd { text-align: center; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); padding-bottom: 0.4rem; }
.cal__day {
  position: relative;
  aspect-ratio: 1;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit; font-size: 0.92rem; font-weight: 600;
  cursor: pointer;
  border-radius: 999px;
  transition: background 0.15s ease, color 0.15s ease;
}
.cal__day:hover:not(:disabled):not(.is-start):not(.is-end) { background: var(--paper-alt); }
.cal__day:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; z-index: 1; }
.cal__day:disabled { cursor: default; color: rgba(29, 36, 51, 0.28); font-weight: 500; }
.cal__day.is-booked { color: rgba(29, 36, 51, 0.35); text-decoration: line-through; text-decoration-color: rgba(181, 100, 60, 0.7); }
.cal__day.is-booked:not(:disabled) { color: var(--ink-soft); }
.cal__day.is-today::after { content: ""; position: absolute; left: 50%; bottom: 14%; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--accent); }
.cal__day.is-range { background: rgba(181, 100, 60, 0.14); border-radius: 0; color: var(--ink); }
.cal__day.is-range.is-preview { background: rgba(181, 100, 60, 0.08); }
.cal__day.is-start, .cal__day.is-end { background: var(--ink); color: #fff; text-decoration: none; }
.cal__day.is-end.is-preview:not([aria-pressed="true"]) { background: rgba(29, 36, 51, 0.55); }
.cal__day.is-start::after, .cal__day.is-end::after { background: #fff; }
.cal__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem; margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.cal__legend { display: flex; flex-wrap: wrap; gap: 1rem; list-style: none; margin: 0; padding: 0; font-size: 0.82rem; color: var(--ink-soft); }
.cal__legend li { display: inline-flex; align-items: center; gap: 0.4rem; }
.cal__swatch { width: 0.85rem; height: 0.85rem; border-radius: 50%; border: 1px solid var(--line); }
.cal__swatch--free { background: #fff; }
.cal__swatch--booked { background: repeating-linear-gradient(135deg, #fff 0 2px, rgba(181, 100, 60, 0.55) 2px 3px); }
.cal__swatch--stay { background: var(--ink); border-color: var(--ink); }
.cal__clear { border: 0; background: none; padding: 0; font: inherit; font-size: 0.85rem; font-weight: 600; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.cal__hint { margin: 0.9rem 0 0; font-size: 0.92rem; color: var(--ink-soft); }
.cal__hint.is-error { color: var(--accent); font-weight: 600; }

.booking__panel { display: flex; flex-direction: column; gap: 0.9rem; }
.booking__panel[hidden] { display: none; }
.booking__dates { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.booking__dates div { padding: 0.75rem 0.95rem; display: flex; flex-direction: column; gap: 0.1rem; }
.booking__dates div + div { border-left: 1px solid var(--line); }
.booking__dates span { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); }
.booking__dates strong { font-size: 1rem; font-weight: 600; text-transform: capitalize; }
.booking__summary { margin: 0; padding: 0.9rem 1rem; background: var(--paper); border-radius: var(--radius); display: grid; gap: 0.4rem; font-size: 0.95rem; }
.booking__summary[hidden] { display: none; }
.booking__summary div { display: flex; justify-content: space-between; gap: 1rem; }
.booking__summary dt { color: var(--ink-soft); }
.booking__summary dd { margin: 0; font-weight: 600; text-align: right; }
.booking__summary .is-total { padding-top: 0.5rem; margin-top: 0.2rem; border-top: 1px solid var(--line); }
.booking__summary .is-total dt, .booking__summary .is-total dd { color: var(--ink); font-weight: 700; font-size: 1.05rem; }

.field-row { display: grid; grid-template-columns: 1fr 6.5rem; gap: 0.75rem; }
.field { display: flex; flex-direction: column; gap: 0.35rem; min-width: 0; }
.field > span { font-size: 0.8rem; font-weight: 700; color: var(--ink-soft); }
.field em { font-style: normal; font-weight: 500; opacity: 0.8; }
.field input, .field select, .field textarea {
  width: 100%;
  font: inherit; font-size: 1rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.7rem 0.85rem;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.field textarea { resize: vertical; min-height: 5.5rem; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); background: #fff; box-shadow: 0 0 0 3px rgba(181, 100, 60, 0.15); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.booking__submit { width: 100%; margin-top: 0.3rem; cursor: pointer; font: inherit; font-weight: 600; }
.booking__submit:disabled { opacity: 0.6; cursor: wait; transform: none; }
.booking__note { margin: 0; font-size: 0.85rem; color: var(--ink-soft); text-align: center; }
.booking__error { margin: 0; padding: 0.7rem 0.9rem; border-radius: 10px; background: rgba(181, 100, 60, 0.1); color: #8a4526; font-size: 0.9rem; font-weight: 600; }
.booking__error[hidden] { display: none; }
.booking__done { text-align: left; }
.booking__done:focus { outline: none; }
.booking__done h3 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 1.7rem; line-height: 1.15; }
.booking__done p:not(.eyebrow) { margin: 0; color: var(--ink-soft); }
.booking__done .eyebrow { margin: 0; }
.booking__done .btn { cursor: pointer; font: inherit; font-weight: 600; }

@media (max-width: 899px) {
  .booking { grid-template-columns: 1fr; }
  .cal { max-width: 560px; width: 100%; justify-self: center; }
  .booking__panel { max-width: 560px; width: 100%; justify-self: center; }
}
@media (max-width: 599px) {
  .cal__day { font-size: 0.88rem; }
  .field-row { grid-template-columns: 1fr 5.5rem; }
}
