/* Camplix · /spots/-Filter (aus main.css ausgegliedert, 800-Zeilen-Budget).
   Lädt NUR auf /spots/ — spots-index.js hängt den Link per extraHead an,
   build.mjs versioniert die Datei wie die anderen Stylesheets. */

/* ── Filter auf /spots/: Pills, Checkboxen, aktive Chips, Bottom-Sheet ──
   Ein DOM-Baum (#dir-filter): ab lg offene Sidebar, darunter Bottom-Sheet
   über body.cx-filter-offen. KEIN position auf #dir-filter außerhalb des
   Sheet-Zustands — Grid/self-start kommen aus dem Markup. */
.cx-fpill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1.5px solid #E5E7EB;
  border-radius: 12px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 600;
  color: #2C2C2C;
  background: #fff;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 150ms, background 150ms, color 150ms;
}
.cx-fpill[data-an] { border-color: #2BA8A8; background: rgba(43, 168, 168, 0.08); color: #1F8080; }
.cx-fpill-n { font-size: 11px; font-weight: 400; color: #7A6C60; }
.cx-fpill[data-an] .cx-fpill-n { color: #1F8080; }
.cx-fcheck {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 0;
  font-size: 14px;
  color: #2C2C2C;
  cursor: pointer;
}
.cx-fcheck input { width: 16px; height: 16px; border-radius: 4px; accent-color: #2BA8A8; flex: none; }
.cx-fcheck-n { margin-left: auto; font-size: 12px; color: #7A6C60; }
.cx-fsub {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #7A6C60;
  margin: 14px 0 4px;
}
.cx-fgruppe { padding: 16px 0; border-bottom: 1px solid #F3F4F6; }
.cx-fgruppe:first-child { padding-top: 0; }
.cx-fkopf {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Outfit', system-ui, sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: #2C2C2C;
  margin-bottom: 12px;
}
.cx-fchip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #2C2C2C;
  color: #fff;
  border: 0;
  border-radius: 9999px;
  padding: 5px 12px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}
#dir-chips { scrollbar-width: none; }
#dir-chips::-webkit-scrollbar { display: none; }
/* Desktop: die Sidebar klebt unterm Header und scrollt IN SICH — die Liste
   rechts scrollt unabhängig, kein Filter-Verlust beim Runterscrollen. */
@media (min-width: 1024px) {
  #dir-filter {
    position: sticky;
    top: 92px;
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 116px);
  }
  #dir-filter > .overflow-y-auto { scrollbar-width: thin; scrollbar-color: #D9D2C7 transparent; }
}
/* Chips auf den Karten: fest gedeckelt auf zwei Zeilen, Rest zeigt erst die
   Spot-Seite — sonst wachsen einzelne Karten und der Rest wirkt leer. */
.cx-chipdeckel { max-height: 50px; overflow: hidden; }
@media (max-width: 1023.98px) {
  body.cx-filter-offen { overflow: hidden; }
  body.cx-filter-offen #dir-filter-vorhang {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 55;
  }
  body.cx-filter-offen #dir-filter {
    display: flex;
    flex-direction: column;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    border-radius: 24px 24px 0 0;
    max-height: 86vh;
    box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.25);
  }
}
