/* Self-hosted fonts (from Google Fonts; SIL Open Font License, see OFL-*.txt).
   Variable fonts: one file covers every weight listed. latin-ext only downloads
   when a page uses those characters. */
@font-face { font-family: 'Open Sans'; font-style: italic; font-weight: 400; font-display: swap; src: url(/fonts/open-sans-italic-latin-ext.439e2e9ab8.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Open Sans'; font-style: italic; font-weight: 400; font-display: swap; src: url(/fonts/open-sans-italic-latin.920971d955.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Open Sans'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/fonts/open-sans-latin-ext.2d4c25a2a2.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Open Sans'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/fonts/open-sans-latin.441af0def9.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Playfair Display'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/fonts/playfair-display-latin-ext.5628567856.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Playfair Display'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/fonts/playfair-display-latin.5d91eb5d52.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

* { box-sizing: border-box; }
body { margin: 0; font-family: Georgia, 'Times New Roman', serif; background: #f6f3ec; color: #243324; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.hidden { display: none !important; }
.muted { color: #6b7567; }
.small { font-size: 0.85em; }
.error { color: #a33; min-height: 1em; }

.site-header { background: var(--forest); color: #f3efe4; padding: 18px 0; }
.header-inner { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.site-header h1 { margin: 0; font-size: 1.7rem; letter-spacing: 0.5px; }
.tagline { margin: 2px 0 0; opacity: 0.85; font-style: italic; }
.header-contact { margin-right: 12px; }

.btn { background: var(--forest); color: #fff; border: none; padding: 9px 16px; border-radius: 6px; cursor: pointer; font-size: 0.95rem; }
.btn:hover { background: #3a5c3a; }
.btn:disabled { background: #9aa79a; cursor: not-allowed; }
.btn-ghost { background: transparent; border: 1px solid #cfd4c8; color: inherit; }
.btn-small { padding: 6px 10px; font-size: 0.88rem; }
.btn-big { width: 100%; padding: 13px; font-size: 1.05rem; }
.btn-danger { background: #8c3b2e; }

.banner { background: #fdf3d8; border: 1px solid #d9c27a; border-radius: 8px; padding: 12px 14px; margin: 16px 0; }
.season-note { font-style: italic; }

.cabin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; margin: 20px 0 32px; }
.cabin-card { background: #fff; border: 1px solid #ddd6c4; border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; }
.cabin-card img.cover { width: 100%; height: 200px; object-fit: cover; background: #e4dfd0; }
.cabin-card .no-photo { height: 200px; display: flex; align-items: center; justify-content: center; background: #e4dfd0; color: #8a8f80; font-style: italic; }
.cabin-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.cabin-body h3 { margin: 0; font-size: 1.25rem; }
.cabin-meta { color: var(--brand-mid); font-size: 0.92rem; }
.cabin-rate { font-weight: bold; }
.cabin-body .btn { margin-top: auto; }

.policies { background: #fff; border: 1px solid #ddd6c4; border-radius: 10px; padding: 16px 20px; margin-bottom: 32px; }
.avail-box { background: #fff; border: 1px solid #ddd6c4; border-radius: 10px; padding: 16px 20px; margin-bottom: 20px; }
.avail-head { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; justify-content: space-between; }
.avail-head h2 { margin: 0; font-size: 1.25rem; }
.avail-inputs { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.avail-inputs label { display: flex; flex-direction: column; gap: 4px; font-size: 0.9rem; color: var(--brand-mid); }
.cal-nav { display: flex; align-items: center; gap: 12px; margin: 12px 0 8px; }
.cal-nav #cal-title { font-weight: bold; font-size: 1.05rem; }
.cal-dow, .cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-dow span { text-align: center; font-size: 0.8rem; color: #6b7567; padding: 2px 0; }
.cal-cell { background: #f0f4ea; border: 1px solid #cdd8bf; border-radius: 6px; padding: 5px 2px; display: flex; flex-direction: column; align-items: center; gap: 1px; cursor: pointer; font: inherit; color: inherit; }
.cal-cell .cal-d { font-weight: bold; font-size: 0.95rem; }
.cal-cell .cal-n { font-size: 0.72rem; color: var(--brand-bright); }
.cal-cell.cal-full { background: #f3efe2; border-color: #ddd6c4; }
.cal-cell.cal-full .cal-n { color: #a33; }
.cal-cell.cal-past { opacity: 0.45; cursor: default; }
.cal-cell.cal-empty { background: transparent; border: none; cursor: default; }
.cal-cell.cal-range { background: #cfe0bd; }
.cal-cell.cal-edge { background: var(--forest); color: #fff; }
.cal-cell.cal-edge .cal-n { color: #dce8d2; }
.cal-legend { margin: 8px 0 0; font-size: 0.85rem; }
.pos-layout { display: grid; grid-template-columns: 3fr 2fr; gap: 24px; align-items: start; }
@media (max-width: 800px) { .pos-layout { grid-template-columns: 1fr; } }
.pos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 8px; margin-bottom: 8px; }
.pos-item { background: #f0f4ea; border: 1px solid #cdd8bf; border-radius: 8px; padding: 10px 8px; display: flex; flex-direction: column; gap: 2px; cursor: pointer; font: inherit; color: inherit; text-align: left; }
.pos-item:hover { background: #e2ecd4; }
.pos-item-name { font-weight: bold; font-size: 0.95rem; }
.pos-item-price { color: var(--brand-mid); }
.pos-guest { display: flex; flex-direction: column; gap: 4px; font-size: 0.9rem; color: var(--brand-mid); margin-top: 10px; }
.pos-pay { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.an-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 8px; }
.an-card { background: #f0f4ea; border: 1px solid #cdd8bf; border-radius: 8px; padding: 10px 12px; }
.an-card-label { font-size: 0.8rem; color: var(--brand-mid); text-transform: uppercase; letter-spacing: 0.04em; }
.an-card-val { font-size: 1.4rem; font-weight: bold; margin: 2px 0; }
.bar-row { display: flex; align-items: center; gap: 10px; margin: 4px 0; }
.bar-label { width: 64px; font-size: 0.9rem; color: var(--brand-mid); }
.bar-track { flex: 1; background: #eef1e8; border-radius: 4px; height: 14px; overflow: hidden; }
.bar-fill { background: #5b7a4a; height: 100%; }
.bar-val { font-size: 0.9rem; white-space: nowrap; }
.guest-detail { background: #fff; border: 1px solid #ddd6c4; border-radius: 10px; padding: 16px 20px; margin-top: 16px; }
.guest-detail h3 { margin-top: 0; }
.guest-notes { display: flex; flex-direction: column; gap: 4px; font-size: 0.92rem; margin-top: 14px; max-width: 560px; }
.tpl-fieldset { border: 1px solid #ddd6c4; border-radius: 8px; padding: 12px 16px 4px; margin: 14px 0; background: #fff; }
.tpl-fieldset legend { font-weight: bold; padding: 0 6px; }
.tpl-fieldset label { display: flex; flex-direction: column; gap: 4px; font-size: 0.92rem; margin: 8px 0; }
.tpl-fieldset textarea, .tpl-fieldset input { width: 100%; }
#manual-booking-form { border: 1px solid #d8dfcf; border-radius: 8px; padding: 12px 14px; margin-bottom: 20px; }
#manual-booking-form h4 { margin: 10px 0 4px; }
.status.pending { color: #a06a00; }
.status.void, .status.refunded { color: #6b7567; }

.modal { position: fixed; inset: 0; background: rgba(20, 30, 20, 0.55); display: flex; align-items: flex-start; justify-content: center; overflow-y: auto; padding: 24px 12px; z-index: 50; }
.modal-card { background: #fff; border-radius: 12px; max-width: 640px; width: 100%; padding: 22px; position: relative; }
.modal-close { position: absolute; top: 8px; right: 12px; background: none; border: none; font-size: 1.6rem; cursor: pointer; color: var(--brand-mid); }
.modal-gallery { margin: 10px 0; }
.gal-stage { position: relative; background: #e4dfd0; border-radius: 10px; overflow: hidden; }
.gal-main { display: block; width: 100%; height: 340px; object-fit: cover; }
.gal-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; border: none; background: rgba(255,255,255,0.85); font-size: 1.7rem; line-height: 1; cursor: pointer; color: #2d3b27; box-shadow: 0 1px 4px rgba(0,0,0,0.3); }
.gal-nav:hover { background: #fff; }
.gal-prev { left: 8px; } .gal-next { right: 8px; }
.gal-caption { margin: 8px 2px 0; font-size: 0.92rem; color: #4d5a48; font-style: italic; }
.gal-count { position: absolute; right: 8px; bottom: 8px; background: rgba(0,0,0,0.6); color: #fff; font-size: 0.8rem; padding: 2px 8px; border-radius: 10px; }
.gal-thumbs { display: flex; gap: 6px; overflow-x: auto; margin-top: 6px; }
.gal-thumbs img { height: 56px; width: 84px; object-fit: cover; border-radius: 6px; cursor: pointer; opacity: 0.6; border: 2px solid transparent; flex: none; }
.gal-thumbs img.active { opacity: 1; border-color: #3f6b34; }
@media (max-width: 600px) { .gal-main { height: 240px; } }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; margin: 12px 0; }
.form-grid label { display: flex; flex-direction: column; gap: 4px; font-size: 0.92rem; }
.form-grid label.check { flex-direction: row; align-items: center; gap: 8px; }
.form-grid .wide { grid-column: 1 / -1; }
.form-grid fieldset { border: 1px solid #ddd6c4; border-radius: 8px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; padding: 12px; }
.form-grid fieldset label { display: flex; flex-direction: column; gap: 4px; font-size: 0.92rem; }
.form-inline { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; margin: 10px 0 18px; }
.form-inline label { display: flex; flex-direction: column; gap: 4px; font-size: 0.92rem; }
input, select, textarea { padding: 8px; border: 1px solid #bfc6b8; border-radius: 6px; font: inherit; background: #fff; }

.boats-head { margin: 14px 0 4px; font-size: 1.05rem; }
.boat-row { display: flex; gap: 10px; align-items: flex-start; padding: 9px 10px; border: 1px solid #ddd6c4; border-radius: 8px; margin: 8px 0; background: #fff; cursor: pointer; }
.boat-row.taken { opacity: 0.65; cursor: not-allowed; background: #f3efe2; }
.boat-row input { margin-top: 3px; }
.boat-thumb { width: 84px; height: 56px; object-fit: cover; border-radius: 6px; }
.boat-info { flex: 1; font-size: 0.93rem; }
.boat-taken { color: #a33; font-size: 0.85rem; font-weight: bold; }

.price-box { background: #f0f4ea; border: 1px solid #cdd8bf; border-radius: 8px; padding: 12px 14px; margin: 12px 0; color: #243324; }
.price-box table { width: 100%; border-collapse: collapse; }
.price-box td { padding: 2px 0; }
.price-box td:last-child { text-align: right; }
.price-box .total td { font-weight: bold; border-top: 1px solid #b9c7a8; padding-top: 6px; }

.admin-head { display: flex; align-items: baseline; gap: 12px; }
.tabs { display: flex; gap: 6px; margin: 10px 0 16px; flex-wrap: wrap; }
.tab { background: #e7e2d2; border: 1px solid #cfc8ae; padding: 8px 14px; border-radius: 999px; cursor: pointer; font: inherit; }
.tab.active { background: var(--forest); color: #fff; border-color: var(--forest); }

table.list { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid #ddd6c4; }
table.list th, table.list td { text-align: left; padding: 8px 10px; border-bottom: 1px solid #eee7d3; font-size: 0.92rem; vertical-align: top; }
.status { font-weight: bold; text-transform: capitalize; }
.status.paid, .status.confirmed { color: #2e7d32; }
.status.pending_payment { color: #a06a00; }
.status.canceled { color: #a33; }

.photo-list { display: flex; gap: 12px; flex-wrap: wrap; margin: 10px 0; }
.photo-item { width: 150px; }
.photo-item img { width: 150px; height: 100px; object-fit: cover; border-radius: 8px; }
.photo-item .photo-actions { display: flex; gap: 4px; margin-top: 4px; }
.photo-item button { font-size: 0.75rem; padding: 3px 6px; }
.file-btn { display: inline-block; }

.feed-row { display: flex; gap: 8px; align-items: center; margin: 6px 0; flex-wrap: wrap; }
.feed-row code { background: #efece0; padding: 4px 8px; border-radius: 6px; font-size: 0.82rem; word-break: break-all; }

.site-footer { padding: 22px 0 30px; text-align: center; }

.cover-badge { font-size: 0.75rem; font-weight: 600; color: #3f6b34; padding: 3px 0; }

/* admin navigation */
a.tab { text-decoration: none; color: inherit; }
.subnav { display: flex; gap: 4px; margin: -6px 0 16px; border-bottom: 1px solid #ddd6c4; flex-wrap: wrap; }
.subtab { padding: 8px 14px; text-decoration: none; color: var(--brand-mid); border-bottom: 3px solid transparent; margin-bottom: -1px; }
.subtab:hover { color: var(--forest); }
.subtab.active { color: var(--forest); border-bottom-color: var(--forest); font-weight: 600; }
.today-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.today-head h3 { margin: 0; }
a.card-link { text-decoration: none; color: inherit; }
a.card-link:hover { background: #e7eede; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { background: #fff; border: 1px solid #cfd4c8; padding: 6px 12px; border-radius: 999px; cursor: pointer; font: inherit; font-size: 0.9rem; }
.chip.active { background: var(--forest); color: #fff; border-color: var(--forest); }
.chip-n { font-size: 0.75rem; opacity: 0.7; font-weight: normal; }
@media (max-width: 700px) {
  #admin-view table.list { display: block; overflow-x: auto; }
  .tabs { flex-wrap: nowrap; overflow-x: auto; }
  .tab { white-space: nowrap; }
}

/* booking detail */
.modal-wide { max-width: 760px; }
tr.clickable { cursor: pointer; }
tr.clickable:hover td { background: #f5f8f0; }
.detail-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; padding-right: 28px; }
.detail-head h2 { margin: 0 0 2px; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 12px 0; }
.detail-card { background: #f7f5ec; border: 1px solid #e4dfd0; border-radius: 8px; padding: 10px 14px; margin-bottom: 12px; }
.detail-grid .detail-card { margin-bottom: 0; }
.detail-card h4 { margin: 0 0 6px; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--brand-mid); }
.detail-card p { margin: 4px 0; }
table.mini { width: 100%; border-collapse: collapse; margin-bottom: 8px; font-size: 0.92rem; }
table.mini td { padding: 3px 0; vertical-align: top; }
table.mini td.num { text-align: right; white-space: nowrap; padding-left: 10px; }
table.mini tr.total td { border-top: 1px solid #cfc8ae; font-weight: 600; padding-top: 5px; }
.btn-row { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin: 8px 0; }
.danger-zone { border-top: 1px dashed #e0c9c4; padding-top: 10px; margin-top: 14px; }
@media (max-width: 700px) { .detail-grid { grid-template-columns: 1fr; } .detail-head { flex-direction: column; } }

.bar-fill.bar-future { background: repeating-linear-gradient(45deg, var(--brand-accent), var(--brand-accent) 6px, #9bbd8d 6px, #9bbd8d 12px); }

/* availability timeline */
.timeline { overflow-x: auto; border: 1px solid #ddd6c4; border-radius: 8px; background: #fff; }
.tl-table { border-collapse: separate; border-spacing: 0; width: 100%; min-width: 900px; }
.tl-table th, .tl-table td { border-bottom: 1px solid #eee7d3; border-right: 1px solid #f1ecdc; padding: 0; height: 30px; }
.tl-unit { position: sticky; left: 0; background: #fff; text-align: left; padding: 0 10px !important; font-size: 0.85rem; white-space: nowrap; min-width: 120px; z-index: 1; border-right: 1px solid #ddd6c4 !important; }
.tl-day { font-size: 0.72rem; font-weight: 600; text-align: center; color: var(--brand-mid); padding: 2px 0 !important; height: auto !important; min-width: 28px; position: relative; }
.tl-day span { display: block; font-weight: normal; opacity: 0.7; }
.tl-day em { position: absolute; top: -1px; left: 2px; font-size: 0.6rem; font-style: normal; color: var(--forest); }
.tl-wknd { background: #faf8f0; }
th.tl-today { background: #e4eed8; }
td.tl-today { box-shadow: inset 2px 0 0 var(--forest); }
.tl-open { cursor: pointer; }
.tl-open:hover { background: #e7eede; }
.tl-booking { background: #5b7a4a; cursor: pointer; }
.tl-import { background: #6b8fc0; }
.tl-manual { background: repeating-linear-gradient(45deg, #bdb7a2, #bdb7a2 4px, #d6d1bd 4px, #d6d1bd 8px); }
.tl-cell { position: relative; overflow: visible; }
.tl-label { position: absolute; left: 3px; top: 6px; z-index: 1; font-size: 0.72rem; color: #fff; white-space: nowrap; pointer-events: none; text-shadow: 0 0 2px rgba(0,0,0,0.5); }
.tl-manual .tl-label { color: #333; text-shadow: none; }
.tl-legend { font-size: 0.8rem; color: var(--brand-mid); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.tl-key { display: inline-block; width: 14px; height: 14px; border-radius: 3px; margin-left: 8px; }

/* register on phones */
.pos-bar { display: none; }
@media (max-width: 800px) {
  .pos-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; justify-content: space-between; align-items: center; padding: 14px 18px; background: var(--forest); color: #fff; border: none; font: inherit; font-size: 1rem; cursor: pointer; box-shadow: 0 -2px 8px rgba(0,0,0,0.25); }
  .pos-bar:not(.hidden) { display: flex; }
  .pos-grid { grid-template-columns: repeat(2, 1fr); }
  .pos-item { min-height: 64px; }
  .pos-pay .btn { flex: 1 1 100%; min-height: 46px; }
  #view-register { padding-bottom: 64px; }
}

/* ==========================================================================
   StayStyles platform theme (Playfair Display + Open Sans, deep forest green,
   warm off-white, white-outlined title box) — shared by every property on the
   platform; per-property branding comes from each tenant's own settings.
   ========================================================================== */
:root {
  /* Pre-load defaults are neutral greys (like the loading skeletons): no
     property's colors show before its tenant resolves. Each tenant's own
     theme color (settings.themeColor) replaces these — Green Valley's is
     its green, Stay Victorian's is dark purple. */
  --forest: #55534e; --forest-deep: #454340; --forest-soft: #6e6a63;
  --brand-mid: #7a766e; --brand-bright: #6b675f; --brand-accent: #a09a8f;
  --ink: #212121; --paper: #f5f2ea; --line: #ddd6c4; --mist: #eef2e8;
  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans: 'Open Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
html { scroll-behavior: smooth; }
body { font-family: var(--sans); background: var(--paper); color: var(--ink); line-height: 1.5; }
h1, h2, h3 { font-family: var(--serif); color: var(--forest); font-weight: 700; line-height: 1.25; }
h4 { font-family: var(--sans); }
.muted { color: #666d62; }

/* top bar: white, like the resort site */
.site-header { background: #fff; color: var(--ink); padding: 10px 0; border-bottom: 1px solid var(--line); box-shadow: 0 1px 6px rgba(30, 50, 35, 0.06); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.site-logo { height: 38px; width: 38px; object-fit: cover; border-radius: 3px; }
.brand-name { font-family: var(--serif); font-weight: 700; font-size: 1.45rem; color: rgba(0, 0, 0, 0.78); }
.header-contact { font-size: 0.9rem; color: #555; margin-right: 12px; }
.header-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.site-header .btn-ghost { border-color: var(--forest); color: var(--forest); }
.site-header .btn-ghost:hover { background: var(--forest); color: #fff; }

/* compact banner: lake-green with the signature white-outlined title box */
.hero { position: relative; background: linear-gradient(135deg, var(--forest-deep) 0%, var(--forest-soft) 55%, var(--forest) 100%) center / cover; color: #fff; text-align: center; padding: 34px 16px 52px; }
.hero.has-photo { padding: 46px 16px 62px; }
.hero::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 22px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 24' preserveAspectRatio='none'%3E%3Cpath d='M0 24V12c100 12 200 12 300 0s200-12 300 0 200 12 300 0 200-12 300 0v12z' fill='%23f5f2ea'/%3E%3C/svg%3E") center bottom / 100% 100% no-repeat; }
.hero-box { display: inline-block; border: 4px solid #fff; padding: 8px 34px 10px; }
.hero h1 { margin: 0; color: #fff; font-weight: 700; font-size: clamp(1.7rem, 5vw, 2.6rem); letter-spacing: 0.3px; }
.hero-tag:empty { display: none; }
.hero-tag { margin: 14px 0 0; font-size: 0.95rem; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.9; }

/* buttons: solid forest, outlined ghost, small radius like the resort site */
.btn { background: var(--forest); border-radius: 4px; font-family: var(--sans); font-weight: 600; letter-spacing: 0.02em; padding: 10px 18px; transition: background 0.15s, box-shadow 0.15s; }
.btn:hover { background: var(--forest-soft); }
.btn-ghost { background: transparent; border: 1px solid #b9c3b3; color: var(--forest); }
.btn-ghost:hover { background: var(--mist); color: var(--forest); }
.btn-small { padding: 6px 11px; font-weight: 600; }
.btn-danger { background: #8c3b2e; }
.btn-danger:hover { background: #a14a3b; }
a.btn { text-decoration: none; display: inline-block; }

/* guest page */
.season-note { text-align: center; font-weight: 700; font-style: normal; max-width: 760px; margin: 22px auto 14px; color: var(--forest-deep); }
.avail-box { border: 1px solid var(--line); border-top: 4px solid var(--forest); border-radius: 6px; box-shadow: 0 2px 10px rgba(30, 50, 35, 0.06); }
.avail-head h2 { font-size: 1.5rem; }
.cal-cell { background: var(--mist); border-color: #cdd8bf; transition: background 0.12s, transform 0.12s; }
.cal-cell:not(.cal-past):not(.cal-empty):hover { background: #dbe8cd; transform: translateY(-1px); }
.cal-cell.cal-range { background: #cfe0bd; }
.cal-cell.cal-edge { background: var(--forest); }
.cal-nav #cal-title { font-family: var(--serif); font-size: 1.2rem; color: var(--forest); }

.cabin-grid { gap: 24px; }
.cabin-card { border: none; border-radius: 6px; box-shadow: 0 2px 12px rgba(30, 50, 35, 0.1); }
.cabin-card img.cover { height: 220px; transition: transform 0.4s; }
.cabin-card .cover-wrap, .cabin-card { overflow: hidden; }
.cabin-card:hover img.cover { transform: scale(1.04); }
.cabin-body { padding: 18px 20px 20px; gap: 8px; }
.cabin-body h3 { font-size: 1.45rem; }
.cabin-meta { font-size: 0.88rem; }
.cabin-rate { color: var(--forest); font-weight: 700; padding-top: 6px; border-top: 1px solid #eee7d3; }
.cabin-body .btn { width: 100%; margin-top: 8px; padding: 12px; }

/* "Good to know": dark forest band with cream text, like the resort's action band */
.policies { background: var(--forest-deep); color: #e8e5dc; border: none; border-radius: 6px; padding: 26px 30px; }
.policies h2 { color: #fff; margin-top: 0; }
.policies p { max-width: 820px; }
.site-footer { background: var(--forest-deep); color: #cfd6c9; padding: 18px 0; margin-top: 8px; }
.site-footer .muted { color: #cfd6c9; }

/* dialogs */
.modal-card { border-radius: 6px; box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35); }
.modal-card h2 { font-size: 1.7rem; margin: 0 0 4px; }
.gal-stage { border-radius: 4px; }
.price-box { background: var(--mist); }
input, select, textarea { border-radius: 4px; border-color: #b9c3b3; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--brand-accent); outline-offset: 1px; border-color: var(--forest); }
.banner { border-radius: 4px; }

/* admin keeps the same palette but stays compact and functional */
.tab { background: #fff; border: 1px solid var(--line); border-radius: 4px; font-weight: 600; font-size: 0.92rem; color: var(--forest); }
.tab:hover { background: var(--mist); }
.tab.active { background: var(--forest); border-color: var(--forest); color: #fff; }
.chip.active, .subtab.active { background: var(--forest); border-color: var(--forest); }
.subtab.active { background: transparent; border-bottom-color: var(--forest); color: var(--forest); }
.admin-head h2 { font-size: 1.6rem; }
.admin-mode .site-header { background: var(--forest); border-bottom: none; }
.admin-mode .brand-name { color: #fff; }
.admin-mode .header-contact { color: #d6ddd0; }
.admin-mode .site-header .btn-ghost { border-color: rgba(255, 255, 255, 0.55); color: #fff; }
.admin-mode .site-header .btn-ghost:hover { background: rgba(255, 255, 255, 0.15); }
.an-card { background: var(--mist); border-radius: 4px; }
.an-card-val { font-family: var(--serif); }
table.list { border-radius: 4px; }
table.list th { background: #f1efe6; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; color: #55604f; }
@media (max-width: 600px) {
  .brand-name { font-size: 1.15rem; }
  .header-contact { display: none; }
  .hero-box { padding: 6px 18px 8px; border-width: 3px; }
  .policies { padding: 20px; }
}

/* Cards in a row line up: the description absorbs spare height so the rate and button always sit at the bottom. */
.cabin-body > p { flex: 1 0 auto; margin: 4px 0; }
.cabin-body .cabin-rate { margin-top: 4px; }

/* photo lists + shared library */
.photo-item { width: 168px; cursor: grab; }
.photo-thumb { position: relative; }
.photo-item img { width: 100%; height: 112px; }
.photo-actions { flex-wrap: wrap; align-items: center; }
.photo-actions button:disabled { opacity: 0.35; cursor: default; }
.photo-link { font-size: 0.75rem; }
.photo-cap { margin-top: 3px; }
.shared-badge { position: absolute; top: 6px; left: 6px; background: rgba(38, 63, 44, 0.9); color: #fff; font-size: 0.68rem; font-weight: 600; padding: 2px 7px; border-radius: 10px; }
.photo-item.dragging { opacity: 0.4; }
.photo-item.drop-target img { outline: 3px solid var(--brand-accent); }
.shared-list { display: grid; gap: 14px; }
.shared-card { display: grid; grid-template-columns: 200px 1fr; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 12px; }
.shared-card > img { width: 200px; height: 140px; object-fit: cover; border-radius: 4px; }
.shared-body label { display: flex; flex-direction: column; gap: 4px; font-size: 0.9rem; }
.shared-body label.check { flex-direction: row; align-items: center; gap: 6px; }
.shared-groups { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin: 10px 0 6px; }
.shared-body details { margin: 6px 0; }
.unit-checks { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 8px 0; }
.unit-checks strong { width: 100%; }
@media (max-width: 700px) { .shared-card { grid-template-columns: 1fr; } .shared-card > img { width: 100%; height: 180px; } }

.brand-upload { display: flex; flex-direction: column; gap: 6px; }
.brand-upload label { display: flex; flex-direction: column; gap: 4px; font-size: 0.92rem; }
.brand-upload-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.brand-preview { max-width: 100%; max-height: 110px; border-radius: 4px; border: 1px solid var(--line); object-fit: cover; }
.brand-preview-logo { height: 56px; width: 56px; }

/* explorer + insights */
.bar-label.wide { width: 190px; flex: none; }
.bar-val { min-width: 170px; text-align: right; }
.clickable-row { cursor: pointer; border-radius: 4px; }
.clickable-row:hover { background: #eef2e8; }
.insight-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 14px; margin: 14px 0; }
.insight { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 12px 16px; }
.insight h4 { margin: 0 0 6px; font-family: var(--serif); font-size: 1.1rem; color: var(--forest); }
.insight p { margin: 4px 0 8px; }
.insight table.list { border: none; }
.wide-insight { margin: 14px 0; }
.delta-up { color: #2e7d32; font-weight: 600; }
.delta-down { color: #a33; font-weight: 600; }
tr.total-row td { background: #f1efe6; }
@media (max-width: 700px) { .insight-grid { grid-template-columns: 1fr; } .bar-label.wide { width: 120px; } .bar-val { min-width: 0; white-space: normal; } }

.tl-booking .tl-label { text-shadow: 0 0 2px rgba(0,0,0,0.5); }



/* standalone unit page */
.unit-view { margin: 22px 0 20px; }
.unit-layout { display: grid; grid-template-columns: 3fr 2fr; gap: 28px; align-items: start; background: #fff; border-radius: 6px; box-shadow: 0 2px 12px rgba(30, 50, 35, 0.1); padding: 20px; }
.unit-gallery { margin: 0; }
.unit-gallery .gal-main { height: 420px; }
.unit-info h2 { margin: 0 0 4px; font-size: 2rem; }
.unit-facts { margin: 12px 0; padding-left: 18px; }
.unit-facts li { margin: 3px 0; }
.unit-rates { margin: 10px 0 14px; }
.unit-rates td { padding: 4px 8px 4px 0; }
.unit-status { border-top: 1px solid #eee7d3; padding-top: 12px; }
.unit-open { color: #2e7d32; font-weight: 700; margin: 0 0 10px; }
.unit-closed { color: #a33; font-weight: 700; margin: 0 0 4px; }
.fee-row { border: 1px solid #ddd6c4; border-radius: 8px; padding: 12px; margin: 0 0 12px; }
.fee-help { margin: -4px 0 0; }
.stay-price-note { display: block; font-weight: 400; font-size: 0.82rem; color: #6b7567; }
.departing-tag { display: inline-block; font-size: 0.72rem; font-weight: 600; padding: 1px 7px; border-radius: 10px; background: #fbead1; color: #7a4a0c; margin-left: 4px; }
.channel-tag { display: inline-block; font-size: 0.72rem; font-weight: 600; padding: 1px 7px; border-radius: 10px; background: #e3ebf5; color: #2f4f7a; }
.channel-details { white-space: pre-line; overflow-wrap: anywhere; }
.i-blocked-wrap { display: block; font-size: 0.85rem; margin: 4px 0 6px; color: #5f6b5a; }
/* Photo upload control (admin): a button-styled label around a hidden file
   input; also a drop target. */
.upload-zone { position: relative; display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 6px 12px 6px 6px; border: 1.5px dashed var(--line, #ddd6c4); border-radius: 8px; cursor: pointer; background: #fff; }
.upload-zone input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; pointer-events: none; }
.upload-zone .upload-btn { display: inline-flex; align-items: center; gap: 6px; background: var(--forest, #263f2c); color: #fff; font-weight: 600; font-size: 0.9rem; padding: 7px 14px; border-radius: 4px; }
.upload-zone .upload-btn::before { content: ''; width: 14px; height: 14px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3l5 5h-3v6h-4V8H7l5-5zm-8 14h16v4H4v-4z'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3l5 5h-3v6h-4V8H7l5-5zm-8 14h16v4H4v-4z'/%3E%3C/svg%3E") center/contain no-repeat; }
.upload-zone .upload-hint { font-size: 0.82rem; color: #6b7567; }
.upload-zone:hover .upload-btn { filter: brightness(1.12); }
.upload-zone:focus-within { outline: 2px solid var(--forest, #263f2c); outline-offset: 2px; }
.upload-zone.drag { border-color: var(--forest, #263f2c); background: #eef3ea; }
.upload-zone.busy { opacity: 0.6; pointer-events: none; }
.field-label { font-size: 0.92rem; margin-bottom: 4px; }
.brand-upload-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
/* Setup → Property: grouped cards, a fixed save bar */
.settings-form { max-width: 980px; }
.settings-card { background: #fff; border: 1px solid var(--line, #ddd6c4); border-radius: 8px; padding: 16px 20px; margin: 0 0 16px; }
.settings-card h3 { margin: 0 0 4px; }
.settings-card > .muted { margin: 4px 0 0; }
.settings-card .form-grid { margin: 10px 0 0; align-items: end; }
.form-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.input-prefix, .input-suffix { display: flex; align-items: center; border: 1px solid var(--line, #ccc4ae); border-radius: 4px; background: #fff; overflow: hidden; }
.input-prefix input, .input-suffix input { border: 0 !important; min-width: 0; flex: 1; box-shadow: none; }
.input-prefix > span, .input-suffix > span { padding: 0 10px; color: #6b7567; background: #f6f3ec; align-self: stretch; display: flex; align-items: center; font-size: 0.9rem; }
.brand-grid { display: grid; grid-template-columns: minmax(200px, 260px) minmax(0, 1fr); gap: 20px; margin-top: 10px; }
.brand-frame { position: relative; display: flex; align-items: center; justify-content: center; border: 1px solid var(--line, #ddd6c4); border-radius: 6px; background: #f6f3ec; overflow: hidden; }
.brand-frame-logo { width: 120px; height: 120px; }
.brand-frame-hero { width: 100%; height: 150px; }
.brand-frame .brand-preview { position: absolute; inset: 0; width: 100%; height: 100%; max-height: none; border: 0; border-radius: 0; }
.brand-frame-logo .brand-preview { object-fit: contain; padding: 6px; background: #fff; }
.brand-frame-hero .brand-preview { object-fit: cover; }
.brand-frame .brand-preview:not(.hidden) + .brand-empty { display: none; }
.theme-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 16px; padding-top: 14px; border-top: 1px solid #eee7d3; }
.theme-pick { display: flex; align-items: center; gap: 8px; font-size: 0.92rem; }
.theme-pick input[type=color] { width: 44px; height: 32px; padding: 2px; border: 1px solid var(--line, #ccc4ae); border-radius: 4px; background: #fff; }
.settings-save { position: sticky; bottom: 0; z-index: 5; background: var(--paper, #f6f3ec); border-top: 1px solid var(--line, #ddd6c4); padding: 12px 0; margin-top: 4px; }
@media (max-width: 800px) {
  .form-grid.cols-3, .form-grid.cols-4 { grid-template-columns: 1fr 1fr; }
  .brand-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) { .form-grid.cols-3, .form-grid.cols-4 { grid-template-columns: 1fr; } .settings-card { padding: 14px; } }
/* Setup → Units / Photos / Calendar sync */
.unit-picker-bar { display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; margin: 6px 0 14px; }
.unit-picker-bar label { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.unit-picker-bar select { min-width: 220px; font-size: 1rem; padding: 6px 8px; }
.unit-picker-bar .unit-link-row { margin: 0; }
.settings-card .unit-picker-bar { margin: 8px 0 10px; }
.check-stack { display: flex; flex-direction: column; justify-content: center; gap: 8px; }
.form-grid label.check-cell { align-self: end; padding-bottom: 8px; }
.upload-bar { align-items: center; gap: 12px; margin-top: 12px; }
.card-save { margin-top: 10px; padding-top: 12px; border-top: 1px solid #eee7d3; }
.feed-edit { display: grid; grid-template-columns: minmax(130px, 180px) minmax(0, 1fr) auto; gap: 10px 14px; align-items: end; padding: 12px; margin: 0 0 10px; border: 1px solid var(--line, #ddd6c4); border-radius: 8px; background: #fbfaf6; }
.feed-edit label { display: flex; flex-direction: column; gap: 4px; font-size: 0.88rem; }
.feed-edit input { width: 100%; }
.feed-edit .feed-blocked { grid-column: 1 / 3; }
.feed-edit .feed-remove { grid-column: 3; grid-row: 1; align-self: end; }
.feed-edit label.hidden { display: none; }
@media (max-width: 700px) {
  .feed-edit { grid-template-columns: 1fr; }
  .feed-edit .feed-blocked, .feed-edit .feed-remove { grid-column: auto; grid-row: auto; justify-self: start; }
  .unit-picker-bar select { min-width: 0; flex: 1; }
}
/* Setup → Units → Pricing */
.span-3 { grid-column: span 3; align-self: end; margin: 0 0 8px; }
.pricing-h { margin: 22px 0 4px; padding-top: 14px; border-top: 1px solid #eee7d3; }
.pcal-nav { display: flex; justify-content: flex-end; gap: 6px; margin: 6px 0 -30px; position: relative; z-index: 1; }
.pcal { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; user-select: none; -webkit-user-select: none; }
.pcal-title { font-family: var(--serif); font-weight: 700; color: var(--forest); font-size: 1.05rem; margin: 4px 0 8px; height: 26px; }
.pcal-dow, .pcal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; }
.pcal-dow span { text-align: center; font-size: 0.72rem; color: #6b7567; font-weight: 600; }
.pcal-cell { position: relative; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; min-height: 54px; padding: 4px 5px; border: 1px solid #e6e0cf; border-radius: 6px; background: #fff; cursor: pointer; font: inherit; color: inherit; text-align: left; }
.pcal-cell:hover:not(:disabled) { border-color: var(--forest); }
.pcal-empty { border: 0; background: none; cursor: default; }
.pcal-d { font-size: 0.74rem; color: #6b7567; }
.pcal-p { font-size: 0.88rem; font-weight: 600; align-self: flex-end; }
.pcal-past { opacity: 0.35; cursor: default; }
.pcal-s0 { background: #eef4ea; } .pcal-s1 { background: #f7f0e1; } .pcal-s2 { background: #ecf1f7; } .pcal-s3 { background: #f6ecf2; }
.pcal-custom::after { content: ''; position: absolute; top: 5px; right: 5px; width: 7px; height: 7px; border-radius: 50%; background: #c0662b; }
.pcal-booked { background-image: repeating-linear-gradient(135deg, transparent 0 6px, rgba(0,0,0,0.05) 6px 9px); }
.pcal-booked .pcal-p { color: #8a8f80; }
.pcal-sel { background: var(--forest) !important; border-color: var(--forest); color: #fff; }
.pcal-sel .pcal-d { color: rgba(255,255,255,0.8); }
.pcal-legend { display: flex; flex-wrap: wrap; gap: 8px 14px; margin: 10px 0 0; font-size: 0.8rem; color: #5f6b5a; }
.pcal-key { display: inline-flex; align-items: center; gap: 6px; }
.pcal-key::before { content: ''; width: 14px; height: 14px; border-radius: 3px; border: 1px solid #e6e0cf; background: inherit; }
.pcal-key.pcal-s0, .pcal-key.pcal-s1, .pcal-key.pcal-s2, .pcal-key.pcal-s3 { background: none; }
.pcal-key.pcal-s0::before { background: #eef4ea; } .pcal-key.pcal-s1::before { background: #f7f0e1; } .pcal-key.pcal-s2::before { background: #ecf1f7; } .pcal-key.pcal-s3::before { background: #f6ecf2; }
.pcal-key-custom::before { width: 8px; height: 8px; border-radius: 50%; border: 0; background: #c0662b; }
.pcal-key-booked::before { background: repeating-linear-gradient(135deg, #fff 0 4px, #e4e0d4 4px 6px); }
.pcal-bar { position: sticky; bottom: 58px; z-index: 4; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; margin-top: 12px; padding: 10px 14px; border-radius: 8px; background: #fff; border: 1.5px solid var(--forest); box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
.pcal-bar-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pcal-price { width: 120px; }
#pcal-explain { flex-basis: 100%; }
#pcal-explain:empty { display: none; }
.pcal-list h5 { margin: 14px 0 6px; font-size: 0.9rem; }
.pcal-run { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 6px 12px; padding: 6px 0; border-bottom: 1px solid #eee7d3; font-size: 0.9rem; }
.rep-rule { position: relative; padding: 12px 14px; margin: 0 0 10px; border: 1px solid var(--line, #ddd6c4); border-radius: 8px; background: #fbfaf6; }
.rep-when, .rep-field { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.rep-when { gap: 10px 16px; padding-right: 84px; }
.rep-when > label { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 0.9rem; }
.rep-field { margin-top: 2px; }
.rep-price { margin-top: 10px; }
.rep-label { font-size: 0.9rem; color: #5f6b5a; }
.rep-rule input[type=number] { width: 84px; }
.rep-rule select { max-width: 100%; }
.rep-amt { display: inline-flex; align-items: center; gap: 6px; }
.rep-rule .r-fd, .rep-rule .r-td { width: 64px; }
.rep-summary { margin-top: 8px; font-size: 0.9rem; font-weight: 600; color: var(--forest); }
.rep-remove { position: absolute; top: 10px; right: 10px; }
.stay-rule .rep-field { padding-right: 84px; }
.day-chips { display: inline-flex; gap: 4px; }
.day-chip { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line, #ccc4ae); background: #fff; font-weight: 600; font-size: 0.85rem; cursor: pointer; padding: 0; color: inherit; }
.day-chip.on { background: var(--forest); border-color: var(--forest); color: #fff; }
@media (max-width: 800px) {
  .pcal { grid-template-columns: 1fr; }
  .span-3 { grid-column: auto; }
  .pcal-cell { min-height: 48px; padding: 3px; }
  .pcal-p { font-size: 0.78rem; }
  .rep-when, .stay-rule .rep-field { padding-right: 0; }
  .rep-remove { position: static; margin-top: 8px; }
  .rep-when > label, .rep-field { width: 100%; }
  .rep-when > label select, .rep-field select { flex: 1 1 auto; min-width: 0; max-width: 100%; }
  .pcal-bar { bottom: 62px; }
}
/* Unsaved changes: the save bar lights up */
.save-bar .unsaved-note, .save-bar .unsaved-discard { display: none; }
.save-bar.is-dirty .unsaved-note, .save-bar.is-dirty .unsaved-discard { display: inline-flex; }
.save-bar.is-dirty { background: #fff7e6; border-top-color: #e0a640; }
.card-save.save-bar.is-dirty { margin-left: -20px; margin-right: -20px; padding-left: 20px; padding-right: 20px; }
.unsaved-note { align-items: center; gap: 6px; margin: 0 10px; font-weight: 600; color: #8a5a00; font-size: 0.92rem; }
.unsaved-note::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: #e08a00; }
.save-bar.is-dirty button[type=submit], .save-bar.is-dirty #sync-save { box-shadow: 0 0 0 3px rgba(224, 138, 0, 0.35); }
#pos-totals:empty { display: none; }
.span-2 { grid-column: span 2; align-self: end; margin: 0 0 8px; }
.season-row .season-name { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 0.9rem; }
.season-row .s-label { width: 380px; max-width: 100%; }
.season-range { margin-top: 8px; padding-top: 6px; border-top: 1px dashed #e6e0cf; }
.season-range:first-of-type { border-top: 0; padding-top: 0; }
.ep { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.ep .ep-day, .ep .ep-n { width: 64px; }
.season-row .sr-fd, .season-row .sr-td { width: 64px; }
@media (max-width: 800px) { .span-2 { grid-column: auto; } }
/* Unit picker (admin): photo + name + highlights over a hidden <select> */
.up-native { display: none !important; }
.unit-picker { position: relative; display: inline-block; min-width: 280px; max-width: 100%; vertical-align: middle; font-weight: 400; }
.up-button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 6px 34px 6px 6px; border: 1px solid var(--line, #ccc4ae); border-radius: 6px; background: #fff; cursor: pointer; text-align: left; font: inherit; color: inherit; position: relative; min-height: 50px; }
.up-button:hover:not(:disabled) { border-color: var(--forest, #263f2c); }
.up-button:focus-visible, .up-list:focus { outline: 2px solid var(--forest, #263f2c); outline-offset: 2px; }
.up-caret { position: absolute; right: 12px; top: 50%; width: 8px; height: 8px; border-right: 2px solid #6b7567; border-bottom: 2px solid #6b7567; transform: translateY(-70%) rotate(45deg); }
.up-thumb { flex: none; width: 52px; height: 38px; border-radius: 5px; object-fit: cover; background: #eee7d3; }
.up-thumb-blank { display: inline-flex; align-items: center; justify-content: center; font-weight: 700; color: #8a8f80; font-family: var(--serif); }
.up-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.up-name { font-weight: 600; font-size: 0.95rem; }
.up-blurb { font-size: 0.8rem; color: #6b7567; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.up-tag { display: inline-block; margin-left: 4px; padding: 0 6px; border-radius: 8px; background: #efe9da; color: #6b5d3a; font-size: 0.7rem; font-weight: 600; vertical-align: 1px; }
.up-list { position: absolute; z-index: 60; left: 0; top: calc(100% + 4px); width: max(100%, 380px); max-height: 380px; overflow-y: auto; background: #fff; border: 1px solid var(--line, #ccc4ae); border-radius: 8px; box-shadow: 0 10px 28px rgba(0,0,0,0.16); padding: 4px 0; }
.up-group { padding: 8px 12px 4px; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: #8a8f80; }
.up-option { display: flex; align-items: center; gap: 10px; padding: 6px 12px; cursor: pointer; }
.up-option:hover, .up-option.active { background: #f3f0e6; }
.up-option.selected { box-shadow: inset 3px 0 0 var(--forest, #263f2c); background: #eef3ea; }
.up-empty { padding: 8px 12px; margin: 0; }
@media (max-width: 700px) {
  .unit-picker { min-width: 0; width: 100%; }
  .up-list { position: fixed; left: 8px; right: 8px; top: auto; bottom: 8px; width: auto; max-height: 70vh; }
}
/* Booking form add-ons: tappable cards */
.addon-card { position: relative; display: grid; grid-template-columns: 84px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 12px; margin: 8px 0; border: 1.5px solid #ddd6c4; border-radius: 10px; background: #fff; cursor: pointer; transition: border-color 0.15s, background 0.15s; }
.addon-card:hover:not(.taken) { border-color: var(--forest, #263f2c); }
.addon-card:focus-within { outline: 2px solid var(--forest, #263f2c); outline-offset: 2px; }
.addon-card.is-added { border-color: var(--forest, #263f2c); background: #f1f5ee; }
.addon-card.taken { opacity: 0.6; cursor: not-allowed; background: #f6f3ec; }
.addon-check { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.addon-thumb { width: 84px; height: 62px; border-radius: 7px; object-fit: cover; background: #eee7d3; }
.addon-thumb-blank { display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-weight: 700; font-size: 1.4rem; color: #a49c84; }
.addon-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.addon-name { font-weight: 700; }
.addon-meta { font-size: 0.85rem; color: #5f6b5a; }
.addon-desc { font-size: 0.8rem; color: #7a8275; }
.addon-side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; text-align: right; }
.addon-price { font-weight: 700; color: var(--forest, #263f2c); white-space: nowrap; }
.addon-price small { font-weight: 400; color: #6b7567; }
.addon-note { font-size: 0.72rem; color: #6b7567; }
.addon-state { font-size: 0.82rem; font-weight: 700; padding: 3px 10px; border-radius: 12px; border: 1.5px solid var(--forest, #263f2c); color: var(--forest, #263f2c); white-space: nowrap; }
.addon-card.is-added .addon-state { background: var(--forest, #263f2c); color: #fff; }
.addon-card.taken .addon-state { border-color: #bdb7a2; color: #8a8f80; }
@media (max-width: 560px) {
  .addon-card { grid-template-columns: 64px minmax(0, 1fr); }
  .addon-thumb { width: 64px; height: 50px; }
  .addon-side { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; }
}
/* Photo tiles (unit photos and shared photos) */
.ptile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; margin: 12px 0; }
.ptile { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line, #ddd6c4); border-radius: 10px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,0.04); }
.ptile[draggable="true"] { cursor: grab; }
.ptile.dragging { opacity: 0.4; }
.ptile.drop-target { outline: 3px solid var(--forest, #263f2c); outline-offset: 2px; }
.ptile-img { position: relative; aspect-ratio: 3 / 2; background: #eee7d3; }
.ptile-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ptile-badges { position: absolute; top: 6px; left: 6px; display: flex; gap: 4px; }
.ptile-badge { font-size: 0.7rem; font-weight: 700; padding: 2px 8px; border-radius: 10px; color: #fff; background: rgba(38, 63, 44, 0.88); }
.ptile-badge.cover { background: #c0662b; }
.ptile-tools { position: absolute; top: 6px; right: 6px; display: flex; gap: 4px; opacity: 0; transition: opacity 0.15s; }
.ptile:hover .ptile-tools, .ptile:focus-within .ptile-tools { opacity: 1; }
@media (hover: none) { .ptile-tools { opacity: 1; } }
.ptile-tools button { width: 30px; height: 30px; border-radius: 50%; border: 0; background: rgba(255,255,255,0.92); color: #243324; font-size: 0.95rem; line-height: 1; cursor: pointer; box-shadow: 0 1px 4px rgba(0,0,0,0.2); padding: 0; }
.ptile-tools button:hover { background: #fff; color: var(--forest, #263f2c); }
.ptile-tools button.danger:hover { color: #a33; }
.ptile-img img { cursor: pointer; }
.ptile-cap.muted { color: #8a917f; }
.ptile-foot { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 6px 8px; }
.ptile-foot > button { width: 28px; height: 28px; border-radius: 6px; border: 1px solid var(--line, #ddd6c4); background: #fff; font-size: 1.1rem; line-height: 1; cursor: pointer; padding: 0; color: #243324; }
.ptile-foot > button:hover:not(:disabled) { border-color: var(--forest, #263f2c); }
.ptile-foot > button:disabled { opacity: 0.3; cursor: default; }
.ptile-cap { flex: 1; min-width: 0; font-size: 0.8rem; color: #5f6b5a; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ptile-body { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px 0; }
.ptile-body .ptile-cap { text-align: left; font-weight: 600; color: #243324; }
.ptile-where { font-size: 0.78rem; color: #5f6b5a; }
.ptile-body .ptile-foot { padding: 6px 0 8px; }
.shared-dialog { border: 0; border-radius: 12px; padding: 20px; width: min(520px, calc(100vw - 32px)); max-height: calc(100vh - 40px); box-shadow: 0 20px 50px rgba(0,0,0,0.3); }
.shared-dialog::backdrop { background: rgba(20, 28, 20, 0.45); }
.shared-dialog h3 { margin: 0 0 10px; }
.shared-dialog-img { width: 100%; max-height: 220px; object-fit: cover; border-radius: 8px; margin-bottom: 10px; }
.shared-dialog label.stack { display: flex; flex-direction: column; gap: 4px; margin: 8px 0; font-size: 0.9rem; }
.shared-dialog label.stack input { width: 100%; }
.shared-dialog .shared-groups { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; margin: 10px 0 6px; }
.shared-dialog label.check { display: inline-flex; align-items: center; gap: 6px; }
.shared-dialog .unit-checks { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 6px 0; }
.shared-dialog .unit-checks strong { flex-basis: 100%; }
.shared-dialog-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; }
/* Reports */
.rp-filters { padding-bottom: 10px; }
.rp-filter-grid { display: grid; grid-template-columns: repeat(2, minmax(130px, 160px)) repeat(3, minmax(0, 1fr)); gap: 10px 14px; margin-top: 12px; align-items: end; }
.rp-filter-grid label { display: flex; flex-direction: column; gap: 4px; font-size: 0.85rem; color: #5f6b5a; }
.rp-filter-grid input, .rp-filter-grid select { width: 100%; }
.rp-filter-grid .unit-picker { min-width: 0; width: 100%; }
#rp-basis-hint { margin: 8px 0 0; }
.rp-block h3 { margin: 0 0 10px; }
.rp-block table.list { margin: 0; }
.rp-block > div { overflow-x: auto; }
.rp-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.rp-grid .rp-block { margin-bottom: 16px; }
.an-cards { margin-bottom: 16px; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); }
.rp-filter-grid .up-button { min-height: 39px; padding-top: 3px; padding-bottom: 3px; }
.rp-filter-grid .up-thumb { width: 40px; height: 28px; }
.rp-filter-grid .up-blurb { display: none; }
.an-card { background: #fff; border: 1px solid var(--line, #ddd6c4); border-radius: 8px; padding: 12px 14px; box-shadow: 0 1px 3px rgba(0,0,0,0.04); }
.an-card-val { color: var(--forest, #263f2c); }
/* Report charts */
.vc { margin: 4px 0 6px; }
.vc-plot { position: relative; height: var(--vc-h, 160px); margin-left: 56px; border-bottom: 1px solid #b9b3a2; }
.vc-grid { position: absolute; left: 0; right: 0; border-top: 1px solid #ece7da; }
.vc-grid span { position: absolute; right: calc(100% + 6px); top: -0.6em; font-size: 0.72rem; color: #7b8274; white-space: nowrap; }
.vc-cols { position: absolute; inset: 0; display: flex; align-items: flex-end; gap: 2px; }
.vc-col { position: relative; flex: 1; height: 100%; display: flex; align-items: flex-end; justify-content: center; cursor: default; outline: none; }
.vc-col:hover, .vc-col:focus-visible { background: rgba(38,63,44,0.06); }
.vc-bar { width: min(70%, 44px); min-height: 0; background: #2f6b45; border-radius: 4px 4px 0 0; }
.vc-bar.vc-muted { background: #9fbfa8; }
.vc-peak { position: absolute; left: 0; right: 0; text-align: center; margin-bottom: 3px; font-size: 0.72rem; color: #3d4a39; white-space: nowrap; }
.vc-x { display: flex; gap: 2px; margin-left: 56px; }
.vc-x span { flex: 1; min-width: 0; text-align: center; font-size: 0.72rem; line-height: 1.15; color: #5f6b5a; padding-top: 4px; overflow-wrap: normal; }
.vc-heat { display: flex; align-items: center; margin-top: 8px; }
.vc-heat-label { width: 56px; flex: none; font-size: 0.7rem; color: #5f6b5a; }
.vc-heat-cells { flex: 1; display: flex; gap: 2px; }
.vc-heat-cell { flex: 1; min-width: 0; height: 22px; border-radius: 4px; background: color-mix(in oklab, #1f5233 var(--p), #eef2e8); font-size: 0.66rem; line-height: 22px; text-align: center; color: #26331f; overflow: hidden; }
.vc-heat-cell.dark { color: #fff; }
.vc-heat-none { background: repeating-linear-gradient(45deg, #f2efe6 0 4px, #e6e1d3 4px 6px); }
.vc-key { display: flex; align-items: center; gap: 6px; margin: 8px 0 0; }
.vc-key i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; background: #2f6b45; }
.vc-key i.vc-key-future { background: #9fbfa8; margin-left: 10px; }
.rp-table-toggle { margin-top: 10px; }
.vc-click { cursor: pointer; }
.vc-pair { gap: 2px; }
.vc-pair .vc-bar { width: min(34%, 22px); }
.vc-bar.vc-prev { background: #b7c4ad; }
.rp-chart-title { margin: 10px 0 4px; font-weight: 600; color: #3d4a39; }
.hb { display: flex; flex-direction: column; gap: 4px; margin: 6px 0 10px; }
.hb-row { display: grid; grid-template-columns: minmax(90px, 200px) 1fr auto; align-items: center; gap: 10px; padding: 3px 6px; border-radius: 6px; }
.hb-row.vc-click:hover, .hb-row:focus-visible { background: rgba(38,63,44,0.06); outline: none; }
.hb-label { font-size: 0.88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hb-track { height: 12px; background: #f1eee5; border-radius: 0 4px 4px 0; }
.hb-track i { display: block; height: 100%; background: #2f6b45; border-radius: 0 4px 4px 0; }
.hb-val { font-size: 0.85rem; color: #3d4a39; min-width: 70px; text-align: right; }
.subnav.subnav-below { margin: 0 0 16px; }
@media (max-width: 520px) { .hb-row { grid-template-columns: 90px 1fr auto; gap: 6px; } .hb-val { min-width: 0; } }
.rp-table-toggle summary { cursor: pointer; color: var(--forest, #263f2c); }
.rp-table-toggle table { margin-top: 8px; }
.share-bar { display: flex; gap: 2px; height: 14px; margin: 2px 0 8px; }
.share-bar span { border-radius: 4px; min-width: 4px; }
.share-legend { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 0.85rem; }
.share-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }
.dbar-cell { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.dbar { display: inline-block; width: 56px; height: 6px; background: #eeeadf; border-radius: 3px; overflow: hidden; flex: none; }
.dbar i { display: block; height: 100%; background: #2f6b45; border-radius: 3px; }
.chart-tip { position: fixed; z-index: 1000; pointer-events: none; background: #1f2a1d; color: #fff; font-size: 0.8rem; line-height: 1.35; padding: 6px 9px; border-radius: 6px; white-space: pre-line; max-width: 260px; box-shadow: 0 2px 8px rgba(0,0,0,0.25); }
@media (max-width: 520px) { .vc-x span.vc-odd { visibility: hidden; } .vc-heat-cell { font-size: 0; } .dbar { width: 36px; } }
.rp-exports { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin-top: 10px; }
.rp-export { display: flex; flex-direction: column; gap: 4px; text-align: left; padding: 12px 14px; border: 1px solid var(--line, #ddd6c4); border-radius: 8px; background: #fbfaf6; cursor: pointer; font: inherit; color: inherit; }
.rp-export strong { color: var(--forest, #263f2c); }
.rp-export strong::after { content: ' ↓'; font-weight: 400; }
.rp-export span { font-size: 0.8rem; color: #5f6b5a; }
.rp-export:hover { border-color: var(--forest, #263f2c); background: #fff; }
@media (max-width: 900px) { .rp-filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .rp-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) { .rp-filter-grid { grid-template-columns: 1fr; } }
.unit-book { background: #fff; border-radius: 6px; box-shadow: 0 2px 12px rgba(30, 50, 35, 0.1); padding: 20px; margin-bottom: 20px; }
.unit-book h2 { margin: 0 0 4px; }
.unit-book .unit-closed { margin: 0; }
.unit-book .bk-dates { display: none; }
@media (max-width: 800px) { .unit-book { padding: 14px; } }
.unit-missing { background: #fff; border-radius: 6px; padding: 24px; text-align: center; }
.unit-link-row { margin: 4px 0 12px; }
@media (max-width: 800px) { .unit-layout { grid-template-columns: 1fr; padding: 14px; } .unit-gallery .gal-main { height: 260px; } }
.unit-layout > * { min-width: 0; }

/* page type decided before first paint (see the inline script in <head>) */
.unit-view { display: none; }
.unit-page .unit-view { display: block; }
.unit-view.hidden { display: none !important; }
.unit-page #cabin-grid, .unit-page #f-type-wrap { display: none !important; }
.unit-page.is-loading .hero-box, .unit-page.is-loading .cal-legend { visibility: hidden; }
/* Platform-wide: while a page is loading its property, nothing shows a
   placeholder name — headings, brand and footer wait behind skeleton bars. */
.is-loading .hero-box, .is-loading .hero-tag, .is-loading .site-footer > .wrap { visibility: hidden; }
.is-loading .brand-name:empty::before, .is-loading .hero-inner::before {
  content: ''; display: inline-block; vertical-align: middle; width: 170px; height: 1.1em; border-radius: 4px;
  background: linear-gradient(90deg, #ebe7da 25%, #f6f3ec 50%, #ebe7da 75%); background-size: 200% 100%; animation: skel 1.3s ease-in-out infinite;
}
.is-loading .hero-inner { position: relative; }
.is-loading .hero-inner::before { position: absolute; left: 50%; top: 50%; width: min(320px, 60%); height: 2.2rem; transform: translate(-50%, -50%); opacity: 0.6; }
.admin-mode.is-loading .brand-name:empty::before, .is-loading .admin-mode .brand-name:empty::before,
.is-loading body.admin-mode .brand-name:empty::before { background: linear-gradient(90deg, rgba(255,255,255,0.18) 25%, rgba(255,255,255,0.32) 50%, rgba(255,255,255,0.18) 75%); background-size: 200% 100%; }
@media (prefers-reduced-motion: reduce) { .is-loading .brand-name:empty::before, .is-loading .hero-inner::before { animation: none; } }
.page-skeleton { display: none; }
.is-loading .page-skeleton { display: block; }
.is-loading main.legal { display: none; }

/* loading skeletons */
.skel { background: linear-gradient(90deg, #ebe7da 25%, #f6f3ec 50%, #ebe7da 75%); background-size: 200% 100%; animation: skel 1.3s ease-in-out infinite; border-radius: 4px; }
@keyframes skel { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .skel { animation: none; } }
.skel-gallery { height: 420px; }
.skel-title { height: 28px; width: 55%; margin: 4px 0 14px; }
.skel-line { height: 12px; margin: 10px 0; }
.skel-line.short { width: 60%; }
.skel-block { height: 72px; margin: 18px 0; }
.skel-btn { height: 40px; width: 55%; margin-top: 18px; }
.skel-cover { height: 220px; border-radius: 0; }
.skel-cal { height: 300px; }
.skel-card .cabin-body { min-height: 170px; }
@media (max-width: 800px) { .skel-gallery { height: 260px; } }

/* Dropdowns: draw our own style instead of the browser's, so Safari's small native control
   matches the other fields (Safari ignores padding on native selects). */
select:not([multiple]) {
  -webkit-appearance: none; appearance: none;
  padding: 8px 34px 8px 10px; line-height: 1.3;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23263f2c' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 12px center;
  cursor: pointer; color: inherit; /* iOS colors dropdown text blue unless told otherwise */
}
/* The Show / Check-in / Check-out row: one shared height in every browser. */
.avail-inputs input, .avail-inputs select { height: 44px; box-sizing: border-box; font-size: 1rem; }

/* iOS Safari: date fields ignore our height and have a built-in minimum width, which pushed
   the booking dialog's second column off-screen. Draw them plainly and let them shrink. */
input[type="date"] { -webkit-appearance: none; appearance: none; min-height: 44px; min-width: 0; text-align: left; }
input[type="date"]::-webkit-date-and-time-value { text-align: left; }
.form-grid > *, .form-grid label { min-width: 0; }
.form-grid input, .form-grid select, .form-grid textarea { width: 100%; max-width: 100%; }
@media (max-width: 600px) {
  /* iOS zooms the page when a field's text is under 16px. */
  input, select, textarea { font-size: 16px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid fieldset { grid-template-columns: 1fr; }
  /* Show on its own row, check-in and check-out side by side underneath. */
  .avail-head { flex-direction: column; align-items: stretch; }
  .avail-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; }
  .avail-inputs label { min-width: 0; }
  .avail-inputs input, .avail-inputs select { width: 100%; }
  #f-type-wrap, #f-clear { grid-column: 1 / -1; }
}

/* sortable admin tables */
table.list th.sortable { cursor: pointer; user-select: none; white-space: nowrap; }
table.list th.sortable:hover, table.list th.sortable:focus-visible { color: var(--forest); background: #e9e5d8; outline: none; }
table.list th.sorted { color: var(--forest); }
.sort-arrow { display: inline-block; min-width: 1em; margin-left: 3px; font-size: 0.7rem; }

/* paginated admin tables */
tr.page-hidden { display: none; }
.pager { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 8px 0 16px; }
.btn-ghost:disabled { background: transparent; color: var(--forest); opacity: 0.4; }

/* admin sign-in screen (admin.html) */
.admin-loading { display: none; margin: 40px 0; }
.is-loading .admin-loading { display: block; }
.is-loading #signin-view, .is-loading #admin-view { display: none !important; }
.signin-view { max-width: 460px; margin: 48px auto; background: #fff; border-radius: 6px; padding: 28px; box-shadow: 0 2px 12px rgba(30, 50, 35, 0.1); text-align: center; }
.signin-view h2 { margin-top: 0; }
.signin-view .banner { text-align: left; }
.admin-mode main.wrap { min-height: calc(100vh - 140px); }

/* ---------- legal pages (privacy policy) ---------- */
.legal { max-width: 760px; padding-top: 32px; padding-bottom: 48px; line-height: 1.65; }
.legal h1 { margin-bottom: 4px; }
.legal h2 { font-size: 1.25rem; margin: 28px 0 8px; }
.legal ul { padding-left: 1.25em; }
.legal li { margin-bottom: 6px; }
.site-footer a { color: inherit; }

/* A message in place of the cards (e.g. "Booking site not found"): one centered column. */
.cabin-grid.grid-message { display: block; }
.site-missing { max-width: 560px; margin: 48px auto; }
.form-grid label.check input { width: auto; flex: none; }
.api-key-row { margin: 6px 0; }
.api-key-row code { background: #f0ede6; padding: 1px 5px; border-radius: 4px; }
.billing-banner { border-radius: 10px; padding: 10px 14px; margin: 0 0 14px; font-size: .92rem; }
.billing-banner.warn { background: #fdf3d7; color: #6b5510; border: 1px solid #e5cf8a; }
.billing-banner.block { background: #fbe3e0; color: #7c241a; border: 1px solid #e5a49c; }
body.billing-locked #admin-view form { pointer-events: none; opacity: .55; }

/* Setup → Account */
.account-intro { margin: 4px 0 14px; }
.key-state { display: inline-block; align-self: flex-start; width: auto; margin: 2px 0 0; padding: 1px 8px; border-radius: 999px; font-size: .75rem; font-weight: 600; vertical-align: 1px; }
.key-state.is-set { background: #e3f1e6; color: #1f5a32; }
.key-state.is-unset { background: #f1eee6; color: #6b6558; }
.plan-tag { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; font: 600 .7rem/1.6 system-ui, sans-serif; letter-spacing: .04em; text-transform: uppercase; background: var(--brand-soft, #e9efe6); color: var(--forest, #263f2c); vertical-align: 3px; }
.code-block { margin: 8px 0 12px; padding: 10px 12px; background: #f6f4ee; border: 1px solid var(--line, #ddd6c4); border-radius: 8px; overflow-x: auto; font-size: .8rem; line-height: 1.5; white-space: pre; }

/* Today → setup checklist */
.ss-progress { height: 6px; background: #ece8dd; border-radius: 999px; overflow: hidden; margin: 4px 0 10px; }
.ss-progress span { display: block; height: 100%; background: var(--forest, #2f6b45); border-radius: 999px; transition: width .3s; }
.ss-steps { list-style: none; margin: 12px 0 0; padding: 0; }
.ss-step { display: flex; align-items: flex-start; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line, #e6e0d2); }
.ss-step:first-child { border-top: none; }
.ss-mark { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 2px solid #b9b3a5; display: grid; place-items: center; font-size: .75rem; font-weight: 700; color: #fff; margin-top: 1px; }
.ss-step.done .ss-mark { background: var(--forest, #2f6b45); border-color: var(--forest, #2f6b45); }
.ss-step.done strong { color: #6b6558; font-weight: 600; }
.ss-step.optional:not(.done) .ss-mark { border-style: dashed; }
.ss-body { flex: 1; min-width: 0; }
.ss-body p { margin: 4px 0 0; }
.ss-body .form-grid { margin-top: 8px; }
.ss-cta { flex: none; align-self: center; }
@media (max-width: 520px) { .ss-step { flex-wrap: wrap; } .ss-body { flex-basis: calc(100% - 34px); } .ss-cta { margin-left: 34px; } }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.dns-table { margin: 6px 0 4px; }
.dns-table td { vertical-align: middle; }
.dns-value { word-break: break-all; }

/* Admin sign-in: email + password under the Google button */
.signin-or { margin: 18px 0 8px; display: flex; align-items: center; gap: 10px; }
.signin-or::before, .signin-or::after { content: ''; flex: 1; border-top: 1px solid var(--line, #e3ddd1); }
.signin-email { display: grid; gap: 10px; text-align: left; }
.signin-email label { display: flex; flex-direction: column; gap: 4px; font-size: .88rem; }
.signin-email input { width: 100%; box-sizing: border-box; }
.signin-email-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.signin-email #si-msg { margin: 0; min-height: 1.2em; }
.signin-new { margin: 16px 0 0; }
.legal .policy-quote { border-left: 3px solid var(--line, #ddd6c4); padding: 2px 0 2px 12px; margin: 8px 0; white-space: pre-line; }

/* Settings → Colors: the curated palettes */
.palette-pick { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; width: 100%; }
.palette-pick legend { font-weight: 600; margin-bottom: 6px; padding: 0; }
.palette { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 6px 6px; border: 1.5px solid var(--line, #ddd6c4); background: #fffdf7; cursor: pointer; font-size: 0.82rem; }
.palette input { position: absolute; opacity: 0; pointer-events: none; }
.palette-ink { display: block; width: 100%; height: 30px; background: var(--p); border: 1px solid rgba(0, 0, 0, .15); }
.palette:has(input:checked) { border-color: var(--ink, #222); box-shadow: 3px 3px 0 var(--ink, #222); }
.palette:has(input:focus-visible) { outline: 3px solid var(--brand-accent, #e4a530); outline-offset: 2px; }
.palette input:checked ~ .palette-name { font-weight: 700; }
.palette input:checked ~ .palette-name::before { content: "✓ "; }

/* the setup screen's live preview (?preview inside /setup) */
.ss-preview .site-logo, .ss-preview .brand-name, .ss-preview #header-contact, .ss-preview #hero, .ss-preview #hero-tag,
.ss-preview .cabin-card, .ss-preview .cabin-rate, .ss-preview #unit-view, .ss-preview #policies, .ss-preview #cancellation-policy,
.ss-preview #good-to-know, .ss-preview #season-note, .ss-preview #avail-cal, .ss-preview .site-footer { cursor: pointer; transition: outline-color .12s; outline: 2px dashed transparent; outline-offset: 3px; }
.ss-preview .site-logo:hover, .ss-preview .brand-name:hover, .ss-preview #header-contact:hover, .ss-preview #hero:hover, .ss-preview #hero-tag:hover,
.ss-preview .cabin-card:hover, .ss-preview .cabin-rate:hover, .ss-preview #unit-view:hover, .ss-preview #policies:hover, .ss-preview #cancellation-policy:hover,
.ss-preview #good-to-know:hover, .ss-preview #season-note:hover, .ss-preview #avail-cal:hover, .ss-preview .site-footer:hover { outline-color: var(--brand-accent, #d4472f); }
.ss-preview #hero:hover { outline-offset: -6px; }
.ss-preview .cal-nav { cursor: auto; }
.ss-flash { animation: ss-flash 1.5s ease-out; }
@keyframes ss-flash { 0%, 35% { box-shadow: 0 0 0 5px var(--q-high, #e4a530); } 100% { box-shadow: 0 0 0 0 transparent; } }

/* admin tailoring: body[data-hide] lists what this property doesn't use */
body[data-hide~="pets"] [data-use~="pets"], body[data-hide~="addons"] [data-use~="addons"],
body[data-hide~="register"] [data-use~="register"], body[data-hide~="seasons"] [data-use~="seasons"],
body[data-hide~="tax"] [data-use~="tax"], body[data-hide~="channels"] [data-use~="channels"],
body[data-hide~="reports"] [data-use~="reports"] { display: none !important; }
.tailor-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 8px 0 0; }
