:root {
  --sand: #f4efe6;
  --sand-deep: #e8dfd0;
  --foam: #fbf8f3;
  --ink: #1c2b33;
  --ink-soft: #3d4f58;
  --sea: #1a3f4c;
  --teal: #2a6f7a;
  --teal-soft: #d5e6e8;
  --gold: #c4a06a;
  --booked: #d8d0c4;
  --danger: #8a4a3b;
  --shadow: 0 18px 40px rgba(28, 43, 51, 0.12);
  --font-serif: "Fraunces", "Palatino Linotype", Palatino, Georgia, serif;
  --font-sans: "Outfit", "Segoe UI", system-ui, sans-serif;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--foam);
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: 0.01em;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); }
button, input, select { font: inherit; }

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1.25rem;
  background: rgba(251, 248, 243, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(28, 43, 51, 0.06);
}
.logo {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.35rem;
  color: var(--sea);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.logo span { font-weight: 500; font-style: italic; }
.nav-loc {
  margin: 0;
  margin-right: auto;
  color: var(--ink-soft);
  font-size: 0.85rem;
}
.nav-cta {
  background: var(--sea);
  color: var(--foam);
  text-decoration: none;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
}

.hero {
  position: relative;
  min-height: 72vh;
  color: white;
  display: flex;
  align-items: flex-end;
}
.hero-photo, .hero-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 64%;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12, 28, 36, 0.05) 20%, rgba(12, 28, 36, 0.72) 100%);
}
.hero-copy {
  position: relative;
  z-index: 1;
  padding: 2.5rem 1.25rem 3rem;
  max-width: 40rem;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  font-weight: 500;
  margin: 0 0 0.6rem;
  color: var(--gold);
}
.hero .eyebrow { color: #f0dfc0; }
h1, h2, h3 { font-family: var(--font-serif); font-weight: 550; letter-spacing: -0.02em; line-height: 1.15; }
h1 { font-size: clamp(2.1rem, 6vw, 3.6rem); margin: 0 0 0.8rem; }
.lede { margin: 0 0 1.4rem; font-size: 1.05rem; color: rgba(255,255,255,0.9); max-width: 32rem; }

.btn {
  display: inline-block;
  border: 0;
  border-radius: 999px;
  padding: 0.75rem 1.2rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
}
.btn-light { background: var(--foam); color: var(--sea); }
.btn-primary {
  background: var(--sea);
  color: var(--foam);
  width: 100%;
  font-size: 1rem;
}
.btn-primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.facts {
  background: var(--sea);
  color: var(--foam);
  padding: 1.1rem 1.25rem;
}
.facts ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.6rem;
  margin: 0 auto;
  padding: 0;
  max-width: var(--max);
  justify-content: space-between;
}
.facts strong { font-family: var(--font-serif); font-size: 1.15rem; font-weight: 600; margin-right: 0.25rem; }

.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  padding: 0.5rem;
}
.gallery figure { margin: 0; position: relative; overflow: hidden; }
.gallery img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16/9; }
.gallery figure:nth-child(1),
.gallery figure:nth-child(4) { grid-column: 1 / -1; }
.gallery figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1.5rem 1rem 0.8rem;
  background: linear-gradient(transparent, rgba(12,28,36,0.7));
  color: white;
  font-size: 0.9rem;
}

.about, .nearby, .book, .footer {
  padding: 3rem 1.25rem;
  max-width: calc(var(--max) + 2.5rem);
  margin: 0 auto;
}
.about { display: grid; gap: 2rem; }
h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); margin: 0 0 1rem; color: var(--sea); }
.about-copy p { color: var(--ink-soft); }
.amenities {
  list-style: none;
  margin: 0;
  padding: 1.25rem 1.4rem;
  background: var(--sand);
  border-radius: 1.25rem;
  display: grid;
  gap: 0.65rem;
}
.amenities li { position: relative; padding-left: 1.1rem; }
.amenities li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.55rem;
  width: 0.45rem; height: 0.45rem;
  border-radius: 50%;
  background: var(--teal);
}

.nearby { padding-top: 0; }
.nearby-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}
.nearby-grid li {
  background: white;
  border: 1px solid var(--sand-deep);
  border-radius: 1.1rem;
  padding: 1.15rem 1.2rem;
}
.nearby-grid h3 { margin: 0 0 0.4rem; font-size: 1.2rem; color: var(--sea); }
.nearby-grid p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }

.book {
  background: var(--sand);
  max-width: none;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}
.book-head, .book-layout {
  max-width: var(--max);
  margin: 0 auto;
}
.book-head p { color: var(--ink-soft); max-width: 38rem; }
.book-layout {
  display: grid;
  gap: 1.25rem;
  margin-top: 1.75rem;
  align-items: start;
}
.calendar-panel, .quote {
  background: var(--foam);
  border-radius: 1.4rem;
  padding: 1.2rem;
  box-shadow: var(--shadow);
}
.cal-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.8rem;
}
.cal-toolbar h3 { margin: 0; font-size: 1.2rem; color: var(--sea); text-align: center; flex: 1; }
.cal-nav {
  width: 2.2rem; height: 2.2rem;
  border: 1px solid var(--sand-deep);
  background: white;
  border-radius: 50%;
  cursor: pointer;
  color: var(--sea);
  font-size: 1.3rem;
  line-height: 1;
}
.calendars { display: grid; gap: 1.4rem; }
.month h4 {
  margin: 0 0 0.6rem;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--sea);
}
.dow, .grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.2rem;
  text-align: center;
}
.dow {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 0.25rem;
}
.day {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0.2rem 0 0.25rem;
  min-height: 3.15rem;
  border-radius: 0.7rem;
  cursor: pointer;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.05rem;
}
.day .num { font-weight: 500; font-size: 0.92rem; }
.day .price { font-size: 0.62rem; color: var(--teal); }
.day.open { background: #eef6f5; }
.day.booked, .day:disabled {
  background: var(--sand);
  color: #8a837a;
  cursor: not-allowed;
  text-decoration: line-through;
  text-decoration-color: rgba(138,131,122,0.5);
}
.day.booked .price, .day:disabled .price, .day.empty .price { display: none; }
.day.empty { background: transparent; cursor: default; min-height: 3.15rem; }
.day.cta.open { background: #eef6f5; box-shadow: inset 0 -2px 0 var(--gold); text-decoration: none; }
.day.in-range, .day.checkin, .day.checkout { background: var(--teal-soft); color: var(--sea); text-decoration: none; }
.day.checkin, .day.checkout { background: var(--teal); color: white; }
.day.checkin .price, .day.checkout .price, .day.in-range .price { color: inherit; opacity: 0.85; }
.day:not(:disabled):not(.empty):hover { outline: 2px solid var(--teal); }
.day.today .num { text-decoration: underline; text-underline-offset: 2px; }

.legend {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1rem;
  padding: 0.9rem 0 0;
  margin: 0.6rem 0 0;
  border-top: 1px solid var(--sand-deep);
  font-size: 0.78rem;
  color: var(--ink-soft);
}
.swatch {
  display: inline-block;
  width: 0.7rem; height: 0.7rem;
  border-radius: 0.2rem;
  margin-right: 0.3rem;
  vertical-align: -0.05rem;
}
.swatch.open { background: #eef6f5; box-shadow: inset 0 0 0 1px #cfe0df; }
.swatch.booked { background: var(--sand); }
.swatch.selected { background: var(--teal); }
.swatch.cta { background: #eef6f5; box-shadow: inset 0 -2px 0 var(--gold); }

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.9rem;
}
.chip {
  border: 1px solid var(--sand-deep);
  background: white;
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  font-size: 0.78rem;
  cursor: pointer;
  color: var(--sea);
}
.chip:hover, .chip[aria-pressed="true"] { background: var(--teal-soft); border-color: var(--teal); }

.quote h3 { margin: 0 0 1rem; font-size: 1.3rem; color: var(--sea); }
#stay-form {
  display: grid;
  gap: 0.7rem;
}
#stay-form label {
  display: grid;
  gap: 0.25rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--ink-soft);
}
#stay-form input, #stay-form select {
  border: 1px solid var(--sand-deep);
  border-radius: 0.7rem;
  padding: 0.6rem 0.7rem;
  background: white;
  color: var(--ink);
}
.quote-hint, .quote-note { font-size: 0.82rem; color: var(--ink-soft); }
.quote-hint { min-height: 3.2em; }
.quote-hint.err { color: var(--danger); }
.quote-breakdown { margin: 0 0 1rem; }
.quote-breakdown dl { margin: 0; display: grid; gap: 0.35rem; }
.quote-breakdown div { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.92rem; }
.quote-breakdown .total { font-weight: 600; font-size: 1.05rem; border-top: 1px solid var(--sand-deep); padding-top: 0.5rem; margin-top: 0.3rem; }
.nights-list { margin: 0.4rem 0 0.6rem; padding: 0; list-style: none; font-size: 0.8rem; color: var(--ink-soft); }
.nights-list li { display: flex; justify-content: space-between; }

.footer {
  display: grid;
  gap: 1.5rem;
  color: var(--ink-soft);
  font-size: 0.9rem;
}
.footer .logo { color: var(--sea); margin-bottom: 0.4rem; }
.footer a { color: var(--sea); }
.fineprint { font-size: 0.78rem; max-width: 36rem; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 1.2rem;
  transform: translateX(-50%);
  background: var(--sea);
  color: white;
  padding: 0.7rem 1.1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  box-shadow: var(--shadow);
  z-index: 40;
}


/* Instagram */
.ig-icon { width: 1.15em; height: 1.15em; flex: none; }
.nav-ig {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--sea);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
}
.nav-ig .ig-icon { width: 1.35rem; height: 1.35rem; }
.nav-ig:hover { color: var(--teal); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; align-items: center; }
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: white;
  border: 1px solid rgba(255,255,255,0.7);
  background: rgba(12, 28, 36, 0.25);
}
.btn-ghost:hover { background: rgba(12, 28, 36, 0.45); }
.insta {
  padding: 3rem 1.25rem;
  max-width: calc(var(--max) + 2.5rem);
  margin: 0 auto;
  display: grid;
  gap: 1.75rem;
}
.insta-head p:not(.eyebrow) { color: var(--ink-soft); max-width: 34rem; }
.btn-ig {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: var(--sea);
  color: var(--foam);
  margin-top: 0.4rem;
}
.btn-ig:hover { background: var(--teal); }
.insta-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.4rem;
}
.insta-grid a { display: block; border-radius: 0.6rem; overflow: hidden; }
.insta-grid img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.insta-grid a:hover img { transform: scale(1.04); }

@media (min-width: 800px) {
  .nav { padding-left: 2rem; padding-right: 2rem; }
  .hero-copy { padding: 4rem 2rem 4.2rem; max-width: 46rem; }
  .facts { padding-left: 2rem; padding-right: 2rem; }
  .gallery {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto auto;
    padding: 0.75rem;
    gap: 0.65rem;
  }
  .gallery figure:nth-child(1) { grid-column: 1 / 3; grid-row: 1; }
  .gallery figure:nth-child(2) { grid-column: 3; grid-row: 1; }
  .gallery figure:nth-child(3) { grid-column: 3; grid-row: 2; }
  .gallery figure:nth-child(4) { grid-column: 1 / 3; grid-row: 2; }
  .gallery figure:nth-child(5) { grid-column: 1; grid-row: 3; }
  .gallery figure:nth-child(6) { grid-column: 2 / 4; grid-row: 3; }
  .gallery figure:nth-child(1) img,
  .gallery figure:nth-child(4) img { aspect-ratio: 16/10; min-height: 100%; }
  .gallery figure:nth-child(6) img { aspect-ratio: 16/9; min-height: 100%; }
  .about, .nearby, .footer { padding-left: 2rem; padding-right: 2rem; }
  .insta { padding: 3.5rem 2rem; grid-template-columns: 0.9fr 1.3fr; align-items: center; gap: 2.5rem; }
  .insta-grid { gap: 0.55rem; }
  .about { grid-template-columns: 1.4fr 0.8fr; align-items: start; }
  .nearby-grid { grid-template-columns: 1fr 1fr; gap: 1.1rem; }
  .book { padding: 4rem 2rem; }
  .book-layout { grid-template-columns: 1.3fr 0.8fr; gap: 1.5rem; }
  .calendars { grid-template-columns: 1fr 1fr; }
  .footer { grid-template-columns: 1fr 1fr; }
  .calendar-panel, .quote { padding: 1.5rem; }
  .quote { position: sticky; top: 5rem; }
}

@media (max-width: 799px) {
  .nav-loc { display: none; }
  .nav-ig { margin-left: auto; }
  .nav-ig span { display: none; }
  .hero { min-height: 78vh; }
  .hero-photo img { object-position: center 72%; }
  .month h4 { display: none; }
}
