/* ══ CLASIFICADOS · VISTA MÓVIL (FILTROS-MOVIL-1118) ══
   Buscador compacto en 3 filas, panel de categorías como hoja inferior,
   filtros en una sola fila deslizable y categorías en barra deslizable.
   Revertir = quitar el <link> a /clasificados/_movil.css */
@media (max-width:768px){
  /* Cabecera más baja */
  .brandbar{padding:8px 0!important}
  .brandbar img{height:40px!important}
  .title-band{padding:14px 0 12px!important}
  .title-band h1{font-size:1.3rem!important}
  .title-band p,.title-band .sub{display:none!important}
  .title-band .crumb{font-size:11.5px!important;margin-bottom:4px!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .title-band .wrap{gap:10px!important}
  .title-band .wrap>div:first-child{width:100%}
  .title-band .title-actions{display:grid!important;grid-template-columns:1fr 1fr;gap:8px;width:100%;margin:0!important}
  .title-band .title-actions a{display:flex!important;align-items:center;justify-content:center;gap:6px;padding:10px 8px!important;font-size:13px!important;margin:0!important;border-radius:10px!important;text-align:center}
  .title-band .band-row{gap:10px!important}
  .title-band .band-actions{margin-left:0!important;width:100%}
  .title-band .band-actions .btn-publicar{display:block;text-align:center;padding:10px!important;font-size:13.5px!important}

  /* Buscador principal v2: solo "¿Qué buscas?" + Buscar; Categoría y Filtros en botones */
  .searchband{padding:12px 0 10px!important}
  .searchbar{display:flex!important;flex-wrap:nowrap!important;border-radius:14px!important;min-height:52px}
  .searchbar>.seg{display:none!important}
  .searchbar>.seg.seg-q{display:flex!important;flex:1;min-width:0;border:none!important;padding:0 12px!important}
  .searchbar>.go{width:auto!important;padding:0 18px!important;font-size:15px!important}
  .searchbar input{font-size:16px!important}
  #fx-pills,.loc-hint{display:none!important}
  .czm-quick{display:grid;grid-template-columns:1.35fr 1fr;gap:8px;margin-top:8px}
  .czm-qb{display:flex;align-items:center;gap:7px;min-width:0;height:46px;border:1.5px solid var(--line);border-radius:12px;background:#fff;color:var(--brown);font-weight:700;font-size:14px;line-height:1;font-family:inherit;padding:0 12px;cursor:pointer}
  .czm-qb i{color:var(--gold)}
  .czm-qb span.t{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:left}
  .czm-qb.on{border-color:var(--brown);background:#f6f1e7}
  .czm-badge{background:var(--gold);color:#fff;border-radius:999px;min-width:20px;height:20px;font-size:11.5px;display:inline-flex;align-items:center;justify-content:center;padding:0 6px}
  .czm-badge:empty{display:none}
  /* Hoja de filtros */
  .czm-sheet{position:fixed;left:0;right:0;bottom:0;z-index:5000;background:#fff;border-radius:20px 20px 0 0;max-height:86vh;overflow:auto;padding:0 16px calc(16px + env(safe-area-inset-bottom));box-shadow:0 0 0 100vmax rgba(20,30,20,.5);animation:czmUp .22s ease-out}
  .czm-sheet[hidden]{display:none}
  .czm-sec{padding:12px 0;border-bottom:1px solid #f0ebe2}
  .czm-sec>label{display:block;font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.05em;color:var(--muted);margin-bottom:8px}
  .czm-sheet .seg-cp{display:flex;align-items:center;gap:8px;border:1.5px solid var(--line);border-radius:12px;padding:0 12px;height:50px;background:#fff}
  .czm-sheet .seg-cp:focus-within{border-color:var(--brown)}
  .czm-sheet .seg-cp i{color:var(--gold)}
  .czm-sheet .seg-cp input{flex:1;min-width:0;border:0;outline:0;font-size:16px;background:transparent;width:auto!important}
  .czm-sheet .fx-gps{font-size:18px!important;padding:8px 2px 8px 10px!important}
  .czm-chips{display:flex;flex-wrap:wrap;gap:7px}
  .czm-chip{border:1.5px solid var(--line);background:#fff;color:#4a3a2a;border-radius:999px;height:38px;padding:0 14px;font-weight:600;font-size:14px;font-family:inherit;cursor:pointer}
  .czm-chip.on{background:var(--brown);border-color:var(--brown);color:#fff}
  .czm-sheet select.fx-pill{width:100%;height:48px;font-size:16px!important;border-radius:12px!important;padding:0 36px 0 12px!important}
  .czm-sheet .fx-pill{height:42px;font-size:14px!important}
  .czm-sheet .czm-row{display:flex;gap:8px;flex-wrap:wrap}
  .czm-foot{position:sticky;bottom:0;background:#fff;display:grid;grid-template-columns:1fr 2fr;gap:8px;padding:12px 0 2px}
  .czm-foot button{height:50px;border-radius:12px;font-weight:800;font-size:15px;font-family:inherit;border:0;cursor:pointer}
  .czm-clean{background:#f3efe8;color:var(--brown)}
  .czm-apply{background:var(--brown);color:#fff}
  .fx-sug{z-index:6000!important}

  /* Panel de categorías = hoja inferior con cabecera fija */
  .cats-panel{position:fixed!important;left:0!important;right:0!important;bottom:0!important;top:auto!important;max-height:82vh!important;border-radius:20px 20px 0 0!important;padding:0 14px 20px!important;box-shadow:0 0 0 100vmax rgba(20,30,20,.5)!important;z-index:5000!important;animation:czmUp .22s ease-out}
  .czm-sheet-head{position:sticky;top:0;z-index:2;background:#fff;display:flex;align-items:center;justify-content:space-between;padding:12px 2px 10px;margin:0 0 6px;border-bottom:1px solid var(--line)}
  .czm-sheet-head:before{content:"";position:absolute;top:5px;left:50%;width:40px;height:4px;margin-left:-20px;border-radius:4px;background:#d9d2c5}
  .czm-sheet-head strong{font-size:16px;color:var(--brown);margin-top:6px}
  .czm-close{border:0;background:#f3efe8;color:var(--brown);width:36px;height:36px;border-radius:50%;font-size:16px;margin-top:6px}
  .cats-all{width:100%;justify-content:center}
  .cats-row,.agro-list{gap:8px!important}
  .cat-card .thumb{height:72px!important}
  body.czm-lock{overflow:hidden}

  /* Listados por categoría (empleo, locales, ferias…) */
  .catnav{flex-wrap:nowrap!important;overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:none;margin:12px -16px 0!important;padding:0 16px 2px}
  .catnav::-webkit-scrollbar{display:none}
  .catnav a{flex:0 0 auto;padding:7px 13px!important;font-size:13px!important}
  .czf .czf-row{gap:8px!important}
  .czf .f label{font-size:11px!important}
  .czf input,.czf select{font-size:16px!important;min-height:44px}
  .czf-more-btn{width:100%;justify-content:center;min-height:44px;font-weight:700!important}
  .czf.open .czf-more-btn{background:var(--brown)!important;color:#fff!important}
  .czf .czf-adv{flex-wrap:wrap}
  .cz-pills{flex-wrap:nowrap!important;overflow-x:auto;scrollbar-width:none;padding-bottom:2px}
  .cz-pills::-webkit-scrollbar{display:none}
  .cz-pills>*{flex:0 0 auto}
  .czf-status{flex-wrap:nowrap!important;overflow-x:auto;scrollbar-width:none}
  .czf-status::-webkit-scrollbar{display:none}
  .czf-status>*{flex:0 0 auto;white-space:nowrap}
}
@keyframes czmUp{from{transform:translateY(40px);opacity:.4}to{transform:none;opacity:1}}
