/* Map page only (DESIGN.md 4.4, 4.7). Uses site tokens from style.css. */
.rbg-skip { position: absolute; left: -999px; top: 0; background: var(--band-black); color: var(--band-text); padding: 8px 12px; z-index: 3000; }
.rbg-skip:focus { left: 8px; top: 8px; outline: 3px solid var(--band-text); outline-offset: 2px; }
.rbg-mapage { background: var(--field); color: var(--ink); }
.rbg-mapwrap { display: flex; flex-direction: column; height: calc(100vh - 70px); min-height: 520px; }
.rbg-mapcol { position: relative; flex: 1 1 55%; min-height: 280px; }
#rbg-map { position: absolute; inset: 0; background: #e5dfd3; }
.rbg-panel { flex: 0 0 auto; padding: 12px 16px; background: var(--field); border-bottom: 3px solid var(--band-black); order: 2; }
.rbg-mapcol { order: 1; }
.rbg-h1 { font-size: 1.3rem; margin: 0 0 8px; }
.rbg-filters { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; align-items: end; }
.rbg-field { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rbg-field:first-child { grid-column: 1 / -1; }
.rbg-field label { font-weight: 600; font-size: 0.9rem; }
.rbg-field input, .rbg-field select { width: 100%; min-height: 44px; font: inherit; padding: 6px 8px; border: 1px solid var(--ink-soft); border-radius: 6px; background: var(--field); color: #241c14; }
.rbg-msg { grid-column: 1 / -1; margin: 6px 0 0; font-size: 0.95rem; }
.rbg-sheet-toggle { margin-top: 8px; min-height: 44px; width: 100%; font: inherit; font-weight: 600; background: var(--band-black); color: var(--band-text); border: 0; border-radius: 6px; }
.rbg-results { display: none; max-height: 40vh; overflow-y: auto; }
.rbg-panel.is-open .rbg-results { display: block; }
.rbg-count { font-weight: 600; margin: 8px 0 4px; }
.rbg-list { list-style: none; margin: 0; padding: 0; }
.rbg-item { padding: 10px 0; border-top: 1px solid var(--cream-dim); display: flex; flex-direction: column; gap: 2px; }
.rbg-item-name { font-weight: 700; color: var(--ink); }
.rbg-item-sub, .rbg-approx { font-size: 0.9rem; color: var(--ink-soft); }
.rbg-approx { font-style: italic; }
.rbg-show, .rbg-link { align-self: flex-start; min-height: 44px; padding: 6px 12px; font: inherit; font-weight: 600; background: var(--field); color: #241c14; border: 2px solid var(--band-black); border-radius: 6px; cursor: pointer; }
.rbg-link { min-height: 0; padding: 0; border: 0; background: none; color: inherit; text-decoration: underline; }
.rbg-about { margin: 12px 0; font-size: 0.9rem; }
.rbg-area { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); z-index: 1000; }
.rbg-loading, .rbg-tile-note { position: absolute; left: 12px; right: 12px; bottom: 28px; z-index: 1000; margin: 0; padding: 8px 12px; background: var(--field); color: var(--ink); border: 2px solid var(--band-black); border-radius: 6px; }
.rbg-tile-note { bottom: 72px; }
.rbg-mapage :focus-visible { outline: 3px solid var(--band-black); outline-offset: 2px; }
#rbg-map :focus-visible, .rbg-sheet-toggle:focus-visible { outline: 3px solid var(--band-text); outline-offset: 2px; box-shadow: 0 0 0 5px var(--band-black); }
.rbg-pin { background: none; border: 0; }
.rbg-pin-dot { position: relative; display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--marker-ring, #fff); box-shadow: 0 1px 4px rgba(0,0,0,.5); color: #fff; font: 700 13px/1 system-ui, sans-serif; box-sizing: border-box; }
.rbg-pin-approx .rbg-pin-dot { border-style: dashed; }
.rbg-pin-svg { position: absolute; fill: currentColor; stroke: currentColor; }
.rbg-cluster-wrap { background: none; }
.rbg-cluster { width: 38px; height: 38px; border-radius: 50%; background: var(--band-black); color: var(--band-text); border: 3px solid #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; box-sizing: border-box; box-shadow: 0 1px 4px rgba(0,0,0,.5); }
.rbg-badge { display: inline-block; padding: 1px 8px; border-radius: 10px; font-size: 0.8rem; font-weight: 600; }
.rbg-badge-unverified { background: var(--badge-unverified-bg, #fbeccb); color: var(--badge-unverified-ink, #7a5a12); }
.rbg-badge-active { background: var(--badge-active-bg, #e3efe5); color: var(--badge-active-ink, #1f4a2c); }
.rbg-popup { outline: none; color: #241c14; min-width: 210px; }
.rbg-popup-pic { width: 72px; height: 72px; float: right; margin: 0 0 6px 10px; border-radius: 8px; }
.rbg-popup-pic.rbg-pic-contain { padding: 6px; }
.rbg-popup-pic .rbg-pic-initials { font-size: 1.4rem; }
.rbg-popup::after { content: ""; display: block; clear: both; }
@media (min-width: 900px) {
  .rbg-mapwrap { flex-direction: row; }
  .rbg-panel { order: 1; flex: 0 0 360px; border-bottom: 0; border-right: 3px solid var(--band-black); overflow-y: auto; }
  .rbg-mapcol { order: 2; flex: 1 1 auto; }
  .rbg-filters { grid-template-columns: 1fr; }
  .rbg-sheet-toggle { display: none; }
  .rbg-results { display: block; max-height: none; overflow: visible; }
}
@media (prefers-reduced-motion: reduce) { .rbg-mapage * { transition: none !important; animation: none !important; } }

/* Amenities filter in the map panel: full width, chips wrap */
.rbg-field.rbg-amen-host { grid-column: 1 / -1; }
.rbg-panel .rbg-amen-body { max-height: 45vh; overflow-y: auto; }
/* Opening hours on a list item and in a popup (rbg-hours.js) */
.rbg-item-hours { display: block; font-size: 0.9rem; font-weight: 600; color: #1f4a2c; }
.rbg-popup-hours { font-weight: 600; margin: 2px 0; }
/* The opening hours panel inside a filter field: its own radio and checkbox look, not the full-width inputs */
.rbg-field .rbg-open-choice { font-size: 1rem; text-align: left; }
.rbg-field .rbg-open-choice input { width: 22px; min-height: 0; height: 22px; padding: 0; border: 2px solid #161210; border-radius: 50%; }
.rbg-field .rbg-open-choice input[type="checkbox"] { border-radius: 5px; }
.rbg-field .rbg-open-at input { width: auto; flex: 1 1 8em; border: 2px solid #161210; }

/* Upcoming events (evpts.json): gold calendar pins above the listings */
.rbg-ev-pin { background: none; border: 0; }
.rbg-ev-dot { display: flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 6px; background: #f5c451; color: #161210; border: 2px solid #161210; box-shadow: 0 1px 4px rgba(0,0,0,.5); box-sizing: border-box; }
.rbg-ev-dot svg { fill: currentColor; }
.rbg-ev-cluster { width: 34px; height: 34px; border-radius: 8px; background: #f5c451; color: #161210; border: 3px solid #161210; display: flex; align-items: center; justify-content: center; font-weight: 700; box-sizing: border-box; box-shadow: 0 1px 4px rgba(0,0,0,.5); }
.rbg-ev-kicker { margin: 0 0 .2rem; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #8f2a23; }
.rbg-check { display: flex; align-items: center; gap: .4rem; font-weight: 600; cursor: pointer; }
.rbg-check[hidden] { display: none; }
