
/* Vivid KOLIG Explore tiles. SVG icons drawn with CSS mask; existing click handlers untouched. */
#explore #klg-categories button.klg-vivid-explore-tile{position:relative!important;background:transparent!important;min-height:83px!important;padding:4px 1px!important;gap:7px!important;color:#25333b!important}
#explore #klg-categories button.klg-vivid-explore-tile.klg-map-selected{background:#e8f7f3!important}
#explore #klg-categories button.klg-vivid-explore-tile .klg-soft-icon,#explore #klg-categories button.klg-vivid-explore-tile img,#explore #klg-categories button.klg-vivid-explore-tile svg{display:none!important}
#explore #klg-categories button.klg-vivid-explore-tile::before{content:''!important;display:block!important;width:49px!important;height:49px!important;border-radius:12px!important;background-color:var(--tile-color)!important;background-image:var(--tile-icon)!important;background-repeat:no-repeat!important;background-position:center!important;background-size:26px 26px!important;flex:none!important}
#explore #klg-categories button:nth-child(1){--tile-color:#F25578;--tile-icon:url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"%3E%3Cpath d="M20.8 4.6a5.5 5.5 0 0 0-7.8 0L12 5.7l-1.1-1.1a5.5 5.5 0 0 0-7.8 7.8L12 21l8.8-8.6a5.5 5.5 0 0 0 0-7.8Z"/%3E%3Cpath d="M5 12h4l2-3 2 6 2-3h4"/%3E%3C/svg%3E')}
#explore #klg-categories button:nth-child(2){--tile-color:#009DD9;--tile-icon:url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"%3E%3Crect x="5" y="2" width="14" height="16" rx="4"/%3E%3Cpath d="M5 9h14M8 22l3-4m5 4-3-4M8 13h.01M16 13h.01"/%3E%3C/svg%3E')}
#explore #klg-categories button:nth-child(3){--tile-color:#6570ED;--tile-icon:url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"%3E%3Cpath d="m3 10 9-6 9 6M4 10h16M6 10v9m4-9v9m4-9v9m4-9v9M3 21h18"/%3E%3C/svg%3E')}
#explore #klg-categories button:nth-child(4){--tile-color:#F4A126;--tile-icon:url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"%3E%3Cpath d="m3 11 9-8 9 8M5 10v11h14V10M9 21v-7h6v7"/%3E%3C/svg%3E')}
#explore #klg-categories button:nth-child(5){--tile-color:#F27A42;--tile-icon:url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"%3E%3Cpath d="m3 10 3 10h12l3-10H3ZM8 10l4-7 4 7M8 14v3m4-3v3m4-3v3"/%3E%3C/svg%3E')}
#explore #klg-categories button:nth-child(6){--tile-color:#00A987;--tile-icon:url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"%3E%3Crect x="3" y="5" width="18" height="14" rx="3"/%3E%3Cpath d="M3 10h18M16 15h2"/%3E%3C/svg%3E')}
#explore #klg-categories button:nth-child(7){--tile-color:#4E82EB;--tile-icon:url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"%3E%3Crect x="6" y="2" width="12" height="20" rx="2"/%3E%3Cpath d="M11 18h2"/%3E%3C/svg%3E')}
#explore #klg-categories button:nth-child(8){--tile-color:#00A987;--tile-icon:url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"%3E%3Crect x="4" y="4" width="7" height="7" rx="1"/%3E%3Crect x="13" y="4" width="7" height="7" rx="1"/%3E%3Crect x="4" y="13" width="7" height="7" rx="1"/%3E%3Crect x="13" y="13" width="7" height="7" rx="1"/%3E%3C/svg%3E')}
#explore .klg-map-toolbar .klg-explore-search-submit{border:0!important;background:#00A987!important;color:#fff!important;border-radius:10px!important;min-height:42px!important;min-width:42px!important;font-size:26px!important;cursor:pointer!important}
#explore .klg-map-toolbar{gap:6px!important}
#explore .klg-map-toolbar input{min-width:0!important;flex:1!important}

/* 2026-10-15: icon grid spacing polish only; no JS, map or startup changes. */
#explore #klg-categories{column-gap:8px!important;row-gap:12px!important;align-items:start!important}
#explore #klg-categories button.klg-vivid-explore-tile{
  display:flex!important;flex-direction:column!important;align-items:center!important;
  justify-content:flex-start!important;gap:4px!important;min-height:76px!important;
  padding:2px 1px 4px!important;line-height:1.25!important;text-align:center!important;
}
#explore #klg-categories button.klg-vivid-explore-tile::before{margin:0!important}

/* Actual gap fix: the old icon wrapper <span> was hidden internally but still reserved 36–54px.
   The vivid square is rendered by button::before, so remove only its obsolete icon wrapper. */
#explore #klg-categories button.klg-vivid-explore-tile > span:first-child {display:none!important;height:0!important;min-height:0!important;margin:0!important;padding:0!important;}
#explore #klg-categories button.klg-vivid-explore-tile {gap:5px!important;min-height:75px!important;justify-content:flex-start!important;}
#explore #klg-categories button.klg-vivid-explore-tile::before {margin:0!important;}
