:root {
  --navy: #1d2838;
  --navy-2: #2c3a50;
  --cream: #faf6ee;
  --paper: #ffffff;
  --gold: #c9962e;
  --gold-soft: #f6e7c2;
  --ink: #1d2838;
  --muted: #5d6676;
  --line: #e7e0d2;
  --avail: #e5f2e7;
  --avail-ink: #25623a;
  --share: #f9dfa0;
  --share-ink: #7a5310;
  --booked: #3a4658;
  --booked-ink: #ffffff;
  --danger: #b23a3a;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(29, 40, 56, .06), 0 8px 24px rgba(29, 40, 56, .08);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--navy); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.eyebrow { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--gold); margin-bottom: .6rem; }

/* buttons & forms */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font: 600 .98rem var(--sans); padding: .8em 1.4em; border-radius: 999px;
  border: 1.5px solid transparent; cursor: pointer; text-decoration: none;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--gold); color: #fff; }
.btn-primary:hover { background: #b5841f; }
.btn-light { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.55); backdrop-filter: blur(4px); }
.btn-light:hover { background: rgba(255,255,255,.24); }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--navy-2); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { background: #fff; }
.btn-danger { background: transparent; color: var(--danger); border-color: #e9c5c5; }
.btn-danger:hover { background: #fbeeee; }
.btn-sm { padding: .45em .9em; font-size: .88rem; }
.btn[disabled] { opacity: .55; cursor: default; }

label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .35rem; }
.field { margin-bottom: 1rem; }
input, select, textarea {
  width: 100%; font: 400 1rem var(--sans); color: var(--ink);
  padding: .72em .85em; border: 1.5px solid var(--line); border-radius: 10px; background: #fff;
}
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus, .btn:focus-visible { outline: 3px solid rgba(201,150,46,.35); outline-offset: 1px; border-color: var(--gold); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { padding: .9em 1.1em; border-radius: 10px; margin-bottom: 1rem; font-size: .95rem; }
.alert-error { background: #fbeeee; color: #8a2b2b; }
.alert-ok { background: var(--avail); color: var(--avail-ink); }

/* ---------------- public site ---------------- */
.topbar {
  position: absolute; inset: 0 0 auto 0; z-index: 5;
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 24px; color: #fff;
}
.brand { font-family: var(--serif); font-weight: 600; font-size: 1.15rem; color: #fff; text-decoration: none; }
.topnav { display: flex; gap: 22px; }
.topnav a { color: #fff; text-decoration: none; font-weight: 500; font-size: .95rem; opacity: .9; }
.topnav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }

.hero {
  position: relative; min-height: min(88vh, 760px); display: flex; align-items: flex-end;
  color: #fff; background: var(--navy) center/cover no-repeat;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,28,40,.55) 0%, rgba(20,28,40,.15) 35%, rgba(20,28,40,.78) 100%);
}
.hero .wrap { position: relative; padding-bottom: 64px; padding-top: 120px; width: 100%; }
.hero h1 { font-size: clamp(2.5rem, 7vw, 4.6rem); margin-bottom: .25em; }
.hero .tagline { font-size: clamp(1.05rem, 2.2vw, 1.35rem); max-width: 640px; opacity: .95; margin-bottom: 1.6rem; }
.hero .loc { display: inline-flex; align-items: center; gap: .45em; font-size: .95rem; font-weight: 500; opacity: .92; margin-bottom: 1rem; }
.hero .ctas { display: flex; gap: 12px; flex-wrap: wrap; }

.stats {
  position: relative; z-index: 2; margin-top: -44px;
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
}
.stat { padding: 22px 18px; text-align: center; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat .v { font-family: var(--serif); font-size: 2rem; font-weight: 600; color: var(--navy); line-height: 1.1; }
.stat .l { font-size: .88rem; color: var(--muted); margin-top: 4px; }

section.block { padding: 84px 0; }
.about { display: grid; grid-template-columns: 1.25fr 1fr; gap: 56px; align-items: start; }
.about .lead { font-size: 1.12rem; }
.impact { display: grid; gap: 14px; }
.impact-card { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 26px 26px; }
.impact-card .v { font-family: var(--serif); font-size: 2.6rem; line-height: 1; color: var(--gold-soft); }
.impact-card .l { opacity: .88; margin-top: 6px; }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.gallery button {
  all: unset; cursor: zoom-in; position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 4 / 3; background: #e9e3d6;
}
.gallery button:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery button:hover img { transform: scale(1.03); }
.gallery .cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 12px 10px; color: #fff; font-size: .88rem; font-weight: 500;
  background: linear-gradient(transparent, rgba(0,0,0,.6));
}
.gallery button:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }

.lightbox { position: fixed; inset: 0; background: rgba(12,16,24,.92); z-index: 50; display: none; align-items: center; justify-content: center; padding: 24px; }
.lightbox.open { display: flex; }
.lightbox img { max-height: 84vh; max-width: min(1100px, 100%); border-radius: 8px; }
.lightbox .lb-cap { color: #fff; text-align: center; margin-top: 12px; }
.lightbox .lb-btn { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.12); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 1.5rem; cursor: pointer; }
.lightbox .lb-prev { left: 16px; } .lightbox .lb-next { right: 16px; }
.lightbox .lb-close { position: absolute; top: 16px; right: 16px; background: rgba(255,255,255,.12); color: #fff; border: 0; width: 44px; height: 44px; border-radius: 50%; font-size: 1.4rem; cursor: pointer; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }

.band { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* calendar */
.cal-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.legend { display: flex; gap: 18px; flex-wrap: wrap; font-size: .9rem; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.sw { width: 16px; height: 16px; border-radius: 4px; display: inline-block; border: 1px solid rgba(0,0,0,.06); }
.sw.avail { background: var(--avail); } .sw.share { background: var(--share); } .sw.booked { background: var(--booked); }
.cal-nav { display: flex; gap: 8px; align-items: center; }
.cal-nav button { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--line); background: #fff; cursor: pointer; font-size: 1.1rem; color: var(--navy); }
.cal-nav button:disabled { opacity: .35; cursor: default; }
.months { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.month h3 { font-family: var(--sans); font-size: 1.02rem; font-weight: 600; text-align: center; margin-bottom: 12px; }
.grid7 { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.dow { text-align: center; font-size: .74rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; padding-bottom: 4px; }
.day {
  aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; border-radius: 8px;
  font-size: .92rem; font-weight: 500; background: var(--avail); color: var(--avail-ink); position: relative;
}
.day.empty { background: transparent; }
.day.past { background: #f1eee7; color: #b3ad9f; }
.day.share { background: var(--share); color: var(--share-ink); }
.day.booked { background: var(--booked); color: var(--booked-ink); }
.day.today::after { content: ""; position: absolute; bottom: 5px; width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.cal-note { font-size: .92rem; color: var(--muted); margin-top: 18px; }

/* inquiry */
.inquire { display: grid; grid-template-columns: 1fr 1.35fr; gap: 56px; align-items: start; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.form-card h3 { margin-bottom: .2em; }
.req { color: var(--gold); }

footer.site { background: var(--navy); color: rgba(255,255,255,.8); padding: 40px 0; font-size: .92rem; }
footer.site .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer.site a { color: rgba(255,255,255,.6); }

@media (max-width: 860px) {
  .about, .inquire { grid-template-columns: 1fr; gap: 32px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .months { grid-template-columns: 1fr; }
  .months .month:nth-child(2) { display: none; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .topnav { display: none; }
  section.block { padding: 64px 0; }
}
@media (max-width: 520px) {
  .row2 { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .gallery button:first-child { grid-column: auto; grid-row: auto; aspect-ratio: 4 / 3; }
  .form-card { padding: 22px; }
}

/* ---------------- admin ---------------- */
.admin-shell { min-height: 100vh; }
.admin-top { background: var(--navy); color: #fff; }
.admin-top .wrap { display: flex; justify-content: space-between; align-items: center; height: 64px; gap: 12px; }
.admin-top .brand small { font-family: var(--sans); font-weight: 500; opacity: .7; font-size: .8rem; margin-left: 8px; }
.admin-top .who { display: flex; gap: 12px; align-items: center; font-size: .9rem; }
.admin-top .who a, .admin-top .who button { color: #fff; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 24px 0; overflow-x: auto; }
.tabs button { all: unset; cursor: pointer; padding: 12px 16px; font-weight: 600; color: var(--muted); border-bottom: 3px solid transparent; white-space: nowrap; }
.tabs button[aria-selected="true"] { color: var(--navy); border-color: var(--gold); }
.tabs .badge { background: var(--gold); color: #fff; border-radius: 999px; font-size: .72rem; padding: 1px 7px; margin-left: 6px; }
.panel { display: none; padding-bottom: 60px; }
.panel.active { display: block; }
.admin-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 28px; align-items: start; }
.box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.box + .box { margin-top: 18px; }
.box h3 { font-family: var(--sans); font-size: 1.05rem; }
.admin .day { cursor: pointer; }
.admin .day:hover { outline: 2px solid var(--gold); }
.admin .day.past { cursor: default; }
.admin .day.past:hover { outline: 0; }
.blist { list-style: none; margin: 0; padding: 0; }
.blist li { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.blist li + li { margin-top: 8px; }
.blist .t { font-weight: 600; }
.blist .d { font-size: .88rem; color: var(--muted); }
.pill { display: inline-block; font-size: .74rem; font-weight: 600; padding: 2px 9px; border-radius: 999px; }
.pill.share { background: var(--share); color: var(--share-ink); }
.pill.booked { background: var(--booked); color: #fff; }
.pill.new { background: var(--gold-soft); color: #7a5310; }
.pill.handled { background: #eceae4; color: var(--muted); }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.seg label { font-weight: 500; border: 1.5px solid var(--line); border-radius: 10px; padding: 10px 12px; cursor: pointer; display: flex; gap: 8px; align-items: flex-start; margin: 0; font-size: .92rem; }
.seg input { width: auto; margin-top: 4px; }
.seg label:has(input:checked) { border-color: var(--gold); background: #fffaf0; }
.inq { border: 1px solid var(--line); border-radius: 12px; background: #fff; padding: 18px; }
.inq + .inq { margin-top: 12px; }
.inq-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: start; }
.inq dl { display: grid; grid-template-columns: 170px 1fr; gap: 4px 14px; margin: 12px 0 0; font-size: .93rem; }
.inq dt { color: var(--muted); }
.inq dd { margin: 0; white-space: pre-wrap; word-break: break-word; }
.photos-admin { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.ph { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.ph img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.ph .ph-body { padding: 10px; }
.ph .ph-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.ph.hero-sel { outline: 3px solid var(--gold); }
.repeat-item { border: 1px dashed var(--line); border-radius: 10px; padding: 14px; margin-bottom: 10px; background: #fdfbf7; }
.savebar { position: sticky; bottom: 0; background: rgba(250,246,238,.95); backdrop-filter: blur(6px); padding: 14px 0; border-top: 1px solid var(--line); display: flex; gap: 12px; align-items: center; margin-top: 20px; }
.login-card { max-width: 420px; margin: 10vh auto; }
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--navy); color: #fff; padding: 12px 20px; border-radius: 999px; font-weight: 500; z-index: 60; box-shadow: var(--shadow); display: none; }
.toast.show { display: block; }
.empty-state { color: var(--muted); padding: 24px; text-align: center; border: 1px dashed var(--line); border-radius: 12px; }
@media (max-width: 860px) { .admin-grid { grid-template-columns: 1fr; } .inq dl { grid-template-columns: 1fr; } .inq dt { margin-top: 6px; } }
