/* Buscador en el encabezado - Parque Berrío */
.pbsh {
  --pbsh-accent: #1f5f8b;
  --pbsh-max: 560px;
  --pbsh-line: #d5dae0;
  --pbsh-ink: #1d2329;
  box-sizing: border-box;
  /* En escritorio el ancho lo calcula el JavaScript según el espacio libre junto al logo */
  flex: 1 1 0;
  width: auto;
  max-width: var(--pbsh-max);
  min-width: 0;
  margin: 0 16px;
  align-self: center;
  font-family: inherit;
  /* Sin position ni z-index: no se dibuja encima de los menús del tema */
}
.pbsh *, .pbsh *::before, .pbsh *::after { box-sizing: border-box; }
.pbsh[hidden] { display: none !important; }
/* Escritorio sin espacio junto al logo: fila completa bajo el encabezado */
.pbsh.pbsh--below { width: 100%; max-width: var(--pbsh-max); margin: 8px auto; padding: 0 12px; }

.pbsh-form {
  display: flex;
  align-items: stretch;
  width: 100%;
  min-width: 0;
  height: 42px;
  margin: 0;
  border: 1px solid var(--pbsh-line);
  border-radius: 999px;
  background: #fff;
  overflow: hidden;
}
.pbsh-form:focus-within {
  border-color: var(--pbsh-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--pbsh-accent) 22%, transparent);
}

.pbsh-input {
  flex: 1 1 auto;
  min-width: 0;
  height: 100%;
  margin: 0;
  padding: 0 8px 0 18px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--pbsh-ink);
  font: inherit;
  font-size: 16px; /* 16 px evita que el celular haga zoom al tocar */
  box-shadow: none;
  -webkit-appearance: none;
  appearance: none;
}
.pbsh-input::-webkit-search-cancel-button { cursor: pointer; }

.pbsh-select {
  flex: 0 1 auto;
  max-width: 200px;
  height: 100%;
  margin: 0;
  padding: 0 10px;
  border: 0;
  border-left: 1px solid var(--pbsh-line);
  background: transparent;
  color: var(--pbsh-ink);
  font: inherit;
  font-size: 14px;
  outline: 0;
  cursor: pointer;
}
.pbsh-select:focus-visible { box-shadow: inset 0 0 0 2px var(--pbsh-accent); }

.pbsh-submit {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 100%;
  margin: 0;
  padding: 0 18px;
  border: 0;
  border-radius: 0;
  background: var(--pbsh-accent);
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}
.pbsh-submit:hover { filter: brightness(1.08); }
.pbsh-submit:focus-visible { outline: 3px solid #fff; outline-offset: -5px; }

/* Lupa para abrir en celular (modo "icon") */
.pbsh-toggle {
  display: none;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--pbsh-line);
  border-radius: 50%;
  background: #fff;
  color: var(--pbsh-ink);
  cursor: pointer;
}
.pbsh-toggle[aria-expanded="true"] { background: var(--pbsh-accent); border-color: var(--pbsh-accent); color: #fff; }
.pbsh-toggle:focus-visible { outline: 3px solid var(--pbsh-accent); outline-offset: 2px; }

/* Fila desplegable bajo el encabezado (modo "icon" en celular) */
.pbsh-panel {
  display: none;
  box-sizing: border-box;
  width: 100%;
  padding: 8px 12px;
}

.pbsh-sr {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
