:root {
  --ivory: #faf7f2;
  --sand: #f1ebe2;
  --sand-2: #e6dccd;
  --ink: #1f2a25;
  --ink-2: #55615b;
  --green: #1f5a44;
  --green-2: #2c7a5c;
  --terracotta: #c0683e;

  /* calendar */
  --free: #dcf0dd;
  --free-ink: #24543a;
  --booked: #f7d5d1;
  --booked-ink: #9a463d;
  --sel: #1f5a44;
  --range: #a9d4b9;

  --radius: 14px;
  --shadow: 0 1px 2px rgba(31, 42, 37, .06), 0 10px 30px rgba(31, 42, 37, .08);
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font: 400 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.1; margin: 0 0 .5em; letter-spacing: -.01em; }
h2 { font-size: clamp(2rem, 4vw, 2.9rem); }
h3 { font-size: 1.75rem; }
p { margin: 0 0 1em; }
a { color: var(--green); }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.eyebrow { text-transform: uppercase; letter-spacing: .18em; font-size: .75rem; font-weight: 500; color: var(--terracotta); margin-bottom: .9em; }
.muted { color: var(--ink-2); max-width: 46em; }
.center { text-align: center; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  background: var(--green); color: #fff; border: 0; border-radius: 999px;
  padding: .85em 1.7em; font: 500 1rem var(--sans); letter-spacing: .02em;
  text-decoration: none; cursor: pointer; transition: background .2s, transform .1s;
}
.btn:hover { background: var(--green-2); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .6; cursor: progress; }
.btn-small { padding: .55em 1.2em; font-size: .9rem; }
.btn-block { width: 100%; }
.btn-ghost { background: transparent; color: var(--green); border: 1.5px solid var(--green); }
.btn-ghost:hover { background: var(--green); color: #fff; }
.link-btn { background: none; border: 0; padding: 0; color: var(--ink-2); font: inherit; font-size: .9rem; text-decoration: underline; cursor: pointer; }

/* nav */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 20; height: 64px;
  display: flex; align-items: center; gap: 24px; padding: 0 24px;
  color: #fff; transition: background .3s, color .3s, box-shadow .3s;
}
.nav.solid { background: rgba(250, 247, 242, .94); backdrop-filter: blur(10px); color: var(--ink); box-shadow: 0 1px 0 var(--sand-2); }
.brand { font: 600 1.6rem/1 var(--serif); color: inherit; text-decoration: none; letter-spacing: .01em; }
.brand em { font-style: italic; font-weight: 500; }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { color: inherit; text-decoration: none; font-size: .95rem; opacity: .9; }
.nav-links a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }

/* hero */
.hero { position: relative; height: min(92vh, 860px); min-height: 520px; color: #fff; overflow: hidden; }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 20, 15, .45) 0%, rgba(10, 20, 15, 0) 30%, rgba(10, 20, 15, .1) 55%, rgba(10, 20, 15, .65) 100%); }
.hero-text { position: absolute; left: 0; right: 0; bottom: 0; padding: 0 24px 9vh; max-width: 1180px; margin: 0 auto; }
.hero .eyebrow { color: #fff; opacity: .9; }
.hero h1 { font-size: clamp(3.4rem, 9vw, 7rem); margin-bottom: .15em; }
.hero .lede { font-size: clamp(1.05rem, 1.8vw, 1.25rem); max-width: 34em; margin-bottom: 1.6em; opacity: .95; }

/* intro */
.intro { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; padding-top: 96px; padding-bottom: 96px; align-items: start; }
.intro-copy p { color: var(--ink-2); }
.features { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.features li { display: flex; gap: 14px; background: #fff; border: 1px solid var(--sand-2); border-radius: var(--radius); padding: 18px; }
.features svg { flex: none; color: var(--green); width: 26px; height: 26px; margin-top: 2px; }
.features strong { display: block; font-weight: 500; }
.features span { font-size: .92rem; color: var(--ink-2); line-height: 1.45; }
.features strong { color: var(--ink); font-size: 1rem; margin-bottom: 2px; }

/* gallery */
.gallery-section { background: var(--sand); padding: 88px 0; }
.section-head { margin-bottom: 32px; }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: 10px; margin-bottom: 28px; }
.gallery button { padding: 0; border: 0; border-radius: 10px; overflow: hidden; cursor: zoom-in; background: var(--sand-2); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery button:hover img { transform: scale(1.04); }
.gallery button.big { grid-column: span 2; grid-row: span 2; }
.gallery button.wide { grid-column: span 2; }
.gallery button.extra { display: none; }
.gallery.expanded button.extra { display: block; }

/* booking */
.booking { padding-top: 96px; padding-bottom: 96px; }
.booking-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(300px, 1fr); gap: 28px; align-items: start; }
.cal-card, .enquiry { background: #fff; border: 1px solid var(--sand-2); border-radius: 18px; box-shadow: var(--shadow); }
.cal-card { padding: 22px 22px 18px; }
.cal-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.cal-status { font-size: .88rem; color: var(--ink-2); text-align: center; padding: 0 8px; min-height: 1.4em; }
.cal-status.warn { color: var(--booked-ink); }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--sand-2); background: #fff; color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.icon-btn:hover:not(:disabled) { border-color: var(--green); color: var(--green); }
.icon-btn:disabled { opacity: .3; cursor: default; }

.cal-months { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.month h4 { font: 500 1.35rem var(--serif); text-align: center; margin: 0 0 10px; }
.dow, .days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.dow span { text-align: center; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); padding: 4px 0; }
.day {
  position: relative; aspect-ratio: 1 / .92; border: 0; border-radius: 6px; padding: 0;
  font: 500 .95rem var(--sans); color: var(--free-ink); background: var(--free); cursor: pointer;
  transition: box-shadow .12s, transform .12s;
}
.day:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; z-index: 1; }
.day.empty { background: none; cursor: default; }
.day.past { background: #f3f1ed; color: #b9b5ad; cursor: default; }
.day.booked { background: var(--booked); color: var(--booked-ink); cursor: not-allowed; }
/* top-left half = morning (guest leaving), bottom-right half = evening (guest arriving) */
.day.checkout { background: linear-gradient(to bottom right, var(--booked) calc(50% - .6px), #fff calc(50% - .6px), #fff calc(50% + .6px), var(--free) calc(50% + .6px)); }
.day.checkin  { background: linear-gradient(to bottom right, var(--free) calc(50% - .6px), #fff calc(50% - .6px), #fff calc(50% + .6px), var(--booked) calc(50% + .6px)); }
.day.turnover { background: linear-gradient(to bottom right, var(--booked) calc(50% - .6px), #fff calc(50% - .6px), #fff calc(50% + .6px), var(--booked) calc(50% + .6px)); color: var(--booked-ink); cursor: not-allowed; }
.day.today::after { content: ""; position: absolute; left: 50%; bottom: 5px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: currentColor; }

.day.selectable:hover { box-shadow: inset 0 0 0 2px var(--green); }
.day.dim { opacity: .38; }
.day.dim:hover { box-shadow: none; }

/* selection */
.day.in-range { background: var(--range); color: var(--ink); }
.day.sel-start, .day.sel-end { background: var(--sel); color: #fff; }
.day.sel-start.pending { box-shadow: 0 0 0 3px rgba(31, 90, 68, .25); }

.legend { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 16px 0 0; margin: 16px 0 0; border-top: 1px solid var(--sand); font-size: .85rem; color: var(--ink-2); }
.legend li { display: flex; align-items: center; gap: 8px; }
.sw { width: 18px; height: 18px; border-radius: 4px; display: inline-block; }
.sw-free { background: var(--free); }
.sw-booked { background: var(--booked); }
.sw-out { background: linear-gradient(to bottom right, var(--booked) 49%, #fff 49%, #fff 51%, var(--free) 51%); }
.sw-in { background: linear-gradient(to bottom right, var(--free) 49%, #fff 49%, #fff 51%, var(--booked) 51%); }
.sw-sel { background: var(--sel); }

/* enquiry form */
.enquiry { padding: 26px; position: sticky; top: 84px; }
.stay { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; background: var(--sand); border-radius: 12px; padding: 12px 16px; }
.stay .lbl { display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-2); }
.stay .val { font-weight: 500; font-size: .98rem; }
.stay .val.placeholder { color: #9b958b; font-weight: 400; }
.stay .arrow { color: var(--ink-2); }
.stay-nights { margin: 10px 2px 2px; font-size: .92rem; color: var(--green); min-height: 1.3em; }
#clearDates { margin: 0 0 6px 2px; }
.field { display: block; margin-top: 14px; }
.field > span { display: block; font-size: .85rem; color: var(--ink-2); margin-bottom: 5px; }
.field em { font-style: normal; opacity: .7; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--ivory);
  border: 1px solid var(--sand-2); border-radius: 10px; padding: 11px 13px; transition: border-color .15s, background .15s;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--green); background: #fff; }
.field.invalid input { border-color: var(--booked-ink); }
.field-row { display: grid; grid-template-columns: 1fr 96px; gap: 12px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { margin: 14px 0 0; font-size: .92rem; min-height: 0; }
.form-msg:empty { display: none; }
.form-msg.err { color: var(--booked-ink); }
.form-msg.ok { color: var(--green); background: var(--free); padding: 12px 14px; border-radius: 10px; }
.enquiry .btn-block { margin-top: 16px; }
.fine { font-size: .8rem; color: var(--ink-2); margin: 12px 0 0; text-align: center; }

/* location */
.location { background: var(--green); color: #eef3ef; padding: 96px 0; }
.location .eyebrow { color: #f0b38f; }
.location-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: center; }
.location p { color: #d5e1da; }
.distances { list-style: none; padding: 0; margin: 24px 0 0; }
.distances li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, .15); }
.distances li span:last-child { color: #fff; font-weight: 500; text-align: right; }
.map { border-radius: 18px; overflow: hidden; aspect-ratio: 4 / 3; background: rgba(255, 255, 255, .08); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* footer */
.footer { background: #17201c; color: #b7c2bc; padding: 32px 0; font-size: .9rem; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer .brand { color: #fff; font-size: 1.4rem; }
.footer a { color: #fff; }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 50; background: rgba(12, 16, 14, .95); display: grid; place-items: center; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: 92vw; max-height: 88vh; display: flex; flex-direction: column; align-items: center; }
.lightbox img { max-width: 92vw; max-height: 82vh; object-fit: contain; border-radius: 6px; user-select: none; }
.lightbox figcaption { color: #9aa59f; font-size: .85rem; margin-top: 10px; }
.lb-close { position: absolute; top: 12px; right: 16px; background: none; border: 0; color: #fff; font-size: 2.4rem; line-height: 1; cursor: pointer; padding: 8px; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .12); color: #fff; display: grid; place-items: center; cursor: pointer; }
.lb-nav:hover { background: rgba(255, 255, 255, .22); }
.lb-prev { left: 16px; } .lb-next { right: 16px; }
.lb-nav svg { width: 26px; height: 26px; }

/* responsive */
@media (max-width: 980px) {
  .intro { grid-template-columns: 1fr; gap: 40px; padding-top: 72px; padding-bottom: 72px; }
  .booking-grid { grid-template-columns: 1fr; }
  .enquiry { position: static; }
  .location-grid { grid-template-columns: 1fr; gap: 36px; }
  .gallery { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 170px; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .nav { padding: 0 16px; gap: 12px; }
  .nav-links { display: none; }
  .nav .btn-small { margin-left: auto; }
  .hero-text { padding: 0 16px 8vh; }
  .features { grid-template-columns: 1fr; }
  .gallery-section, .booking, .location { padding-top: 64px; padding-bottom: 64px; }
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 130px; gap: 6px; }
  .gallery button.big { grid-column: span 2; grid-row: span 2; }
  .cal-card { padding: 14px 10px 12px; border-radius: 14px; }
  .cal-months { grid-template-columns: 1fr; gap: 22px; }
  .day { font-size: .9rem; }
  .enquiry { padding: 20px 16px; border-radius: 14px; }
  .lb-nav { width: 42px; height: 42px; background: rgba(255, 255, 255, .1); }
  .lb-prev { left: 6px; } .lb-next { right: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
