:root {
  --ivory: #fbf7ef;
  --paper: #fffdf8;
  --gold: #b98a46;
  --brown: #3b2a1d;
  --green: #243b2c;
  --green-soft: #3f5f45;
  --sage: #dce6d5;
  --muted: #766b60;
  --line: rgba(59, 42, 29, .15);
  --shadow: 0 24px 60px rgba(43, 31, 20, .14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: #2a241e;
  background: var(--ivory);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.container { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }

.topbar {
  background: var(--green);
  color: rgba(251,247,239,.9);
  font-size: .78rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.topbar .container {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(251,247,239,.95);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.nav {
  min-height: 86px;
  display: flex;
  align-items: center;
  gap: 34px;
}
.logo {
  width: 116px;
  height: 116px;
  flex: 0 0 auto;
  margin: 8px 12px -30px 0;
  background: url("LogoMara_transparent.png") center/contain no-repeat;
  filter: drop-shadow(0 8px 12px rgba(43,31,20,.14));
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-left: auto;
  font-size: 1.12rem;
  font-weight: 700;
  color: #5d4633;
}
.nav-links a { padding: 9px 0; border-bottom: 2px solid transparent; }
.nav-links a:hover,
.nav-links a.active { color: var(--green); border-color: var(--gold); }
.button {
  display: inline-flex;
  min-height: 50px;
  padding: 0 24px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--green);
  color: var(--ivory);
  font-weight: 850;
  box-shadow: 0 12px 28px rgba(36,59,44,.18);
}
.button:hover { background: var(--green-soft); transform: translateY(-1px); }
.button.light { background: var(--ivory); color: var(--green); box-shadow: none; }

.page-hero {
  min-height: 380px;
  display: grid;
  align-items: end;
  position: relative;
  isolation: isolate;
  color: var(--ivory);
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(20,32,23,.84), rgba(20,32,23,.3)),
    var(--hero-image) center/cover no-repeat;
}
.page-hero-content { padding: 74px 0; max-width: 760px; }
.eyebrow {
  margin: 0 0 13px;
  color: #e4cfad;
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .2em;
  text-transform: uppercase;
}
h1, h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  line-height: 1.02;
}
h1 { font-size: clamp(3rem, 6vw, 5.4rem); }
h2 { font-size: clamp(2.1rem, 4vw, 3.8rem); color: var(--brown); }
.page-hero p { max-width: 660px; margin: 20px 0 0; color: rgba(251,247,239,.84); font-size: 1.08rem; }

section { padding: 82px 0; }
.section-head {
  display: grid;
  grid-template-columns: .8fr 1fr;
  gap: 38px;
  align-items: end;
  margin-bottom: 34px;
}
.section-head p { margin: 0; color: var(--muted); }
.summary,
.feature-grid,
.booking-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.summary article,
.feature,
.booking-card {
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--paper);
  box-shadow: 0 12px 32px rgba(43,31,20,.055);
}
.summary strong { display: block; color: var(--green); font-family: Georgia, serif; font-size: 2rem; }
.summary span, .feature p { color: var(--muted); }
.feature strong { display: block; margin-bottom: 7px; color: var(--brown); }
.feature b {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--sage);
  color: var(--green);
}
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
}
.split img {
  width: 100%;
  min-height: 430px;
  object-fit: cover;
  border-radius: 28px;
  box-shadow: var(--shadow);
}
.copy p { color: var(--muted); }
.detail-list { display: grid; gap: 11px; margin-top: 22px; }
.detail-list div {
  padding: 14px 16px;
  background: var(--paper);
  border-left: 3px solid var(--gold);
  font-weight: 700;
}
.detail-list.detail-prose div { font-weight: 500; line-height: 1.55; }
.detail-list.detail-prose strong { color: var(--brown); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}
.gallery-grid button {
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 18px;
  background: #ddd;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(43,31,20,.08);
}
.gallery-grid img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  transition: transform .3s ease;
}
.gallery-grid button:hover img { transform: scale(1.035); }
.gallery-slider {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: var(--green);
  box-shadow: var(--shadow);
}
.gallery-slider > img {
  width: 100%;
  height: min(68vw, 700px);
  min-height: 440px;
  object-fit: cover;
  background: #17251b;
}
.gallery-arrow {
  position: absolute;
  z-index: 2;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 50%;
  background: rgba(20,35,25,.76);
  color: white;
  font-size: 2rem;
  cursor: pointer;
  backdrop-filter: blur(8px);
}
.gallery-arrow:hover { background: var(--green); }
.gallery-arrow.prev { left: 20px; }
.gallery-arrow.next { right: 20px; }
.gallery-counter {
  position: absolute;
  right: 22px;
  bottom: 20px;
  padding: 7px 13px;
  border-radius: 999px;
  background: rgba(20,35,25,.78);
  color: white;
  font-weight: 800;
}
.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 9px;
  margin-top: 15px;
}
.gallery-thumbs button {
  padding: 0;
  overflow: hidden;
  border: 3px solid transparent;
  border-radius: 12px;
  background: transparent;
  opacity: .65;
  cursor: pointer;
}
.gallery-thumbs button.active {
  border-color: var(--gold);
  opacity: 1;
}
.gallery-thumbs img {
  width: 100%;
  height: 82px;
  object-fit: cover;
}
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  place-items: center;
  padding: 30px;
  background: rgba(13,20,15,.92);
}
.lightbox.open { display: grid; }
.lightbox img { max-width: min(1200px, 94vw); max-height: 86vh; border-radius: 18px; }
.lightbox-close {
  position: absolute;
  top: 18px;
  right: 24px;
  border: 0;
  background: transparent;
  color: white;
  font-size: 2.4rem;
  cursor: pointer;
}

.booking-layout {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 28px;
  align-items: start;
}
.price-box {
  padding: 34px;
  border-radius: 28px;
  background: var(--green);
  color: var(--ivory);
  box-shadow: var(--shadow);
}
.price-box h2 { color: var(--ivory); }
.price { margin: 20px 0 4px; font-family: Georgia, serif; font-size: 3rem; }
.price-box p { color: rgba(251,247,239,.78); }
.booking-card { display: grid; gap: 10px; }
.booking-card span { color: var(--gold); font-size: .74rem; font-weight: 900; letter-spacing: .15em; text-transform: uppercase; }
.booking-card strong { font-size: 1.04rem; }
.booking-action {
  margin-top: 24px;
  padding: 28px;
  border-radius: 24px;
  background: #f0e6d6;
}

.calendar-section { background: linear-gradient(180deg, var(--ivory), #f1e9da); scroll-margin-top: 100px; }
.cal-card {
  max-width: 620px;
  margin: 0 auto;
  padding: 30px 32px 34px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--paper);
  box-shadow: var(--shadow);
}
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.cal-title { font-family: Georgia, serif; font-size: 1.65rem; color: var(--brown); }
.cal-nav { display: flex; gap: 10px; }
.cal-nav button {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--green);
  font-size: 1.25rem; line-height: 1;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
}
.cal-nav button:hover:not(:disabled) { background: var(--green); color: #fff; border-color: var(--green); transform: translateY(-1px); }
.cal-nav button:disabled { opacity: .3; cursor: not-allowed; }

.cal-weekdays, .cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.cal-weekdays { margin-bottom: 6px; }
.cal-grid { gap: 4px; }
.cal-weekdays span {
  text-align: center;
  font-size: .7rem; font-weight: 800;
  letter-spacing: .05em; text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 8px;
}
.cal-day {
  position: relative;
  aspect-ratio: 1 / 1;
  display: grid; place-items: center;
  border-radius: 12px;
  font-size: .98rem; font-weight: 600;
  color: var(--brown);
  user-select: none;
}
.cal-day.empty { visibility: hidden; }
.cal-day.past { color: #cdc4b5; }
.cal-day.free { cursor: pointer; transition: background .12s ease, color .12s ease; }
.cal-day.free:hover { background: var(--sage); color: var(--green); }
.cal-day.booked {
  color: #b29a7c;
  text-decoration: line-through;
  cursor: not-allowed;
  background: repeating-linear-gradient(135deg, rgba(154,123,79,.12) 0 6px, rgba(154,123,79,.03) 6px 12px);
}
.cal-day.in-range { background: var(--sage); color: var(--green); border-radius: 6px; }
.cal-day.sel { background: var(--green); color: #fff; font-weight: 800; box-shadow: 0 6px 16px rgba(36,59,44,.28); }

.cal-legend {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 22px;
  margin-top: 22px; padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: .85rem; font-weight: 700; color: var(--muted);
}
.cal-legend span { display: inline-flex; align-items: center; }
.cal-legend i { width: 15px; height: 15px; border-radius: 5px; margin-right: 8px; border: 1px solid var(--line); }
.cal-legend .free i { background: #fff; }
.cal-legend .booked i { background: repeating-linear-gradient(135deg, rgba(154,123,79,.35) 0 4px, rgba(154,123,79,.08) 4px 8px); }
.cal-legend .sel i { background: var(--green); border-color: var(--green); }

.cal-summary { margin-top: 22px; text-align: center; }
.cal-hint { margin: 0; color: var(--muted); }
.cal-selected { margin: 0 0 16px; font-family: Georgia, serif; font-size: 1.3rem; color: var(--brown); }
.cal-reset {
  display: block; margin: 14px auto 0;
  border: 0; background: none;
  color: var(--muted); font-size: .85rem;
  text-decoration: underline; cursor: pointer;
}
.cal-status { margin: 16px 0 0; text-align: center; font-size: .78rem; color: var(--muted); }
.cal-status::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: var(--gold); vertical-align: middle; }

@media (max-width: 620px) {
  .cal-card { padding: 22px 16px 26px; }
  .cal-grid { gap: 3px; }
  .cal-day { font-size: .9rem; border-radius: 9px; }
  .cal-title { font-size: 1.4rem; }
}

.amenity-photo { margin: 34px 0 0; max-width: 440px; }
.amenity-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 22px;
  box-shadow: var(--shadow);
}
.amenity-photo figcaption {
  margin-top: 13px;
  text-align: left;
  color: var(--muted);
  font-size: .9rem;
  font-style: italic;
}

.legal { max-width: 820px; }
.legal .lead { margin: 0 0 30px; font-size: 1.12rem; color: var(--muted); }
.legal h2 {
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  color: var(--brown);
  margin: 40px 0 12px;
}
.legal h2:first-of-type { margin-top: 0; }
.legal p { color: var(--muted); margin: 0 0 14px; }
.legal a { color: var(--green); text-decoration: underline; }
.legal address {
  font-style: normal;
  color: var(--text);
  line-height: 1.85;
  margin: 0 0 14px;
  padding: 16px 18px;
  background: var(--paper);
  border-left: 3px solid var(--gold);
  border-radius: 4px;
}
.legal ul { margin: 0 0 14px; padding-left: 22px; color: var(--muted); }
.legal ul li { margin-bottom: 6px; }

footer {
  padding: 34px 0;
  background: var(--brown);
  color: rgba(251,247,239,.72);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 26px;
}
.footer-links { display: flex; gap: 22px; }
.footer-links a { color: rgba(251,247,239,.85); text-decoration: underline; }
.footer-links a:hover { color: #fff; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px; height: 46px;
  margin-left: auto;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  margin: 0 auto;
  background: var(--green);
  transition: transform .2s ease, opacity .2s ease;
}
.site-header.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.site-header.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav { position: relative; flex-wrap: wrap; row-gap: 8px; }
  .logo { width: 96px; height: 96px; }
  .nav-toggle { display: none; }
  .nav > .button { display: none; }
  .nav-links {
    margin-left: auto;
    gap: 18px;
    flex-wrap: wrap;
    justify-content: flex-end;
    font-size: 1.02rem;
  }
  .nav-links a { padding: 9px 0; }
  .summary, .feature-grid, .booking-grid { grid-template-columns: repeat(2, 1fr); }
  .split, .booking-layout, .section-head { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-thumbs { grid-template-columns: repeat(5, 1fr); }
}
@media (max-width: 620px) {
  .container { width: min(100% - 26px, 1180px); }
  .topbar .container { align-items: flex-start; flex-direction: column; padding: 9px 0; gap: 2px; }
  .nav { gap: 12px; }
  .logo { margin: 0; }
  .nav-links { gap: 10px 14px; font-size: .9rem; width: 100%; justify-content: center; }
  .page-hero { min-height: 330px; }
  .page-hero-content { padding: 58px 0; }
  section { padding: 62px 0; }
  .summary, .feature-grid, .booking-grid, .gallery-grid { grid-template-columns: 1fr; }
  .gallery-grid img { height: 240px; }
  .gallery-slider > img { min-height: 310px; height: 72vw; }
  .gallery-arrow { width: 46px; height: 46px; font-size: 1.5rem; }
  .gallery-arrow.prev { left: 10px; }
  .gallery-arrow.next { right: 10px; }
  .gallery-thumbs { grid-template-columns: repeat(3, 1fr); }
  .gallery-thumbs img { height: 72px; }
}
