/* ============================================
   TOKENS
   ============================================ */
:root {
  --ink: #1B2118;
  --forest: #2C3B2E;
  --forest-deep: #202B22;
  --parchment: #EDE6D6;
  --parchment-dim: #E2D9C4;
  --timber: #5A4632;
  --lantern: #C98A2B;
  --lantern-bright: #E0A94A;
  --moss: #7C8B6F;
  --line: rgba(237, 230, 214, 0.14);
  --line-dark: rgba(27, 33, 24, 0.12);

  --font-display: 'Fraunces', serif;
  --font-body: 'Karla', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  --max-width: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--parchment);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

a { color: inherit; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 3px solid var(--lantern); outline-offset: 3px; }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 48px);
}

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; margin: 0; letter-spacing: -0.01em; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lantern);
}

/* ============================================
   HEADER / NAV
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(27, 33, 24, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand {
  font-family: var(--font-display);
  color: var(--parchment);
  font-size: 1.25rem;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.brand small {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  color: var(--moss);
  text-transform: uppercase;
  margin-top: 3px;
}

.nav-links {
  display: flex;
  gap: clamp(14px, 3vw, 32px);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--parchment-dim);
  text-decoration: none;
  font-size: 0.92rem;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--lantern-bright); }

.nav-cta {
  background: var(--lantern);
  color: var(--ink) !important;
  padding: 8px 18px;
  border-radius: 3px;
  font-weight: 700;
}
.nav-cta:hover { background: var(--lantern-bright); }

.nav-toggle { display: none; }

.nav-burger {
  display: none;
  background: none;
  border: 1px solid var(--line);
  color: var(--parchment);
  font-size: 1.1rem;
  width: 40px;
  height: 40px;
  border-radius: 3px;
  cursor: pointer;
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  background: var(--forest-deep);
  color: var(--parchment);
  overflow: hidden;
  padding: clamp(56px, 10vw, 108px) 0 clamp(40px, 8vw, 72px);
}

.topo-bg {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  pointer-events: none;
}

.hero .wrap {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
}

.hero-copy h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.04;
  margin: 14px 0 20px;
}
.hero-copy h1 em {
  font-style: italic;
  color: var(--lantern-bright);
}
.hero-copy p {
  max-width: 46ch;
  color: var(--parchment-dim);
  font-size: 1.06rem;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 3px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.2s;
  font-family: var(--font-body);
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--lantern); color: var(--ink); }
.btn-primary:hover { background: var(--lantern-bright); }
.btn-ghost { border-color: var(--line); color: var(--parchment); }
.btn-ghost:hover { border-color: var(--lantern); }
.btn-dark { background: var(--ink); color: var(--parchment); }
.btn-dark:hover { background: var(--forest); }

/* Map plot — the signature element */
.plot-map {
  background: var(--forest);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 22px;
}
.plot-map svg { width: 100%; height: auto; }
.plot-caption {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--moss);
  margin-top: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.map-pin { cursor: pointer; }
.map-pin circle { transition: r 0.2s; }
.map-pin:hover circle { r: 9; }
.map-pin text { fill: var(--parchment); font-family: var(--font-mono); font-size: 9px; }

/* ============================================
   SECTION SHELLS
   ============================================ */
.section { padding: clamp(56px, 9vw, 96px) 0; }
.section-dark { background: var(--ink); color: var(--parchment); }
.section-head { max-width: 620px; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); margin-top: 10px; }
.section-head p { color: var(--timber); margin-top: 12px; }
.section-dark .section-head p { color: var(--parchment-dim); }

/* ============================================
   STORY / LAND SECTION
   ============================================ */
.story-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.story-card {
  border-top: 2px solid var(--lantern);
  padding-top: 16px;
}
.story-card .num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--moss);
}
.story-card h3 { font-size: 1.15rem; margin: 8px 0 8px; }
.story-card p { font-size: 0.94rem; color: var(--timber); margin: 0; }

/* ============================================
   NEARBY ATTRACTIONS
   ============================================ */
.attraction-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}
.attraction-card {
  background: #fff;
  border: 1px solid var(--line-dark);
  border-radius: 6px;
  overflow: hidden;
}
.attraction-card img,
.attraction-card .photo-slot {
  aspect-ratio: 3/4;
  width: 100%;
  object-fit: cover;
}
.attraction-card .photo-slot {
  font-size: 0.66rem;
}
.attraction-card-body {
  padding: 14px;
}
.attraction-card-body h3 {
  font-size: 1rem;
  margin-bottom: 4px;
}
.attraction-card-body p {
  font-size: 0.82rem;
  color: var(--timber);
  margin: 0;
}

@media (max-width: 900px) {
  .attraction-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================
   CABIN CARDS (overview grid)
   ============================================ */
.cabin-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.cabin-card {
  background: #fff;
  border: 1px solid var(--line-dark);
  border-radius: 6px;
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, transform 0.2s;
}
.cabin-card:hover { box-shadow: 0 14px 30px -14px rgba(27,33,24,0.35); transform: translateY(-3px); }

.cabin-card img {
  aspect-ratio: 4/3;
  width: 100%;
  object-fit: cover;
}

.photo-slot {
  aspect-ratio: 4/3;
  background: repeating-linear-gradient(135deg, var(--parchment-dim), var(--parchment-dim) 10px, #DCD1B6 10px, #DCD1B6 20px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--timber);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-align: center;
  padding: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.cabin-card-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.cabin-card-body h3 { font-size: 1.3rem; }
.cabin-meta {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--moss);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 8px 0 12px;
}
.cabin-card-body p { font-size: 0.92rem; color: var(--timber); flex: 1; }
.cabin-card-cta {
  margin-top: 14px;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--lantern);
}

/* ============================================
   CABIN DETAIL SECTIONS
   ============================================ */
.cabin-detail { border-top: 1px solid var(--line-dark); }
.cabin-detail:nth-child(even) { background: #F7F2E7; }

.detail-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 30px;
}
.detail-head h2 { font-size: clamp(1.8rem, 3.2vw, 2.4rem); }
.rate-badge {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  background: var(--ink);
  color: var(--lantern-bright);
  padding: 8px 14px;
  border-radius: 3px;
  white-space: nowrap;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 34px;
}
.gallery img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 3px;
}
.gallery img:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }

.gallery .photo-slot:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }

.detail-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 44px;
  align-items: start;
}

.amenities {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 18px;
}
.amenities li {
  font-size: 0.92rem;
  padding-left: 18px;
  position: relative;
}
.amenities li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--lantern);
}

/* Calendar */
.calendar-box {
  background: var(--ink);
  color: var(--parchment);
  border-radius: 6px;
  padding: 22px;
}
.cal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.cal-header button {
  background: none;
  border: 1px solid var(--line);
  color: var(--parchment);
  border-radius: 3px;
  width: 30px; height: 30px;
  cursor: pointer;
  font-size: 1rem;
}
.cal-title {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  font-size: 0.78rem;
}
.cal-dow {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--moss);
  padding-bottom: 4px;
}
.cal-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
  background: rgba(237,230,214,0.06);
}
.cal-day.available { background: rgba(124,139,111,0.35); }
.cal-day.booked { background: rgba(0,0,0,0.35); color: rgba(237,230,214,0.35); text-decoration: line-through; }
.cal-day.empty { background: transparent; }
.cal-legend {
  display: flex;
  gap: 18px;
  margin-top: 14px;
  font-size: 0.75rem;
  color: var(--parchment-dim);
}
.cal-legend span { display: flex; align-items: center; gap: 6px; }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.dot.available { background: var(--moss); }
.dot.booked { background: rgba(237,230,214,0.25); }

.inquire-link {
  display: inline-block;
  margin-top: 18px;
  color: var(--lantern-bright);
  font-weight: 700;
  text-decoration: none;
}

/* ============================================
   INQUIRY FORM
   ============================================ */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form-grid .full { grid-column: 1 / -1; }
label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
  color: var(--moss);
}
input, select, textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: rgba(237,230,214,0.04);
  color: var(--parchment);
  border-radius: 3px;
  font-family: var(--font-body);
  font-size: 0.95rem;
}
textarea { resize: vertical; min-height: 100px; }
input::placeholder, textarea::placeholder { color: rgba(237,230,214,0.35); }
.form-note {
  font-size: 0.82rem;
  color: var(--parchment-dim);
  margin-top: 16px;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
  background: var(--forest-deep);
  color: var(--parchment-dim);
  padding: 44px 0 30px;
  font-size: 0.88rem;
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 24px;
  margin-bottom: 20px;
}
.footer-grid h4 { color: var(--parchment); font-size: 1rem; margin-bottom: 8px; }
footer .fine { font-family: var(--font-mono); font-size: 0.72rem; color: var(--moss); }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .story-grid, .cabin-grid { grid-template-columns: 1fr; }
  .detail-layout { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery .photo-slot:first-child, .gallery img:first-child { grid-column: span 2; grid-row: span 1; aspect-ratio: 16/9; }
  .form-grid { grid-template-columns: 1fr; }
  .nav-burger { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--forest-deep);
    flex-direction: column;
    padding: 16px clamp(20px, 5vw, 48px) 22px;
    gap: 16px !important;
    border-bottom: 1px solid var(--line);
  }
  .nav-links.open { display: flex; }
}
