/*
 * jkvehicleselector — estilos
 * Prefijo jkvs- para evitar colisiones con el tema.
 * Paleta: amarillo identidad JKing4x4 (#FFD400) + negro (#111) + grises.
 *
 * Una sola barra. Layout responsive:
 *   - Desktop  (>768px): horizontal, max-width 1280px, fondo negro.
 *   - Movil    (<=768px): stack vertical, fondo amarillo, dentro de #mobile-header.
 */

.jkvs-wrapper {
  width: 100%;
  font-family: inherit;
}

/* ═══════════════════════════════════════════════════════════════ */
/* BARRA — base (desktop)                                          */
/* ═══════════════════════════════════════════════════════════════ */
.jkvs-bar {
  display: block;
  width: 100%;
  background: #111;
  border-bottom: 2px solid #FFD400;
  padding: 10px 0;
}

.jkvs-bar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.jkvs-bar-label {
  color: #FFD400;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.3px;
  white-space: nowrap;
  text-transform: uppercase;
}

.jkvs-select {
  flex: 1 1 180px;
  min-width: 140px;
  height: 38px;
  padding: 0 12px;
  border: 1px solid #444;
  background: #fff;
  color: #111;
  font-size: 14px;
  cursor: pointer;
  border-radius: 4px;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='%23111' d='M7 10l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 18px;
  padding-right: 30px;
}

.jkvs-select:disabled {
  background-color: #f1f1f1;
  color: #888;
  cursor: not-allowed;
  opacity: 0.7;
}

.jkvs-select.jkvs-loading {
  background-color: #fff7d0;
  color: #555;
  cursor: progress;
  opacity: 1;
}

.jkvs-select.jkvs-error {
  background-color: #fde2e2;
  color: #a00;
  border-color: #c44;
  opacity: 1;
}

.jkvs-btn-buscar {
  flex: 0 0 auto;
  height: 38px;
  padding: 0 24px;
  background: #FFD400;
  color: #111;
  border: none;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 4px;
  letter-spacing: 0.5px;
  transition: background 0.15s ease;
}

.jkvs-btn-buscar:hover:not(:disabled) {
  background: #FFC000;
}

.jkvs-btn-buscar:disabled {
  background: #777;
  color: #ccc;
  cursor: not-allowed;
}

/* ═══════════════════════════════════════════════════════════════ */
/* MOVIL  (<=768px) — stack vertical, fondo amarillo                */
/* ═══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {

  .jkvs-bar {
    background: #FFD400;        /* amarillo identidad */
    border-bottom: 2px solid #111;
    padding: 12px 0;
  }

  .jkvs-bar-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 0 12px;
  }

  .jkvs-bar-label {
    color: #111;
    text-align: center;
    font-size: 13px;
    padding-bottom: 2px;
  }

  .jkvs-select {
    width: 100%;
    height: 48px;               /* tap target comodo */
    font-size: 16px;            /* iOS no hace zoom si >= 16px */
    flex: none;
  }

  .jkvs-btn-buscar {
    width: 100%;
    height: 48px;
    background: #111;            /* contraste con la barra amarilla */
    color: #FFD400;
    font-size: 15px;
  }

  .jkvs-btn-buscar:hover:not(:disabled) {
    background: #000;
  }
}
