/* Layout: photo-led single column; cabins as a 2x2 field guide; booking card sticks beside the cabin story.
   Signature: routed trail-sign chips, like the wooden signs along Skyline Drive. */
:root {
  --paper: #F1F3EE;
  --surface: #FFFFFF;
  --sunk: #E6EAE3;
  --ink: #17211D;
  --muted: #56645D;
  --line: #D5DCD3;
  --river: #1F5A5B;
  --river-ink: #FFFFFF;
  --river-soft: #DCEAE8;
  --lantern: #A8691F;
  --sign: #2B2118;
  --sign-ink: #F3E6CC;
  --booked: #C9D0C8;
  --ok: #2D7048;
  --warn: #9A6212;
  --bad: #A23B2C;
  --shadow: 0 1px 2px rgba(23, 33, 29, .06), 0 8px 24px rgba(23, 33, 29, .08);
  --display: "Zilla Slab", Rockwell, "Roboto Slab", Georgia, serif;
  --body: "Karla", "Segoe UI", system-ui, -apple-system, sans-serif;
  --r: 10px;
  --max: 1180px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #101614; --surface: #17201C; --sunk: #1D2823; --ink: #E6EBE5; --muted: #A0ADA6;
    --line: #2B3832; --river: #76B8B3; --river-ink: #0E1A18; --river-soft: #1C3331; --lantern: #E2A653;
    --sign: #3A2D20; --sign-ink: #F3E6CC; --booked: #34413B; --ok: #6BC28D; --warn: #E2A653; --bad: #EE8A7A;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .3);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #101614; --surface: #17201C; --sunk: #1D2823; --ink: #E6EBE5; --muted: #A0ADA6;
  --line: #2B3832; --river: #76B8B3; --river-ink: #0E1A18; --river-soft: #1C3331; --lantern: #E2A653;
  --sign: #3A2D20; --sign-ink: #F3E6CC; --booked: #34413B; --ok: #6BC28D; --warn: #E2A653; --bad: #EE8A7A;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .3);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 50; background: var(--surface); }
img { max-width: 100%; display: block; }
a { color: var(--river); }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; line-height: 1.12; margin: 0; text-wrap: balance; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 5.4vw, 3.9rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.35rem; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--lantern); outline-offset: 2px; border-radius: 4px; }
.wrap { max-width: var(--max); margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.eyebrow { font: 700 .78rem/1.2 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.muted { color: var(--muted); }
.num { font-variant-numeric: tabular-nums; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 46px; padding: 0 1.2em; border-radius: 999px; border: 1.5px solid var(--river); background: var(--river); color: var(--river-ink); font-weight: 700; text-decoration: none; cursor: pointer; transition: transform .15s, background .15s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn.ghost { background: transparent; color: var(--river); }
.btn.small { min-height: 36px; padding: 0 .9em; font-size: .92rem; }
.btn.block { width: 100%; }
.btn.danger { background: var(--bad); border-color: var(--bad); color: #fff; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--river); font-weight: 700; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* trail sign */
.sign { display: inline-flex; align-items: center; gap: .45em; padding: .38em .8em .34em; background: var(--sign); color: var(--sign-ink); font: 700 .74rem/1 var(--display); letter-spacing: .12em; text-transform: uppercase; border-radius: 4px; box-shadow: inset 0 0 0 2px rgba(243, 230, 204, .18); }
.sign::before { content: ""; width: .55em; height: .55em; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg); margin-right: .1em; }

/* header */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40; background: var(--surface); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 20px; min-height: 64px; }
.brand { display: flex; align-items: baseline; gap: .5em; text-decoration: none; color: var(--ink); margin-right: auto; min-width: 0; }
.brand b { font: 700 1.35rem/1 var(--display); white-space: nowrap; }
.brand span { font-size: .8rem; color: var(--muted); white-space: nowrap; }
.nav { display: flex; gap: 22px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav a:hover { color: var(--river); }
.callbtn { gap: .4em; }
@media (max-width: 860px) { .nav { display: none; } .brand span { display: none; } }
@media (max-width: 420px) { .callbtn .lbl { display: none; } }
.banner { background: var(--lantern); color: #fff; text-align: center; font-weight: 700; font-size: .95rem; }
.banner .wrap { padding-block: 8px; }

/* hero */
.hero { position: relative; color: #fff; background: #1a2622; }
.hero img { width: 100%; height: clamp(420px, 68vh, 640px); object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 18, 15, .15) 0%, rgba(10, 18, 15, .05) 40%, rgba(10, 18, 15, .72) 100%); pointer-events: none; }
.hero .copy { position: absolute; inset: auto 0 0 0; z-index: 2; padding-bottom: 96px; }
.hero .copy .eyebrow { color: rgba(255, 255, 255, .85); margin-bottom: 12px; }
.hero h1 { max-width: 15ch; }
.hero h1.long { max-width: 22ch; font-size: clamp(2rem, 4.2vw, 3.1rem); }
.hero p { max-width: 52ch; margin-top: 14px; font-size: 1.12rem; color: rgba(255, 255, 255, .92); }

/* availability search */
.search { position: relative; z-index: 5; margin-top: -56px; }
.searchbox { background: var(--surface); border-radius: 14px; box-shadow: var(--shadow); padding: 14px; display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: 10px; align-items: end; }
.field { display: grid; gap: 4px; min-width: 0; align-content: start; }
.field label, .field .lbl { font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; min-width: 0; min-height: 46px; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 8px; background: var(--surface); }
.field textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--river); outline: none; }
.field .hint { font-size: .85rem; color: var(--muted); }
.field.err input, .field.err textarea, .field.err select { border-color: var(--bad); }
.field .errmsg { color: var(--bad); font-size: .85rem; font-weight: 600; }
.searchmsg { margin-top: 10px; font-weight: 600; min-height: 1.6em; }
@media (max-width: 760px) { .searchbox { grid-template-columns: 1fr 1fr; } .searchbox .btn, .searchbox .field:nth-child(3) { grid-column: 1 / -1; } }

/* trust strip */
.trust { display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: center; padding-block: 26px 8px; color: var(--muted); font-weight: 600; }
.trust span { display: inline-flex; align-items: center; gap: 8px; }
.trust span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--lantern); }
.stars { color: var(--lantern); letter-spacing: 1px; }

section.block { padding-block: 64px; }
.sechead { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.sechead p { max-width: 56ch; color: var(--muted); margin-top: 8px; }

/* cabin cards */
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
@media (max-width: 760px) { .cards { grid-template-columns: 1fr; } }
.card { background: var(--surface); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.card .ph { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--sunk); overflow: hidden; }
.card .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .ph img { transform: scale(1.03); }
.card .ph .sign { position: absolute; left: 14px; top: 14px; }
.card .ph .count { position: absolute; right: 12px; bottom: 12px; background: rgba(10, 18, 15, .7); color: #fff; font-size: .8rem; font-weight: 700; padding: 4px 9px; border-radius: 999px; }
.avail { position: absolute; right: 12px; top: 12px; font-size: .8rem; font-weight: 700; padding: 5px 10px; border-radius: 999px; }
.avail.open { background: var(--ok); color: #fff; }
.avail.closed { background: rgba(10, 18, 15, .78); color: #fff; }
.card .body { padding: 20px 22px 22px; display: grid; gap: 10px; flex: 1; }
.card h3 a { color: var(--ink); text-decoration: none; }
.facts { display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--muted); font-size: .95rem; }
.facts span + span::before { content: "·"; margin-right: 14px; color: var(--line); }
.card .foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); }
.price b { font: 700 1.35rem/1 var(--display); }
.price { color: var(--muted); }
.ph-empty { width: 100%; height: 100%; display: grid; place-items: center; color: var(--muted); font: 600 1.1rem var(--display); background: repeating-linear-gradient(135deg, var(--sunk) 0 14px, var(--paper) 14px 28px); }

/* compare */
.tablewrap { position: relative; overflow-x: auto; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); }
table.compare { width: 100%; border-collapse: collapse; min-width: 560px; }
.compare th, .compare td { padding: 12px 14px; text-align: center; border-bottom: 1px solid var(--line); }
.compare th:first-child, .compare td:first-child { text-align: left; color: var(--muted); font-weight: 600; }
.compare thead th { font: 600 1.02rem var(--display); }
.compare thead th a { color: var(--ink); }
.compare tr:last-child td { border-bottom: 0; }
.yes { color: var(--ok); font-weight: 700; }
.no { color: var(--muted); }

/* area + policies */
.twocol { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; }
@media (max-width: 860px) { .twocol { grid-template-columns: 1fr; gap: 32px; } }
.nearby { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.nearby li { padding: 14px 0; border-bottom: 1px solid var(--line); display: grid; gap: 2px; }
.nearby b { font-family: var(--display); font-size: 1.1rem; font-weight: 600; }
details.pol { border-bottom: 1px solid var(--line); }
details.pol summary { cursor: pointer; padding: 16px 0; font: 600 1.1rem var(--display); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
details.pol summary::after { content: "+"; font-family: var(--body); color: var(--river); font-size: 1.4rem; line-height: 1; }
details.pol[open] summary::after { content: "–"; }
details.pol p { padding-bottom: 16px; color: var(--muted); max-width: 62ch; }
.about { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px; align-items: start; background: var(--river-soft); border-radius: 14px; padding: 24px; margin-top: 28px; }
.about .mark { width: 54px; height: 54px; border-radius: 50%; background: var(--river); color: var(--river-ink); display: grid; place-items: center; font: 700 1.3rem var(--display); }

/* footer */
footer.site { background: var(--sign); color: var(--sign-ink); margin-top: 40px; }
footer.site .wrap { padding-block: 44px; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: 32px; }
footer.site h3 { color: var(--sign-ink); }
footer.site a { color: var(--sign-ink); }
footer.site .muted { color: rgba(243, 230, 204, .72); }
footer.site .bottom { grid-column: 1 / -1; border-top: 1px solid rgba(243, 230, 204, .2); padding-top: 18px; font-size: .85rem; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
@media (max-width: 760px) { footer.site .wrap { grid-template-columns: 1fr; } }
.copybox { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* ===== cabin page ===== */
.crumbs { padding-block: 18px 0; font-size: .95rem; }
.crumbs a { text-decoration: none; font-weight: 600; }
.chead { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; padding-block: 14px 20px; }
.chead h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); }
.chead .meta { display: flex; gap: 10px 16px; flex-wrap: wrap; align-items: center; margin-top: 10px; color: var(--muted); }
.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 8px; height: clamp(320px, 52vw, 520px); border-radius: 14px; overflow: hidden; position: relative; }
.gallery button { padding: 0; border: 0; background: var(--sunk); cursor: zoom-in; overflow: hidden; min-width: 0; min-height: 0; }
.gallery button img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery button:hover img { transform: scale(1.03); }
.gallery button:first-child { grid-row: 1 / 3; }
.gallery .all { position: absolute; right: 14px; bottom: 14px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.gallery.n1 { grid-template-columns: 1fr; } .gallery.n1 button:first-child { grid-row: auto; }
.gallery.n2, .gallery.n3 { grid-template-columns: 2fr 1fr; }
.gallery.n2 { grid-template-rows: 1fr; } .gallery.n2 button:first-child { grid-row: auto; }
@media (max-width: 700px) {
  .gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; height: 300px; gap: 6px; border-radius: 12px; }
  .gallery button { flex: 0 0 88%; scroll-snap-align: start; }
  .gallery .all { position: sticky; right: 10px; align-self: end; margin-left: -140px; flex: none; }
}
.cgrid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 48px; padding-block: 36px 24px; align-items: start; }
@media (max-width: 960px) { .cgrid { display: flex; flex-direction: column; gap: 36px; align-items: stretch; } .cgrid > .cmain { display: contents; } #cal-sec { order: 1; } #bookHost { order: 2; } .cgrid .cmain > .after { order: 3; } }
.cmain { display: grid; gap: 40px; min-width: 0; }
.cmain section { display: grid; gap: 14px; }
.desc p + p { margin-top: 14px; }
.desc { max-width: 66ch; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 7px 12px; border-radius: 999px; background: var(--river-soft); color: var(--ink); font-weight: 600; font-size: .92rem; }
.note { padding: 14px 16px; border-left: 4px solid var(--lantern); background: var(--surface); border-radius: 0 8px 8px 0; }
.amen { columns: 2; column-gap: 32px; padding: 0; margin: 0; list-style: none; }
.amen li { padding: 6px 0; break-inside: avoid; border-bottom: 1px dashed var(--line); }
@media (max-width: 560px) { .amen { columns: 1; } }
.rates { width: 100%; border-collapse: collapse; }
.rates th, .rates td { text-align: left; padding: 10px 0; border-bottom: 1px solid var(--line); }
.rates td:last-child, .rates th:last-child { text-align: right; }
.others { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 760px) { .others { grid-template-columns: 1fr; } }
.mini { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px; align-items: center; text-decoration: none; color: var(--ink); background: var(--surface); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
.mini img, .mini .ph-empty { width: 110px; height: 88px; object-fit: cover; }
.mini b { font-family: var(--display); font-size: 1.05rem; }

/* booking card */
.book { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 84px); background: var(--surface); border-radius: 14px; box-shadow: var(--shadow); border: 1px solid var(--line); padding: 20px; display: grid; gap: 14px; }
@media (max-width: 960px) { .book { position: static; } }
.book .from { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.book .from b { font: 700 1.6rem var(--display); }
.dates { display: grid; grid-template-columns: 1fr 1fr; border: 1.5px solid var(--line); border-radius: 10px; overflow: hidden; }
.dates button { background: none; border: 0; text-align: left; padding: 10px 12px; cursor: pointer; display: grid; gap: 2px; }
.dates button + button { border-left: 1.5px solid var(--line); }
.dates button.on { box-shadow: inset 0 0 0 2px var(--river); }
.dates small { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.quote { display: grid; gap: 6px; font-size: .95rem; }
.quote div { display: flex; justify-content: space-between; gap: 10px; }
.quote .tot { border-top: 1px solid var(--line); padding-top: 8px; margin-top: 4px; font-weight: 700; font-size: 1.05rem; }
.msg { padding: 10px 12px; border-radius: 8px; font-weight: 600; font-size: .95rem; }
.msg.ok { background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok); }
.msg.warn { background: color-mix(in srgb, var(--warn) 14%, transparent); color: var(--warn); }
.msg.bad { background: color-mix(in srgb, var(--bad) 14%, transparent); color: var(--bad); }
.success { text-align: center; display: grid; gap: 10px; padding: 10px 0; }
.success .big { font: 600 1.5rem var(--display); }

/* calendar */
.cal { display: grid; gap: 10px; }
.calnav { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.calnav button { width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--surface); cursor: pointer; font-size: 1.1rem; }
.calnav button:disabled { opacity: .35; cursor: default; }
.months { display: grid; grid-template-columns: repeat(var(--m, 2), minmax(0, 1fr)); gap: 24px; }
@media (max-width: 560px) { .months { grid-template-columns: 1fr; } }
.month h4 { font: 600 1.05rem var(--display); text-align: center; margin-bottom: 8px; }
.days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; text-align: center; }
.days .dow { font-size: .72rem; font-weight: 700; color: var(--muted); padding: 4px 0; }
.day { position: relative; aspect-ratio: 1; display: grid; place-items: center; border: 0; background: none; border-radius: 8px; font-size: .92rem; font-variant-numeric: tabular-nums; cursor: pointer; min-width: 0; padding: 0; }
.day:hover:not(:disabled) { background: var(--river-soft); }
.day.past { color: var(--line); cursor: default; }
.day.booked { color: var(--muted); text-decoration: line-through; background: repeating-linear-gradient(135deg, transparent 0 4px, var(--booked) 4px 5px); cursor: not-allowed; }
.day.booked.co { cursor: pointer; }
.day.inrange { background: var(--river-soft); border-radius: 0; }
.day.start, .day.end { background: var(--river) !important; color: var(--river-ink); text-decoration: none; border-radius: 8px; }
.day.today::after { content: ""; position: absolute; bottom: 5px; width: 4px; height: 4px; border-radius: 50%; background: var(--lantern); }
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: .85rem; color: var(--muted); }
.legend i { display: inline-block; width: 14px; height: 14px; border-radius: 4px; vertical-align: -2px; margin-right: 6px; }
.legend .lgb { background: repeating-linear-gradient(135deg, transparent 0 3px, var(--booked) 3px 4px); border: 1px solid var(--line); }
.legend .lgs { background: var(--river); }

/* lightbox */
.lb { position: fixed; inset: 0; z-index: 100; background: rgba(8, 12, 10, .94); display: grid; grid-template-rows: auto minmax(0, 1fr) auto; color: #fff; padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px); }
.lb .bar { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; gap: 12px; }
.lb .stage { display: grid; place-items: center; min-height: 0; padding: 0 56px; position: relative; }
.lb .stage img { max-height: 100%; max-width: 100%; object-fit: contain; border-radius: 6px; }
.lb .nav-b { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .14); color: #fff; font-size: 1.4rem; cursor: pointer; }
.lb .prev { left: 8px; } .lb .next { right: 8px; }
.lb .cap { text-align: center; padding: 12px 16px 18px; color: rgba(255, 255, 255, .85); }
.lb .x { background: rgba(255, 255, 255, .14); border: 0; color: #fff; border-radius: 999px; padding: 8px 14px; cursor: pointer; font-weight: 700; }
@media (max-width: 600px) { .lb .stage { padding: 0 8px; } .lb .nav-b { top: auto; bottom: -56px; } }

.toast { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--ink); color: var(--paper); padding: 12px 18px; border-radius: 10px; font-weight: 700; z-index: 200; box-shadow: var(--shadow); max-width: calc(100vw - 32px); }
.demo-flag { position: fixed; left: max(12px, env(safe-area-inset-left, 0px)); bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 60; background: var(--sign); color: var(--sign-ink); border-radius: 999px; padding: 8px 14px; font-size: .82rem; font-weight: 700; box-shadow: var(--shadow); text-decoration: none; }
.loading { padding: 120px 16px; text-align: center; color: var(--muted); }

/* ===== owner editor ===== */
.adm { min-height: 100vh; background: var(--paper); }
.adm .top .wrap { min-height: 58px; }
.adm-shell { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 28px; padding-block: 24px 120px; align-items: start; }
@media (max-width: 860px) { .adm-shell { grid-template-columns: 1fr; gap: 16px; } }
.adm-nav { display: grid; gap: 4px; position: sticky; top: calc(env(safe-area-inset-top, 0px) + 80px); }
.adm-nav button { text-align: left; background: none; border: 0; padding: 11px 14px; border-radius: 8px; font-weight: 700; cursor: pointer; display: flex; justify-content: space-between; gap: 8px; }
.adm-nav button.on { background: var(--surface); box-shadow: var(--shadow); color: var(--river); }
.adm-nav .badge { background: var(--lantern); color: #fff; border-radius: 999px; padding: 0 8px; font-size: .8rem; line-height: 1.6; }
@media (max-width: 860px) { .adm-nav { position: static; display: flex; overflow-x: auto; gap: 6px; padding-bottom: 4px; } .adm-nav button { white-space: nowrap; flex: none; } }
.panel { background: var(--surface); border-radius: 14px; box-shadow: var(--shadow); padding: 24px; display: grid; gap: 20px; min-width: 0; }
.panel + .panel { margin-top: 20px; }
.panel h2 { font-size: 1.6rem; }
.panel h3 { font-size: 1.2rem; }
.help { color: var(--muted); font-size: .95rem; max-width: 70ch; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 700px) { .grid2, .grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .grid2 { grid-template-columns: 1fr; } }
.cabrow { display: grid; grid-template-columns: 84px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 12px; }
.cabrow img, .cabrow .ph-empty { width: 84px; height: 64px; object-fit: cover; border-radius: 8px; }
.cabrow .acts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 600px) { .cabrow { grid-template-columns: 64px minmax(0, 1fr); } .cabrow img, .cabrow .ph-empty { width: 64px; height: 52px; } .cabrow .acts { grid-column: 1 / -1; justify-content: flex-start; } }
.iconbtn { min-width: 36px; height: 36px; border-radius: 8px; border: 1.5px solid var(--line); background: var(--surface); cursor: pointer; font-weight: 700; padding: 0 10px; }
.iconbtn:disabled { opacity: .35; cursor: default; }
.iconbtn.red { color: var(--bad); }
.pill { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: .78rem; font-weight: 700; background: var(--sunk); color: var(--muted); }
.pill.live { background: color-mix(in srgb, var(--ok) 16%, transparent); color: var(--ok); }
.pill.pending { background: color-mix(in srgb, var(--warn) 18%, transparent); color: var(--warn); }
.pill.bad { background: color-mix(in srgb, var(--bad) 14%, transparent); color: var(--bad); }
.photos-ed { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.ph-ed { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; display: grid; background: var(--paper); }
.ph-ed .im { position: relative; aspect-ratio: 4 / 3; background: var(--sunk); }
.ph-ed .im img { width: 100%; height: 100%; object-fit: cover; }
.ph-ed .im .pill { position: absolute; left: 6px; top: 6px; background: var(--sign); color: var(--sign-ink); }
.ph-ed .ctl { display: flex; gap: 4px; padding: 6px; flex-wrap: wrap; }
.ph-ed .ctl .iconbtn { height: 32px; min-width: 32px; padding: 0 8px; font-size: .85rem; }
.ph-ed input { border: 0; border-top: 1px solid var(--line); padding: 8px; font-size: .85rem; background: var(--surface); width: 100%; min-width: 0; }
.drop { border: 2px dashed var(--line); border-radius: 12px; padding: 22px; text-align: center; display: grid; gap: 8px; justify-items: center; }
.drop.over { border-color: var(--river); background: var(--river-soft); }
.checks { display: flex; flex-wrap: wrap; gap: 10px 18px; }
.checks label { display: inline-flex; gap: 8px; align-items: center; font-weight: 600; cursor: pointer; }
.checks input { width: 20px; height: 20px; accent-color: var(--river); }
.seasonrow, .polrow, .nearrow { display: grid; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: 10px; }
.seasonrow { grid-template-columns: 1.3fr 1fr 1fr 1fr 1fr auto; align-items: end; }
@media (max-width: 760px) { .seasonrow { grid-template-columns: 1fr 1fr; } }
.rowhead { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.savebar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; background: var(--ink); color: var(--paper); padding-bottom: env(safe-area-inset-bottom, 0px); transform: translateY(110%); transition: transform .2s; }
.savebar.show { transform: none; }
.savebar .wrap { display: flex; align-items: center; gap: 12px; min-height: 66px; flex-wrap: wrap; padding-block: 10px; }
.savebar .txt { margin-right: auto; font-weight: 700; }
.savebar .btn.ghost { color: var(--paper); border-color: rgba(255, 255, 255, .4); }
.savebar .btn { background: var(--lantern); border-color: var(--lantern); color: #fff; }
.req { border: 1px solid var(--line); border-radius: 12px; padding: 16px; display: grid; gap: 10px; }
.req .who { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: center; }
.req .kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 6px 16px; font-size: .95rem; }
.req .kv span { color: var(--muted); display: block; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.req .paybox { display: grid; gap: 10px; padding: 12px; border: 1.5px dashed var(--line); border-radius: 10px; }
.req .paylink { width: 100%; min-width: 0; min-height: 42px; padding: 8px 10px; border: 1.5px solid var(--line); border-radius: 8px; background: var(--paper); font-size: .9rem; }
.req .msgtxt { background: var(--paper); border-radius: 8px; padding: 10px 12px; white-space: pre-wrap; overflow-wrap: anywhere; }
.blocklist { display: grid; gap: 8px; }
.blocklist .b { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; flex-wrap: wrap; }
.day.blk { background: var(--sign); color: var(--sign-ink); text-decoration: none; cursor: pointer; }
.day.req-p { box-shadow: inset 0 0 0 2px var(--warn); }
.day.feed { background: var(--booked); color: var(--ink); text-decoration: none; }
.day.pick { background: var(--lantern) !important; color: #fff; }
.login { max-width: 420px; margin: 10vh auto 0; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tabs button { border: 1.5px solid var(--line); background: var(--surface); padding: 8px 14px; border-radius: 999px; font-weight: 700; cursor: pointer; }
.tabs button.on { background: var(--river); border-color: var(--river); color: var(--river-ink); }
.inlineconfirm { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 10px 12px; border-radius: 8px; background: color-mix(in srgb, var(--bad) 10%, transparent); }
.prog { height: 6px; background: var(--sunk); border-radius: 99px; overflow: hidden; width: 100%; max-width: 320px; }
.prog i { display: block; height: 100%; background: var(--river); width: 0; transition: width .2s; }

.is-admin .toast { bottom: calc(86px + env(safe-area-inset-bottom, 0px)); }
.mbar { display: none; }
@media (max-width: 960px) {
  .mbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; align-items: center; justify-content: space-between; gap: 12px; background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(23, 33, 29, .08); padding: 10px max(16px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); }
  .mbar b { font: 700 1.25rem var(--display); }
  .has-mbar footer.site { padding-bottom: 76px; }
  .has-mbar .toast { bottom: calc(86px + env(safe-area-inset-bottom, 0px)); }
}

[id] { scroll-margin-top: 84px; }

/* ===== motion: quiet, physical, never in the way ===== */
:root { --ease: cubic-bezier(.22, .61, .36, 1); --spring: cubic-bezier(.34, 1.4, .64, 1); }
.top { transition: box-shadow .3s var(--ease); }
.top.scrolled { box-shadow: 0 6px 24px rgba(23, 33, 29, .10); }
.enter > main, .enter > .adm { animation: pageIn .45s var(--ease) both; }
@keyframes pageIn { from { opacity: 0; transform: translateY(10px); } }
.hero { overflow: hidden; }
.hero img { animation: drift 2.2s var(--ease) both; transform-origin: 0% 100%; }
@keyframes drift { from { transform: scale(1.07); filter: saturate(.85) brightness(.9); } }
.hero .copy .eyebrow, .hero h1, .hero p { animation: rise .8s var(--ease) both; }
.hero h1 { animation-delay: .12s; } .hero p { animation-delay: .24s; }
.search .searchbox { animation: rise .8s var(--ease) .34s both; }
.trust span { animation: rise .6s var(--ease) both; }
.trust span:nth-child(2) { animation-delay: .5s; } .trust span:nth-child(3) { animation-delay: .58s; } .trust span:nth-child(4) { animation-delay: .66s; } .trust span:nth-child(1) { animation-delay: .42s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
.rv, .card.rv { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease) var(--d, 0s), transform .7s var(--ease) var(--d, 0s); }
.rv.in { opacity: 1; transform: none; }
.card { transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.card:hover { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(23, 33, 29, .06), 0 18px 40px rgba(23, 33, 29, .14); }
.card .ph img { transition: transform .9s var(--ease); }
.btn { transition: transform .2s var(--ease), background .2s, box-shadow .2s, color .2s; }
.btn:hover { box-shadow: 0 6px 16px rgba(31, 90, 91, .22); }
.btn:active { transform: translateY(0) scale(.97); }
.avail:not([hidden]) { animation: pop .45s var(--spring) both; }
@keyframes pop { from { opacity: 0; transform: scale(.7); } }
.day { transition: background .18s, color .18s, transform .18s var(--spring); }
.day.just { animation: pop .35s var(--spring); }
.day:active:not(:disabled) { transform: scale(.9); }
.months.slide { animation: fadeSlide .35s var(--ease); }
@keyframes fadeSlide { from { opacity: .2; transform: translateX(var(--dir, 0px)); } }
.quote > div { animation: rise .35s var(--ease) both; }
.quote > div:nth-child(2) { animation-delay: .04s; } .quote > div:nth-child(3) { animation-delay: .08s; } .quote > div:nth-child(4) { animation-delay: .12s; } .quote > div:nth-child(5) { animation-delay: .16s; }
#bForm:not([hidden]) { animation: rise .4s var(--ease) both; }
.success { animation: pop .5s var(--spring) both; }
details.pol p { animation: rise .35s var(--ease) both; }
details.pol summary::after { transition: transform .3s var(--ease); }
.chip { animation: rise .5s var(--ease) both; }
.lb { animation: fadeIn .25s ease both; }
.lb .stage img { animation: zoomIn .35s var(--ease) both; }
.lb .stage img.swap { animation: none; opacity: .35; transition: opacity .18s; }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes zoomIn { from { opacity: 0; transform: scale(.96); } }
.toast { animation: toastIn .35s var(--spring) both; }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 14px); } }
.mbar { animation: barIn .5s var(--ease) .4s both; }
@keyframes barIn { from { transform: translateY(100%); } }
.fimg { opacity: 0; transition: opacity .6s var(--ease); }
.fimg.ld { opacity: 1; }
.panel { animation: rise .4s var(--ease) both; }
.panel + .panel { animation-delay: .05s; }
.ph-ed { transition: transform .25s var(--ease), box-shadow .25s; }
.ph-ed:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

/* ===== icons inside buttons ===== */
.ic { width: 1.15em; height: 1.15em; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--spring); }
.btn:hover .ic.go, .linkbtn:hover .ic.go { transform: translateX(3px); }
.btn:hover .ic.fly { transform: translate(3px, -3px) rotate(-8deg); }
.btn:hover .ic.ring { animation: ring .5s ease; }
@keyframes ring { 25% { transform: rotate(-14deg); } 50% { transform: rotate(12deg); } 75% { transform: rotate(-6deg); } }
.btn.mark { position: relative; overflow: hidden; isolation: isolate; }
.btn.mark .wm { position: absolute; right: -6px; top: 50%; width: 3.4em; height: 3.4em; transform: translateY(-50%) rotate(-12deg); opacity: .16; stroke-width: 1.4; z-index: -1; transition: transform .6s var(--ease), opacity .3s; }
.btn.mark:hover .wm { transform: translateY(-54%) rotate(-4deg) scale(1.08); opacity: .24; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; } .fimg { opacity: 1; } .hero img { animation: none; } }

.panel > * { min-width: 0; }
@media (max-width: 420px) { .btn { white-space: normal; text-align: center; line-height: 1.25; padding-block: 8px; } }

/* owner: side-by-side table editor */
.cmp-ed th, .cmp-ed td { padding: 8px 10px; vertical-align: middle; }
.cmp-ed td:first-child { min-width: 170px; }
.cmp-ed td:first-child input { width: 100%; }
.cmp-ed input[type=checkbox] { width: 22px; height: 22px; cursor: pointer; accent-color: var(--river); }
span.iconbtn { display: inline-flex; align-items: center; cursor: default; }

/* iPhone Safari gives date inputs a fixed native width that ignores the grid cell and spills over its neighbour */
.field input[type=date] { -webkit-appearance: none; appearance: none; display: block; width: 100%; max-width: 100%; min-width: 0; line-height: 1.4; font-size: 16px; }
.field input[type=date]::-webkit-date-and-time-value { text-align: left; margin: 0; }
.field input[type=date]::-webkit-calendar-picker-indicator { margin-left: 2px; }
@media (max-width: 380px) { .searchbox { padding: 12px; gap: 8px; } .searchbox .field input[type=date] { padding: 10px 8px; } }
