/* HoHoCo — slate, bracken and fell-green */
:root {
  --bg: #d3e0cb;      /* light fell-green, to sit with the header photo */
  --tint: #c5d6bc;    /* table heads, hovers, summary boxes */
  --paper: #fbfdf9;
  --ink: #26302c;
  --muted: #5f6b66;
  --line: #b8cbae;
  --slate: #3d4a52;
  --header: #2e4a39;  /* deep fell-green menu bar */
  --fell: #3f6b4f;
  --fell-dark: #2f533c;
  --bracken: #b0652f;
  --approved: #b5523b;
  --approved-soft: #e9c5bb;
  --pending: #d9a441;
  --pending-soft: #f3e1b6;
  --sel: #3f6b4f;
  --sel-soft: #cfe1d4;
  --radius: 10px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--sans); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--fell-dark); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.2; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); margin: 0 0 .4rem; }
h2 { font-size: 1.7rem; margin: 2.2rem 0 .8rem; }
h3 { font-size: 1.2rem; }

.wrap { width: min(1100px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); margin-inline: auto; }

/* header */
.top { background: var(--header); color: #fff; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .8rem 0; flex-wrap: wrap; }
.brand { color: #fff; text-decoration: none; font-family: var(--serif); font-size: 1.35rem; font-weight: 600; }
.brand small { font-family: var(--sans); font-weight: 400; font-size: .8rem; opacity: .75; margin-left: .4rem; }
.top nav { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.top nav a, .top nav button { color: #e8ecef; text-decoration: none; font-size: .95rem; background: none; border: 0; cursor: pointer; padding: 0; font: inherit; }
.top nav a:hover, .top nav button:hover { color: #fff; text-decoration: underline; }
.top nav .cta { background: var(--bracken); color: #fff; padding: .45rem .9rem; border-radius: 999px; font-weight: 600; }
.top nav .cta:hover { text-decoration: none; filter: brightness(1.08); }

/* admin sign-in / account icon, always at the right of the menu bar */
.account { position: relative; }
.account > summary, .top a.account { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.45); color: #e8ecef; cursor: pointer; list-style: none; position: relative; }
.account > summary::-webkit-details-marker { display: none; }
.top a.account:hover, .account > summary:hover { border-color: #fff; color: #fff; text-decoration: none; }
.account.in > summary { background: #fff; color: var(--header); border-color: #fff; }
.account .dot { position: absolute; right: -2px; bottom: -2px; width: 12px; height: 12px; border-radius: 50%;
  background: #6fd08c; border: 2px solid var(--header); }
.account-menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 20; min-width: 200px; background: var(--paper); color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 8px 24px rgba(0,0,0,.18); padding: .4rem; }
.account-menu .who { margin: .3rem .6rem .5rem; font-size: .82rem; color: var(--muted); }
.account-menu .who strong { color: var(--ink); }
.top .account-menu a, .top .account-menu button {
  background: none; border: 0; cursor: pointer; font: inherit; text-decoration: none; display: block; width: 100%; text-align: left; color: var(--ink);
  padding: .5rem .6rem; border-radius: 6px; font-size: .95rem; }
.top .account-menu a:hover, .top .account-menu button:hover { background: var(--tint); color: var(--ink); text-decoration: none; }
.account-menu form { margin: 0; }
.top nav { margin-left: auto; }
@media (max-width: 700px) {  /* phones: icon stays top-right beside the name, menu links wrap below */
  .account-slot { order: 1; margin-left: auto; }
  .top nav { order: 2; width: 100%; margin-left: 0; }
}

/* hero */
.hero { position: relative; min-height: 37vh; display: grid; align-items: end; color: #fff;
  background: var(--slate) center 62%/cover no-repeat; }  /* 20% thinner than before, trimmed from the top */
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,28,25,.05) 30%, rgba(20,28,25,.72)); }
.hero .wrap { position: relative; z-index: 1; padding: 3rem 0 2.2rem; }
.hero p { font-size: 1.15rem; max-width: 40rem; margin: 0; opacity: .95; }

main { padding-bottom: 4rem; }
.section { padding-top: 1rem; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1.5rem; }

.notice { margin-top: 1.5rem; background: #fff6df; border: 1px solid #ecd9a3; border-left: 5px solid var(--pending); border-radius: var(--radius); padding: .9rem 1.2rem; }
.notice p { margin: .3rem 0; }

/* house markdown */
.house h2 { border-top: 1px solid var(--line); padding-top: 1.6rem; }
.house h3 { margin: 1.6rem 0 .4rem; color: var(--fell-dark); }
.house img { border-radius: var(--radius); margin: 1rem 0; width: 100%; aspect-ratio: 3/2; object-fit: cover; background: #c2d3b9; }
.house p:has(> img + img), .gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.house p:has(> img + img) img { margin: 0; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 1.2rem 0; padding: 0; list-style: none; }
.facts li { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: .7rem .9rem; font-size: .95rem; }
.facts strong { display: block; font-family: var(--serif); font-size: 1.15rem; }

.two-col { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 960px) { .two-col { grid-template-columns: 1.15fr .85fr; align-items: start; } .two-col .sticky { position: sticky; top: 1rem; } }

/* tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { text-align: left; padding: .65rem .8rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: var(--tint); white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td.actions { white-space: nowrap; text-align: right; }
td.actions form { display: inline; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.empty { padding: 1.2rem; color: var(--muted); }

.badge { display: inline-block; padding: .1rem .55rem; border-radius: 999px; font-size: .78rem; font-weight: 600; text-transform: capitalize; }
.badge.approved { background: var(--approved-soft); color: #7a2d1c; }
.badge.pending { background: var(--pending-soft); color: #73520c; }
.badge.declined { background: #e3e3e3; color: #555; }

/* buttons & forms */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; border: 1px solid transparent; border-radius: 8px;
  padding: .6rem 1.1rem; font: 600 .95rem var(--sans); cursor: pointer; text-decoration: none; background: var(--fell); color: #fff; min-height: 44px; }
.btn:hover { background: var(--fell-dark); }
.btn.cta { background: var(--bracken); }
.btn.cta:hover { background: #9a5627; }
.btn.secondary { background: var(--paper); color: var(--ink); border-color: var(--line); }
.btn.secondary:hover { background: var(--tint); }
.btn.danger { background: var(--approved); }
.btn.danger:hover { background: #943f2c; }
.btn.small { padding: .3rem .7rem; font-size: .85rem; min-height: 32px; }
.btn.link { background: none; color: var(--fell-dark); padding: .3rem .4rem; min-height: 0; text-decoration: underline; font-weight: 500; }
.btn.link.danger { color: var(--approved); }
.btn-row { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; margin-top: 1rem; }

form .field { margin-bottom: 1rem; }
label { display: block; font-weight: 600; margin-bottom: .3rem; }
label .req { color: var(--approved); }
input[type=text], input[type=email], input[type=tel], input[type=number], input[type=password], input[type=date], select, textarea {
  width: 100%; padding: .65rem .75rem; border: 1px solid #c9c1b0; border-radius: 8px; background: #fff; font: inherit; color: var(--ink); }
input:focus, select:focus, textarea:focus, .btn:focus-visible, .cal-day:focus-visible { outline: 3px solid #9cc3a6; outline-offset: 1px; }
textarea { min-height: 6rem; resize: vertical; }
.grid-2 { display: grid; grid-template-columns: 1fr; gap: 0 1rem; }
@media (min-width: 560px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
.help { font-size: .85rem; color: var(--muted); margin-top: .25rem; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.checkbox { display: flex; gap: .5rem; align-items: flex-start; font-weight: 400; }
.checkbox input { margin-top: .35rem; }

/* flash */
.flashes { margin-top: 1rem; display: grid; gap: .5rem; }
.flash { padding: .75rem 1rem; border-radius: 8px; border: 1px solid; }
.flash.error { background: #fbe9e5; border-color: #ecbcb0; color: #7a2d1c; }
.flash.success { background: #e7f2ea; border-color: #b7d6c0; color: #234530; }
.flash.info { background: #eef1f3; border-color: #ccd5db; color: #2d3a42; }

/* calendar */
.cal { position: relative; }
.cal-nav { display: flex; justify-content: space-between; position: absolute; left: 0; right: 0; top: -.2rem; pointer-events: none; }
.cal-btn { pointer-events: auto; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); font-size: 1.4rem; line-height: 1; cursor: pointer; color: var(--ink); }
.cal-btn:disabled { opacity: .3; cursor: default; }
.cal-months { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }
.cal-month h3 { text-align: center; margin: .3rem 0 .8rem; font-size: 1.1rem; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.cal-dow { text-align: center; font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; padding-bottom: .2rem; }
.cal-day { --am: transparent; --pm: transparent; aspect-ratio: 1; min-height: 36px; border: 1px solid var(--line); border-radius: 6px; font: 500 .9rem var(--sans); color: var(--ink);
  background: linear-gradient(135deg, var(--am) 0 50%, var(--pm) 50% 100%), #fff; cursor: pointer; padding: 0; }
.cal-day.am-approved { --am: var(--approved-soft); }
.cal-day.pm-approved { --pm: var(--approved-soft); }
.cal-day.am-pending { --am: var(--pending-soft); }
.cal-day.pm-pending { --pm: var(--pending-soft); }
.cal-day.ro { cursor: default; }
.cal-day.past { opacity: .4; }
.cal-day.is-today { border-color: var(--slate); border-width: 2px; }
.cal-day:disabled { cursor: not-allowed; color: #8c8577; }
.cal-day:not(:disabled):not(.ro):hover { border-color: var(--fell); }
.cal-day.can-end { border-color: #9cc3a6; }
.cal-day.sel-mid { background: var(--sel-soft); color: var(--fell-dark); border-color: var(--sel-soft); }
.cal-day.sel-start, .cal-day.sel-end { background: var(--sel); color: #fff; border-color: var(--sel); font-weight: 700; }
.cal-legend { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; margin-top: 1rem; font-size: .85rem; color: var(--muted); }
.cal-legend span { display: inline-flex; align-items: center; gap: .35rem; }
.cal-legend .cal-hint { flex-basis: 100%; }
.sw { width: 14px; height: 14px; border-radius: 3px; border: 1px solid var(--line); display: inline-block; }
.sw.free { background: #fff; } .sw.approved { background: var(--approved-soft); } .sw.pending { background: var(--pending-soft); } .sw.sel { background: var(--sel); }
.cal-summary { margin: 1rem 0 0; padding: .75rem 1rem; border-radius: 8px; background: var(--tint); }
.cal-summary.chosen { background: var(--sel-soft); }
.cal-error { color: var(--approved); }

.booking-summary dl { display: grid; grid-template-columns: max-content 1fr; gap: .3rem 1rem; margin: 0; }
.booking-summary dt { color: var(--muted); }
.booking-summary dd { margin: 0; }

footer { border-top: 1px solid var(--line); padding: 1.5rem 0 2.5rem; color: var(--muted); font-size: .9rem; }
footer .wrap { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

.tabs { display: flex; gap: .4rem; flex-wrap: wrap; margin: 1rem 0; }
.tabs a { padding: .35rem .8rem; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; color: var(--ink); background: var(--paper); font-size: .9rem; }
.tabs a.on { background: var(--slate); color: #fff; border-color: var(--slate); }

/* front page: single column, full-width photo (3:2 is the photo's own shape, so nothing is cropped) */
.home .intro > p:not(:has(img)) { max-width: 46rem; }
.home .facts { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
/* wide screens: photo on the left, the fact cards stacked beside it on the right */
@media (min-width: 900px) {
  .home .intro { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); column-gap: 1.4rem; align-items: stretch; }
  .home .intro > * { grid-column: 1 / -1; }
  .home .intro > p:has(img) { grid-column: 1; margin: .4rem 0 0; }
  .home .intro > p:has(img) img { margin: 0; }
  .home .intro > .facts { grid-column: 2; margin: .4rem 0 0; grid-template-columns: 1fr; grid-auto-rows: 1fr; }
  .home .intro > .facts li { display: flex; flex-direction: column; justify-content: center; }
}

/* front-page intro photo */
.intro img { border-radius: var(--radius); margin: 1.2rem 0 .2rem; width: 100%; aspect-ratio: 3/2; object-fit: cover; background: #c2d3b9; }

/* photo gallery: one large fixed frame, arrows, tiny thumbnails */
.photo-gallery-page h1 { margin-bottom: .8rem; }
.photo-gallery { margin: 0 0 2rem; }
.g-frame { position: relative; background: #151b19; border-radius: var(--radius); overflow: hidden;
  height: min(76vh, calc((min(1100px, 100vw - 32px)) * 2 / 3)); min-height: 260px; user-select: none; }
.g-slide { margin: 0; }
.g-slide img { width: 100%; height: 100%; object-fit: contain; }
.g-slide figcaption { color: #fff; }
/* with JavaScript: slides stacked in the frame, cross-fading */
.photo-gallery.js .g-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility 0s linear .35s; }
.photo-gallery.js .g-slide.on { opacity: 1; visibility: visible; transition: opacity .35s ease; }
.photo-gallery.js .g-slide figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 2.2rem 1.2rem .9rem;
  background: linear-gradient(180deg, transparent, rgba(10,14,13,.78)); font-size: 1rem; text-shadow: 0 1px 2px rgba(0,0,0,.5); }
.g-slide figcaption .sec { opacity: .75; }
.g-btn, .g-count, .g-full, .g-thumbs { display: none; }
.photo-gallery.js .g-btn { display: grid; place-items: center; position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 54px; height: 54px; border-radius: 50%; border: 0; background: rgba(255,253,248,.9); color: var(--ink);
  font-size: 2.2rem; line-height: 1; padding: 0 0 .25rem; cursor: pointer; box-shadow: 0 2px 10px rgba(0,0,0,.3); transition: background .15s, transform .15s; }
.photo-gallery.js .g-btn:hover { background: #fff; transform: translateY(-50%) scale(1.06); }
.photo-gallery.js .g-btn:focus-visible, .g-full:focus-visible, .g-thumb:focus-visible { outline: 3px solid #9cc3a6; outline-offset: 2px; }
.photo-gallery.js .g-prev { left: 16px; }
.photo-gallery.js .g-next { right: 16px; }
.photo-gallery.js .g-count { display: block; position: absolute; top: 12px; left: 14px; z-index: 2; background: rgba(10,14,13,.6); color: #fff;
  font-size: .8rem; padding: .2rem .65rem; border-radius: 999px; }
.photo-gallery.js .g-full { display: grid; place-items: center; position: absolute; top: 10px; right: 12px; z-index: 2; width: 36px; height: 36px;
  border: 0; border-radius: 8px; background: rgba(10,14,13,.6); color: #fff; cursor: pointer; }
.photo-gallery.js .g-full:hover { background: rgba(10,14,13,.85); }
.photo-gallery.js .g-full[hidden] { display: none; }
.g-frame:fullscreen { height: 100vh; border-radius: 0; }
.g-frame:-webkit-full-screen { height: 100vh; border-radius: 0; }
.photo-gallery.js .g-thumbs { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 12px; }
.g-thumb { width: 60px; height: 40px; padding: 0; border: 2px solid transparent; border-radius: 5px; overflow: hidden; cursor: pointer;
  background: #c2d3b9; opacity: .55; transition: opacity .15s, border-color .15s; }
.g-thumb img { width: 100%; height: 100%; object-fit: cover; }
.g-thumb:hover { opacity: .9; }
.g-thumb.on { opacity: 1; border-color: var(--fell); }
@media (max-width: 560px) {
  .g-frame { height: min(70vh, calc((100vw - 32px) * 3 / 4)); }
  .photo-gallery.js .g-btn { width: 42px; height: 42px; font-size: 1.8rem; }
  .photo-gallery.js .g-prev { left: 8px; } .photo-gallery.js .g-next { right: 8px; }
  .g-thumb { width: 48px; height: 32px; }
}
/* without JavaScript the photos simply stack, each with its caption */
.photo-gallery:not(.js) .g-frame { height: auto; background: none; overflow: visible; }
.photo-gallery:not(.js) .g-slide + .g-slide { margin-top: 14px; }
.photo-gallery:not(.js) .g-slide img { height: auto; border-radius: var(--radius); }
.photo-gallery:not(.js) .g-slide figcaption { color: var(--ink); padding: .4rem 0; }
.top nav a[aria-current="page"] { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
