/* LookyBox Rooms (2026-10-05) — Willis's "Roomboard" design, scoped to #rooms with rb- names so it never touches the store's
   .btn/.card/.grid. Teal accent, warm amber key colour, light surfaces; Bricolage/Public Sans swapped for system faces (no outside fonts). */
#rooms{--rb-bg:#f3f5f6;--rb-surface:#fff;--rb-sunk:#e8ecee;--rb-ink:#18242c;--rb-muted:#5b6a73;--rb-line:#d5dde1;--rb-accent:#1f6f6a;--rb-key:#c88a12;--rb-key-soft:#fbefd4;--rb-good:#2f7a3c;--rb-bad:#b23a2e;
  --rb-shadow:0 1px 2px rgba(24,36,44,.06),0 6px 20px rgba(24,36,44,.07);--rb-display:ui-rounded,"SF Pro Rounded","Segoe UI",system-ui,-apple-system,sans-serif;--rb-body:system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;--rb-r:10px;
  background:var(--rb-bg);color:var(--rb-ink);font-family:var(--rb-body);font-size:15px;line-height:1.5;letter-spacing:normal;min-height:70vh}
#rooms *{letter-spacing:inherit}
body:has(#rooms){background:#f3f5f6}
#rooms *{box-sizing:border-box}
#rooms h1,#rooms h2,#rooms h3{font-family:var(--rb-display);text-wrap:balance;margin:0;letter-spacing:-.01em;color:var(--rb-ink)}
#rooms button,#rooms input,#rooms select,#rooms textarea{font:inherit;color:inherit}
#rooms :focus-visible{outline:2px solid var(--rb-key);outline-offset:2px}
.rb-wrap{max-width:1180px;margin:0 auto;padding-inline:16px}
.rb-btn{border:1px solid var(--rb-line);background:var(--rb-surface);padding:.55rem .95rem;border-radius:8px;cursor:pointer;font-weight:600;display:inline-flex;align-items:center;gap:.45rem;white-space:nowrap;color:var(--rb-ink)}
.rb-btn:hover{border-color:var(--rb-muted)}
.rb-btn.rb-primary{background:var(--rb-accent);color:#fff;border-color:var(--rb-accent)}
.rb-btn.rb-primary:hover{filter:brightness(1.08)}
.rb-btn.rb-danger{color:var(--rb-bad);border-color:var(--rb-bad);background:transparent}
.rb-btn.rb-ghost{background:transparent;border-color:transparent}
.rb-btn:disabled{opacity:.5;cursor:not-allowed}
.rb-top{background:var(--rb-surface);border-bottom:1px solid var(--rb-line)}
.rb-topbar{display:flex;align-items:center;gap:16px;padding-block:16px 12px;flex-wrap:wrap}
.rb-brand{display:flex;align-items:center;gap:10px;margin-right:auto}
.rb-brand svg{flex:none}
.rb-brand h1{font-weight:800;font-size:1.45rem;letter-spacing:-.02em}
.rb-brand small{display:block;color:var(--rb-muted);font-size:.8rem;line-height:1.2}
.rb-post-wrap{display:flex;flex-direction:column;align-items:flex-end;gap:3px}
.rb-fee{font-size:.78rem;color:var(--rb-muted)}
.rb-fee b,.rb-howfee b{color:var(--rb-ink)}
.rb-search{display:grid;grid-template-columns:minmax(0,2.2fr) repeat(3,minmax(0,1fr));gap:8px;padding-block:0 12px}
.rb-field{display:flex;flex-direction:column;gap:3px;min-width:0}
.rb-field label,.rb-lbl{font-size:.7rem;text-transform:uppercase;letter-spacing:.07em;color:var(--rb-muted);font-weight:700}
.rb-field input,.rb-field select,.rb-field textarea{width:100%;background:var(--rb-bg);border:1px solid var(--rb-line);border-radius:8px;padding:.55rem .7rem;min-width:0}
.rb-field textarea{min-height:110px;resize:vertical}
.rb-chips{display:flex;gap:8px;flex-wrap:wrap;padding-block:0 14px}
.rb-chip{border:1px solid var(--rb-line);background:transparent;border-radius:999px;padding:.3rem .8rem;font-size:.85rem;cursor:pointer;font-weight:500}
.rb-chip:hover{border-color:var(--rb-muted)}
.rb-chip[aria-pressed="true"]{background:var(--rb-ink);color:var(--rb-bg);border-color:var(--rb-ink)}
@media (max-width:720px){.rb-search{grid-template-columns:1fr 1fr}.rb-search .rb-field:first-child{grid-column:1/-1}.rb-post-wrap{align-items:flex-start}}
.rb-main{padding-block:20px 48px}
.rb-resultbar{display:flex;align-items:baseline;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:14px}
.rb-resultbar h2{font-size:1.25rem}
.rb-resultbar span{color:var(--rb-muted);font-size:.9rem}
.rb-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:18px}
.rb-card{background:var(--rb-surface);border-radius:var(--rb-r);overflow:hidden;box-shadow:var(--rb-shadow);cursor:pointer;display:flex;flex-direction:column;border:1px solid transparent;text-align:left;padding:0;min-width:0}
.rb-card:hover{border-color:var(--rb-line)}
.rb-ph{position:relative;aspect-ratio:4/3;background:var(--rb-sunk);max-width:100%;overflow:hidden}
.rb-ph img{width:100%;height:100%;object-fit:cover;display:block}
.rb-noimg{position:absolute;inset:0;display:grid;place-items:center;color:var(--rb-muted);font-size:.85rem}
.rb-tag{position:absolute;left:10px;top:10px;background:var(--rb-surface);color:var(--rb-ink);font-size:.72rem;font-weight:700;padding:.2rem .55rem;border-radius:6px;letter-spacing:.03em}
.rb-fav{position:absolute;right:8px;top:8px;width:36px;height:36px;border-radius:50%;border:0;background:var(--rb-surface);display:grid;place-items:center;cursor:pointer;color:var(--rb-muted)}
.rb-fav[aria-pressed="true"]{color:var(--rb-bad)}
.rb-body{padding:12px 14px 14px;display:flex;flex-direction:column;gap:4px;min-width:0}
.rb-rent{font-family:var(--rb-display);font-weight:800;font-size:1.45rem;font-variant-numeric:tabular-nums;letter-spacing:-.02em}
.rb-rent small{font-family:var(--rb-body);font-weight:500;font-size:.85rem;color:var(--rb-muted)}
.rb-t{font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.rb-loc{color:var(--rb-muted);font-size:.88rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.rb-facts{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px}
.rb-facts span{font-size:.75rem;background:var(--rb-sunk);padding:.15rem .5rem;border-radius:5px}
.rb-avail{font-size:.8rem;font-weight:600;color:var(--rb-good)}
.rb-empty{background:var(--rb-surface);border:1px dashed var(--rb-line);border-radius:var(--rb-r);padding:40px 20px;text-align:center;display:flex;flex-direction:column;align-items:center;gap:10px}
.rb-empty h3{font-size:1.3rem}
.rb-empty p{color:var(--rb-muted);max-width:46ch;margin:0}
.rb-notice{background:var(--rb-key-soft);border-radius:8px;padding:.75rem 1rem;font-size:.92rem;margin-bottom:14px;display:flex;flex-wrap:wrap;gap:8px 14px;align-items:center}
.rb-notice.rb-ok{background:#dff2e3}
.rb-notice .rb-btn{padding:.35rem .75rem;font-size:.85rem}
.rb-how{margin-top:34px;background:var(--rb-surface);border-radius:var(--rb-r);padding:20px 22px;box-shadow:var(--rb-shadow)}
.rb-how h2{font-size:1.15rem;margin-bottom:8px}
.rb-how ol{margin:0;padding-left:1.2rem;display:grid;gap:6px;color:var(--rb-muted)}
.rb-how ol b{color:var(--rb-ink)}
.rb-foot{border-top:1px solid var(--rb-line);color:var(--rb-muted);font-size:.82rem;padding-block:20px 8px;margin-top:28px}
.rb-foot p{max-width:80ch;margin:.3rem 0}
.rb-overlay{position:fixed;inset:0;background:rgba(10,16,20,.55);z-index:900;display:flex;justify-content:center;align-items:flex-start;overflow-y:auto;padding:max(24px,env(safe-area-inset-top,0px)) 12px 24px}
.rb-overlay[hidden],#rooms [hidden]{display:none!important}
.rb-sheet{background:var(--rb-surface);border-radius:14px;width:min(860px,100%);box-shadow:var(--rb-shadow);overflow:hidden;color:var(--rb-ink)}
.rb-sheet-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 18px;border-bottom:1px solid var(--rb-line)}
.rb-sheet-head h2{font-size:1.2rem}
.rb-sheet-body{padding:18px;display:flex;flex-direction:column;gap:18px}
.rb-gallery{display:grid;grid-template-columns:2fr 1fr;gap:6px;border-radius:10px;overflow:hidden}
.rb-gallery .rb-ph{aspect-ratio:auto;min-height:120px}
.rb-gallery .rb-ph:first-child{grid-row:span 2;aspect-ratio:4/3}
.rb-gallery.rb-one{grid-template-columns:1fr}
.rb-gallery.rb-one .rb-ph{aspect-ratio:16/9}
.rb-dgrid{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(0,1fr);gap:22px}
@media (max-width:720px){.rb-dgrid{grid-template-columns:1fr}.rb-gallery{grid-template-columns:1fr}.rb-gallery .rb-ph:not(:first-child){display:none}}
.rb-desc{white-space:pre-wrap;margin:0}
.rb-spec{display:grid;grid-template-columns:auto 1fr;gap:6px 14px;font-size:.92rem;margin:0}
.rb-spec dt{color:var(--rb-muted)}
.rb-spec dd{margin:0;font-weight:600;font-variant-numeric:tabular-nums}
.rb-contact{background:var(--rb-bg);border-radius:10px;padding:14px;display:flex;flex-direction:column;gap:10px}
.rb-crow{display:flex;align-items:center;gap:8px;justify-content:space-between;flex-wrap:wrap}
.rb-crow code{font-family:var(--rb-body);font-weight:600;user-select:all;word-break:break-all;background:none;padding:0;color:var(--rb-ink)}
.rb-tip{font-size:.8rem;color:var(--rb-muted);border-left:3px solid var(--rb-key);padding-left:10px;margin:0}
.rb-row2{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.rb-row3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
@media (max-width:560px){.rb-row2,.rb-row3{grid-template-columns:1fr}}
.rb-checks{display:flex;flex-wrap:wrap;gap:8px 16px}
.rb-checks label,.rb-agree{display:flex;align-items:center;gap:6px;font-size:.92rem}
.rb-agree{align-items:flex-start;font-weight:600}
.rb-agree input{margin-top:4px}
#rooms fieldset{border:0;padding:0;margin:0;display:flex;flex-direction:column;gap:12px;min-width:0}
#rooms legend{font-family:var(--rb-display);font-weight:700;font-size:1rem;margin-bottom:10px;padding:0}
.rb-thumbs{display:flex;gap:8px;flex-wrap:wrap}
.rb-thumb{position:relative;width:92px;height:70px;border-radius:6px;overflow:hidden;background:var(--rb-sunk)}
.rb-thumb img{width:100%;height:100%;object-fit:cover}
.rb-thumb button{position:absolute;top:3px;right:3px;width:22px;height:22px;border-radius:50%;border:0;background:var(--rb-surface);cursor:pointer;font-size:.8rem;line-height:1}
.rb-addph{width:92px;height:70px;border:1px dashed var(--rb-line);border-radius:6px;display:grid;place-items:center;cursor:pointer;color:var(--rb-muted);font-size:.8rem;text-align:center}
.rb-formfoot{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;padding:14px 18px;border-top:1px solid var(--rb-line);background:var(--rb-bg)}
.rb-formbtns{display:flex;gap:8px}
.rb-err{color:var(--rb-bad);font-size:.88rem;font-weight:600}
.rb-manage{background:var(--rb-bg);border-radius:10px;padding:12px 14px;display:flex;flex-direction:column;gap:8px}
.rb-toast{position:fixed;left:50%;bottom:calc(20px + env(safe-area-inset-bottom,0px));transform:translateX(-50%);background:var(--rb-ink);color:var(--rb-bg);padding:.6rem 1rem;border-radius:8px;z-index:950;font-weight:600;font-size:.9rem}
@media (prefers-reduced-motion:no-preference){.rb-card{transition:transform .15s,border-color .15s}.rb-card:hover{transform:translateY(-2px)}}
/* Example listings (2026-10-08) */
.rb-examples{margin-top:32px}
.rb-exbadge{background:#5B3E96;color:#fff}
.rb-excard .rb-ph img{filter:saturate(.92)}
.rb-avail.rb-exnote{color:#fff;background:#8a959c;font-weight:600;align-self:flex-start;padding:.1rem .5rem;border-radius:5px}
.rb-exbox{background:var(--rb-key-soft);border-radius:var(--rb-r);padding:14px;display:flex;flex-direction:column;gap:8px;align-items:flex-start}
.rb-exbox p{margin:0;font-size:.9rem}
/* Crime map links (2026-10-08) */
.rb-crime{background:var(--rb-surface);border:1px solid var(--rb-line);border-radius:var(--rb-r);padding:12px 14px;margin-bottom:18px;display:flex;align-items:center;gap:14px;flex-wrap:wrap;justify-content:space-between}
.rb-crime-t{display:flex;align-items:center;gap:10px;color:var(--rb-accent)}
.rb-crime h2{font-size:1rem}
.rb-crime p{margin:0;font-size:.8rem;color:var(--rb-muted)}
.rb-cmaps{display:flex;flex-wrap:wrap;gap:6px}
.rb-cmap{border:1px solid var(--rb-line);border-radius:999px;padding:.3rem .8rem;font-size:.85rem;font-weight:600;color:var(--rb-ink);text-decoration:none;background:var(--rb-bg)}
.rb-cmap:hover{border-color:var(--rb-accent);color:var(--rb-accent)}
.rb-cmap::after{content:" ↗";font-weight:400;color:var(--rb-muted)}
.rb-cmapshot{flex-basis:100%;margin:0;display:flex;flex-direction:column;gap:6px}
.rb-cmapshot a{position:relative;display:block;border:1px solid var(--rb-line);border-radius:8px;overflow:hidden}
.rb-cmapshot img{display:block;width:100%;height:auto}
.rb-cmaplive{position:absolute;right:10px;bottom:10px;background:var(--rb-accent);color:#fff;font-weight:700;font-size:.85rem;padding:.4rem .8rem;border-radius:8px;box-shadow:var(--rb-shadow)}
.rb-cmapshot a:hover .rb-cmaplive{filter:brightness(1.1)}
.rb-cmapshot figcaption{font-size:.78rem;color:var(--rb-muted)}
