/* iOS Fix - Prevenir zoom em campos de input */
@supports (-webkit-touch-callout: none) {
  /* Previne zoom em inputs no iOS */
  input[type="text"],
  input[type="email"],
  input[type="password"],
  input[type="number"],
  input[type="tel"],
  input[type="url"],
  input[type="search"],
  textarea,
  select {
    font-size: 16px !important;
    -webkit-text-size-adjust: 100% !important;
    transform: scale(1) !important;
  }
  
  /* Específico para o campo de regiões */
  #buscadorRegiao,
  #buscadorSearchRegiao {
    font-size: 16px !important;
    -webkit-appearance: none !important;
    -webkit-user-select: text !important;
    user-select: text !important;
  }
  
  /* Previne zoom no dropdown */
  .buscador-dropdown {
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
  }
  
  /* Fix para modal em iOS */
  .buscador-modal-overlay {
    -webkit-overflow-scrolling: touch;
    overflow-scrolling: touch;
  }
  
  /* Previne zoom em inputs de data */
  input[type="date"] {
    font-size: 16px !important;
    -webkit-appearance: none !important;
  }
}

/* General iOS fixes */
@supports (-webkit-appearance: none) {
  /* Remove sombra e bordas padrão do iOS */
  input,
  textarea,
  select {
    -webkit-appearance: none;
    -webkit-border-radius: 0;
    border-radius: 0;
  }
  
  /* Remove o botão de clear do Safari */
  input[type="text"]::-webkit-search-decoration,
  input[type="text"]::-webkit-search-cancel-button {
    -webkit-appearance: none;
  }
}

/* Fix para scroll em iOS */
body {
  -webkit-overflow-scrolling: touch;
  overflow-scrolling: touch;
}

/* Previne o zoom quando o teclado aparece */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
  select,
  textarea,
  input[type="text"],
  input[type="password"],
  input[type="datetime"],
  input[type="datetime-local"],
  input[type="date"],
  input[type="month"],
  input[type="time"],
  input[type="week"],
  input[type="number"],
  input[type="email"],
  input[type="url"],
  input[type="search"],
  input[type="tel"] {
    font-size: 16px !important;
  }
}
