/* OUTRIDER BOXED TILES (owner, 4 Nov round 2). ONE look for every chip, filter and choice.
   No black ovals. A light rounded square, an optional category dot, and a check mark when chosen.
   Colours: ink #1C1A17, gold #C9921C / #F2C46B, sand #F3EFE7, white, plus the map-category dots.

   USE
     <div class="otiles">                          a wrapping row of tiles (add .grid for 2 columns, .scroll for one scrolling row)
       <button class="otile" role="checkbox" aria-checked="false" data-x="a">
         <i class="od" style="background:#E0218A"></i>   optional dot
         <span class="ot">Campgrounds</span>
         <b class="ock" aria-hidden="true"></b>          the check, drawn by CSS
       </button>
     </div>
   Selected = aria-checked="true" (or class "on"). Single choice: role="radio". Smaller: add .sm.
   JS: import { otile, otiles } from '/assets/tiles.js' builds the markup. */
.otiles { display:flex; flex-wrap:wrap; gap:8px; }
.otiles.grid { display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); }
.otiles.scroll { flex-wrap:nowrap; overflow-x:auto; scrollbar-width:none; padding:2px 12px 6px; }
.otiles.scroll::-webkit-scrollbar { display:none; }
.otile { position:relative; flex:none; display:inline-flex; align-items:center; gap:8px; min-height:44px; padding:0 34px 0 12px;
  border-radius:12px; border:1px solid #DDD6C8; background:#fff; color:#1C1A17; font:inherit; font-size:14px; font-weight:600;
  cursor:pointer; text-align:left; box-shadow:0 1px 3px rgba(28,26,23,.08); }
.otiles.grid .otile { flex:1; min-width:0; }
.otile .ot { min-width:0; line-height:1.15; }
.otile .od { width:11px; height:11px; border-radius:99px; flex:none; box-shadow:0 0 0 1.5px #fff, 0 0 0 2.5px rgba(28,26,23,.22); }
.otile .ock { position:absolute; right:8px; top:50%; width:18px; height:18px; margin-top:-9px; border-radius:99px; background:transparent; display:none; }
.otile[aria-checked="true"], .otile.on { background:#F3EFE7; border-color:#C9921C; box-shadow:inset 0 0 0 1px #C9921C; }
.otile[aria-checked="true"] .ock, .otile.on .ock { display:block; background:#C9921C; }
.otile[aria-checked="true"] .ock::after, .otile.on .ock::after { content:""; position:absolute; left:6px; top:3px; width:4px; height:8px;
  border:solid #fff; border-width:0 2px 2px 0; transform:rotate(45deg); }
.otile.sm { min-height:36px; font-size:13px; padding:0 30px 0 10px; }
.otile.sm .ock { width:16px; height:16px; margin-top:-8px; right:7px; }
.otile.sm[aria-checked="true"] .ock::after, .otile.sm.on .ock::after { left:5px; top:2px; }
:root[data-theme="dark"] .otile { background:#2A2823; color:#F5F1EA; border-color:#3A372F; }
:root[data-theme="dark"] .otile[aria-checked="true"], :root[data-theme="dark"] .otile.on { background:#3A3326; }

.otiles.cols2 { display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); }
.otiles.cols3 { display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); }
.otiles.cols2 .otile, .otiles.cols3 .otile { min-width:0; }
/* NOTHING IN VIEW: the tile goes grey but still works */
.otile.nodata { opacity:.45; filter:grayscale(1); }
