/* =========================
   PASTILLA BLANCA (contenedor)
   ========================= */
.searchbar.searchbar--filters{
  width: min(1040px, 100%);
  margin-inline: auto;
  padding: .6rem;
  background: #fff;
  border-radius: 999px;
  box-shadow: 0 18px 40px rgba(15,23,42,.10);
  display: flex;
  align-items: center;
  gap: .6rem;
}

/* Columnas */
.searchbar--filters .select-wrap{
  flex: 1 1 0;
  min-width: 240px;
  position: relative;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

/* =========================
   SELECT NATIVO (plano + borde redondeado)
   ========================= */
.searchbar.searchbar--filters .select-wrap select{
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  height: 48px !important;
  line-height: 48px !important;
  padding: 0 2.2rem 0 1rem !important;
  border: 0 !important;
  background: transparent !important;
  border-radius: 12px !important;     /* borde interno suave */
  box-shadow: none !important;
  outline: none !important;
  color: #0b0b0b !important;          /* texto negro */
  font-weight: 600 !important;
}

/* Placeholder nativo */
.searchbar.searchbar--filters .select-wrap select:invalid,
.searchbar.searchbar--filters .select-wrap option[value=""]{
  color: #6b7280 !important;          /* placeholder gris */
  font-weight: 600 !important;
}

/* Flecha nativa (solo si NO hay Select2) */
.searchbar.searchbar--filters .select-wrap::after{
  
  position: absolute;
  right: .9rem;
  top: 50%;
  transform: translateY(-50%);
  color: #64748b;
  font-size: 12px;
  pointer-events: none;
}
.searchbar.searchbar--filters .select-wrap.is-select2::after{ display: none; }

/* =========================
   SELECT2 (plano + borde redondeado)
   ========================= */
.searchbar.searchbar--filters .select-wrap .select2-container{ 
  width: 100% !important; 
}
.searchbar.searchbar--filters .select-wrap
.select2-container--default .select2-selection--single,
.searchbar.searchbar--filters .select-wrap
.select2-container--default .select2-selection--single:focus,
.searchbar.searchbar--filters .select-wrap
.select2-container--default .select2-selection--single:hover{
  height: 48px !important;
  display: flex !important;
  align-items: center !important;
  padding: 0 2.2rem 0 .75rem !important;
  border: 0 !important;                 /* sin borde interno */
  background: transparent !important;   /* sin fondo interno */
  border-radius: 12px !important;       /* borde interno suave */
  box-shadow: none !important;
  outline: none !important;
}

/* Texto/placeholder Select2 */
.searchbar.searchbar--filters .select-wrap
.select2-selection__rendered{
  line-height: 48px !important;
  color: #0b0b0b !important;            /* texto negro */
  font-weight: 600 !important;
  padding-left: .25rem !important;
}
.searchbar.searchbar--filters .select-wrap
.select2-selection__placeholder{
  color: #6b7280 !important;            /* placeholder gris */
  font-weight: 600 !important;
}

/* Flecha Select2 */
.searchbar.searchbar--filters .select-wrap .select2-selection__arrow{
  height: 48px !important;
  right: .9rem !important;
}
.searchbar.searchbar--filters .select-wrap .select2-selection__arrow b{
  border-color: #64748b transparent transparent transparent !important;
  border-width: 6px 5px 0 5px !important;
}

/* Quita imágenes/fondos heredados (UA/Bootstrap) */
.searchbar.searchbar--filters .select-wrap *,
.searchbar.searchbar--filters .select-wrap select{
  background-image: none !important;
}

/* Menú desplegable de Select2 (drop-down) */
.select2-container .select2-dropdown{
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(2,6,23,.12);
  background: #fff;
}
.select2-results__option{ padding: .6rem .75rem; }
.select2-results__option--highlighted[aria-selected]{ background: #eef2ff; color: #1e293b; }

/* Botón */
.searchbar--filters .btn.btn-primary{
  flex: 0 0 140px;
  height: 48px;
  border-radius: 999px;
  font-weight: 700;
  white-space: nowrap;
  border: none;
}

/* Responsive */
@media (max-width: 720px){
  .searchbar.searchbar--filters{
    border-radius: 16px;
    flex-wrap: wrap;
    gap: .5rem;
    padding: .5rem;
  }
  .searchbar--filters .select-wrap,
  .searchbar--filters .btn.btn-primary{
    flex: 1 1 100%;
    width: 100%;
  }
}


/* scrol de categoria */
/* ----- PILLBAR CON FLECHAS ----- */
.pillbar-shell{
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: .5rem;
}

/* Botones */
.pillbar-btn {
  flex: 0 0 auto;              /* no se estiran */
  width: 38px; height: 38px;
  border-radius: 999px;
  border: 1px solid #dbe3ef;
  background: #fff;
  box-shadow: 0 6px 16px rgba(15,23,42,.08);
  font: 700 20px/1 system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  cursor: pointer;
  display: flex;               /* 👈 centra el ícono dentro */
  align-items: center;
  justify-content: center;
  transition: transform .08s ease, opacity .2s;
}
.pillbar-btn:hover{ transform: translateY(-1px); }
.pillbar-btn:disabled{
  opacity:.35; cursor: default; transform:none;
}

/* Pista scrollable */
.pillbar{
  display:flex;
  gap:.6rem;
  overflow-x:auto;
  overscroll-behavior-inline: contain;
  scroll-behavior:smooth;
  scrollbar-width:none;
  -ms-overflow-style:none;
  padding: .25rem;
  mask-image: linear-gradient(90deg, transparent 0, #000 28px, #000 calc(100% - 28px), transparent 100%); /* desvanecidos laterales */
}
.pillbar::-webkit-scrollbar{ display:none; }

/* Pastillas (por si no lo tenías) */
.pill{
  white-space:nowrap;
  padding:.55rem .9rem;
  border-radius:999px;
  border:1px solid #1da1f2;
  background:#fff;
  color:#1da1f2;
  font-weight:600;
}
.pill.active{ background:#1da1f2; color:#fff; }
