/* Lifed /programs filter sidebar (2 Nov 2026). Replaces the inside of the left filter column and of the phone
   offcanvas; the page layout stays as it is. Every class starts with lfd-pls. Load after Bootstrap 5.3. */
.lfd-pls{
  --pls-teal:#00ae9d; --pls-teal-hover:#008f82; --pls-teal-deep:#00796d;
  --pls-ink:#263535; --pls-body:#536363; --pls-muted:#687777; --pls-line:#e3e8e8; --pls-ash:#f4f4f4;
  display:flex;flex-direction:column;height:100%;max-height:100%;min-height:0;
  background:#fff;border:1px solid rgba(20,74,67,.1);border-radius:24px;
  box-shadow:0 14px 36px rgba(19,65,59,.06),0 2px 8px rgba(19,65,59,.03);
  font-family:"Nunito",system-ui,sans-serif;color:var(--pls-body);overflow:hidden
}
.lfd-pls *,.lfd-pls *::before,.lfd-pls *::after{box-sizing:border-box}
.lfd-pls svg{width:16px;height:16px;flex:none}
.lfd-pls [hidden]{display:none!important}

/* head */
.lfd-pls-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:18px 20px 14px;border-bottom:1px solid var(--pls-line)}
.lfd-pls-head h2{margin:0;font-size:18px;font-weight:800;line-height:1.2;color:var(--pls-ink)}
.lfd-pls-head p{margin:2px 0 0;font-size:13px;font-weight:600;color:var(--pls-muted)}
.lfd-pls-clear{flex:none;border:0;background:none;padding:4px 0;font:inherit;font-size:14px;font-weight:800;color:var(--pls-teal-deep);
  text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.lfd-pls-clear:hover{color:var(--pls-ink)}
.lfd-pls-clear:focus-visible{outline:3px solid var(--pls-ink);outline-offset:2px;border-radius:6px}

/* scrolling body */
.lfd-pls-body{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:0 20px;-webkit-overflow-scrolling:touch;
  scrollbar-width:thin;scrollbar-color:#cfd8d6 transparent}

/* chosen filters */
.lfd-pls-tags{display:flex;flex-wrap:wrap;gap:6px;padding:14px 0 2px}
.lfd-pls-tag{display:inline-flex;align-items:center;gap:6px;height:32px;padding:0 10px 0 12px;border:1.5px solid var(--pls-teal-deep);border-radius:999px;
  background:#fff;font:inherit;font-size:13px;font-weight:800;color:var(--pls-teal-deep);cursor:pointer}
.lfd-pls-tag svg{width:13px;height:13px}
.lfd-pls-tag:hover{background:var(--pls-teal-deep);color:#fff}
.lfd-pls-tag:focus-visible{outline:3px solid var(--pls-ink);outline-offset:2px}

/* type of program: one choice */
.lfd-pls-type{display:grid;grid-template-columns:repeat(3,1fr);gap:4px;margin:16px 0 4px;padding:4px;border-radius:16px;background:var(--pls-ash)}
.lfd-pls-type input{position:absolute;opacity:0;pointer-events:none}
.lfd-pls-type label{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:52px;padding:6px 4px;border-radius:12px;
  text-align:center;cursor:pointer;font-size:14px;font-weight:800;line-height:1.2;color:var(--pls-body)}
.lfd-pls-type label small{margin-top:2px;font-size:11.5px;font-weight:700;color:var(--pls-muted)}
.lfd-pls-type label:hover{color:var(--pls-ink)}
.lfd-pls-type input:checked+label{background:#fff;color:var(--pls-ink);box-shadow:0 2px 8px rgba(22,78,72,.14)}
.lfd-pls-type input:focus-visible+label{outline:3px solid var(--pls-ink);outline-offset:1px}

/* groups */
.lfd-pls-group{border-top:1px solid var(--pls-line)}
.lfd-pls-type+.lfd-pls-group{margin-top:12px}
.lfd-pls-group>summary{display:flex;align-items:center;gap:8px;padding:16px 0;list-style:none;cursor:pointer;font-size:15.5px;font-weight:800;color:var(--pls-ink)}
.lfd-pls-group>summary::-webkit-details-marker{display:none}
.lfd-pls-group>summary:focus-visible{outline:3px solid var(--pls-ink);outline-offset:2px;border-radius:8px}
.lfd-pls-group>summary .lfd-pls-chev{margin-left:auto;color:var(--pls-muted);transition:transform .2s}
.lfd-pls-group[open]>summary .lfd-pls-chev{transform:rotate(180deg)}
.lfd-pls-n{display:inline-grid;place-items:center;min-width:20px;height:20px;padding:0 6px;border-radius:999px;background:var(--pls-teal-deep);
  color:#fff;font-size:12px;font-weight:800;line-height:1}
.lfd-pls-n:empty{display:none}
.lfd-pls-content{padding:0 0 18px}
.lfd-pls-hint{margin:-6px 0 12px;font-size:13px;font-weight:600;color:var(--pls-muted)}

/* rows with a name and a note */
.lfd-pls-rows{display:grid;gap:8px}
.lfd-pls-row{position:relative;display:flex;align-items:center;gap:12px;padding:10px 12px;border:1.5px solid var(--pls-line);border-radius:14px;cursor:pointer}
.lfd-pls-row:hover{border-color:#b9c7c5}
.lfd-pls-row input{position:absolute;opacity:0;pointer-events:none}
.lfd-pls-row span{flex:1;min-width:0}
.lfd-pls-row b{display:block;font-size:14.5px;font-weight:800;line-height:1.25;color:var(--pls-ink)}
.lfd-pls-row small{display:block;margin-top:1px;font-size:12.5px;font-weight:600;line-height:1.3;color:var(--pls-muted)}
.lfd-pls-box{display:grid;place-items:center;flex:none;width:22px;height:22px;border:1.5px solid #b9c7c5;border-radius:7px;background:#fff;color:#fff}
.lfd-pls-box svg{width:14px;height:14px;opacity:0}
.lfd-pls-row:has(input:checked){border-color:var(--pls-teal-deep)}
.lfd-pls-row:has(input:checked) b{color:var(--pls-teal-deep)}
.lfd-pls-row input:checked~.lfd-pls-box{background:var(--pls-teal-deep);border-color:var(--pls-teal-deep)}
.lfd-pls-row input:checked~.lfd-pls-box svg{opacity:1}
.lfd-pls-row:has(input:focus-visible){outline:3px solid var(--pls-ink);outline-offset:2px}

/* chips */
.lfd-pls-chips{display:flex;flex-wrap:wrap;gap:8px}
.lfd-pls-chip{position:relative;display:inline-flex}
.lfd-pls-chip input{position:absolute;opacity:0;pointer-events:none}
.lfd-pls-chip label,.lfd-pls-chip span{display:inline-flex;align-items:center;gap:6px;height:38px;padding:0 14px;border:1.5px solid var(--pls-line);border-radius:999px;
  background:#fff;font-size:14px;font-weight:700;color:var(--pls-body);cursor:pointer;white-space:nowrap}
.lfd-pls-chip svg{display:none;width:14px;height:14px}
.lfd-pls-chip:hover label,.lfd-pls-chip:hover span{border-color:#b9c7c5;color:var(--pls-ink)}
.lfd-pls-chip input:checked+label,.lfd-pls-chip input:checked+span{border-color:var(--pls-teal-deep);color:var(--pls-teal-deep);font-weight:800}
.lfd-pls-chip input:checked+label svg,.lfd-pls-chip input:checked+span svg{display:block}
.lfd-pls-chip input:focus-visible+label,.lfd-pls-chip input:focus-visible+span{outline:3px solid var(--pls-ink);outline-offset:2px}

/* budget */
.lfd-pls-range{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:8px;margin-top:12px}
.lfd-pls-range label{display:flex;align-items:center;gap:4px;height:44px;padding:0 12px;border:1.5px solid var(--pls-line);border-radius:14px;
  font-size:14px;font-weight:800;color:var(--pls-muted)}
.lfd-pls-range label:focus-within{border-color:var(--pls-teal-deep)}
.lfd-pls-range input{width:100%;min-width:0;border:0;outline:0;padding:0;background:none;font:inherit;font-weight:800;color:var(--pls-ink)}
.lfd-pls-range input::placeholder{color:#97a3a2;font-weight:700}
.lfd-pls-range>span{font-size:13px;font-weight:700;color:var(--pls-muted)}

/* foot */
.lfd-pls-foot{flex:none;padding:14px 20px 16px;border-top:1px solid var(--pls-line);background:#fff}
.lfd-pls-none{margin:0 0 10px;font-size:13px;font-weight:700;color:var(--pls-ink)}
.lfd-pls-show{display:flex;align-items:center;justify-content:center;width:100%;height:48px;border:0;border-radius:16px;background:var(--pls-teal);
  color:#fff;font:inherit;font-size:15.5px;font-weight:800;cursor:pointer;transition:background .15s}
.lfd-pls-show:hover{background:var(--pls-teal-hover)}
.lfd-pls-show:focus-visible{outline:3px solid var(--pls-ink);outline-offset:2px}
.lfd-pls-show:disabled{background:#d5dcdb;color:#687777;cursor:not-allowed}

/* inside the phone offcanvas: the offcanvas header already says Filters and has the close button */
.offcanvas-body:has(>.lfd-pls){padding:0;display:flex;flex-direction:column}
.offcanvas-body>.lfd-pls{flex:1 1 auto;height:auto;border:0;border-radius:0;box-shadow:none}
.offcanvas-body>.lfd-pls .lfd-pls-head{display:none}
.offcanvas-body>.lfd-pls .lfd-pls-foot{padding-bottom:max(16px,env(safe-area-inset-bottom))}

/* the badge the script adds to the phone Filters button */
.lfd-pls-btn-n{display:inline-grid;place-items:center;min-width:20px;height:20px;margin-left:6px;padding:0 6px;border-radius:999px;
  background:#00796d;color:#fff;font-size:12px;font-weight:800;line-height:1}
.lfd-pls-btn-n:empty{display:none}

@media (prefers-reduced-motion:reduce){.lfd-pls *{transition:none!important}}

/* Integration with the existing Explore column and Bootstrap drawer only. */
.lfd-pl-sidebar.lfd-pls{padding:0;gap:0;}
.lfd-pls-tags:empty,.lfd-pls-status:empty{display:none}.lfd-pls-tags button{border:1px solid var(--pls-teal-deep);border-radius:999px;background:white;color:var(--pls-teal-deep);font:800 12px Nunito,sans-serif;padding:6px 10px}.lfd-pls-status{font-size:12px;margin:8px 0;color:var(--pls-muted)}
.lfd-pls-type{position:relative}.lfd-pls-type input{width:1px;height:1px}.lfd-pls-type label{min-width:0;font-size:13px}.lfd-pls-head h2{font-family:Nunito,sans-serif}.lfd-pls-row i{font-style:normal}
@media(min-width:1200px){.lfd-pl-sidebar-col:has(.lfd-pls){top:var(--lfd-filter-top,190px);height:min(820px,calc(100dvh - var(--lfd-filter-top,190px) - 20px));min-height:260px}}
@media(max-width:1199px){.lfd-pl-mobile-filter-canvas:has(.lfd-pls){width:min(420px,100vw)!important;top:0!important;bottom:0!important;height:100dvh!important;max-height:100dvh!important;border:0}.lfd-pl-mobile-filter-canvas .offcanvas-body{min-height:0;overflow:hidden}}
@media(min-width:1200px) and (max-height:650px){.lfd-pl-sidebar-col:has(.lfd-pls){position:static;height:auto;min-height:0}.lfd-pl-sidebar-col>.lfd-pls{height:calc(100dvh - 32px);max-height:none}}
.lfd-pl-sidebar.lfd-pls .lfd-pls-show{background:#00ae9d;color:#fff;opacity:1}.lfd-pl-sidebar.lfd-pls .lfd-pls-show:hover{background:#008f82}
