/* ---------- Tokens ---------- */
:root {
  --bg: #f5f1e8;
  --surface: #fffdf8;
  --surface-2: #f3eee3;
  --ink: #2a2925;
  --muted: #6b665b;
  --line: #e3dbcb;
  --accent: #2f5d50;
  --accent-strong: #234a3f;
  --accent-ink: #ffffff;
  --accent-soft: rgba(47, 93, 80, 0.16);
  --warm: #c8783f;
  --danger: #a5402d;
  --success: #2f7a4f;

  --day-free: #f1ece1;
  --c-booked: #d39b81;
  --c-tentative: #efd28c;
  --c-owner: #9fb3cb;

  --hero-a: #23463c;
  --hero-b: #3b6e5e;
  --hero-ink: #f8f4ea;

  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(40, 33, 20, 0.05), 0 6px 24px rgba(40, 33, 20, 0.06);
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #151916;
    --surface: #1e2420;
    --surface-2: #262d28;
    --ink: #ebe6db;
    --muted: #a39d90;
    --line: #333b35;
    --accent: #7db8a1;
    --accent-strong: #98cbb6;
    --accent-ink: #0f1f19;
    --accent-soft: rgba(125, 184, 161, 0.2);
    --danger: #e08672;
    --success: #7cc79a;
    --day-free: #29302b;
    --c-booked: #8d5642;
    --c-tentative: #7b6428;
    --c-owner: #44597a;
    --hero-a: #13261f;
    --hero-b: #24473b;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 28px rgba(0, 0, 0, 0.25);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #151916; --surface: #1e2420; --surface-2: #262d28; --ink: #ebe6db; --muted: #a39d90;
  --line: #333b35; --accent: #7db8a1; --accent-strong: #98cbb6; --accent-ink: #0f1f19;
  --accent-soft: rgba(125, 184, 161, 0.2); --danger: #e08672; --success: #7cc79a;
  --day-free: #29302b; --c-booked: #8d5642; --c-tentative: #7b6428; --c-owner: #44597a;
  --hero-a: #13261f; --hero-b: #24473b; color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.55 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--font-display); line-height: 1.2; margin: 0 0 0.4em; font-weight: 600; }
h2 { font-size: 1.45rem; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 0.8em; }
a { color: var(--accent); }
.muted { color: var(--muted); }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: var(--hero-ink);
  background:
    url("/static/pines.svg") bottom / 100% 110px no-repeat,
    radial-gradient(1200px 400px at 85% -10%, rgba(224, 162, 94, 0.35), transparent 60%),
    linear-gradient(160deg, var(--hero-a), var(--hero-b));
  padding: 72px 0 120px;
}
.hero-compact { padding: 48px 0 100px; }
.hero-photo {
  background:
    linear-gradient(180deg, rgba(16, 28, 23, 0.55) 0%, rgba(16, 28, 23, 0.45) 45%, rgba(16, 28, 23, 0.82) 100%),
    url("/static/cabin.jpg") center 45% / cover no-repeat,
    var(--hero-a);
  padding: 96px 0 140px;
}
.hero-photo.hero-compact { padding: 64px 0 110px; }
.hero-photo h1, .hero-photo .hero-tagline, .hero-photo .eyebrow { text-shadow: 0 1px 12px rgba(0, 0, 0, 0.45); }
.hero-inner { max-width: 760px; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.78rem; font-weight: 600; opacity: 0.8; margin-bottom: 0.6rem; }
.hero h1 { font-size: clamp(2.1rem, 6vw, 3.4rem); margin-bottom: 0.25em; }
.hero-tagline { font-size: 1.15rem; opacity: 0.92; max-width: 60ch; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 1.4rem; }

main.wrap { margin-top: -64px; position: relative; padding-bottom: 48px; }
body.admin main.wrap { margin-top: 24px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font: inherit; font-weight: 600; font-size: 0.95rem;
  border-radius: 999px; border: 1px solid transparent;
  padding: 0.62em 1.25em; cursor: pointer; text-decoration: none;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s, transform 0.05s;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover:not(:disabled) { background: var(--accent-strong); }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }
.btn-ghost { background: transparent; color: var(--muted); }
.btn-ghost:hover { color: var(--ink); background: var(--surface-2); }
.btn-danger:hover { color: var(--danger); }
.btn-light { background: var(--hero-ink); color: #1f3a32; }
.btn-light:hover { background: #fff; }
.btn-ghost-light { color: var(--hero-ink); border-color: rgba(248, 244, 234, 0.45); }
.btn-ghost-light:hover { background: rgba(255, 255, 255, 0.1); }
.btn-block { width: 100%; }
.btn-small { font-size: 0.84rem; padding: 0.42em 0.9em; }
:focus-visible { outline: 3px solid var(--warm); outline-offset: 2px; }

/* ---------- Cards & layout ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  margin-bottom: 24px;
}
.section-head { margin-bottom: 18px; }
.section-head p { margin: 0; }
.section-head-row { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; }
.section-title { font-size: 1.7rem; margin: 40px 0 18px; }
.booking-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 36px; align-items: start; }
@media (max-width: 940px) { .booking-grid { grid-template-columns: 1fr; gap: 28px; } }
@media (max-width: 560px) { .card { padding: 20px 16px; } }

/* ---------- Calendar ---------- */
.cal { position: relative; }
.cal-nav { position: absolute; inset: -4px 0 auto 0; display: flex; justify-content: space-between; pointer-events: none; }
.cal-arrow {
  pointer-events: auto;
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  font-size: 1.4rem; line-height: 1; cursor: pointer;
}
.cal-arrow:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.cal-arrow:disabled { opacity: 0.35; cursor: default; }
.cal-months { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 32px; }
.cal-title { text-align: center; font-size: 1.08rem; margin: 6px 0 14px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-weekday { text-align: center; font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); padding-bottom: 4px; }

.cal-day {
  --m: var(--day-free);
  --e: var(--day-free);
  position: relative;
  aspect-ratio: 1;
  min-height: 36px;
  border: 0;
  border-radius: var(--radius-sm);
  /* morning (previous night) top-left, evening (this night) bottom-right */
  background: linear-gradient(135deg, var(--m) 49.6%, var(--e) 50.4%);
  color: var(--ink);
  font: inherit; font-size: 0.92rem; font-weight: 500;
  cursor: pointer;
  display: grid; place-items: center;
  transition: transform 0.08s, box-shadow 0.12s;
}
.cal-day span { position: relative; z-index: 1; }
.cal-day:hover:not(:disabled) { box-shadow: inset 0 0 0 2px var(--accent); }
.cal-day.m-booked { --m: var(--c-booked); }
.cal-day.e-booked { --e: var(--c-booked); }
.cal-day.m-tentative { --m: var(--c-tentative); }
.cal-day.e-tentative { --e: var(--c-tentative); }
.cal-day.m-owner { --m: var(--c-owner); }
.cal-day.e-owner { --e: var(--c-owner); }
.cal-day.is-blocked { cursor: not-allowed; }
.cal-day.is-blocked.m-booked.e-booked span,
.cal-day.is-blocked.m-owner.e-owner span { text-decoration: line-through; text-decoration-thickness: 1px; opacity: 0.75; }
.cal-day.is-past { opacity: 0.38; cursor: default; }
.cal-day.is-today span::after {
  content: ""; position: absolute; left: 50%; bottom: -5px; width: 4px; height: 4px;
  border-radius: 50%; background: currentColor; transform: translateX(-50%);
}
.cal-day.in-range::before,
.cal-day.sel-start::before,
.cal-day.sel-end::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--accent-soft);
}
.cal-day.sel-start, .cal-day.sel-end { box-shadow: inset 0 0 0 2px var(--accent); font-weight: 700; }
.cal-day.sel-start::before, .cal-day.sel-end::before { background: var(--accent); opacity: 0.9; }
.cal-day.sel-start, .cal-day.sel-end { color: var(--accent-ink); }
.cal-pad { aspect-ratio: 1; }

.legend { display: flex; flex-wrap: wrap; gap: 8px 18px; list-style: none; padding: 0; margin: 20px 0 0; font-size: 0.86rem; color: var(--muted); }
.legend li { display: inline-flex; align-items: center; gap: 7px; }
.swatch { width: 16px; height: 16px; border-radius: 5px; display: inline-block; }
.swatch-free { background: var(--day-free); border: 1px solid var(--line); }
.swatch-booked { background: var(--c-booked); }
.swatch-tentative { background: var(--c-tentative); }
.swatch-owner { background: var(--c-owner); }
.swatch-split { background: linear-gradient(135deg, var(--c-booked) 49.6%, var(--day-free) 50.4%); border: 1px solid var(--line); }
.hint { min-height: 1.5em; margin: 12px 0 0; font-size: 0.92rem; color: var(--warm); font-weight: 500; }

/* ---------- Forms ---------- */
.request-form { display: flex; flex-direction: column; gap: 14px; }
.request-form h2 { margin-bottom: 0; }
.field { display: flex; flex-direction: column; gap: 5px; font-size: 0.88rem; font-weight: 600; min-width: 0; }
.field em { font-weight: 400; color: var(--muted); font-style: normal; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field-inline { flex-direction: row; align-items: center; gap: 10px; }
input, select, textarea {
  font: inherit; font-size: 0.97rem; font-weight: 400;
  color: var(--ink); background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 0.6em 0.75em; width: 100%; min-width: 0;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
textarea { resize: vertical; }
input[type="radio"] { width: auto; }
.stay-summary { font-size: 0.92rem; margin: -4px 0 0; }
.stay-summary.warn { color: var(--warm); font-weight: 600; }
.form-status { min-height: 1.4em; margin: 0; font-size: 0.92rem; }
.form-status.error { color: var(--danger); font-weight: 600; }
.fine-print { font-size: 0.82rem; margin: 0; }
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.request-success { text-align: center; padding: 12px 0; }
.success-icon {
  width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 14px;
  display: grid; place-items: center; font-size: 1.6rem; font-weight: 700;
  background: var(--accent); color: var(--accent-ink);
}
.stay-link { word-break: break-all; font-weight: 600; }

.segmented { display: grid; grid-template-columns: 1fr 1fr; background: var(--surface-2); border-radius: 999px; padding: 4px; }
.segmented label { text-align: center; padding: 0.45em; border-radius: 999px; font-size: 0.9rem; font-weight: 600; cursor: pointer; color: var(--muted); }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented label:has(input:checked) { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.segmented label:has(input:focus-visible) { outline: 3px solid var(--warm); }

/* ---------- Facts & info ---------- */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 8px; }
@media (max-width: 420px) { .facts { grid-template-columns: repeat(2, 1fr); } }
.fact { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; display: flex; flex-direction: column; }
.fact-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-weight: 600; }
.fact-value { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; }

.info-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); grid-auto-flow: dense; gap: 18px; }
@media (max-width: 400px) { .info-grid { grid-template-columns: 1fr; } }
.info-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; min-width: 0; }
.info-card-wide { grid-column: 1 / -1; }
.info-card-wide .prose ul { columns: 2 320px; column-gap: 36px; }
.info-card-wide .prose li { break-inside: avoid; }
.info-card h3 { color: var(--accent); }
.prose > :last-child { margin-bottom: 0; }
.prose ul, .prose ol { margin: 0 0 0.9em; padding-left: 1.25em; }
.prose li { margin: 0.2em 0 0.45em; }
.prose h4 { font-family: var(--font-display); font-size: 1.02rem; margin: 1.2em 0 0.45em; }
.prose h4:first-child { margin-top: 0; }
.prose strong { font-weight: 650; }
.prose a { word-break: break-word; }
.contact-text { margin-top: 28px; text-align: center; }

/* ---------- Guest stay page ---------- */
.status-card { display: flex; gap: 20px; align-items: flex-start; }
.status-card h2 { margin-bottom: 0.25em; }
.status-card p:last-child { margin-bottom: 0; }
.status-icon {
  flex: none; width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center; font-size: 1.5rem; font-weight: 700;
  background: var(--surface-2);
}
.status-card-approved .status-icon { background: var(--accent); color: var(--accent-ink); }
.status-card-pending .status-icon { background: var(--c-tentative); }
.status-card-declined .status-icon, .status-card-cancelled .status-icon { background: var(--c-booked); }
.status-card .btn { margin-top: 10px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 22px 0 32px; font-size: 0.9rem; color: var(--muted); }
.footer-inner { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }

/* ---------- Admin ---------- */
.admin-bar { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.admin-bar-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 62px; flex-wrap: wrap; padding: 8px 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; }
.brand img { border-radius: 7px; }
.brand-sub { color: var(--muted); font-family: var(--font-body); font-weight: 500; font-size: 0.85rem; }
.tabs { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.tab {
  font: inherit; font-weight: 600; font-size: 0.93rem; color: var(--muted);
  background: none; border: 0; padding: 0.5em 0.9em; border-radius: 999px; cursor: pointer;
}
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { background: var(--accent-soft); color: var(--accent-strong); }
.tabs .btn { margin-left: 8px; }
.badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--warm); color: #fff; font-size: 0.75rem; margin-left: 4px; }

.login-card { max-width: 400px; margin: 60px auto; }
.login-card form { display: flex; flex-direction: column; gap: 14px; margin-top: 12px; }

.request-list { display: flex; flex-direction: column; gap: 12px; }
.empty { margin: 0; padding: 8px 0; }
.booking {
  display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  border: 1px solid var(--line); border-left: 5px solid var(--line);
  border-radius: var(--radius-sm); padding: 16px 18px; background: var(--surface);
}
.booking-pending { border-left-color: var(--c-tentative); }
.booking-approved { border-left-color: var(--c-booked); }
.booking-owner { border-left-color: var(--c-owner); }
.booking-declined, .booking-cancelled { opacity: 0.75; }
.booking-main { flex: 1 1 320px; min-width: 0; }
.booking-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 2px; }
.booking-top h3 { margin: 0; }
.booking-dates { font-weight: 600; margin: 0 0 2px; }
.booking-meta { margin: 0 0 4px; font-size: 0.9rem; word-break: break-word; }
.booking-message { margin: 8px 0; padding: 8px 12px; background: var(--surface-2); border-radius: var(--radius-sm); white-space: pre-line; font-size: 0.93rem; }
.booking-note { font-size: 0.9rem; margin: 6px 0 0; }
.booking-created { font-size: 0.8rem; margin: 6px 0 0; }
.booking-actions { display: flex; flex-wrap: wrap; gap: 6px; align-content: flex-start; justify-content: flex-end; flex: 0 1 300px; }
@media (max-width: 640px) { .booking-actions { justify-content: flex-start; flex-basis: 100%; } }
.status { font-size: 0.74rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; padding: 0.2em 0.65em; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.status-pending { background: var(--c-tentative); color: #3d2f07; }
.status-approved { background: var(--c-booked); color: #3b1d10; }
.status-owner { background: var(--c-owner); color: #14243a; }

.settings-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.field-wide { grid-column: 1 / -1; }
.card-private { border-color: var(--c-tentative); }
.section-editor { display: flex; flex-direction: column; gap: 12px; margin-bottom: 14px; }
.section-item { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px; background: var(--surface-2); display: flex; flex-direction: column; gap: 8px; }
.section-item-head { display: flex; gap: 8px; align-items: center; }
.section-title-input { font-weight: 600; }
.section-tools { display: flex; gap: 4px; flex: none; }
.icon-btn { width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; font-size: 0.95rem; }
.icon-btn:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.icon-btn:disabled { opacity: 0.35; cursor: default; }
.icon-btn-danger:hover:not(:disabled) { border-color: var(--danger); color: var(--danger); }
.save-bar {
  position: sticky; bottom: 16px; display: flex; align-items: center; justify-content: flex-end; gap: 16px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 8px 8px 8px 20px; box-shadow: var(--shadow);
}

.who { font-size: 0.85rem; margin-left: 8px; }
.btn-off { color: var(--warm); }
.card-alert { border-color: var(--warm); }
.booking-alert { border-left-color: var(--warm); }
.status-alert { background: var(--warm); color: #fff; }
.activity-list { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 0.92rem; }
.activity-list li { display: grid; grid-template-columns: 9.5em 1fr; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--line); word-break: break-word; }
.activity-list li:last-child { border-bottom: 0; }
@media (max-width: 560px) { .activity-list li { grid-template-columns: 1fr; gap: 0; } }
.activity-when { font-size: 0.84rem; }

/* checkboxes */
input[type="checkbox"] { width: 1.1em; height: 1.1em; margin: 0.2em 0 0; flex: none; accent-color: var(--accent); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.93rem; line-height: 1.45; cursor: pointer; }
.check-list { display: flex; flex-direction: column; gap: 12px; }
.inline-number { width: 4.5em; padding: 0.25em 0.4em; margin: 0 4px; display: inline-block; }
.settings-grid-spaced { margin-top: 18px; }
.check-list + .fine-print { margin-top: 14px; }
.form-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 12px; }

/* photos (admin) */
.file-btn { position: relative; overflow: hidden; }
.file-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; font-size: 0; }
.file-btn:focus-within { outline: 3px solid var(--warm); outline-offset: 2px; }
.photo-admin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.photo-item { margin: 0; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; background: var(--surface-2); display: flex; flex-direction: column; }
.photo-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.photo-item figcaption { display: flex; flex-direction: column; gap: 8px; padding: 10px; }

/* owners */
.owner-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.owner-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.owner-row .booking-actions { flex: 0 1 auto; align-items: center; }
.owner-row .booking-actions input { width: 12em; }
.owner-form h3 { margin-top: 4px; }
.copy-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.copy-row input { flex: 1 1 280px; font-family: ui-monospace, Consolas, monospace; font-size: 0.85rem; }
.feed-help { font-size: 0.92rem; margin-bottom: 12px; }

/* ---------- Gallery & lightbox ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.gallery-item { position: relative; padding: 0; border: 0; border-radius: var(--radius-sm); overflow: hidden; cursor: zoom-in; background: var(--surface-2); aspect-ratio: 4 / 3; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.25s; }
.gallery-item:hover img { transform: scale(1.03); }
.gallery-caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 10px 8px; font-size: 0.85rem; color: #fff; text-align: left; background: linear-gradient(transparent, rgba(0, 0, 0, 0.65)); }
@media (max-width: 480px) { .gallery { grid-template-columns: repeat(2, 1fr); gap: 6px; } }
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox::backdrop { background: rgba(8, 10, 9, 0.92); }
.lightbox figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 10px; max-width: calc(100vw - 120px); }
.lightbox img { max-width: 100%; max-height: calc(100vh - 90px); border-radius: 8px; object-fit: contain; }
.lightbox figcaption { color: #eee; font-size: 0.92rem; text-align: center; }
.lightbox-nav, .lightbox-close { position: fixed; border: 0; background: rgba(255, 255, 255, 0.12); color: #fff; cursor: pointer; border-radius: 50%; display: grid; place-items: center; }
.lightbox-nav { top: 50%; transform: translateY(-50%); width: 48px; height: 48px; font-size: 2rem; line-height: 1; }
.lightbox-prev { left: 12px; }
.lightbox-next { right: 12px; }
.lightbox-close { top: 14px; right: 14px; width: 42px; height: 42px; font-size: 1.1rem; }
.lightbox-nav:hover, .lightbox-close:hover { background: rgba(255, 255, 255, 0.25); }
@media (max-width: 600px) {
  .lightbox figure { max-width: 100vw; }
  .lightbox-nav { top: auto; bottom: 14px; transform: none; }
}

/* ---------- Weather ---------- */
.weather-card { display: flex; flex-direction: column; gap: 14px; }
.weather-place { font-size: 0.85rem; margin: 0; }
.weather-alerts { background: var(--c-tentative); color: #3d2f07; border-radius: var(--radius-sm); padding: 10px 14px; }
.weather-alerts p { margin: 0.2em 0; }
.forecast { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.forecast-period { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--surface-2); min-width: 0; }
.forecast-period.is-night { background: transparent; border: 1px solid var(--line); }
.forecast-name { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.forecast-icon { font-size: 1.5rem; line-height: 1.3; }
.forecast-temp { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; }
.forecast-short { font-size: 0.85rem; line-height: 1.3; }
.forecast-precip { font-size: 0.78rem; color: var(--muted); }
.road-info { border-top: 1px solid var(--line); padding-top: 12px; }

/* ---------- Guestbook ---------- */
.guestbook-grid { columns: 3 280px; column-gap: 18px; }
.guestbook-entry { break-inside: avoid; margin: 0 0 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.guestbook-entry blockquote { margin: 0 0 10px; font-family: var(--font-display); font-size: 1.05rem; line-height: 1.5; white-space: pre-line; }
.guestbook-entry blockquote::before { content: "“"; color: var(--accent); font-size: 1.6em; line-height: 0; vertical-align: -0.35em; margin-right: 2px; }
.guestbook-entry figcaption { font-size: 0.9rem; }
.stay-extras { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 0 24px; margin-top: 32px; }
.stay-extras .card { margin-bottom: 24px; }

/* ---------- Toasts ---------- */
#toast-host { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; z-index: 100; width: min(440px, calc(100% - 32px)); }
.toast { background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 12px; box-shadow: var(--shadow); font-size: 0.93rem; font-weight: 500; transition: opacity 0.4s, transform 0.4s; }
.toast-error { background: var(--danger); color: #fff; }
.toast-success { background: var(--success); color: #fff; }
.toast.leaving { opacity: 0; transform: translateY(8px); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
