/* ============================================================================
   townsquare - the search page's own rules (/main_search on the master portal,
   templates/search.php). Loaded in <head> through theme.json vendors.search,
   so before townsquare.css: everything the Townsquare already draws (header,
   live strip, Tab row, cards, sidebar, windows) is townsquare.css's, and a
   rule here that changes one of those is scoped under .ig-screen-search.

   New here: the search bar without its banner, and the business directory
   of the "QmeLocal Business Ecosystem" design - the Spotlight, the filter
   column, the type chips and tools, the profile cards (grid and list) and the
   profile window. Ported with the tq- prefix and the 14px floor. ts-search.
   ============================================================================ */
/* === ts-search === */

/* the search bar is in the Townsquare's top banner (sections/ts_search.php) */
.ig-screen-search .tq-feedsec{padding-top:22px}
.ig-screen-search .tq-tu{text-decoration:none}
.ig-screen-search a.tq-chip,.ig-screen-search a.tq-pchip{display:inline-flex;align-items:center;gap:6px;text-decoration:none}
.ig-screen-search .tq-chip.tq-zero{opacity:.55}
.tq-sm-group{margin-bottom:18px}
.tq-sm-group h4,.tq-sm-grouph h4{font:800 18px/1.25 var(--tq-body);color:var(--tq-navy);margin:0}
.tq-sm-grouph{margin:6px 0 12px}
.tq-sm-try{margin:14px 0 0;display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:8px;font-size:15px}
.tq-sm-try a:not(.tq-chip){color:var(--tq-blue);font-weight:700}
.tq-none p{margin:0}
.tq-sm-item h3 a{color:inherit;text-decoration:none}
.tq-sm-item h3 a:hover{color:var(--tq-blue)}
.tq-sm-item .tq-media{display:block}

/* ---------- the Spotlight ---------- */
.tq-spot-h{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:var(--tq-gap-xs) var(--tq-gap-m);margin:0 0 var(--tq-gap-s)}
.tq-spot-h h3{font:800 clamp(20px,2vw,26px)/1.2 var(--tq-body);color:#0B1A4A;margin:6px 0 0}
.tq-spot-h p{margin:0;color:#4A5190;font-size:15px}
.tq-spot{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:var(--tq-gap-s);margin-bottom:var(--tq-gap-m)}
.tq-spc{position:relative;border-radius:20px;overflow:hidden;min-height:210px;display:flex;flex-direction:column;justify-content:flex-end;isolation:isolate;box-shadow:0 22px 44px -26px rgba(8,15,84,.6);transition:transform .35s,box-shadow .35s}
.tq-spc:hover{transform:translateY(-5px);box-shadow:0 34px 60px -26px rgba(19,38,243,.7)}
.tq-spc>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-2;transition:transform 1.2s}
.tq-spc:hover>img{transform:scale(1.07)}
.tq-spc::before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(0deg,rgba(8,15,84,.9) 0%,rgba(8,15,84,.45) 55%,rgba(19,38,243,.1))}
.tq-spc-in{display:flex;gap:10px;align-items:center;padding:14px 14px 8px;color:#fff;min-width:0}
.tq-spc-in>div{min-width:0}
.tq-spc-in h4{font:800 16px/1.2 var(--tq-body);margin:2px 0;color:#fff;overflow-wrap:anywhere}
.tq-spc-in p{margin:0;font-size:14px;opacity:.85}
.tq-spt{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:700 14px var(--tq-mono);letter-spacing:.06em;text-transform:uppercase;color:var(--tq-yellow)}
.tq-spc-act{display:flex;flex-wrap:wrap;gap:8px;padding:0 14px 14px}
.tq-spc-act .tq-btn-ghost{border-width:1.5px}
@media (max-width:1080px){.tq-spot{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:520px){.tq-spot{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none}.tq-spot::-webkit-scrollbar{display:none}.tq-spc{flex:0 0 82%;scroll-snap-align:start}}

/* ---------- filters beside the directory ---------- */
.tq-dir-lay{display:grid;grid-template-columns:270px minmax(0,1fr);gap:var(--tq-gap-m);align-items:start}
.tq-dside{position:sticky;top:150px;display:grid;gap:var(--tq-gap-s)}
.tq-dmain{min-width:0}
@media (max-width:1000px){.tq-dir-lay{grid-template-columns:minmax(0,1fr)}.tq-dside{position:static;order:2;grid-template-columns:repeat(auto-fit,minmax(240px,1fr))}.tq-dmain{order:1}}
.tq-facets{list-style:none;margin:0;padding:0;display:grid;gap:2px}
.tq-facets a{width:100%;display:flex;justify-content:space-between;align-items:center;gap:8px;padding:8px 10px;border-radius:10px;color:#1F2A5C;font:600 14px var(--tq-body);text-decoration:none;transition:.2s}
.tq-facets a span{min-width:0;overflow-wrap:anywhere}
.tq-facets a small{flex:0 0 auto;font:700 14px var(--tq-mono);color:#8A90B8;background:#F1F3FF;padding:2px 8px;border-radius:999px}
.tq-facets a:hover{background:#EEF0FF;color:var(--tq-blue)}
.tq-facets a[aria-pressed="true"]{background:var(--tq-blue);color:#fff}
.tq-facets a[aria-pressed="true"] small{background:rgba(255,255,255,.2);color:#fff}
.tq-tog{position:relative;display:flex;align-items:center;gap:10px;margin-top:10px;font:600 14px var(--tq-body);color:#1F2A5C;cursor:pointer}
.tq-tog input{position:absolute;opacity:0;width:1px;height:1px}
.tq-tog span{flex:0 0 38px;height:22px;border-radius:999px;background:#D9DDF3;position:relative;transition:.2s}
.tq-tog span::after{content:"";position:absolute;left:3px;top:3px;width:16px;height:16px;border-radius:50%;background:#fff;box-shadow:0 2px 5px rgba(0,0,0,.2);transition:.2s}
.tq-tog input:checked+span{background:var(--tq-blue)}
.tq-tog input:checked+span::after{left:19px}
.tq-tog input:focus-visible+span{outline:2px solid var(--tq-blue);outline-offset:2px}
.tq-tog input:disabled+span{opacity:.6}
.ig-screen-search .tq-promo-s .tq-row2{display:flex;flex-wrap:wrap;align-items:center;gap:12px}
.tq-scard.tq-me-todo h4{margin:0 0 6px}
.tq-scard.tq-me-todo p{font-size:14px;margin:0 0 12px}

/* ---------- type chips, Sort, the result line, grid or list ---------- */
.tq-dtool .tq-chips{margin-bottom:10px}
.tq-trow{display:flex;flex-wrap:wrap;align-items:center;gap:10px 16px;padding-top:10px;border-top:1px solid rgba(8,15,84,.08)}
.tq-tsel{display:inline-flex;align-items:center;gap:8px;font:700 14px var(--tq-body);color:var(--tq-muted)}
.tq-tsel select{padding:8px 10px;border-radius:10px;border:1px solid rgba(8,15,84,.12);background:#fff;color:var(--tq-navy);font:700 14px var(--tq-body)}
.tq-trow .tq-fmeta{margin:0!important;flex:1;min-width:180px}
.tq-vt{display:inline-flex;gap:4px;padding:4px;border-radius:12px;background:#F1F3FF}
.tq-vt button{width:34px;height:32px;border-radius:9px;border:0;background:none;color:var(--tq-muted);display:grid;place-items:center;cursor:pointer}
.tq-vt button[aria-pressed="true"]{background:#fff;color:var(--tq-blue);box-shadow:0 4px 10px -4px rgba(8,15,84,.3)}
@media (max-width:760px){.tq-vt button{width:40px;height:40px}.tq-tsel select,.tq-facets a{min-height:40px}}

/* ---------- the profile cards: themes/shared/css/profile-card.css (loaded after this file) ---------- */

/* === /ts-search === */
