/* IslandKey — mobile-first, readable outdoors on a phone. */
:root {
  /* IslandKey brand: Deep Ocean for bars, buttons and links; teal and gold as accents only. */
  --sea: #0b3d62;
  --sea-dark: #082c47;
  --sea-tint: #e6eef5;
  --teal: #00b3c7;
  --accent: #ffc247;
  --sand: #f4f7fa;
  --paper: #ffffff;
  --ink: #17293a;
  --ink-soft: #526273;
  --line: #d9e1e8;
  --coral: #b4462f;
  --coral-tint: #fbe9e4;
  --amber: #8a5a00;
  --amber-tint: #fdf1d6;
  --ok: #1f6b3a;
  --ok-tint: #e2f2e6;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(23, 41, 58, .06), 0 2px 8px rgba(23, 41, 58, .05);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-brand: "Poppins", var(--font);
}

/* Poppins (SIL Open Font License), bundled so no outside font service is needed. */
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/poppins-700.woff2") format("woff2"); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 16px/1.5 var(--font);
  color: var(--ink);
  background: var(--sand);
}
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5rem; font-family: var(--font-brand); font-weight: 700; }
h2, h3 { font-weight: 600; }
h1 { font-size: 1.6rem; letter-spacing: -.01em; }
h2 { font-size: 1.15rem; }
p { margin: 0 0 1rem; }
a { color: var(--sea); }
a:hover { color: var(--sea-dark); }
code { font-size: .9em; background: var(--sea-tint); padding: .1em .35em; border-radius: 4px; }
.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; }
.muted { color: var(--ink-soft); }
.small { font-size: .875rem; }
.block { display: block; }
.lead { color: var(--ink-soft); max-width: 46rem; }
:focus-visible { outline: 3px solid #ffc247; outline-offset: 2px; }

/* Top bar */
.topbar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem;
  padding: .75rem 1rem; background: var(--sea); color: #fff;
}
.topbar.admin { background: #081f33; }
.brand { display: inline-flex; align-items: center; gap: .5rem; color: inherit; text-decoration: none; font-weight: 650; }
.brand:hover { color: inherit; }
.brand-mark { width: 26px; height: 26px; background: url("brand/islandkey-mark.svg") center / contain no-repeat; flex: none; }
.brand-name { font-family: var(--font-brand); font-weight: 600; }
.ik-logo { display: block; height: 34px; width: auto; }
.topnav { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .9rem; font-size: .95rem; }
.topnav a, .topnav .linklike { color: #e6eef5; text-decoration: none; }
.topnav a:hover, .topnav .linklike:hover { color: #fff; text-decoration: underline; }

/* Property bar + tabs */
.property-bar { background: var(--paper); border-bottom: 1px solid var(--line); padding: .75rem 1rem 0; }
.property-name { margin: 0 0 .5rem; font-weight: 650; }
.tabs { display: flex; gap: .25rem; overflow-x: auto; scrollbar-width: none; margin: 0 -1rem; padding: 0 1rem; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a {
  flex: none; padding: .55rem .8rem; border-bottom: 3px solid transparent; color: var(--ink-soft);
  text-decoration: none; font-size: .95rem; white-space: nowrap;
}
.tabs a:hover { color: var(--ink); }
.tabs a[aria-current="page"] { color: var(--sea); border-bottom-color: var(--sea); font-weight: 600; }

/* Page */
.page { max-width: 64rem; margin: 0 auto; padding: 1.25rem 1rem 3rem; }
.page-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: .5rem; }
.page-head h1 { margin: 0; }
.section-title { margin-top: 2rem; }

/* Buttons */
.button, button.button {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  min-height: 44px; padding: .55rem 1.1rem; border: 1px solid var(--sea); border-radius: 8px;
  background: var(--sea); color: #fff; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
}
.button:hover { background: var(--sea-dark); color: #fff; }
.button.secondary { background: var(--paper); color: var(--sea); }
.button.secondary:hover { background: var(--sea-tint); color: var(--sea-dark); }
.button.danger { background: var(--paper); border-color: var(--coral); color: var(--coral); }
.button.danger:hover { background: var(--coral-tint); }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--sea); cursor: pointer; text-decoration: underline; }
.danger-text { color: var(--coral); }
form.inline { display: inline; }

/* Cards */
.cards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); margin: 1rem 0; }
.card {
  position: relative; display: block; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1rem 1.1rem; box-shadow: var(--shadow); margin-bottom: 1rem;
}
.cards .card { margin-bottom: 0; }
.card-link { color: inherit; text-decoration: none; }
.card-link:hover { border-color: var(--sea); color: inherit; }
.card.inactive { opacity: .65; }
.card .price { font-weight: 650; font-size: 1.05rem; }
.card-action { font-weight: 600; }
.eyebrow { text-transform: uppercase; letter-spacing: .06em; font-size: .75rem; font-weight: 700; color: var(--ink-soft); margin-bottom: .25rem; }
.empty { background: var(--paper); border: 1px dashed var(--line); border-radius: var(--radius); padding: 1.5rem; text-align: center; margin: 1rem 0; }
.empty p { color: var(--ink-soft); max-width: 32rem; margin-left: auto; margin-right: auto; }

progress.meter { width: 100%; height: 8px; margin: .5rem 0 .25rem; appearance: none; border: 0; border-radius: 99px; background: var(--sea-tint); overflow: hidden; }
progress.meter::-webkit-progress-bar { background: var(--sea-tint); border-radius: 99px; }
progress.meter::-webkit-progress-value { background: var(--sea); border-radius: 99px; }
progress.meter::-moz-progress-bar { background: var(--sea); border-radius: 99px; }

/* Facts */
.facts { display: grid; gap: .5rem 1.5rem; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); margin: 0 0 1rem; }
.facts dt { font-size: .8rem; color: var(--ink-soft); }
.facts dd { margin: 0; font-weight: 550; overflow-wrap: anywhere; }
.facts.compact { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .25rem 1rem; font-size: .9rem; }

/* Checklist */
.checklist { list-style: none; padding: 0; margin: 1rem 0 1.5rem; display: grid; gap: .5rem; }
.checklist a {
  display: grid; grid-template-columns: auto 1fr; grid-template-areas: "tick label" "tick detail"; gap: 0 .75rem;
  align-items: center; padding: .75rem 1rem; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); color: inherit; text-decoration: none;
}
.checklist a:hover { border-color: var(--sea); }
.checklist .tick { grid-area: tick; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line); }
.checklist .done .tick { border-color: var(--ok); background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }
.step-label { grid-area: label; font-weight: 600; }
.step-detail { grid-area: detail; font-size: .875rem; color: var(--ink-soft); }

/* Tables */
.table-wrap { position: relative; overflow-x: auto; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); margin: 1rem 0; }
table.list { width: 100%; border-collapse: collapse; font-size: .95rem; }
table.list th, table.list td { padding: .65rem .8rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
table.list thead th { font-size: .8rem; font-weight: 650; color: var(--ink-soft); background: #f9fbfc; white-space: nowrap; }
table.list tbody tr:last-child td { border-bottom: 0; }
table.list .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
table.list tr.inactive td { color: var(--ink-soft); }
table.list.compact td, table.list.compact th { padding: .45rem .6rem; }
.row-actions { text-align: right; white-space: nowrap; }
.depth-1 { padding-left: 1.6rem !important; }
.depth-2 { padding-left: 2.6rem !important; }
.depth-3 { padding-left: 3.6rem !important; }
.nest { color: var(--ink-soft); margin-right: .25rem; }

/* Badges */
.badge { display: inline-block; padding: .1rem .5rem; border-radius: 99px; font-size: .75rem; font-weight: 650; background: var(--sea-tint); color: var(--sea-dark); text-decoration: none; white-space: nowrap; }
.badge.muted { background: #e8edf2; color: var(--ink-soft); }
.badge.warn { background: var(--amber-tint); color: var(--amber); }
.status-active { background: var(--ok-tint); color: var(--ok); }
.status-trial { background: var(--amber-tint); color: var(--amber); }
.status-suspended, .status-cancelled { background: var(--coral-tint); color: var(--coral); }

/* Forms */
.form-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem; margin: 1rem 0; box-shadow: var(--shadow); max-width: 46rem; }
details.form-card > summary { cursor: pointer; font-weight: 650; color: var(--sea); }
details.form-card[open] > summary { margin-bottom: 1rem; }
fieldset { border: 0; padding: 0; margin: 0 0 1.25rem; min-width: 0; }
fieldset[disabled] { opacity: .8; }
legend { font-weight: 700; font-size: 1rem; padding: 0; margin-bottom: .6rem; }
.form-card > fieldset + fieldset { border-top: 1px solid var(--line); padding-top: 1rem; }
label { display: block; font-weight: 550; font-size: .95rem; margin-bottom: .85rem; }
input:not([type="checkbox"]):not([type="radio"]), select, textarea {
  display: block; width: 100%; margin-top: .3rem; min-height: 44px; padding: .55rem .7rem;
  font: inherit; font-weight: 400; color: var(--ink); background: #fff; border: 1px solid #c2ccd6; border-radius: 8px;
}
textarea { min-height: 0; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--sea); outline: 3px solid rgba(11, 61, 98, .18); outline-offset: 0; }
input[type="checkbox"], input[type="radio"] { width: 20px; height: 20px; accent-color: var(--sea); vertical-align: -4px; margin: 0 .4rem 0 0; }
label.check { display: inline-flex; align-items: center; font-weight: 450; margin: 0 1rem .5rem 0; min-height: 32px; }
.checks { margin-bottom: .75rem; }
.checks legend { font-size: .95rem; font-weight: 550; }
.inline-checks label.check { margin-right: .85rem; }
.hint { display: block; font-size: .825rem; font-weight: 400; color: var(--ink-soft); margin-top: .25rem; }
.field-error { color: var(--coral); font-size: .875rem; font-weight: 550; margin: -.5rem 0 .85rem; }
.actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .5rem; }
.stack { display: grid; gap: .25rem; }
.grid-2, .grid-3 { display: grid; gap: 0 1rem; grid-template-columns: 1fr; }
.align-end { align-items: end; }
.align-end .button { margin-bottom: .85rem; }
.prefixed { display: flex; align-items: stretch; margin-top: .3rem; }
.prefixed .prefix { display: flex; align-items: center; padding: 0 .6rem; background: #edf1f5; border: 1px solid #c2ccd6; border-right: 0; border-radius: 8px 0 0 8px; color: var(--ink-soft); font-weight: 400; font-size: .9rem; white-space: nowrap; }
.prefixed input { margin-top: 0 !important; border-radius: 0 8px 8px 0 !important; }
.danger-zone { max-width: 46rem; margin: 1.5rem 0; padding-top: 1rem; border-top: 1px solid var(--line); }
.rows { list-style: none; margin: 0 0 1rem; padding: 0; }
.rows li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; padding: .6rem 0; border-bottom: 1px solid var(--line); }

/* Messages */
.flash { padding: .75rem 1rem; border-radius: 8px; margin-bottom: 1rem; font-weight: 550; border: 1px solid transparent; }
.flash-success { background: var(--ok-tint); color: var(--ok); border-color: #bfdcc7; }
.flash-error { background: var(--coral-tint); color: var(--coral); border-color: #f0c3b8; }
.flash-info { background: var(--amber-tint); color: var(--amber); border-color: #f0dca8; }

/* Sign-in and error pages */
body.bare { display: grid; place-items: center; min-height: 100vh; padding: 1rem; background: linear-gradient(180deg, var(--sea-tint), var(--sand) 60%); }
.bare-card { width: 100%; max-width: 26rem; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 1.75rem 1.5rem; box-shadow: var(--shadow); }
.bare-brand { color: var(--sea); margin-bottom: 1.25rem; }
.error-code { font-size: 3rem; font-weight: 800; color: var(--sea-tint); -webkit-text-stroke: 1px var(--sea); margin: 0; line-height: 1; }

@media (min-width: 640px) {
  /* Header, tabs and page content share one column edge. */
  :root { --gutter: max(1.5rem, calc((100% - 61rem) / 2)); }
  .page { padding: 1.75rem 1.5rem 3rem; }
  .property-bar { padding: .9rem var(--gutter) 0; }
  .tabs { margin: 0 -.8rem; padding: 0; }
  .topbar { padding: .8rem var(--gutter); }
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr 1fr; }
  .form-card { padding: 1.4rem 1.5rem; }
}
[hidden] { display: none !important; }

/* ===================== Phase 1 ===================== */
.topbar-row { display: flex; align-items: center; justify-content: space-between; gap: .75rem; width: 100%; }
.topbar-account { display: flex; align-items: center; gap: .9rem; font-size: .95rem; }
.topbar-account a, .topbar-account .linklike { color: #e6eef5; text-decoration: none; }
.topbar-account a:hover, .topbar-account .linklike:hover { color: #fff; text-decoration: underline; }
.mainnav { width: 100%; display: flex; gap: .15rem; overflow-x: auto; scrollbar-width: none; margin: .1rem -1rem -.75rem; padding: 0 1rem; }
.mainnav::-webkit-scrollbar { display: none; }
.mainnav a { flex: none; padding: .55rem .7rem .6rem; color: #c9d9e6; text-decoration: none; font-size: .95rem; border-bottom: 3px solid transparent; white-space: nowrap; }
.mainnav a:hover { color: #fff; }
.mainnav a[aria-current="page"] { color: #fff; font-weight: 650; border-bottom-color: #ffc247; }
.small-button { min-height: 36px !important; padding: .35rem .8rem !important; font-size: .9rem; }
.tight-top { margin-top: .5rem; }
.today-date { margin: 0; }
.block-link { display: block; text-decoration: none; }
ul.tight { margin: 0; padding-left: 1.1rem; }
.note { background: #fbf6e9; border-left: 3px solid #ffc247; padding: .6rem .8rem; border-radius: 0 6px 6px 0; font-size: .95rem; }
h3 { font-size: 1rem; margin: 1.1rem 0 .4rem; }

.property-switch { display: flex; gap: .5rem; align-items: center; margin: .25rem 0 1rem; max-width: 26rem; }
.property-switch label { margin: 0; flex: 1; }
.property-switch select { margin-top: 0; }

/* Stats and panels */
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(7.5rem, 1fr)); gap: .6rem; margin: 1rem 0; }
.stat { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: .7rem .85rem; color: inherit; text-decoration: none; box-shadow: var(--shadow); }
a.stat:hover { border-color: var(--sea); color: inherit; }
.stat-num { font-size: 1.5rem; font-weight: 750; font-variant-numeric: tabular-nums; line-height: 1.15; }
.stat-label { font-size: .825rem; color: var(--ink-soft); }
.stat-warn { border-color: #e9c46a; background: #fffaf0; }
.grid-panels { display: grid; gap: 1rem; grid-template-columns: 1fr; margin: 1rem 0; }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; box-shadow: var(--shadow); margin: 1rem 0; }
.grid-panels .panel { margin: 0; }
.panel > h2 { margin-bottom: .6rem; }
.panel-warn { border-color: #e9c46a; background: #fffaf0; }
.rows-list { list-style: none; margin: 0; padding: 0; }
.rows-list li + li { border-top: 1px solid var(--line); }
.row-link { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .3rem .75rem; padding: .6rem 0; color: inherit; text-decoration: none; }
.row-link:hover .row-main strong { color: var(--sea); text-decoration: underline; }
.row-main { min-width: 0; }
.row-side { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; }
ul.rows-list.panel { padding: .2rem 1.1rem; }

/* Filters */
.pills { display: flex; flex-wrap: wrap; gap: .35rem; margin: .5rem 0 .75rem; }
.pills a { padding: .35rem .8rem; border-radius: 99px; border: 1px solid var(--line); background: var(--paper); color: var(--ink-soft); text-decoration: none; font-size: .9rem; }
.pills a[aria-current="page"] { background: var(--sea); border-color: var(--sea); color: #fff; font-weight: 600; }
.search-row { display: flex; flex-wrap: wrap; gap: .5rem; align-items: flex-end; margin-bottom: 1rem; }
.search-row label { margin: 0; }
.search-row .grow { flex: 1 1 14rem; }
.search-row input { margin-top: .3rem; }

/* Status colours (stays, visits, calendar) */
.st-enquiry { background: #e8edf2; color: #526273; }
.st-held { background: var(--amber-tint); color: var(--amber); }
.st-confirmed { background: var(--sea-tint); color: var(--sea-dark); }
.st-checked_in { background: #dbe8ff; color: #1f4b99; }
.st-checked_out, .st-used { background: #e7e3f3; color: #4b3f78; }
.st-cancelled, .st-no_show, .st-expired { background: var(--coral-tint); color: var(--coral); }

/* Calendar */
.cal-nav { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin-bottom: .75rem; }
.cal-jump { display: flex; gap: .4rem; align-items: center; }
.cal-jump label { margin: 0; }
.cal-jump input { margin-top: 0; min-height: 36px; padding: .3rem .5rem; }
.cal-wrap { overflow-x: auto; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); -webkit-overflow-scrolling: touch; }
table.cal { border-collapse: separate; border-spacing: 0; width: 100%; min-width: 56rem; table-layout: fixed; font-size: .85rem; }
table.cal th, table.cal td { border-bottom: 1px solid var(--line); border-right: 1px solid #efebe3; padding: 0; height: 2.6rem; text-align: center; }
table.cal thead th { height: auto; padding: .35rem .1rem; background: #f9fbfc; font-weight: 600; color: var(--ink-soft); line-height: 1.15; }
table.cal thead th.is-today { background: var(--sea-tint); color: var(--sea-dark); }
table.cal thead th.is-weekend { background: #f2f5f8; }
.cal-dow, .cal-dom, .cal-mon { display: block; }
.cal-dom { font-size: 1rem; color: var(--ink); }
.cal-mon { font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; }
table.cal .cal-unit { position: sticky; left: 0; z-index: 1; width: 9.5rem; text-align: left; padding: 0 .6rem; background: var(--paper); font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-right: 1px solid var(--line); }
table.cal thead .cal-unit { background: #f9fbfc; }
table.cal tr.inactive .cal-unit { color: var(--ink-soft); font-weight: 400; }
td.cal-free.is-today { background: #f3faf8; }
td.cal-free a { display: block; height: 100%; line-height: 2.6rem; color: transparent; text-decoration: none; font-size: 1.1rem; }
td.cal-free a:hover, td.cal-free a:focus { color: var(--sea); background: var(--sea-tint); }
td.cal-booked { padding: .3rem .15rem; }
.cal-bar { display: block; height: 100%; border-radius: 6px; padding: 0 .45rem; line-height: 2rem; font-weight: 600; font-size: .8rem; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: left; }
.cal-bar:hover { filter: brightness(.95); text-decoration: underline; }
.cal-bar.via-parent, .cal-key.via-parent { background: repeating-linear-gradient(135deg, #eeeae2 0 6px, #e4dfd4 6px 12px); color: var(--ink-soft); font-weight: 500; }
.cal-legend { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .8rem; color: var(--ink-soft); margin-top: .5rem; }
.cal-key { display: inline-block; width: 14px; height: 14px; border-radius: 4px; vertical-align: -2px; margin-right: .15rem; }
.hk-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: .3rem; vertical-align: 1px; background: #b6c1cc; }
.hk-dot.hk-dirty { background: #d98a1f; }
.hk-dot.hk-clean, .hk-dot.hk-inspected { background: #2f8f57; }
.hk-dot.hk-out_of_order { background: var(--coral); }

/* New stay */
.form-card.wide { max-width: 56rem; }
.unit-picks { display: grid; gap: .5rem; }
.unit-pick { display: grid; grid-template-columns: 1fr; gap: .4rem; padding: .7rem .8rem; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.unit-pick.picked { border-color: var(--sea); background: #f5f9fc; }
.unit-pick.unavailable { background: #f8fafc; color: var(--ink-soft); }
.unit-pick.depth-pad-1 { margin-left: 1.25rem; }
.unit-pick.depth-pad-2 { margin-left: 2.5rem; }
.unit-pick-name { margin: 0 !important; align-items: flex-start !important; }
.unit-pick-name input { margin-top: .2rem !important; }
.unit-pick-guests { display: flex; gap: .6rem; }
.unit-pick-guests label { margin: 0; font-size: .85rem; flex: 1; max-width: 8rem; }
.unit-pick-guests input { min-height: 38px; padding: .35rem .5rem; }
.unavailable-reason { color: var(--coral); }
.unit-quote { font-size: .95rem; }
.unit-quote .field-error { margin: 0; }
.quote-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .6rem; margin-top: .8rem; padding: .7rem .8rem; background: var(--sea-tint); border-radius: 8px; }
.offering-picks { display: grid; gap: .5rem; grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); margin-bottom: 1rem; }
.offering-pick { display: flex !important; gap: .6rem; align-items: flex-start; margin: 0 !important; padding: .7rem .8rem; border: 1px solid var(--line); border-radius: 8px; background: #fff; font-weight: 400 !important; cursor: pointer; }
.offering-pick.picked, .offering-pick:has(input:checked) { border-color: var(--sea); background: #f5f9fc; }
.offering-pick input { margin-top: .2rem !important; }

/* Booking page */
.status-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin: .75rem 0 1rem; }
.button.whatsapp { background: #1f8b4c; border-color: #1f8b4c; }
.button.whatsapp:hover { background: #18703d; }
dl.money { display: grid; grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr)); gap: .5rem; margin: 0 0 .5rem; }
dl.money div { background: #f9fbfc; border: 1px solid var(--line); border-radius: 8px; padding: .5rem .7rem; }
dl.money dt { font-size: .8rem; color: var(--ink-soft); }
dl.money dd { margin: 0; font-size: 1.1rem; font-weight: 700; font-variant-numeric: tabular-nums; }
dl.money .owed { background: var(--amber-tint); border-color: #f0dca8; }
dl.money .owed dd { color: var(--amber); }
dl.money .settled dd { color: var(--ok); }
details.inline-form { margin: .5rem 0 1rem; }
details.inline-form > summary { cursor: pointer; color: var(--sea); font-weight: 600; padding: .3rem 0; }
details.inline-form[open] > summary { margin-bottom: .6rem; }
details.inline-form form { border-top: 1px solid var(--line); padding-top: .75rem; }
.grid-4 { display: grid; gap: 0 1rem; grid-template-columns: 1fr 1fr; }
.grid-4 .span-2 { grid-column: span 2; }
.rows li { align-items: center; }

/* Day visits */
.capacity-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); gap: .6rem; margin: .5rem 0 1rem; }
.capacity { background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: .55rem .75rem; }
.capacity.closed { background: var(--coral-tint); border-color: #f0c3b8; }
.capacity-name { display: block; font-weight: 650; font-size: .9rem; }
.capacity-val { display: block; font-size: .85rem; color: var(--ink-soft); }
.scanner video { width: 100%; max-height: 60vh; border-radius: 8px; background: #000; }

/* Ticket (guest-facing) */
body.ticket-page { background: linear-gradient(180deg, var(--sea) 0 14rem, var(--sand) 14rem); min-height: 100vh; }
.ticket-wrap { max-width: 24rem; margin: 0 auto; padding: 1.5rem 1rem 3rem; }
.ticket { background: var(--paper); border-radius: 16px; box-shadow: 0 6px 24px rgba(8, 44, 71, .18); padding: 1.4rem 1.25rem; text-align: center; }
.ticket-head h1 { font-size: 1.35rem; }
.ticket-place { color: var(--ink-soft); margin: 0 0 .25rem; font-weight: 600; }
.ticket-qr { display: flex; justify-content: center; margin: 1rem auto .5rem; min-height: 200px; align-items: center; }
.ticket-qr img { width: 220px; height: 220px; image-rendering: pixelated; }
.ticket-ref { font-size: 1.6rem; font-weight: 800; letter-spacing: .12em; margin: 0 0 1rem; font-variant-numeric: tabular-nums; }
.ticket-facts { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; text-align: left; border-top: 1px dashed var(--line); padding-top: 1rem; margin: 0; }
.ticket-facts dt { font-size: .75rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .05em; }
.ticket-facts dd { margin: 0; font-weight: 650; }
.ticket-status { margin: 1rem 0 0; }
.ticket-status .badge { font-size: .95rem; padding: .3rem .8rem; }
.ticket.st-cancelled .ticket-qr, .ticket.st-expired .ticket-qr, .ticket.st-used .ticket-qr { opacity: .25; }
.ticket-staff { border-top: 1px solid var(--line); margin-top: 1.1rem; padding-top: 1rem; }
.button.admit { width: 100%; min-height: 56px; font-size: 1.15rem; }

/* Housekeeping */
.hk-list { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); }
.hk-card { background: var(--paper); border: 1px solid var(--line); border-left: 5px solid #b6c1cc; border-radius: var(--radius); padding: .8rem .9rem; }
.hk-card-dirty { border-left-color: #d98a1f; }
.hk-card-clean, .hk-card-inspected { border-left-color: #2f8f57; }
.hk-card-out_of_order { border-left-color: var(--coral); }
.hk-head { display: flex; justify-content: space-between; gap: .5rem; align-items: flex-start; margin-bottom: .3rem; }
.hk-head h2 { font-size: 1.05rem; margin: 0; }
.hk-badge-dirty { background: var(--amber-tint); color: var(--amber); }
.hk-badge-clean, .hk-badge-inspected { background: var(--ok-tint); color: var(--ok); }
.hk-badge-out_of_order { background: var(--coral-tint); color: var(--coral); }
.hk-actions { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .6rem; }
.hk-note { width: 100%; margin: 0; }
.hk-note input { min-height: 38px; padding: .35rem .6rem; }

/* Reports */
.report-range label { flex: 0 1 11rem; }
table.list.compact tfoot th { border-top: 2px solid var(--line); }

/* Receipt / print */
body.print-page { background: #edf1f5; }
.print-actions { display: flex; gap: .5rem; justify-content: center; padding: 1rem; }
.receipt { max-width: 44rem; margin: 0 auto 2rem; background: #fff; padding: 2rem 1.75rem; border-radius: 8px; box-shadow: var(--shadow); }
.receipt-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; border-bottom: 2px solid var(--ink); padding-bottom: 1rem; margin-bottom: 1rem; }
.receipt-head h1 { font-size: 1.4rem; }
.receipt-head p { margin: 0; color: var(--ink-soft); font-size: .9rem; }
.receipt-meta { text-align: right; }
.receipt-title { font-size: 1.2rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--ink) !important; }
.receipt-table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.receipt-table th, .receipt-table td { padding: .45rem .3rem; border-bottom: 1px solid var(--line); text-align: left; }
.receipt-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.receipt-table tfoot th { border-top: 2px solid var(--ink); }
.receipt-balance th { font-size: 1.1rem; }
@media print {
  .no-print { display: none !important; }
  body.print-page { background: #fff; }
  .receipt { box-shadow: none; padding: 0; margin: 0; max-width: none; }
}

@media (min-width: 640px) {
  .mainnav { margin: .2rem calc(-1 * var(--gutter)) -.8rem; padding: 0 calc(var(--gutter) - .7rem); }
  .grid-panels { grid-template-columns: 1fr 1fr; }
  .unit-pick { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
  .unit-pick .unit-quote { grid-column: 1 / -1; }
  .grid-4 { grid-template-columns: 2fr 1fr 1fr; }
  .grid-4 .span-2 { grid-column: span 1; }
}

/* Polish */
.unit-pick:not(:has(input[type="checkbox"]:checked)) .unit-pick-guests { display: none; }
.cal-bar { display: flex; align-items: center; height: 2rem; line-height: 1.2; }
.cal-key { border: 1px solid rgba(23, 41, 58, .25); }

/* ===================== Phase 2 ===================== */
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.big-button { min-height: 52px !important; font-size: 1.05rem; padding: .7rem 1.4rem !important; }
.copy-field { min-width: 14rem; font-size: .85rem; min-height: 36px !important; padding: .3rem .5rem !important; margin: 0 !important; }
label.check.option { display: flex; align-items: flex-start; gap: .1rem; margin: 0 0 .6rem; }
label.check.option input { margin-top: .2rem; }

/* Staff: slips and booking link */
.claim { border-top: 1px solid #f0dca8; padding: .7rem 0; }
.claim:first-of-type { border-top: 0; }
.claim p { margin-bottom: .5rem; }
.claim-actions { display: flex; flex-wrap: wrap; gap: .6rem 1.2rem; }
.inline-row { display: flex; gap: .4rem; align-items: center; margin: 0; }
.inline-row label { margin: 0; }
.inline-row input { margin: 0 !important; min-height: 40px; max-width: 12rem; }
.booking-link { display: grid; gap: 1rem; grid-template-columns: 1fr; align-items: start; }
.booking-link label { margin-bottom: .6rem; }
.qr-small img { width: 160px; height: 160px; image-rendering: pixelated; border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 4px; }

/* Public booking site */
body.public { background: var(--sand); }
.public-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .9rem 1rem; background: var(--sea); }
.public-brand { color: #fff; text-decoration: none; font-weight: 750; font-size: 1.1rem; }
.public-brand:hover { color: #fff; }
.public-contact { color: #fff; text-decoration: none; font-weight: 600; font-size: .9rem; border: 1px solid rgba(255,255,255,.5); border-radius: 99px; padding: .35rem .85rem; }
.public-contact:hover { background: rgba(255,255,255,.12); color: #fff; }
.public-page { max-width: 58rem; margin: 0 auto; padding: 1.25rem 1rem 3rem; }
.public-foot { max-width: 58rem; margin: 0 auto; padding: 1rem 1rem 2rem; color: var(--ink-soft); border-top: 1px solid var(--line); }
.public-foot p { margin: 0 0 .25rem; }
.public-hero { margin-bottom: 1rem; }
.public-hero h1 { font-size: 1.9rem; }
.public-search { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 1rem 1.1rem; box-shadow: var(--shadow); margin-bottom: 1.25rem; }
.search-grid { display: grid; gap: 0 .8rem; grid-template-columns: 1fr 1fr; align-items: end; }
.search-grid .button { grid-column: 1 / -1; margin-bottom: .85rem; }
.public-results h2, .public-offerings h2 { margin-top: .5rem; }
.result { display: grid; grid-template-columns: 1fr; gap: .6rem; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 1rem 1.1rem; margin-bottom: .75rem; box-shadow: var(--shadow); }
.result h3 { margin: 0 0 .2rem; font-size: 1.1rem; }
.result p { margin-bottom: .35rem; }
.result-no { opacity: .7; }
.result-price { font-size: 1.35rem; font-weight: 800; margin: 0 !important; font-variant-numeric: tabular-nums; }
.usd { display: block; font-size: .8rem; font-weight: 500; color: var(--ink-soft); }
.result-side { display: flex; flex-direction: column; align-items: flex-start; gap: .2rem; }
.result-side .button { margin-top: .4rem; }
.public-two { display: grid; gap: 1rem; grid-template-columns: 1fr; }
.public-two .panel, .public-two .form-card { margin: 0; }
.summary-total { font-size: 1.1rem; margin: .5rem 0; }
.pay-box { background: #f9fbfc; border: 1px dashed var(--line); border-radius: 8px; padding: .7rem .9rem; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .92rem; margin-bottom: .75rem; }
.ticket-wrap .panel { margin-top: 1rem; }

@media (min-width: 640px) {
  .public-head { padding: 1rem max(1.5rem, calc((100% - 55rem) / 2)); }
  .public-page { padding: 1.75rem 1.5rem 3rem; }
  .search-grid { grid-template-columns: 1.3fr 1.3fr .8fr .8fr auto; }
  .search-grid .button { grid-column: auto; }
  .result { grid-template-columns: 1fr auto; align-items: center; }
  .result-side { align-items: flex-end; text-align: right; min-width: 10rem; }
  .public-two { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); align-items: start; }
  .booking-link { grid-template-columns: auto 1fr; }
}

/* ===================== Phase 3 ===================== */
/* Account notices above staff pages */
.notice { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .4rem 1rem; padding: .6rem .9rem; margin-bottom: 1rem; border-radius: 8px; background: var(--sea-tint); border: 1px solid #c5dfdb; font-size: .925rem; }
.notice .linklike, .notice a { font-weight: 650; }
.notice-info { background: var(--amber-tint); border-color: #f0dca8; }
.notice-error { background: var(--coral-tint); border-color: #f0c3b8; }
.status-past_due { background: var(--amber-tint); color: var(--coral); }

/* Setup guide */
.wizard-head { margin-bottom: 1.25rem; }
.wizard-steps { list-style: none; margin: .5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: .35rem; counter-reset: none; }
.wizard-steps li { border-top: 4px solid var(--line); padding-top: .45rem; font-size: .82rem; color: var(--ink-soft); min-width: 0; }
.wizard-steps li.done { border-color: #7fb8b1; }
.wizard-steps li.current { border-color: var(--sea); color: var(--ink); font-weight: 650; }
.wizard-steps a { color: inherit; text-decoration: none; display: block; }
.wizard-steps a:hover .wizard-label { text-decoration: underline; }
.wizard-num { display: inline-grid; place-items: center; width: 1.4rem; height: 1.4rem; border-radius: 50%; background: #e8edf2; font-size: .75rem; font-weight: 700; margin-right: .35rem; }
.wizard-steps .done .wizard-num { background: #cfe6e2; color: var(--sea-dark); }
.wizard-steps .current .wizard-num { background: var(--sea); color: #fff; }
.wizard-label { display: none; }
.unit-row { border-top: 1px solid var(--line); padding-top: .9rem; margin-bottom: .6rem; }
.unit-row:first-of-type { border-top: 0; padding-top: 0; }
.grid-unit { display: grid; gap: 0 .75rem; grid-template-columns: 1fr 1fr; }
.grid-unit .span-2 { grid-column: 1 / -1; }
label.check.block { display: flex; align-items: flex-start; margin: 0 0 .7rem; }
label.check.block input { margin-top: .15rem; flex: none; }
label.check.block .hint { margin-top: 0; }
.wizard-done { margin-bottom: 1rem; }

/* Plans to choose from */
.plan-picks { display: grid; gap: .6rem; grid-template-columns: 1fr; margin-bottom: .75rem; }
.plan-pick { position: relative; display: grid; grid-template-columns: auto 1fr; gap: .1rem .6rem; align-items: start; margin: 0; padding: .75rem .85rem; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; font-weight: 400; }
.plan-pick input { grid-row: 1 / span 3; margin-top: .2rem; }
.plan-pick:has(input:checked) { border-color: var(--sea); box-shadow: 0 0 0 2px rgba(11, 61, 98, .25); background: #fbfdfe; }
.plan-pick-name { font-weight: 700; }
.plan-pick-price { font-weight: 600; font-variant-numeric: tabular-nums; }
.billing-status { display: grid; gap: 1rem; grid-template-columns: 1fr; }
.billing-status h2 { font-size: 1.35rem; }

/* IslandKey's own site */
body.site { background: var(--sand); }
.site-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .85rem 1rem; background: var(--sea); color: #fff; }
.site-head .brand { font-size: 1.1rem; }
.site-nav { display: flex; align-items: center; gap: .9rem; font-size: .95rem; }
.site-nav a:not(.button) { color: #e6eef5; text-decoration: none; }
.site-nav a:not(.button):hover { color: #fff; text-decoration: underline; }
.site-nav .button { background: #ffc247; color: #2a2006; border-color: #ffc247; }
.site-nav .button:hover { background: #ffd47a; color: #2a2006; }
.site-main { max-width: 64rem; margin: 0 auto; padding: 1.5rem 1rem 3rem; }
.site-foot { max-width: 64rem; margin: 0 auto; padding: 1.25rem 1rem 2.5rem; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: .9rem; }
.site-foot p { display: flex; align-items: center; gap: .5rem; margin: 0 0 .35rem; }
.site-foot .brand-mark { width: 16px; height: 16px; }

.hero { display: grid; gap: 1.75rem; grid-template-columns: 1fr; align-items: center; padding: 1rem 0 2rem; }
.hero h1 { font-size: clamp(2rem, 6vw, 3rem); letter-spacing: -.025em; line-height: 1.05; margin-bottom: .9rem; }
.hero-lead { font-size: 1.12rem; color: var(--ink-soft); max-width: 34rem; }
.hero .actions { margin-bottom: .6rem; }
.demo-card { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 1rem 1.1rem; box-shadow: 0 10px 30px rgba(11, 61, 98, .12), var(--shadow); transform: rotate(-1deg); }
.demo-title { font-weight: 750; margin-bottom: .6rem; }
.demo-stats { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .6rem; }
.demo-stats span { background: var(--sea-tint); border-radius: 99px; padding: .2rem .65rem; font-size: .85rem; }
.demo-rows { list-style: none; margin: 0; padding: 0; }
.demo-rows li { display: flex; justify-content: space-between; align-items: center; gap: .6rem; padding: .55rem 0; border-top: 1px solid var(--line); font-size: .88rem; color: var(--ink-soft); }
.demo-rows b { display: block; color: var(--ink); font-size: .95rem; }

.features { display: grid; gap: .9rem; grid-template-columns: 1fr; margin: 1rem 0 2.5rem; }
.feature { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 1rem 1.1rem; box-shadow: var(--shadow); }
.feature h3 { font-size: 1.05rem; margin-bottom: .35rem; }
.feature p { color: var(--ink-soft); margin: 0; font-size: .95rem; }

.steps { margin: 0 0 2.5rem; }
.step-list { list-style: none; counter-reset: step; margin: 1rem 0 0; padding: 0; display: grid; gap: .8rem; grid-template-columns: 1fr; }
.step-list li { counter-increment: step; position: relative; padding: .9rem 1rem .9rem 3.4rem; background: var(--sea-tint); border-radius: 12px; }
.step-list li::before { content: counter(step); position: absolute; left: 1rem; top: .85rem; width: 1.75rem; height: 1.75rem; display: grid; place-items: center; border-radius: 50%; background: var(--sea); color: #fff; font-weight: 750; }
.step-list b { display: block; }

.pricing { margin-bottom: 2.5rem; scroll-margin-top: 1rem; }
.price-cards { display: grid; gap: 1rem; grid-template-columns: 1fr; margin-top: 1rem; }
.price-card { position: relative; display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 1.25rem 1.2rem; box-shadow: var(--shadow); }
.price-card.featured { border: 2px solid var(--sea); }
.price-flag { position: absolute; top: -.75rem; left: 1.1rem; background: var(--sea); color: #fff; border-radius: 99px; padding: .15rem .7rem; font-size: .75rem; font-weight: 700; margin: 0; }
.price-card h3 { font-size: 1.25rem; margin-bottom: .2rem; }
.price-amount { font-size: 2.1rem; font-weight: 800; letter-spacing: -.02em; margin: .4rem 0 .1rem; font-variant-numeric: tabular-nums; }
.price-cur { font-size: 1rem; font-weight: 650; color: var(--ink-soft); }
.price-per { font-size: .95rem; font-weight: 500; color: var(--ink-soft); }
.price-list { list-style: none; margin: .75rem 0 1.1rem; padding: 0; flex: 1; }
.price-list li { padding: .3rem 0 .3rem 1.4rem; position: relative; font-size: .95rem; }
.price-list li::before { content: ""; position: absolute; left: .1rem; top: .75rem; width: .7rem; height: .4rem; border-left: 2px solid var(--sea); border-bottom: 2px solid var(--sea); transform: rotate(-45deg); }

.faq { max-width: 46rem; margin-bottom: 2.5rem; }
.faq details { border-bottom: 1px solid var(--line); padding: .8rem 0; }
.faq summary { cursor: pointer; font-weight: 650; }
.faq details p { margin: .5rem 0 0; color: var(--ink-soft); }
.cta { text-align: center; background: var(--sea); color: #fff; border-radius: 16px; padding: 2rem 1rem; }
.cta h2 { font-size: 1.5rem; margin-bottom: 1rem; }
.cta .button { background: #ffc247; border-color: #ffc247; color: #2a2006; }
.cta a:not(.button) { color: #e6eef5; }
.cta p { margin: 1rem 0 0; }

.signup { display: grid; gap: 1rem 2rem; grid-template-columns: 1fr; align-items: start; }
.signup .form-card { margin-top: 0; }
.tick-list { list-style: none; padding: 0; margin: 0 0 1rem; }
.tick-list li { padding: .3rem 0 .3rem 1.5rem; position: relative; }
.tick-list li::before { content: ""; position: absolute; left: .15rem; top: .8rem; width: .75rem; height: .4rem; border-left: 2px solid var(--sea); border-bottom: 2px solid var(--sea); transform: rotate(-45deg); }
.narrow { max-width: 32rem; }

@media (min-width: 640px) {
  .wizard-label { display: inline; }
  .grid-unit { grid-template-columns: 2fr 1.2fr .8fr .8fr 1.2fr; }
  .grid-unit .span-2 { grid-column: auto; }
  .plan-picks { grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); }
  .plan-pick { grid-template-columns: auto 1fr; }
  .billing-status { grid-template-columns: 1.3fr 1fr; align-items: start; }
  .site-head { padding: .9rem max(1.5rem, calc((100% - 61rem) / 2)); }
  .site-main { padding: 2rem 1.5rem 3rem; }
  .features { grid-template-columns: 1fr 1fr; }
  .step-list { grid-template-columns: repeat(3, 1fr); }
  .signup { grid-template-columns: .8fr 1.2fr; }
}
@media (min-width: 900px) {
  .hero { grid-template-columns: 1.15fr .85fr; padding: 2rem 0 3rem; }
  .features { grid-template-columns: repeat(3, 1fr); }
  .price-cards { grid-template-columns: repeat(3, 1fr); }
}
.price-list li.no { color: var(--ink-soft); }
.price-list li.no::before { border: 0; border-top: 2px solid #b8b2a5; width: .6rem; height: 0; transform: none; top: .8rem; }
.site-foot { padding-left: max(1rem, calc((100% - 62rem) / 2)); padding-right: max(1rem, calc((100% - 62rem) / 2)); max-width: none; }
.export-buttons { display: flex; flex-wrap: wrap; gap: .5rem; margin: .25rem 0 .75rem; }

/* ===================== Phase 4 ===================== */
.hk-job { font-weight: 700; margin: .1rem 0 .35rem; }
.hk-job-turnover .hk-job, .hk-job-arrival .hk-job { color: var(--coral); }
.hk-facts { list-style: none; margin: 0 0 .6rem; padding: 0; font-size: .92rem; }
.hk-facts li { padding: .1rem 0; }
.hk-note-text { font-style: italic; }
.hk-form .hk-actions { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin: .4rem 0; }
.hk-done { min-height: 48px; font-size: 1.05rem; }
.hk-checklist { margin: .25rem 0 .5rem; background: #f9fbfc; border: 1px solid var(--line); border-radius: 8px; padding: .45rem .7rem; }
.hk-checklist summary { cursor: pointer; font-weight: 650; color: var(--sea); }
.hk-checklist[open] summary { margin-bottom: .5rem; }
.hk-checklist label.check.block { margin-bottom: .45rem; min-height: 32px; }
.cal-bar.cal-block { background: repeating-linear-gradient(135deg, #e3e9ef 0 6px, #eef2f6 6px 12px); color: var(--ink-soft); border: 1px solid #cfd8e0; cursor: default; }
.cal-key.cal-block { background: repeating-linear-gradient(135deg, #e3e9ef 0 4px, #eef2f6 4px 8px); border: 1px solid #cfd8e0; }
.cal-bar.cal-external { background: #fbe4ee; color: #8a2453; border: 1px solid #f2c3d6; }
.cal-key.cal-external { background: #fbe4ee; border: 1px solid #f2c3d6; }
.inline-input { display: inline-block !important; width: auto !important; min-width: 16rem; max-width: 100%; min-height: 32px !important; padding: .2rem .45rem !important; font-size: .85rem !important; margin-top: .2rem !important; }
.wa-type { border-top: 1px solid var(--line); padding-top: .8rem; margin-top: .8rem; } .wa-type h3 { font-size: 1rem; margin-bottom: .4rem; }
details.hk-more > summary { cursor: pointer; color: var(--sea); font-weight: 600; font-size: .9rem; padding: .2rem 0; }
details.hk-more[open] > summary { margin-bottom: .3rem; }

/* ===================== Phase 5 ===================== */
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr)); gap: .6rem; margin: .5rem 0 1rem; }
.photo-tile { position: relative; margin: 0; }
.photo-tile img { display: block; width: 100%; height: 7rem; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); background: #eee; }
.photo-cover { position: absolute; top: .35rem; left: .35rem; }
.photo-actions { display: flex; flex-wrap: wrap; gap: .1rem .6rem; margin-top: .25rem; }
.gallery { display: flex; gap: .5rem; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 0 1rem; padding-bottom: .25rem; -webkit-overflow-scrolling: touch; }
.gallery a { flex: 0 0 auto; scroll-snap-align: start; }
.gallery img { display: block; height: 14rem; width: auto; max-width: 85vw; object-fit: cover; border-radius: 12px; background: #e4eaf0; }
.gallery.small img { height: 9rem; }
.result-photo { display: block; width: 100%; height: 11rem; object-fit: cover; border-radius: 10px; margin-bottom: .2rem; background: #e4eaf0; }
.bill-lines { list-style: none; padding: 0; margin: .4rem 0; font-size: .92rem; }
.bill-lines li { display: flex; justify-content: space-between; gap: 1rem; padding: .15rem 0; }
.bill-lines li.bill-total { border-top: 1px solid var(--line); margin-top: .25rem; padding-top: .4rem; font-weight: 800; font-size: 1.05rem; }
.promo-form { display: flex; gap: .4rem; align-items: flex-end; margin: .5rem 0; }
.promo-form label { flex: 1; margin: 0; }
.promo-form .button { min-height: 44px; }
.stars { color: #e3a008; letter-spacing: .05em; white-space: nowrap; }
.review { border-top: 1px solid var(--line); padding: .7rem 0; }
.review:first-of-type { border-top: 0; }
.review p { margin: .2rem 0; }
.review-reply { margin: .3rem 0 0 .8rem; padding-left: .7rem; border-left: 3px solid var(--sea-tint); color: var(--ink-soft); font-size: .92rem; }
.rating-picks { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: .2rem; margin: .3rem 0 1rem; }
.rating-picks input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rating-picks label { font-size: 2.2rem; line-height: 1; color: #cfd8e0; cursor: pointer; margin: 0; }
.rating-picks input:checked ~ label, .rating-picks label:hover, .rating-picks label:hover ~ label { color: #e3a008; }
.rating-picks input:focus-visible + label { outline: 3px solid #ffc247; border-radius: 4px; }
.card-pay { margin: .5rem 0 1rem; padding: .8rem .9rem; border: 1px solid var(--line); border-radius: 10px; background: #fbfdfe; }

/* Phase 6: colours and logo, closing a business */
.brand-logo { height: 32px; width: auto; max-width: 150px; object-fit: contain; flex: none; }
.public-brand { display: inline-flex; align-items: center; gap: .6rem; }
.public-logo { height: 40px; width: auto; max-width: 170px; object-fit: contain; }
.bare-logo { margin: 0 0 1.25rem; }
.bare-logo img { max-height: 64px; max-width: 220px; width: auto; }
.brand-presets { display: grid; grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr)); gap: .5rem; }
.brand-preset { display: flex; align-items: center; gap: .55rem; padding: .5rem .65rem; border: 1px solid var(--line); border-radius: 8px; font-weight: 500; cursor: pointer; margin: 0; }
.brand-preset:has(input:checked) { border-color: var(--sea); box-shadow: 0 0 0 2px var(--sea-tint); }
.brand-preset input { margin: 0; }
.swatch { width: 28px; height: 28px; border-radius: 50%; flex: none; border: 1px solid rgba(0,0,0,.12); }
.swatch-custom { background: conic-gradient(#e63946, #f4a261, #e9c46a, #2a9d8f, #457b9d, #6b2d5c, #e63946); }
.brand-form fieldset { border: 0; padding: 0; margin: 0 0 1rem; }
.brand-form legend { font-weight: 600; margin-bottom: .5rem; }
.color-field { display: flex; align-items: center; gap: .6rem; margin-top: .3rem; }
.color-field input[type="color"] { width: 56px; height: 40px; padding: 2px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); cursor: pointer; }
.brand-preview { --pv-p: var(--sea); --pv-a: var(--accent, #ffc247); --pv-on: #fff; --pv-s: var(--pv-p); --pv-bg: var(--sand); --pv-t: var(--ink); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; margin: .5rem 0; max-width: 28rem; }
.brand-preview-bar { display: flex; justify-content: space-between; align-items: flex-end; background: var(--pv-p); color: var(--pv-on); padding: .7rem .9rem 0; font-weight: 650; }
.brand-preview-name { padding-bottom: .6rem; }
.brand-preview-tab { font-size: .9rem; padding-bottom: .45rem; border-bottom: 3px solid var(--pv-a); }
.brand-preview-body { padding: .9rem; background: var(--pv-bg); }
.brand-preview-body > * { color: var(--pv-t); }
.brand-preview-heading { font-family: var(--font-brand); font-weight: 700; font-size: 1.05rem; margin: 0 0 .15rem; background: var(--paper); border-radius: 8px 8px 0 0; padding: .7rem .8rem 0; }
.brand-preview-text { margin: 0; font-size: .9rem; background: var(--paper); padding: .1rem .8rem .7rem; border-radius: 0 0 8px 8px; margin-bottom: .75rem; }
.brand-preview-button { display: inline-block; background: var(--pv-p); color: var(--pv-on) !important; border-radius: 8px; padding: .45rem .9rem; font-weight: 600; margin-right: .75rem; }
.brand-preview-link { color: var(--pv-link, var(--pv-p)) !important; text-decoration: underline; }
.brand-preview-outline { display: inline-block; border: 2px solid var(--pv-s); color: var(--pv-t) !important; border-radius: 8px; padding: .35rem .8rem; font-weight: 600; margin-right: .75rem; }
.brand-colours .colour-row { margin-bottom: 1rem; }
.colour-row > label { margin: 0; }
.colour-row input[type="text"] { width: 9.5rem; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; text-transform: uppercase; letter-spacing: .04em; margin: 0; }
.colour-row input[type="text"]:invalid:not(:placeholder-shown) { border-color: var(--coral); }
.brand-logo-current img { max-height: 72px; max-width: 240px; padding: .5rem; border: 1px dashed var(--line); border-radius: 8px; background: repeating-conic-gradient(#f3f3f3 0 25%, #fff 0 50%) 0 0 / 16px 16px; }
.danger-panel { border-color: var(--coral); }
.danger-panel h2 { color: var(--coral); }
.badge.st-closing { background: #fde8e4; color: #8a2b1d; }
.swatch-ocean { background: linear-gradient(135deg, #0b3d62 0 60%, #ffc247 60% 100%); }
.swatch-sea { background: linear-gradient(135deg, #0e5a57 0 60%, #f2b84b 60% 100%); }
.swatch-lagoon { background: linear-gradient(135deg, #0b6e99 0 60%, #7dd3c0 60% 100%); }
.swatch-coral { background: linear-gradient(135deg, #b4462f 0 60%, #f6c177 60% 100%); }
.swatch-sunset { background: linear-gradient(135deg, #c2410c 0 60%, #fcd34d 60% 100%); }
.swatch-rainforest { background: linear-gradient(135deg, #2f6b2f 0 60%, #e9c46a 60% 100%); }
.swatch-navy { background: linear-gradient(135deg, #1e3a5f 0 60%, #f2b84b 60% 100%); }
.swatch-plum { background: linear-gradient(135deg, #6b2d5c 0 60%, #f4a261 60% 100%); }
.swatch-charcoal { background: linear-gradient(135deg, #2b2f33 0 60%, #e0b04b 60% 100%); }

/* IslandKey logo in the site header */
.site-logo { flex: none; }
.site-logo .ik-logo { height: 28px; }
.bare-brand .ik-logo { height: 34px; }
@media (min-width: 40rem) { .site-logo .ik-logo { height: 34px; } }
.site-nav a { white-space: nowrap; }
@media (max-width: 26rem) {
  .site-head { gap: .5rem; padding-left: .75rem; padding-right: .75rem; }
  .site-nav { gap: .7rem; font-size: .95rem; }
  .site-logo .ik-logo { height: 24px; }
}
