*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  color-scheme: light;
  --bg: #f6efe9;
  --card: #fdf8f3;
  --text: #3a2f2a;
  --muted: #7b6f66;
  --line: #e4d9d1;
  --accent: #6b7b6a;
  --accent-dark: #5b6a59;
  --shadow: 0 22px 40px rgba(0, 0, 0, 0.12);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

h1,
h2,
h3 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  margin: 0 0 16px;
  letter-spacing: 0.01em;
}

p {
  margin: 0;
}

.container {
  width: min(1140px, 90%);
  margin: 0 auto;
}

.hero {
  padding: 72px 0 64px;
  background: var(--bg);
  position: relative;
}

.header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 32px;
  margin-bottom: 0;
}

.site-logo {
  display: block;
  line-height: 0;
  background: transparent;
}

.site-logo img {
  display: block;
  max-width: 140px;
  height: auto;
  background: transparent;
}

.site-nav {
  display: flex;
  gap: 18px;
  font-size: 0.85rem;
  color: #6f635b;
}

.site-nav a {
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr);
  gap: 48px;
  align-items: center;
  min-height: 520px;
}

.hero-image {
  position: relative;
  height: 100%;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero-slideshow {
  position: relative;
  flex: 1;
  min-height: 380px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
  touch-action: pan-y; /* Allow vertical scroll, we handle horizontal swipe */
}

/* Spacer reserves height so absolute slides have a containing block */
.hero-slideshow-spacer {
  width: 100%;
  padding-bottom: 75%;
  height: 0;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease;
  border-radius: 18px;
  pointer-events: none;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
  pointer-events: auto;
}

.hero-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 0 4px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid #a39a90;
  background: transparent;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.hero-dot:hover {
  background: rgba(63, 77, 62, 0.3);
  border-color: #6b7b6a;
}

.hero-dot.active {
  background: var(--accent);
  border-color: var(--accent);
}

.hero-content h1 {
  font-size: clamp(2.8rem, 4.2vw, 4rem);
  line-height: 1.03;
  font-weight: 600;
}

.lead {
  font-size: 1.05rem;
  color: #564b44;
  margin-bottom: 28px;
  max-width: 420px;
  font-weight: 500;
}

.button {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 600;
  border: 1px solid transparent;
  background: var(--accent);
  color: #fdfaf6;
  box-shadow: 0 12px 24px rgba(56, 50, 44, 0.25);
}

.button.solid {
  background: #3f4d3e;
}

.microcopy {
  margin-top: 10px;
  color: #90867d;
  font-size: 0.78rem;
}

.section {
  padding: 64px 0;
}

.section-tight {
  padding-bottom: 44px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 28px;
}

.section-title h2 {
  margin: 0;
  font-size: 1.9rem;
}

.divider {
  flex: 1;
  height: 1px;
  background: var(--line);
}

.section-intro {
  margin: -8px 0 28px;
  color: #564b44;
}

.gallery-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 1fr;
}

.gallery-card {
  margin: 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.gallery-card img {
  border-radius: 12px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  margin-bottom: 10px;
  cursor: zoom-in;
}

.gallery-card figcaption {
  color: var(--muted);
  letter-spacing: 0.01em;
}

.gallery-card:hover {
  transform: translateY(-4px);
}

.gallery-card:hover img {
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.13);
  transform: scale(1.02);
}

.gallery-card img {
  transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
}

.gallery-card.dominant {
  grid-column: span 2;
}

.icon-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 28px;
  text-align: center;
}

.icon-card {
  color: var(--muted);
  font-size: 1.02rem;
}

.icon-circle {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: #efe4db;
  display: grid;
  place-items: center;
  color: #6c7b6b;
}

.icon-circle svg {
  width: 36px;
  height: 36px;
  stroke: currentColor;
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.features-table {
  border: 1px solid rgba(126, 105, 90, 0.16);
  border-radius: 12px;
  overflow: hidden;
  background: #fbf6f1;
  box-shadow: 0 8px 18px rgba(60, 50, 40, 0.06);
}

.table-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid rgba(126, 105, 90, 0.08);
}

.table-row.header {
  border-top: none;
  background: #f1e7dd;
}

.cell {
  padding: 20px 22px;
  font-size: 0.95rem;
}

.cell.header-cell {
  text-align: center;
  font-weight: 600;
  background: #f1e7dd;
}

.cell.header-cell.luxury {
  background: #e9ddce;
  box-shadow: inset 0 0 0 1px rgba(231, 220, 205, 0.5);
}

.tier-note {
  display: block;
  margin-top: 6px;
  font-size: 0.82rem;
  font-weight: 500;
  color: #6a5e55;
}

.table-row .cell:nth-child(2) {
  background: #f6ede4;
  box-shadow: inset 1px 0 0 rgba(126, 105, 90, 0.05);
}

.check {
  color: #6b7b6a;
  font-weight: 700;
  margin-right: 8px;
}

.inquire-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.25fr);
  gap: 28px;
  align-items: start;
}

.inquire-form {
  display: grid;
  gap: 20px;
}

label {
  font-size: 0.85rem;
  color: var(--muted);
  display: grid;
  gap: 6px;
}

input,
textarea {
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid #e2d6cc;
  background: #fffdfb;
  font-family: inherit;
  font-size: 0.95rem;
}

.calendar {
  border: 1px solid #e2d6cc;
  border-radius: 16px;
  padding: 22px;
  background: #fdf8f3;
  box-shadow: 0 20px 36px rgba(60, 50, 40, 0.16);
}

.calendar-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 12px;
}

.calendar-nav-buttons {
  display: flex;
  gap: 8px;
}

.calendar-range {
  font-weight: 600;
  color: #5f534b;
  font-size: 0.95rem;
}

.calendar-months {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.calendar-month {
  background: #fffaf6;
  border-radius: 12px;
  padding: 14px;
  border: 1px solid rgba(126, 105, 90, 0.08);
}

.calendar-header {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  margin-bottom: 14px;
  color: #5f534b;
}

.icon-button {
  border: 1px solid var(--line);
  background: #f7eee6;
  border-radius: 8px;
  width: 32px;
  height: 32px;
  font-size: 1.2rem;
  color: var(--muted);
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
  text-align: center;
  font-size: 0.85rem;
}

.dow {
  color: var(--muted);
  font-weight: 600;
  padding-bottom: 6px;
}

.day {
  padding: 10px 0;
  border-radius: 6px;
  border: 1px solid transparent;
  background: #fff;
  color: var(--text);
  cursor: pointer;
}

.day.range-start,
.day.range-end {
  background: var(--accent);
  color: #fff;
}

.day.in-range {
  background: rgba(107, 123, 106, 0.18);
  color: var(--text);
}

.blank {
  padding: 10px 0;
}

.calendar-note {
  margin-top: 12px;
  font-size: 0.8rem;
  color: var(--muted);
}

.inquire-form .button {
  margin-top: 8px;
  align-self: flex-start;
}

.lightbox {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 1000;
}

.lightbox.open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(28, 24, 20, 0.72);
}

.lightbox-image {
  position: relative;
  max-width: min(980px, 92vw);
  max-height: 74vh;
  border-radius: 16px;
  box-shadow: 0 30px 50px rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.lightbox-caption {
  position: relative;
  margin-top: 14px;
  color: #f6efe9;
  z-index: 1;
  font-size: 0.95rem;
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(30, 26, 22, 0.6);
  color: #fff;
  z-index: 2;
  cursor: pointer;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(30, 26, 22, 0.6);
  color: #fff;
  z-index: 2;
  cursor: pointer;
  font-size: 1.6rem;
  line-height: 1;
}

.lightbox-nav.prev {
  left: 24px;
}

.lightbox-nav.next {
  right: 24px;
}

.site-footer {
  padding: 32px 0 48px;
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted);
}

@media (max-width: 980px) {
  .hero-grid,
  .inquire-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-card.dominant {
    grid-column: span 1;
  }

  .icon-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .calendar-months {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .hero {
    padding-top: 40px;
  }

  .header-bar {
    flex-direction: column;
    padding-bottom: 20px;
  }

  .site-logo {
    text-align: center;
    margin-bottom: 20px;
  }

  .site-logo img {
    max-width: min(200px, 55vw);
    margin: 0 auto;
  }

  .site-nav {
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 0;
    font-size: 0.75rem;
  }

  .hero-grid {
    gap: 24px;
  }

  .hero-image {
    min-height: 280px;
  }

  .section {
    padding: 40px 0;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .icon-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }

  .calendar-nav {
    flex-direction: column;
    gap: 8px;
  }

  .calendar-month {
    padding: 10px;
  }

  .features-table .cell {
    padding: 14px 16px;
    font-size: 0.9rem;
  }
}
