/* SimplyVacant — low-fi wireframe kit
   Grayscale on purpose: layout and flow only. Annotations (.note) are the one
   non-gray element so they read as "not part of the design". */

:root {
  --ink: #1f1f1f;
  --ink-2: #555;
  --ink-3: #888;
  --line: #c9c9c9;
  --line-2: #e2e2e2;
  --fill: #ececec;
  --fill-2: #f5f5f5;
  --bg: #ffffff;
  --dark: #2b2b2b;
  --note-bg: #fff7c2;
  --note-line: #d9b600;
  --note-ink: #5a4a00;
  --radius: 8px;
  --gutter: 16px;
  --max: 1200px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); line-height: 1.5; font-size: 15px; counter-reset: note; overflow-x: hidden; }
a { color: inherit; }
img { max-width: 100%; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(28px, 5vw, 44px); }
h2 { font-size: clamp(22px, 3.2vw, 30px); }
h3 { font-size: 18px; }
h4 { font-size: 15px; }
p { margin: 0 0 1em; }
small, .muted { color: var(--ink-2); }
.tiny { font-size: 12px; color: var(--ink-3); }
hr { border: 0; border-top: 1px solid var(--line-2); margin: 24px 0; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 48px 0; }
.section.alt { background: var(--fill-2); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.section-head h2 { margin: 0; }
.center { text-align: center; }
.stack > * + * { margin-top: 12px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.grow { flex: 1; }

/* ---------- grids ---------- */
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.g4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.g6 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; align-items: start; }
.split-l { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 24px; align-items: start; }
/* !important: some splits set their column ratio inline; mobile must still collapse. */
@media (max-width: 900px) { .split, .split-l { grid-template-columns: 1fr !important; } }

/* ---------- wireframe banner ---------- */
.wf-bar { background: var(--dark); color: #fff; font-size: 12px; }
.wf-bar .wrap { display: flex; gap: 12px; align-items: center; min-height: 34px; flex-wrap: wrap; }
.wf-bar a, .wf-bar button { color: #fff; background: none; border: 1px solid #666; border-radius: 4px; padding: 2px 8px; font: inherit; cursor: pointer; text-decoration: none; }
.wf-bar .wf-title { flex: 1; min-width: 0; opacity: .85; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- header / nav ---------- */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 20; }
.site-header .wrap { display: flex; align-items: center; gap: 20px; min-height: 64px; }
.logo { font-weight: 800; letter-spacing: -.02em; font-size: 20px; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.logo::before { content: ""; width: 26px; height: 26px; border: 2px solid var(--ink); border-radius: 6px; background: linear-gradient(135deg, transparent 45%, var(--ink) 45% 55%, transparent 55%); }
.main-nav { display: flex; gap: 16px; flex: 1; }
.main-nav a { text-decoration: none; color: var(--ink-2); font-size: 14px; white-space: nowrap; }
.main-nav a:hover, .main-nav a.on { color: var(--ink); text-decoration: underline; }
.header-actions { display: flex; gap: 8px; align-items: center; }
.site-header .nav-toggle { display: none; margin-left: auto; }
@media (max-width: 1180px) {
  .site-header .nav-toggle { display: inline-flex; }
  .main-nav, .header-actions { display: none; }
  .site-header.open .wrap { flex-wrap: wrap; padding-bottom: 12px; }
  .site-header.open .main-nav, .site-header.open .header-actions { display: flex; flex-direction: column; flex-basis: 100%; align-items: stretch; gap: 10px; }
}

.region-select { border: 1px solid var(--line); border-radius: 6px; padding: 6px 8px; font: inherit; font-size: 13px; background: var(--bg); color: var(--ink); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--ink); background: var(--bg); color: var(--ink); padding: 10px 16px; border-radius: var(--radius); font: inherit; font-weight: 600; font-size: 14px; text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn.primary { background: var(--ink); color: #fff; }
.btn.ghost { border-color: var(--line); }
.btn.sm { padding: 6px 10px; font-size: 13px; }
.btn.lg { padding: 14px 22px; font-size: 16px; }
.btn.block { width: 100%; }
.link { text-decoration: underline; cursor: pointer; }

/* ---------- placeholders ---------- */
.img { position: relative; background: var(--fill); border: 1px solid var(--line); border-radius: var(--radius); aspect-ratio: 4 / 3; overflow: hidden;
  background-image: linear-gradient(to top right, transparent calc(50% - .5px), var(--line) 50%, transparent calc(50% + .5px)),
                    linear-gradient(to bottom right, transparent calc(50% - .5px), var(--line) 50%, transparent calc(50% + .5px)); }
.img.wide { aspect-ratio: 16 / 9; }
.img.sq { aspect-ratio: 1; }
.img.tall { aspect-ratio: 3 / 4; }
.img span { position: absolute; left: 8px; bottom: 8px; font-size: 11px; background: var(--bg); padding: 2px 6px; border-radius: 4px; color: var(--ink-2); }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--fill); border: 1px solid var(--line); flex: none; }
.avatar.lg { width: 72px; height: 72px; }
.icon { width: 36px; height: 36px; border-radius: 8px; background: var(--fill); border: 1px solid var(--line); flex: none; }
.lines { display: grid; gap: 6px; }
.lines i { display: block; height: 8px; background: var(--fill); border-radius: 4px; }
.lines i:nth-child(2) { width: 85%; } .lines i:nth-child(3) { width: 60%; }

.map { position: relative; border: 1px solid var(--line); border-radius: var(--radius); min-height: 320px; overflow: hidden;
  background-color: var(--fill-2);
  background-image: linear-gradient(var(--line-2) 1px, transparent 1px), linear-gradient(90deg, var(--line-2) 1px, transparent 1px);
  background-size: 40px 40px; }
.map::after { content: "MAP"; position: absolute; right: 10px; top: 8px; font-size: 11px; color: var(--ink-3); letter-spacing: .1em; }
.pin { position: absolute; background: var(--bg); border: 1px solid var(--ink); border-radius: 999px; padding: 2px 8px; font-size: 12px; font-weight: 700; }
.pin.on { background: var(--ink); color: #fff; }
.map .radius { position: absolute; border: 2px dashed var(--ink-3); border-radius: 50%; width: 160px; height: 160px; left: calc(50% - 80px); top: calc(50% - 80px); }

.chart { display: flex; align-items: end; gap: 6px; height: 160px; border-bottom: 1px solid var(--line); border-left: 1px solid var(--line); padding: 8px 8px 0; }
.chart i { flex: 1; background: var(--line); border-radius: 3px 3px 0 0; }
.chart-labels { display: flex; gap: 6px; padding-left: 8px; font-size: 10px; color: var(--ink-3); }
.chart-labels span { flex: 1; text-align: center; }

/* ---------- cards / badges ---------- */
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; background: var(--bg); }
.card.flat { background: var(--fill-2); border-color: var(--line-2); }
.card.pad-lg { padding: 24px; }
.card h3 { margin-bottom: 6px; }
.listing-card { text-decoration: none; display: block; }
.listing-card .img { margin-bottom: 8px; }
.listing-card .badges { position: absolute; top: 8px; left: 8px; display: flex; gap: 4px; flex-wrap: wrap; }
.listing-card .save { position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; border-radius: 50%; background: var(--bg); border: 1px solid var(--line); }
.listing-card .meta { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; }
.listing-card .price { font-weight: 700; }
.badge { display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; border: 1px solid var(--ink); border-radius: 4px; padding: 1px 6px; background: var(--bg); }
.badge.fill { background: var(--ink); color: #fff; }
.badge.soft { border-color: var(--line); color: var(--ink-2); }
.pill { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font-size: 13px; background: var(--bg); white-space: nowrap; }
.pill.on { border-color: var(--ink); background: var(--ink); color: #fff; }
.stars { letter-spacing: 1px; }
.kpi { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.kpi b { display: block; font-size: 24px; }
.kpi small { font-size: 12px; }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.checklist li::before { content: "☐ "; color: var(--ink-3); }
.checklist.done li::before { content: "☑ "; color: var(--ink); }
.steps-num { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.steps-num > li { counter-increment: s; padding-left: 44px; position: relative; }
.steps-num > li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border: 2px solid var(--ink); border-radius: 50%; display: grid; place-items: center; font-weight: 700; }

/* ---------- forms ---------- */
.field { display: grid; gap: 4px; min-width: 0; }
.field label, .label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-2); }
.input, select.input, textarea.input { width: 100%; border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; font: inherit; background: var(--bg); color: var(--ink-3); min-height: 42px; }
textarea.input { min-height: 90px; }
.check { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; }
.check::before { content: ""; width: 16px; height: 16px; border: 1px solid var(--ink-2); border-radius: 3px; flex: none; margin-top: 2px; }
.check.on::before { background: var(--ink); }
.radio::before { border-radius: 50%; }
.toggle { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; }
.toggle::before { content: ""; width: 34px; height: 20px; border-radius: 999px; background: var(--line); box-shadow: inset 2px 0 0 0 var(--bg); }
.toggle.on::before { background: var(--ink); }
.form-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); }
.dropzone { border: 2px dashed var(--line); border-radius: var(--radius); padding: 32px; text-align: center; color: var(--ink-2); }
.choice { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; display: grid; gap: 4px; cursor: pointer; }
.choice.on { border: 2px solid var(--ink); }

/* ---------- search box ---------- */
.searchbox { border: 1px solid var(--ink); border-radius: 14px; padding: 12px; background: var(--bg); }
.searchbox .fields { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); align-items: end; }

/* ---------- tabs ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px; overflow-x: auto; }
.tabs [data-tab] { border: 0; background: none; font: inherit; font-size: 14px; font-weight: 600; padding: 10px 14px; color: var(--ink-2); cursor: pointer; border-bottom: 3px solid transparent; white-space: nowrap; }
.tabs [data-tab].on { color: var(--ink); border-bottom-color: var(--ink); }
.seg { display: inline-flex; border: 1px solid var(--ink); border-radius: 999px; padding: 3px; gap: 2px; margin-bottom: 12px; }
.seg [data-tab] { border: 0; background: none; font: inherit; font-size: 13px; font-weight: 600; padding: 6px 14px; border-radius: 999px; cursor: pointer; }
.seg [data-tab].on { background: var(--ink); color: #fff; }
[data-panel][hidden] { display: none; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line-2); white-space: nowrap; }
th { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-2); background: var(--fill-2); }
td.wrap-ok { white-space: normal; min-width: 220px; }
tr:last-child td { border-bottom: 0; }

/* ---------- listing page ---------- */
.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 8px; }
.gallery .img { aspect-ratio: auto; min-height: 140px; }
.gallery .img:first-child { grid-row: span 2; min-height: 300px; }
@media (max-width: 700px) { .gallery { grid-template-columns: 1fr; } .gallery .img:not(:first-child) { display: none; } }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 12px; }
.facts div { border: 1px solid var(--line-2); border-radius: 6px; padding: 10px; }
.facts b { display: block; }
.sticky { position: sticky; top: 84px; }
.fee-row { display: flex; justify-content: space-between; font-size: 14px; padding: 4px 0; }
.fee-row.total { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 10px; font-weight: 700; }

/* ---------- search page ---------- */
.search-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 20px; }
.search-layout .map { position: sticky; top: 140px; height: calc(100vh - 160px); }
.filters { display: flex; gap: 8px; overflow-x: auto; padding: 10px 0; }
@media (max-width: 900px) {
  .search-layout { grid-template-columns: 1fr; }
  .search-layout .map { display: none; position: static; height: 360px; }
  body.show-map .search-layout .map { display: block; }
  body.show-map .search-layout .results { display: none; }
}
.map-toggle { display: none; }
@media (max-width: 900px) { .map-toggle { display: inline-flex; position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 30; } }

/* ---------- stepper ---------- */
.progress { height: 6px; background: var(--fill); border-radius: 999px; overflow: hidden; margin: 8px 0 20px; }
.progress i { display: block; height: 100%; background: var(--ink); width: 12%; transition: width .2s; }
.step-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; font-size: 14px; }
.step-list li { padding: 8px 10px; border-radius: 6px; cursor: pointer; color: var(--ink-2); }
.step-list li.on { background: var(--fill); color: var(--ink); font-weight: 700; }
.step-list li.done { color: var(--ink); }
.step-list li.done::after { content: " ✓"; }
.step[hidden] { display: none; }
.step-actions { display: flex; justify-content: space-between; gap: 8px; margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line-2); }
@media (max-width: 900px) { .step-list { display: flex; overflow-x: auto; } .step-list li { white-space: nowrap; } }

/* ---------- app shell (host / account / admin) ---------- */
.app { display: grid; grid-template-columns: 240px minmax(0, 1fr); min-height: calc(100vh - 98px); }
.sidebar { border-right: 1px solid var(--line); padding: 20px 12px; background: var(--fill-2); }
.sidebar .label { padding: 0 10px; display: block; margin: 16px 0 6px; }
.sidebar a { display: flex; justify-content: space-between; align-items: center; padding: 8px 10px; border-radius: 6px; text-decoration: none; font-size: 14px; color: var(--ink-2); }
.sidebar a.on { background: var(--bg); color: var(--ink); font-weight: 700; border: 1px solid var(--line); }
.sidebar .count { font-size: 11px; background: var(--ink); color: #fff; border-radius: 999px; padding: 0 7px; }
.app-main { padding: 24px; min-width: 0; }
.app-main > .row.between:first-child { margin-bottom: 20px; }
@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { display: flex; overflow-x: auto; padding: 8px; border-right: 0; border-bottom: 1px solid var(--line); }
  .sidebar .label { display: none; }
  .sidebar a { white-space: nowrap; }
  .app-main { padding: 16px; }
}
.alert { border: 1px solid var(--ink); border-left-width: 5px; border-radius: 6px; padding: 12px 14px; display: flex; gap: 12px; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ink-3); }
.status.ok::before { background: var(--ink); }
.status.warn::before { background: transparent; border: 2px solid var(--ink); }
.status.bad::before { background: transparent; border: 2px dashed var(--ink); }

/* messages */
.inbox { display: grid; grid-template-columns: 280px minmax(0, 1fr) 260px; border: 1px solid var(--line); border-radius: var(--radius); min-height: 520px; overflow: hidden; }
.inbox > div { border-right: 1px solid var(--line); min-width: 0; }
.inbox > div:last-child { border-right: 0; }
.thread { display: flex; gap: 10px; padding: 12px; border-bottom: 1px solid var(--line-2); }
.thread.on { background: var(--fill-2); }
.bubble { max-width: 75%; padding: 10px 12px; border-radius: 12px; background: var(--fill); font-size: 14px; margin: 8px 0; }
.bubble.me { margin-left: auto; background: var(--bg); border: 1px solid var(--line); }
@media (max-width: 1000px) { .inbox { grid-template-columns: 1fr; } .inbox > div:first-child, .inbox > div:last-child { display: none; } }

/* calendar */
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.cal div { min-height: 72px; padding: 6px; border-right: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); font-size: 12px; }
.cal .dow { min-height: 0; background: var(--fill-2); font-weight: 700; text-align: center; }
.cal .booked { background: repeating-linear-gradient(45deg, var(--fill), var(--fill) 6px, var(--bg) 6px, var(--bg) 12px); }
.cal .blocked { background: var(--line); }
.cal .sel { outline: 2px solid var(--ink); outline-offset: -2px; }
.cal .muted { color: var(--ink-3); }

/* kanban */
.kanban { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 8px; }
.kanban .col { background: var(--fill-2); border-radius: var(--radius); padding: 10px; display: grid; gap: 8px; align-content: start; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--fill-2); padding: 40px 0 24px; font-size: 14px; margin-top: 40px; }
.site-footer .cols { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.site-footer a { text-decoration: none; color: var(--ink-2); }

/* ---------- annotations ---------- */
.note { counter-increment: note; position: relative; border: 1.5px dashed var(--note-line); background: var(--note-bg); color: var(--note-ink); border-radius: 6px; padding: 8px 10px 8px 38px; font-size: 13px; line-height: 1.4; margin: 10px 0; }
.note::before { content: counter(note); position: absolute; left: 8px; top: 7px; width: 22px; height: 22px; border-radius: 50%; background: var(--note-line); color: #fff; font-weight: 700; font-size: 12px; display: grid; place-items: center; }
.note b { color: var(--note-ink); }
body.hide-notes .note { display: none; }

/* ---------- region switching ---------- */
body[data-region="ca"] .us-only, body[data-region="us"] .ca-only { display: none !important; }

/* ---------- hub + doc ---------- */
.hub-group { margin-bottom: 32px; }
.hub-group ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.hub-group li a { display: block; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; text-decoration: none; }
.hub-group li a:hover { border-color: var(--ink); }
.hub-group li b { display: block; }
.hub-group li small { font-size: 13px; }
.doc { max-width: 860px; }
.doc h2 { margin-top: 40px; padding-top: 16px; border-top: 1px solid var(--line-2); }
.doc h3 { margin-top: 24px; }
.doc li { margin-bottom: 6px; }
.doc table td { white-space: normal; vertical-align: top; }
.toc { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; background: var(--fill-2); }
.toc ol { margin: 0; padding-left: 20px; }
.callout { border-left: 4px solid var(--ink); background: var(--fill-2); padding: 12px 16px; border-radius: 0 6px 6px 0; margin: 16px 0; }
pre.sitemap { background: var(--fill-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; overflow-x: auto; font-size: 13px; line-height: 1.55; }
