:root {
  --forest: #143528;
  --forest-deep: #0c2418;
  --leaf: #2f6b45;
  --moss: #7ea37a;
  --gold: #c9a24a;
  --gold-deep: #a07c2a;
  --cream: #f4efe4;
  --paper: #fbf8f1;
  --ink: #1b241c;
  --muted: #5d675f;
  --line: rgba(20, 53, 40, 0.12);
  --shadow: 0 20px 50px rgba(12, 36, 24, 0.12);
  --gutter: clamp(1rem, 4.5vw, 3.5rem);
  --max: 1120px;
  --radius: 18px;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  max-width: 100%;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: Outfit, system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  max-width: 100%;
  overflow-x: hidden;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.4em;
  overflow-wrap: anywhere;
}
h1 { font-size: clamp(2.05rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.55rem, 3.2vw, 2.55rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); }
p { margin: 0 0 1rem; }
.inner {
  width: min(var(--max), calc(100% - (var(--gutter) * 2)));
  margin-inline: auto;
}
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: #fff; padding: .5rem; z-index: 9; }

.topbar {
  background: var(--forest-deep);
  color: #e7efe6;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  padding: 0.45rem 0;
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}
.topbar a { color: var(--gold); text-decoration: none; }

.nav-wrap {
  background: rgba(251, 248, 241, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 40;
  padding: 0.75rem 0;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  position: relative;
}
.logo { display: flex; gap: 0.7rem; align-items: center; text-decoration: none; min-width: 0; }
.logo-mark {
  width: 42px; height: 42px; border-radius: 50%; flex: 0 0 auto;
  background: var(--forest); color: var(--gold);
  display: grid; place-items: center;
  font-family: "Cormorant Garamond", serif; font-size: 1.4rem;
}
.logo strong { display: block; font-size: 1.05rem; }
.logo small { color: var(--muted); letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.68rem; }

.main-nav { display: flex; gap: 1.1rem; align-items: center; flex-wrap: wrap; }
.main-nav a { text-decoration: none; font-size: 0.92rem; color: var(--forest); white-space: nowrap; }
.main-nav a.is-active { color: var(--gold-deep); }
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  font-size: 1.5rem;
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
  color: var(--forest);
}

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.78rem 1.25rem; border-radius: 999px;
  text-decoration: none; border: 0; cursor: pointer;
  font: inherit; font-weight: 500;
  min-height: 44px;
  text-align: center;
}
.btn-gold { background: var(--gold); color: var(--forest-deep); }
.btn-gold:hover { background: #d6b25b; }
.btn-dark { background: var(--forest); color: #fff; }
.btn-ghost, .btn-outline {
  border: 1px solid rgba(255,255,255,.45); color: #fff; background: transparent;
}
.btn-outline { border-color: var(--gold); color: var(--gold); }
.btn-outline-dark {
  border: 1px solid var(--forest);
  color: var(--forest);
  background: transparent;
}
.pkg-actions { display: flex; flex-wrap: wrap; gap: 0.65rem; margin-top: 1rem; }
.pkg-detail { padding: 1.2rem 0 4.5rem; display: grid; gap: 1.6rem; }

/* ---------- Package gallery (fixed) ---------- */
/* Desktop: wide hero on top, remaining photos in a row below.
   Sizes come from aspect-ratio, not viewport width, so nothing stretches. */
.pkg-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
}
.pkg-gallery figure {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 4 / 3;
}
.pkg-gallery img { width: 100%; height: 100%; object-fit: cover; }
.pkg-gallery-hero {
  grid-column: 1 / -1;
  aspect-ratio: 21 / 9 !important;
}
.pkg-gallery figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(transparent, rgba(0,0,0,.55));
  color: #fff; padding: 1.2rem 0.7rem 0.5rem; font-size: 0.82rem;
}
.pkg-copy { max-width: 46rem; }
.admin-thumbs { display: flex; flex-wrap: wrap; gap: 0.8rem; margin: 0 0 2rem; }
.admin-thumbs figure { margin: 0; width: 140px; }
.admin-thumbs img { width: 140px; height: 100px; object-fit: cover; border-radius: 10px; }
.text-link { color: var(--leaf); font-weight: 500; text-decoration: none; }

.hero {
  position: relative;
  min-height: min(86vh, 860px);
  min-height: min(86svh, 860px);
  background: var(--hero) center/cover no-repeat;
  color: #f7f3ea;
  display: grid;
  align-items: end;
  padding: clamp(4rem, 10vh, 8rem) 0 clamp(3rem, 8vh, 6.5rem);
  overflow: hidden;
  isolation: isolate;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(12,36,24,.82), rgba(12,36,24,.28) 70%, rgba(12,36,24,.18));
  pointer-events: none;
}
.hero-copy { position: relative; z-index: 2; max-width: 40rem; }
.eyebrow {
  text-transform: uppercase; letter-spacing: 0.22em; font-size: 0.72rem;
  color: var(--gold); margin-bottom: 0.6rem;
}
.hero .lead { font-size: clamp(1rem, 2vw, 1.15rem); max-width: 38rem; color: #e8e2d4; }
.page-hero .lead { font-size: clamp(1rem, 2vw, 1.12rem); max-width: 40rem; color: var(--muted); }
.hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 1.4rem; }

.band { background: var(--forest); color: #eef5ee; padding: 1.4rem 0; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.stats strong, .dash-stats strong { display: block; font-family: "Cormorant Garamond", serif; font-size: 1.35rem; color: var(--gold); }
.stats span { font-size: 0.86rem; color: #c9d6c8; }
.dash-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
  margin-bottom: 1.4rem;
}
.dash-stats div { background: #fff; padding: 0.9rem 1rem; border-radius: 12px; }
.dash-stats span { color: var(--muted); font-size: 0.85rem; }
.dash-stats strong { color: var(--forest); }

.section { padding: clamp(2.6rem, 7vw, 5.2rem) 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 1.6rem; flex-wrap: wrap; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.2rem, 4vw, 3rem); align-items: center; }
.frame { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); margin: 0; }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
.card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; min-width: 0; }
.card-media { aspect-ratio: 4/3; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 1.15rem 1.2rem 1.4rem; flex: 1; display: flex; flex-direction: column; gap: 0.35rem; }
.card-body .btn { margin-top: auto; }
.meta { color: var(--muted); font-size: 0.85rem; letter-spacing: 0.04em; }

.cal-preview { background: var(--cream); }
.calendar {
  background: #fff; border-radius: var(--radius); padding: 1.1rem; box-shadow: var(--shadow);
  width: 100%;
}
.cal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.8rem; gap: 0.5rem; }
.cal-head button { background: var(--forest); color: #fff; border: 0; border-radius: 999px; width: 36px; height: 36px; cursor: pointer; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; text-align: center; }
.cal-grid span, .cal-grid button {
  aspect-ratio: 1; border: 0; background: transparent; font: inherit; border-radius: 10px;
  min-width: 0;
}
.cal-grid .dow { color: var(--muted); font-size: 0.7rem; aspect-ratio: auto; padding: 0.3rem 0; }
.cal-grid button { cursor: pointer; }
.cal-grid button.booked { background: #ead7d2; color: #8a3b32; text-decoration: line-through; cursor: not-allowed; }
.cal-grid button.past { color: #9aa59a; cursor: default; }
.cal-grid button.open:hover { background: #e7efe4; }
.cal-grid button.selected, .cal-grid button.in-range { background: var(--forest); color: #fff; }
.cal-grid button.today { outline: 1px solid var(--gold); }
.cal-grid button:disabled { opacity: 0.85; }
.legend { display: flex; gap: 0.9rem; list-style: none; padding: 0; font-size: 0.85rem; flex-wrap: wrap; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; margin-right: 0.3rem; }
.dot.open { background: #e7efe4; border: 1px solid var(--leaf); }
.dot.booked { background: #ead7d2; }
.dot.selected { background: var(--forest); }

.mosaic { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; }
.mosaic figure { margin: 0; border-radius: 14px; overflow: hidden; position: relative; }
.mosaic img { width: 100%; height: 220px; object-fit: cover; }
.mosaic.tall img { height: 260px; }
.mosaic figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(transparent, rgba(0,0,0,.65));
  color: #fff; padding: 1.4rem 0.8rem 0.6rem; font-size: 0.85rem;
}

.cta-wrap { padding: 0 0 3.5rem; }
.cta {
  padding: clamp(2rem, 5vw, 3.6rem) clamp(1.2rem, 4vw, 2rem);
  text-align: center;
  background: var(--forest-deep); color: #f4efe4; border-radius: 24px;
}
.cta .btn { margin-top: 0.6rem; }

.page-hero { padding: clamp(2.2rem, 5vw, 4rem) 0 1.2rem; background: var(--cream); }
.prose { max-width: 46rem; padding: 1.4rem 0 4.2rem; }
.prose.compact { padding: 0; max-width: none; }
.prose p { margin-bottom: 1rem; }
.prose img { border-radius: 12px; margin: 0.8rem 0; }

.package-list { padding: 1.4rem 0 4.2rem; display: grid; gap: 1.4rem; }
.package {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.2fr); gap: 0;
  background: #fff; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow);
}
.package img { width: 100%; height: 100%; min-height: 240px; object-fit: cover; }
.package > div { padding: 1.4rem 1.4rem 1.6rem; min-width: 0; }

.form { background: #fff; padding: 1.25rem; border-radius: 16px; box-shadow: var(--shadow); display: grid; gap: 0.8rem; }
.form label { display: grid; gap: 0.3rem; font-size: 0.88rem; color: var(--muted); }
.form input, .form select, .form textarea {
  font: inherit; padding: 0.75rem 0.8rem; border-radius: 10px;
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  width: 100%; font-size: 16px; max-width: 100%;
}
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.alert { padding: 0.7rem 0.8rem; border-radius: 10px; }
.alert.error { background: #f8e4e1; color: #7a2d26; }
.alert.success { background: #e5f2e4; color: #21552c; }
.fine { font-size: 0.82rem; color: var(--muted); }
.book-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 1.5rem; padding: 1.4rem 0 4.2rem; align-items: start; }
.h-small { font-size: 1.35rem; }
.contact-grid { padding: 1.4rem 0 4.2rem; align-items: start; }

.site-footer { background: var(--forest-deep); color: #d7e0d6; padding: 2.6rem 0 1.3rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 1.4rem; }
.site-footer a { display: block; color: #e8efe6; text-decoration: none; margin: 0.25rem 0; }
.copyright { margin-top: 1.8rem; border-top: 1px solid rgba(255,255,255,.08); padding-top: 1rem; font-size: 0.82rem; }

.admin-body { background: #eef2ee; }
.admin-shell { display: grid; grid-template-columns: 240px minmax(0, 1fr); min-height: 100vh; }
.admin-side { background: var(--forest-deep); color: #e8efe6; padding: 1.4rem 1rem; }
.admin-side a { display: block; color: #e8efe6; text-decoration: none; padding: 0.55rem 0.7rem; border-radius: 8px; }
.admin-side a:hover, .admin-side a.is-active { background: rgba(255,255,255,.08); }
.admin-main { padding: 1.4rem clamp(1rem, 3vw, 2rem); min-width: 0; }
.table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 12px; overflow: hidden; }
.table th, .table td { padding: 0.7rem 0.8rem; border-bottom: 1px solid var(--line); text-align: left; font-size: 0.92rem; }
.login-box { max-width: 420px; margin: 12vh auto; width: calc(100% - 2rem); }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.page-banner { padding: 0 0 1.4rem; }
.page-banner img { width: 100%; max-height: 420px; object-fit: cover; border-radius: 16px; }
.mosaic-pad { margin: 0 auto 3.5rem; }
.page-tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.editor-toolbar { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; }
.editor-toolbar button, .editor-upload {
  border: 1px solid var(--line); background: #fff; border-radius: 8px;
  padding: 0.4rem 0.7rem; cursor: pointer; font: inherit;
}
.editor-upload { display: inline-flex; align-items: center; gap: 0.4rem; }
.editor-upload input { width: auto; font-size: 0.85rem; }
.editor-surface {
  min-height: 260px; border: 1px solid var(--line); border-radius: 12px;
  padding: 0.9rem; background: #fff; line-height: 1.55;
}
.editor-surface:focus { outline: 2px solid var(--gold); }
.editor-preview { max-width: min(280px, 100%); border-radius: 12px; }
.admin-menu-btn { display: none; margin-bottom: 1rem; }

@media (max-width: 1100px) {
  .card-grid, .mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats, .dash-stats, .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .nav-toggle { display: grid; place-items: center; }
  .main-nav {
    display: none;
    position: absolute;
    top: calc(100% + 0.55rem);
    right: 0;
    left: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 0.7rem;
    border-radius: 14px;
    box-shadow: var(--shadow);
    z-index: 50;
    gap: 0.15rem;
  }
  .main-nav a, .main-nav .btn {
    padding: 0.85rem 0.7rem;
    width: 100%;
    white-space: normal;
  }
  .main-nav.is-open { display: flex; }
  .split, .book-layout, .package, .two, .admin-shell {
    grid-template-columns: 1fr;
  }
  .pkg-gallery { grid-template-columns: 1fr 1fr; }
  .pkg-gallery-hero { aspect-ratio: 16 / 10 !important; }
  .hero { min-height: 78svh; align-items: end; }
  .package img { min-height: 210px; max-height: 280px; }
  .admin-menu-btn { display: inline-flex; }
  .admin-side { display: none; }
  .admin-side.is-open { display: block; }
  .cal-grid span, .cal-grid button {
    aspect-ratio: auto;
    min-height: 40px;
    font-size: 0.88rem;
  }
}

@media (max-width: 640px) {
  .card-grid, .mosaic, .stats, .dash-stats, .footer-grid, .pkg-gallery {
    grid-template-columns: 1fr;
  }
  .pkg-gallery-hero { aspect-ratio: 4 / 3 !important; }
  .mosaic img, .mosaic.tall img { height: 210px; }
  .logo small { display: none; }
  .hero { min-height: 86svh; padding-bottom: 3.2rem; }
  .hero-actions, .pkg-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn, .cta .btn, .form .btn, .pkg-actions .btn { width: 100%; }
  .cta { border-radius: 18px; }
  .login-box { margin: 8vh auto; }
  .legend { gap: 0.55rem; }
}

@media (min-width: 901px) {
  .book-layout .form { position: sticky; top: 5.5rem; }
}